It is all about me!
you have nothign to prove, except theorems


 
Soundtrack:

It is all about the soundtrack in your life.
The one that plays while you act on life's stage.
Po wered by WordPress

-->

May 14, 2010

Summer has begun

I am not wearing shorts yet, but I have been spending a lot more time outside in the sun. Looking at the calendar I see that 15 days of summer have already expired without much productivity from my part. Not on projects, not on research and not even on the resting front.

Now is the time to sit down and make a little plan for the coming months to see how things will go down. The main plan is to work hard this summer. Yeah. Seriously work, work and work. Try to get to some high-energy level where I am waking up early and getting 4h of intellectual labour per day and 4h of other stuff.
Come september I get on a plane and ship myself to Bulgaria for a couple of months. Productivity in-a-de-homeland? Vacation too. Go to the cottage. Visit P. in Berlin. Visit D. in Austria/London. Why not an Amsterdam trip while we are at it.

But lets get more specific on the work side. What work absolutely HAS to be done by the end of this summer.

  1. PhD thesis topic settled
  2. Interference channel paper
  3. minireference content (en: and fr:) be written and organized
  4. minireference website
  5. liblda.py must be started

Apart from that there are these projects that I would like to work on,
but they are not mission critical.

  • The kronos project with A., more specifically the web-text editor, the scheduler and the pdflatex renderer…
  • Non-binning information theory for neuroscience research
  • Writing up papers
  • minireference iPhone/iPad app in Objective-C

So the TODO list has been set down. Now the harder part of actually doing all that is in the list comes about. I have to be frank with myself — none of this will get done without effort and without getting up early in the morning. I have to get myself to a higher energy level and then things will work out.

Vamolos !


December 9, 2009

This is the “sector” I want to do business in

Filed under: Latex, Business — ivan @ 1:25 am

Page description languages are things that represent documents in their final state before being printed.

Typesetting is the process of taking text and other objects and placing them on the page. I want to be part of that too.

Document editing is the yet another step where UI is most important. Is the user looking at a WYSIWYG editor, a textbox or something else? How does the user specify advanced object placement like where the images should be (.css, GUI drag and drops + anchor property, auto placement).

The last part is the most difficult since it is “user facing” and users are tough. A simple web-app can do part of the job, but will it be rich enough for people to use on a daily basis?


October 17, 2009

Latex Wiki — all in javascript

Filed under: Latex, Projects — ivan @ 1:26 am

Then there is a science pad which packages a TiddlyWiki with the HTMLarea WYSIWIG editor and some custom buttons.

Dood… this is amazing.
All I need to do now is port tiddly wiki to pyjamas and then run with it.

Kick ass ;)


August 14, 2009

Life threads

Filed under: Computer Science, Latex, Graduate Life — ivan @ 11:39 am

The last couple of days I haven’t been very productive. I have read enough about network coding to start the literature review, but I feel like the knowledge isn’t all well connected yet and settled inside my head. So long as I feel that, it will be difficult to sit down and produce 12 pages of literature review.

This is not good because time is running out and if I don’t bouge mon cul the whole vacation idea will evaporate. No seriously…

What is bugging me the most is that the procrastination impulses are so obvious and powerful. Sometimes I can manage my digressions and my lack of motivation — you force yourself to focus and then it works. But these days it isn’t happening like that. As if opening the text editor to actually write something blocks my thinking and I think about what else I can do.

This got me thinking about a way to do personal time management. Suppose you had a number of tasks to do which you can organize into work flows. The idea is that as soon as you don’t feel like working on something, you can switch to another thread and keep doing useful stuff instead of going on the internet and reading other people’s bullshit ideas.

What is important is to keep the number of threads finite (like 3-4 per month). This ensures you have enough positive feedback of accomplishment from each thread and also there is a chance that you will finish the work.

The key is variety. You need to have a boring administrative tasks thread and a advanced science thread and a learning new stuff thread and maybe a creative writing thread?
Well I can tell you I need to work on it because otherwise I start to go all over the place…. and if I know one thing is that we have finite amount of energy which we need to channel into something tangible.

