Friday, 23 September 2011

Ascii art Tetris game

I was bored so I wrote this little online tetris game in ascii art.

I hope someone will have fun playing it.

Sunday, 10 July 2011

Voxpaint, an opensource 3d voxels painter

This is the first release of a small 3D voxels painter I had been working on recently.

For the moment it cannot do much, but I am planning to use to create some video game graphics.

The code is hosted on launchpad:

Check out the videos:

Tuesday, 28 June 2011

Compiling Qt mobility for Simulator on Windows

These days I am working on a Symbian application using Qt 4.7.3 and Qt mobility 1.2.0.

Since the last version of Qt SDK doesn't ship Qt mobility 1.2.0 for the simulator, I had to recompile it myself. Since it took me some time, I write a step by step how to to help people who are trying to do the same thing.

The only real problem is that the SDK for windows doesn't include all the headers files needed to compile the sources. So I copied them from my linux installation of the SDK.
  1. Make sure you have the latest version of Qt SDK. As I write it it is the version 1.1.2, including Qt 4.7.3 and Qt mobility 1.1.3. In my case the SDK is installed into c:\QtSDK.
  2. Get the sources of qt mobility for the simulator from its git repository. Note that it is not the same repository as for Symbian or desktop version.
  3. Two directories are missing in the the simulator source on windows:
    • c:\QtSDK\Simulator\Qt\mingw\include\private
    • c:\QtSDK\Simulator\Qt\mingw\include\QtGui\private
    So what I did is copied those directory from my linux partition where Qt SDK was installed (from the directory ./QtSDK/Simulator/Qt/gcc/include).
  4. In a windows console, set up the PATH to include all the needed tools. You need qmake from the Simulator SDK, perl, and makew32-make:

    set PATH=c:\QtSDK\Simulator\Qt\mingw\bin;%PATH%
    set PATH=c:\QtSDK\mingw\bin;%PATH%
    set PATH=c:\QtSDK\Symbian\tools\perl\bin\;%PATH%

  5. Run configure. In my case I didn't need the messaging module and since it requires dependencies I removed it from the list of modules using the -modules argument of the command:

    configure -modules "bearer contacts gallery location publishsubscribe multimedia systeminfo serviceframework sensors versit organizer feedback connectivity"

  6. Run the make command:


  7. Finally install everything:

    mingw32-make install
After this I was able to compile and run applications using qt mobility 1.2.0 on the simulator.

Monday, 2 May 2011

Gedit plugin to emulate emacs alt-q

Here is a small gedit plugin for all the people who are like me on an emacs rehab.

If there is one emacs feature I really miss when using gedit -which is by the way a great text editor- this is the alt-q command (fill-paragraph), that automatically reformats the current paragraph according to the margin width.

Monday, 21 February 2011

from org-mode to zim

In a previous post I shared my enthusiasm with org-mode, the great emacs module for keeping notes and getting things done.

At the time I was using org-mode for pretty much everything : taking notes, keeping my contacts list, monitoring the time spent working on different projects, etc.

But these days, even though I still think org-mode is one of the most powerful notes taking system out there, I don't use it anymore. Now I am using a mix of hamster and zim. Here is the list of reasons that made me switch from org-mode:

1. I don't use emacs anymore.

I am not going to start the old flame war about emacs vs other text editors, but the fact is that org-mode is only useful for people who know how to use emacs. I don't like to use too many different tools, I am already currently using gedit, netbeans and vim. Having to use emacs at the same time confuses me too much.

2. No integration with gnome

This is specially important for time tracking. I need to be able to see at every moment the task I am working on, and be able to change it in a few seconds. With org-mode I had to switch to the workspace where I run emacs, then enter several commands to see the current task and changing it. Very often when working on a task I would forget to start or stop the timers. In contrast, hamster always show very clearly in the gnome bar what I am doing and the time spent on the task. A simple click and I can stop the task and start a new one.

3. Too complicated (but this is related to the point 1)

Not really a problem for people who use emacs all the time, but when I use it only for org-mode, then I spent many time simply learning the commands. Getting Things Done is all about spending time doing things, not learning about how to do things.

4. Zim organization of files is much better for my needs

The most important thing that org-mode (and zim) got right is that all the data should be stored in plain text files that can be read and edited by any text editor. This way I can always access my notes no matter where. Now the problem with org-mode is that if it works very well with one file per project, it doesn't scale well for wiki style notes where you have many small text files linked to each other. Zim on the other hand make it super easy to have as many files as needed. Each file is automatically added into the ~/Notes directory, which is exactly what I want. On the left

So, here is the typical way I use zim and hamster :

Every morning after I turn on my computer (and I am done reading blogs and emails), I click on the hamster notification to start a new task. The timer always remind me of what I am supped to do, and this is a good physiological fence that prevent me from focusing on anything else that
the current task.

I keep a general Zim note for each project I am working on, that mostly look like a TODO file. Before I start to work I can read it and see what are the important things I should do.

If I suddenly have an idea or find a link that would be useful for a task that is not the one I am working on, I open zim (takes half a second) and add the idea/link in the relevant note.

When I find useful general informations, I add then into my personal wiki that is also managed by zim.

Every time hamster reminds me that I have been working for more that one hour on a task, I allow myself to make a pause, and eventually switch task.

At the end of the day I can review the total time I spent working during the day.

In the end my workflow is pretty much the same as before, but the overall experience is much better than it was with org-mode.

Now of course there are some things I wish I could get from zim / hamster

1. Tables
This is the killer feature of org-mode, and to be honest the only reason I still sometime turn on emacs these days. org-mode just make it super easy to edit tables.

2. Calendar integration
I would love to have gnome automatically parsing my notes for entry containing dates and adding them in the calendar. Once again org-mode had it almost right, except that they don't care about gnome or any other desktop. For them the working environment is emacs.

3. Better wiki syntax and text editing
Disclaimer : I am a fan of restructured text, and I wish that every wiki would use its syntax.
Being a programmer, I feel more comfortable working with mono-spaced font, with if possible a way to automatically format the lines to 80 characters. Currently zim don't allow to edit the notes directly in plain text, and I understand it is the better option for most people, but that is one of the cases where I think more choices would be good.

So should you use org-mode or zim / hamster or something else ?

My opinion: If you already use emacs a lot (and if you like it), then go for org-mode, you can do pretty much anything with it and it can be quite enjoyable to use.

If you don't like emacs, and use gnome, then go for zim/hamster. You can get 80/100 of what you get with org-mode, and you won't spend much time learning it.

Tuesday, 8 February 2011

Chatocracy released

Chatocracy is a website that allows people to have one to one conversations on the webcam. After each conversation you can rate the person you have been talking to ; the better ranking you get, the more people you can talk to.

My brother and me have been working on this for the last few weeks. It is still beta so if you encounter problems please report it.

url :