Now open TeXnicCenter and get to it!


DokuWiki comments

Filed under: Latex — ivan @ 12:43 am

I like my comments more like:
# this is a comment
and % this is another one

I modified a bit the comment plugin for this purpose.


June 5, 2009

Newcomer to the e-learning beachhead

Filed under: Latex — ivan @ 2:34 am

[ structured text UI ala feedbooks that produces some very contrived type of document — a course pack ]
http://utilium.com

Still I like the idea of “widgets” being moved around in a document very much…
In particular it would fit with the “choose your own adventure” branching authoring…
Not to mention kick ass document creation…

objdoc
widgdoc


April 12, 2009

Dokuwiki citations and BibTeX

Filed under: Latex — ivan @ 4:05 pm

I am working on the robotics wiki today. In particular I am trying to do the literature review for my web crawler project.

Sure enough there is a plugin that does BibTeX for DokuWiki — actually there were 3! This one is too fancy and requites RewriteRules and other fancy stuff — i tried to install it and failed. Then I went back to the original BibTeX plugin.

It was OK, but I also wanted to be able to “cite” papers with regular # links. I opened the php code and added some anchors. This is the patch relative to the original code. And this is the zip file for the finished product — just unzip in your lib/plugins/ dir and it will work.

example usage:

===== Interesting papers =====
the paper [[#ZhuGreinerHaubl2003]] is very interesting
because it abstracts away from word frequencies tied to
specific vocabularies.

====== References ======

<bibtex>
@INPROCEEDINGS{ConfAmbroise2003b,
   author =    {C. Ambroise},
   title =     {Comments on Incremental Model Based Clustering for Large
                Data Sets with Small Clusters
                by Chris Fraley, Adrian Raftery, Ron Wehrens},
   booktitle = {54th session of the International Statistical Institute},
   file={bibtex:talk:ambroise-ISI2003.pdf},
   address = {Berlin, Germany},
   year =      2003,
}

@INPROCEEDINGS{ZhuGreinerHaubl2003,
    author = {Tingshao Zhu and Russ Greiner and Gerald Haubl},
    title = {An Effective Complete-Web Recommender System},
    booktitle = {WWW2003, May 20–24, 2003, Budapest, Hungary},
    year = {2003},
    url={http://www.cs.ualberta.ca/~greiner/PAPERS/WWW03-Effective.pdf}
}
</bibtex>

March 29, 2009

I’m so meta

Filed under: Latex, Graduate Life, Projects, Python, Business — ivan @ 2:43 pm

Given that it is a rainy day today in Montreal, I decided to wake up early (like 10am :) and start organizing my papers. I have about 10 different avenues of academic research (QIT, neural networks, graph algorithms,etc…), about 10 business ideas and about 20 odd community project ideas. For each of these ideas there is some printed material, a bunch of shortcuts on all of my computers, brainstorming notes in notebooks and a bunch of scrap papers that I have kept “just in case” some crucial deep thought happens to be recorded there.

So I said *nuff of that* — let’s cleanup this mess and organize.

So of course, the first thing that I do is write a python script that will help me get it done :)
So now instead of organizing ideas, I am meta-organizing ideas….

But wait — there is more — as soon as I have this script working (which I must say I am fortunate enough was quite simple) I get an idea for a new Project. So of course — how best to describe your idea than with the project-admin.py? So now the python script is describing itself…

Here is the output: idea collector

Time to hit the paper stack organizing task before I go into another tangent….


September 28, 2008

Django 1.0 Documentation

Filed under: Latex, Python, alexHS, Django — ivan @ 1:47 pm

Update Feb 6th 2010: PDF generation of the django docs is much easier now

I really really like Django. This simple MVC framework saved me from the pains and depression of Zope. Sure I learned a lot of cool concepts like interfaces and adaptors from the good book, but ultimately I wasn’t able to get my project off the ground in a whole month whereas with Django I was productive very fast. And that is a lot to say for someone who had almost no web-dev experience until a couple of months ago.

There docs folder of your django distribution has a lot of very useful text files with very detailed documentation that explains how to do simple things and more advanced things as well. You can grep in that folder to look for things, or sometimes grep-ing in the actual source code can also be helpful.

Of course, when learning nothing is better than having a printed book which you can read and consult while programming, writing templates and searching for solutions. The django book is cool and all but I think the docs themselves are of such high quality that they should be your primary source for learning, examples AND reference.

So here it is for you: Django 1.0 Documentation (pdf) (~700pages)
The remainder of this post is a howto about generating the docs yourself from the docs/ directory and the sphinx—latex—pdf method. I posted my “fix” over here earlier, but now I wanted to flesh out the process with more details for other people out there that insist on raping trees.

Step 1: Getting the software

If you are running on a Linux system then you should go and get the default latex distribution from your repository. I ran
sudo apt-get install python-sphinx texlive-latex-base.
You might also need texlive-latex-extra texlive-latex-recommended, but I am not sure if have these because I am a tex guy or because I had to use them for the docs.

Step 2: Changing conf.py

The Makefile has a latex target for the sphinx doc builder. The settings for are stored in the file called conf.py.
For some reason, in the latex target of conf.py only the index is built so if you run make latex you will get a 50p index with titles and a lot of white space.

Change that file to:

# Options for LaTeX output
# ------------------------
# The paper size ('letter' or 'a4').
latex_paper_size = 'letter'
# The font size ('10pt', '11pt' or '12pt').
latex_font_size = '10pt'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [
(master_doc, 'django.tex', 'Django Documentation', 'Django Software Foundation', 'manual'),
]

Where master_doc is defined somewhere higher up in the file as “contents” — so basically EVERYTHING in the docs directory.

Step 3: Generating the latex code
In the docs directory run:
make latex
and a couple of minutes later the _build/latex dir will be full of .tex, .pngs and .gifs

Step 4: Convert .gifs to .pngs
The pdflatex program used to generate a pdf file from latex source can work with .jpgs, and .pngs. It has some trouble working with .gifs though so we need to change a few pics. If you have imagemagick installed this is easy:

cd _build/latex
for file in *.gif ; do
echo converting `basename $file .gif` from gif to png;
convert $file `basename $file .gif`.png;
done

Then open django.tex in your favourite text editor and search for four \includegraphics statements that involve gifs. In vim I did:
/includegraphics.*gif/

and replace the gif extention with png

(If you don’t have time to do this don’t worry about it, there are just 4 gifs that aren’t so important — you probably won’t even notice that they are not there)

Step 5: Build the pdf
This takes about 30 seconds and you will see some errors while it runs. Something about pt being used as a unit of measure. Ignore those (simply press the spacebar) and the program will continue running and generate your beautiful new 700 page document.

This is my version of the 1.0 docs.

Now all you have to do is find a free printer and a quality 2” binder to hold your new Django 1.0 documentation version papier.


February 5, 2008

PDF/A nightmares

Filed under: Quantum Information, Latex, Graduate Life — ivan @ 3:59 pm

So I am done now…. windows on the laptop crashed on me exactly when I was doing the most crucial step… Adobe didn’t have the Times font for embedding and I had to rework some parts of the thesis.
i win in the end… i win! (to most of you this might appear as a regular PDF file but actually it is a glorious PDF/A as required by the McGill eThesis program.)
I even uploaded it to the arXiv.

Which makes me think… how could a free paper archive produce such a quality solution whereas a McGill, surely with a huge budget behind them can’t do a good job. For god’s sake… they don’t even have a way to link to an entry in the database with a unique identifier… I would say this is the MAIN function of an online repository. Oh well… maybe it is because everyone keeps saying that the future is search :)

Ok. So I thought I could get this done quickly in the morning but it turns out the process was longer…. hey wait… can you hear that? I think the coffee machine is calling my name from the kitchen…


Next Page »