Thursday, December 17, 2009

Configuring Locales

To install fr_FR.UTF-8 in case your girlfriend does not speak English:

$ dpkg-reconfigure locales

And you should be all set !

Wednesday, December 16, 2009

(acroread-en:26300): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/ wrong ELF class: ELFCLASS64

Today I started looking at this annoying warning everytime I start acroread:
$ acroread ./medical/dicom/2008/08_02pu.pdf
(acroread-en:26300): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/ wrong ELF class: ELFCLASS64

Looking in the bug tracker it seems this is:


But as reported here, this is a recent regression:


I could not figure out how this lib is actually being pulled in.

Monday, December 14, 2009

PDF Library

In GDCM, I needed a PDF library in order to cope with Encapsulated PDF Storage (1.2.840.10008.

I thought poppler would fit the need, but anytime a new release would come out, the API would be badly broken. Eg:

Today I found out, there is a new effort:

I'll have to keep an eye on it, and drop poppler which is only a rendering library (it pulls dependencies to fonts library !).

XBMC on debian

After some digging it appears XBMC got uploaded on debian-multimedia (Thanks Christian!)

$ apt-cache policy xbmc
Installed: (none)
Candidate: 9.11~b2-0.0
Version table:
9.11~b2-0.0 0
100 unstable/main Packages

I have to try at home now

RT Ion Plan Storage in GDCM

GDCM 2.x trunk now support loading or RT Ion Plan Storage (1.2.840.10008.

The code is available at:

Enjoy !

Inconsistency detected by dl-open.c: 643: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!

I could not start skype on my debian/stable machine so I had to follow instructions from:


which leads to:



dpkg -X libgdbm3_1.8.3-3_i386.deb bla
dpkg -X libwrap0_7.6.q-16_i386.deb bla
sudo cp -avi bla/usr/lib/libgdbm* /usr/lib32/
sudo cp -avi bla/lib/ bla/lib/ /lib32/


Le contre-appel des scientifiques incultes


Friday, December 4, 2009


I am playing with TestPRandomGraphSource on the cluster here. But already I am getting some issues:

$ mpirun --hostfile ~/mpicluster -x DISPLAY=localhost:10.0 /home/mpiuser/Kitware/VTK-gcc/bin/TestPRandomGraphSource ~/Kitware/VTK-gcc
Testing simple random generator (100, 200)...
Testing simple tree+random generator (100, 200)...
Breadth-first search... done in 0.0102899 seconds
Vertex coloring... done in 0.00678277 seconds
Verifying vertex coloring... done in 0.00980902 seconds
Connected components...[dhcp-67-182:15734] *** Process received signal ***
[dhcp-67-181:16211] *** Process received signal ***
[dhcp-67-181:16211] Signal: Segmentation fault (11)
[dhcp-67-181:16211] Signal code: (128)
[dhcp-67-181:16211] Failing at address: (nil)
[dhcp-67-182:15734] Signal: Segmentation fault (11)
[dhcp-67-182:15734] Signal code: (128)
[dhcp-67-182:15734] Failing at address: (nil)
[dhcp-67-182:15734] [ 0] /lib/ [0x7fa832501fd0]
[dhcp-67-181:16211] [ 0] /lib/ [0x7f08aaf61fd0]
[dhcp-67-182:15734] [ 1] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa838518ce4]
[dhcp-67-181:16211] [ 1] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f78ce4]
[dhcp-67-182:15734] [ 2] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa838537c3e]
[dhcp-67-181:16211] [ 2] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f97c3e]
[dhcp-67-182:15734] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa838537ff0]
[dhcp-67-181:16211] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f97ff0]
[dhcp-67-182:15734] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa8385380a2]
[dhcp-67-181:16211] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f980a2]
[dhcp-67-182:15734] [ 5] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa83853823c]
[dhcp-67-181:16211] [ 5] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f9823c]
[dhcp-67-182:15734] [ 6] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa838502887]
[dhcp-67-181:16211] [ 6] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08b0f62887]
[dhcp-67-182:15734] [ 7] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833bc901e]
[dhcp-67-181:16211] [ 7] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac62901e]
[dhcp-67-182:15734] [ 8] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833ba7dad]
[dhcp-67-181:16211] [ 8] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac607dad]
[dhcp-67-182:15734] [ 9] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833b91fc5]
[dhcp-67-181:16211] [ 9] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac5f1fc5]
mpirun noticed that process rank 1 with PID 16211 on node mpi1 exited on signal 11 (Segmentation fault).
[dhcp-67-182:15734] [10] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833b96226]
[dhcp-67-181:16211] [10] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac5f6226]
[dhcp-67-182:15734] [11] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833d0cc7b]
[dhcp-67-181:16211] [11] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac76cc7b]
[dhcp-67-182:15734] [12] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833b95d73]
[dhcp-67-181:16211] [12] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac5f5d73]
[dhcp-67-182:15734] [13] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833d0b717]
[dhcp-67-181:16211] [13] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac76b717]
[dhcp-67-182:15734] [14] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833ba87f7]
[dhcp-67-181:16211] [14] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac6087f7]
[dhcp-67-182:15734] [15] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833b9413f]
[dhcp-67-181:16211] [15] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac5f413f]
[dhcp-67-182:15734] [16] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833d03341]
[dhcp-67-181:16211] [16] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac763341]
[dhcp-67-182:15734] [17] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fa833b1a6aa]
[dhcp-67-181:16211] [17] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7f08ac57a6aa]
[dhcp-67-182:15734] [18] /home/mpiuser/Kitware/VTK-gcc/bin/TestPRandomGraphSource(main+0x12a9) [0x4654dd]
[dhcp-67-181:16211] [18] /home/mpiuser/Kitware/VTK-gcc/bin/TestPRandomGraphSource(main+0x12a9) [0x4654dd]
[dhcp-67-182:15734] [19] /lib/ [0x7fa8324eeabd]
[dhcp-67-181:16211] [19] /lib/ [0x7f08aaf4eabd]
[dhcp-67-182:15734] [20] /home/mpiuser/Kitware/VTK-gcc/bin/TestPRandomGraphSource [0x463f39]
[dhcp-67-181:16211] [20] /home/mpiuser/Kitware/VTK-gcc/bin/TestPRandomGraphSource [0x463f39]
[dhcp-67-182:15734] *** End of error message ***
[dhcp-67-181:16211] *** End of error message ***
[dhcp-67-182][[20651,1],2][../../../../../../ompi/mca/btl/tcp/btl_tcp_frag.c:216:mca_btl_tcp_frag_recv] [dhcp-67-181][[20651,1],0][../../../../../../ompi/mca/btl/tcp/btl_tcp_frag.c:216:mca_btl_tcp_frag_recv] mca_btl_tcp_frag_recv: readv failed: Connection reset by peer (104)
mca_btl_tcp_frag_recv: readv failed: Connection reset by peer (104)

sigh :(

Wednesday, December 2, 2009

atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0)

I was trying to get the combo Fn+F2 working on a DELL MS6300, but got stuck on the following message:

[ 118.586044] atkbd.c: Unknown key pressed (translated set 2, code
0x88 on isa0060/serio0).
[ 118.586044] atkbd.c: Use 'setkeycodes e008 ' to make it known.

I quickly found this page:


I found out that the hal-info in testing did contained the proper info:


But I really got it working for most of the F1 - F12 keys : *after* installing the following package: hotkey-setup:



Option "XkbLayout" "gb"

I am not sure why but since debian/Lenny, one need to explicitely state the XkbLayout for the X session. device console where ok though:

Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbLayout" "gb"

PRO/Wireless 4965 AG or AGN [Kedron] Network Connection

After much struggle, I finally was able to get the network for my wifi ENABLED (and not DISABLED):

$ sudo lshw
description: Wireless interface
product: PRO/Wireless 4965 AG or AGN [Kedron] Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:0c:00.0
logical name: wmaster0
version: 61
serial: 00:21:5c:a0:55:17
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list logical ethernet physical wireless
configuration: broadcast=yes driver=iwlagn latency=0 module=iwlagn multicast=yes wireless=IEEE 802.11abgn

The trick was to use a 2.6.30 kernel !


I still get the annoying HAL problem:

[ 167.662866] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 167.662874] atkbd.c: Use 'setkeycodes e008 ' to make it known.

Oh well giving up on this one for now.

Tuesday, December 1, 2009

Xvfb on MPI Cluster

I have finally finished setting up the MPI cluster. It is still not as I imaginged (only a single NIC is used for now).

I wanted to start playing with it using the ParallelBFS from VTK, but enter quickly into some troubles. I could not figure out how to redirect the DISPLAY to my main machine, so I ended up having :

$ mpirun --hostfile ~/mpicluster -np 3 /home/mpiuser/Kitware/VTK-gcc/bin/ParallelBFS
ERROR: In /home/mpiuser/Kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 344
vtkXOpenGLRenderWindow (0x2ab3b910): bad X server connection. DISPLAY=ERROR: In /home/mpiuser/Kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 344
vtkXOpenGLRenderWindow (0x2ab3b910): bad X server connection. DISPLAY=ERROR: In /home/mpiuser/Kitware/VTK/Rendering/vtkXOpenGLRenderWindow.cxx, line 344
vtkXOpenGLRenderWindow (0x2ab3b910): bad X server connection. DISPLAY=[dhcp-67-180:21108] *** Process received signal ***
[dhcp-67-180:21108] Signal: Segmentation fault (11)
[dhcp-67-180:21108] Signal code: Address not mapped (1)
[dhcp-67-180:21108] Failing at address: 0xe0
[dhcp-67-180:21108] [ 0] /lib/ [0x7fd3f82f0a80]
[dhcp-67-180:21108] [ 1] /usr/lib/ [0x7fd3fbcd9198]
[dhcp-67-180:21108] [ 2] /usr/lib/ [0x7fd3fbd07466]
[dhcp-67-180:21108] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/ [0x7fd3fdacb837]
[dhcp-67-180:21108] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/ParallelBFS(main+0x320) [0x409760]
[dhcp-67-180:21108] [ 5] /lib/ [0x7fd3f785c1a6]
[dhcp-67-180:21108] [ 6] /home/mpiuser/Kitware/VTK-gcc/bin/ParallelBFS(__gxx_personality_v0+0x369) [0x409349]
[dhcp-67-180:21108] *** End of error message ***
mpirun noticed that process rank 0 with PID 21108 on node mpi0 exited on signal 11 (Segmentation fault).

Oh well that is ok I can just install xvfb on the first node and try it again. But then again Xvfb failed:

$ Xvfb :9 -ac -screen 0 300x300x24
error opening security policy file /etc/X11/xserver/SecurityPolicy
(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
[config/hal] couldn't initialise context: (null) ((null))

^CFreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.

Ok, doing a google search reveal:

xvfb: Should depend on xfonts-base package

No this is not it, I have the xfonts-base:

$ apt-cache policy xfonts-base
Installed: 1:1.0.0-5
Candidate: 1:1.0.0-5
Version table:
1:1.0.0-6 0
200 testing/main Packages
100 unstable/main Packages
*** 1:1.0.0-5 0
500 lenny/main Packages
100 /var/lib/dpkg/status

Doing another google search reveal:

error opening security policy file /usr/lib/xserver/SecurityPolicy

Ha ! I do not have the package, let's install it:

$ sudo apt-get install xserver-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 51.6kB of archives.
After this operation, 143kB of additional disk space will be used.
Get:1 testing/main xserver-common 2:1.6.5-1 [51.6kB]
Fetched 51.6kB in 0s (1132kB/s)
Selecting previously deselected package xserver-common.
(Reading database ... 57388 files and directories currently installed.)
Unpacking xserver-common (from .../xserver-common_2%3a1.6.5-1_all.deb) ...
Processing triggers for man-db ...
Setting up xserver-common (2:1.6.5-1) ...

And let's try again:

$ Xvfb :9 -screen 0 300x300x24
error opening security policy file /etc/X11/xserver/SecurityPolicy
(EE) XKB: Couldn't open rules file /usr/share/X11/xkb/rules/base
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
[config/hal] couldn't initialise context: (null) ((null))

Ok I have no clue...time to hit the debian-users list.

Monday, November 30, 2009

Copenhague: L'Ultimatum Climatique

Le lien pour signer la petition:


I was recently involved in a thread on ITK mailing list, where it was discussed the use of LC_NUMERIC. In DICOM it is very important to write floating point number in C-style format.

At first I thought I could test using:

well in fact it is much more complex:

Now I can setup test to check whether GDCM is LC_NUMERIC independant or not !


I was looking for documentation on how to secure a debian server and found out those links:


Which leads to :


So on my debian 5.0 system, I had to install the testing for bastille:

$ sudo apt-get install -t testing bastille

which leads to:

$ apt-cache policy bastille
Installed: 1:3.0.9-12
Candidate: 1:3.0.9-12
Version table:
*** 1:3.0.9-12 0
200 testing/main Packages
100 unstable/main Packages
100 /var/lib/dpkg/status
1:2.1.1-19 0
500 lenny/main Packages

Now to get is working with X interface, you have to:

$ sudo su -
$ InteractiveBastille

If you get an error for you stimply need to:

$ apt-get install perl-tk

Cheers !

Sunday, November 29, 2009

vimdiff DICOM files

autocmd BufReadPre *.dcm set ro
autocmd BufReadPre *.dcm set hlsearch!
autocmd BufReadPost *.dcm silent %!dcmdump "%" -

error: Unable to find hp-toolbox on PATH.

Ok, I am giving up. I cannot get hplip to work from unstable.

Let's hope reverting to testing is ok.

Boot Debian from an USB device

I have been struggling for the past days to prepare a USB Key for booting up debian. I was reading:

Well the important part is :

# zcat boot.img.gz > /dev/sdX

This is completely different from:

# zcat boot.img.gz > /dev/sdX1

One is writing to the disk (create the partition at the time), while the other one is simply copying to the 1st partition.

BTW, there is also a good link that never showed up on my google search:

Friday, November 27, 2009

password-stores = keychain on MacOSX

On your MacOSX., have a setup such that:

$ cat .subversion/config
password-stores = keychain

$ cat .subversion/servers
store-passwords = yes
store-plaintext-passwords = no

If you have any svn.simple directory make sure to delete it first. You should be all set.

See my post at:

Wednesday, November 25, 2009

You want the best from GDCM, but are you are using Activiz ? Well take the best from both.
You can now use GDCM directly from C# using the Activiz framework !

This image was a screenshot of:

$ mono ./bin/HelloActiviz3.exe ~/Creatis/gdcmData/012345.002.050.dcm


There are no availible options for this view.

Since a few days the viewvc software installed on is displaying this funky message:

"There are no availible options for this view. "


Patching nvidia-graphics-drivers

I finally took the time to work on the issue that has been killing me from the begining. I could not switch away from my DisplayPort otherwise my monitor would enter in Power Save mode.

See my post:

Yesterday I finally found this post:

And today I decide to get my hand at patching the nvidia-graphics-drivers debian package. See my patch at:

I simply had to dpkg -i install the kernel source, then I followed my own instructions:

I did the module-assistant dance ... it worked out nicely !

I can finally switch to my mac mini on DVI and then back to my debian station on DisplayPort.


Tuesday, November 24, 2009

Doing UTF-16 on Win system

Conventional wisdom is retarded, aka What the @#%&* is _O_U16TEXT?

Educate to Innovate

From the white house:

Monday, November 23, 2009

Installing CMake on MacOSX from the command line

I did not want to following instructions from:

as it painful from an admin point of view. Instead using macports this was a no-brainer:

$ sudo /opt/local/bin/port -v selfupdate
---> Updating the ports tree
Synchronizing local ports tree from rsync://
receiving file list ... done

sent 36 bytes received 417227 bytes 119218.00 bytes/sec
total size is 29398873 speedup is 70.46
---> Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes received 6869 bytes 2762.00 bytes/sec
total size is 4021380 speedup is 582.39
MacPorts base version 1.8.1 installed,
MacPorts base version 1.8.1 downloaded.
---> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated

$ sudo /opt/local/bin/port install boost
---> Computing dependencies for boost
---> Fetching boost-jam
---> Attempting to fetch boost-jam-3.1.17.tgz from
---> Verifying checksum(s) for boost-jam
---> Extracting boost-jam
---> Applying patches to boost-jam
---> Configuring boost-jam
---> Building boost-jam
---> Staging boost-jam into destroot
---> Installing boost-jam @3.1.17_0
---> Activating boost-jam @3.1.17_0
---> Cleaning boost-jam
---> Fetching bzip2
---> Attempting to fetch bzip2-1.0.5.tar.gz from
---> Verifying checksum(s) for bzip2
---> Extracting bzip2
---> Applying patches to bzip2
---> Configuring bzip2
---> Building bzip2
---> Staging bzip2 into destroot
---> Installing bzip2 @1.0.5_3+darwin
---> Activating bzip2 @1.0.5_3+darwin
---> Cleaning bzip2
---> Fetching zlib
---> Attempting to fetch zlib-1.2.3.tar.bz2 from
---> Verifying checksum(s) for zlib
---> Extracting zlib
---> Applying patches to zlib
---> Configuring zlib
---> Building zlib
---> Staging zlib into destroot
---> Installing zlib @1.2.3_3
---> Activating zlib @1.2.3_3
---> Cleaning zlib
---> Fetching boost
---> Attempting to fetch boost_1_41_0.tar.bz2 from
---> Verifying checksum(s) for boost
---> Extracting boost
---> Applying patches to boost
---> Configuring boost
---> Building boost
---> Staging boost into destroot
---> Installing boost @1.41.0_0
---> Activating boost @1.41.0_0
---> Cleaning boost
Installing macport

$ curl -O
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 431k 100 431k 0 0 148k 0 0:00:02 0:00:02 --:--:-- 209k
dhcp-67-178:Software mathieu$ hdiutil attach ./MacPorts-1.8.1-10.6-SnowLeopard.dmg
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified CRC32 $3A3AE94A
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified CRC32 $CA2CC8A2
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified CRC32 $395B8734
Checksumming (Apple_Free : 3)…
(Apple_Free : 3): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified CRC32 $260D55ED
Checksumming (Apple_Free : 5)…
(Apple_Free : 5): verified CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified CRC32 $395B8734
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified CRC32 $E963A641
verified CRC32 $1EEE11CE
/dev/disk4 GUID_partition_scheme
/dev/disk4s1 Apple_HFS /Volumes/MacPorts-1.8.1

$ cd /Volumes/MacPorts-1.8.1

$ sudo installer -pkg MacPorts-1.8.1.pkg -target /
installer: Package name is MacPorts-1.8.1
installer: Installing at base path /
installer: The install was successful.

$ sudo port -v selfupdate
sudo: port: command not found

Hum looks like my .profile was not copied as expected (*)


SVN and clear password

I could just not setup a regular cmake/ctest environment on a dashboard machine as our svn server had no anonymous user. I could not just use my username+password everywhere either.

It looks like now this is possible on Win32, MacOSX and finally most UNIX system:

Yeah !

Installing CMake on MacOSX from the command line

I thought I could just :

curl -O

hdiutil attach cmake-2.8.0-Darwin-universal.dmg

cd /Volumes/cmake-2.8.0-Darwin-universal

sudo installer -pkg cmake-2.8.0-Darwin-universal.pkg -target /

Oh well ... it still starts up a message box, where you have to click, yes I want the /usr/bin cmake symlink.

D'oh !

Saturday, November 21, 2009

nVidia on debian

First thing first:

$ vim /etc/apt/sources.list

deb lenny main contrib non-free
deb-src lenny main contrib non-free

deb lenny/updates main contrib non-free
deb-src lenny/updates main contrib non-free

$ sudo apt-get update

$ sudo apt-get install module-assistant

$ sudo m-a prepare

$ sudo m-a update

$ sudo m-a a-i nvidia

By now something should have gone wrong (*), so now fix it by using the nvidia driver from unstable:

$ sudo apt-get install -t unstable nvidia-kernel-source

Don't forget to remove old stuff

$ sudo apt-get remove nvidia-glx

Yeah for some reason driver for kernel 2.6.26-2-686 was pulled while uname returned: 2.6.30-bpo.1-686

So again clean it up:

$ sudo apt-get remove nvidia-kernel-2.6.26-2-686

Remove any old compilation binaries:

$ sudo m-a clean nvidia

Same player:

$ sudo m-a a-i nvidia

You should be all set now !

Now you can install

$ sudo apt-get install -t unstable nvidia-glx-dev


Thursday, November 12, 2009

Uploading file to is broken

I am following the instructions from:

So this give:

$ rsync -e ssh GDCM-2.0.14-Linux-x86_64.tar.bz2 GDCM-2.0.14-Linux-x86_64.tar.gz gdcm-2.0.14.tar.bz2 gdcm-2.0.14.tar.gz "malat, 2.x/GDCM 2.0.14"
ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(600) [receiver=3.1.0dev]
rsync: connection unexpectedly closed (9 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]

this is not working, I had to do:

$ sftp malat,
sftp> put GDCM-2.0.14-Linux-x86_64.tar.bz2
Uploading GDCM-2.0.14-Linux-x86_64.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.bz2
GDCM-2.0.14-Linux-x86_64.tar.bz2 100% 2876KB 1.4MB/s 00:02
sftp> put GDCM-2.0.14-Linux-x86_64.tar.gz
Uploading GDCM-2.0.14-Linux-x86_64.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/GDCM-2.0.14-Linux-x86_64.tar.gz
GDCM-2.0.14-Linux-x86_64.tar.gz 100% 3215KB 1.6MB/s 00:02
sftp> put gdcm-2.0.14.tar.bz2
Uploading gdcm-2.0.14.tar.bz2 to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.bz2
gdcm-2.0.14.tar.bz2 100% 2537KB 1.2MB/s 00:02
sftp> put gdcm-2.0.14.tar.gz
Uploading gdcm-2.0.14.tar.gz to /home/pfs/project/g/gd/gdcm/gdcm 2.x/GDCM 2.0.14/gdcm-2.0.14.tar.gz
gdcm-2.0.14.tar.gz 100% 3319KB 1.6MB/s 00:02
sftp> ^D

Sigh, this is an admin worse nightmare...

Private DICOM dictionary

Looking at the private dictionary for pydicom:

It says:

# Generates output from a file from the MDCM project (,

The only issue is that mdcm is LGPL, while pydicom claims to be MIT... There is a clear conflict of license here.

So I filled in a bug report:

I cannot believe they prefered to used the dictionary from mdcm, instead of using the easy-to-parse XML dictionary from GDCM

oh well...

Sunday, November 8, 2009

2012: la fin du monde ?

Pas si sur, ca serait plutot 2220, d'apres cet article:


Postfix Gmail SMTP Relay

I was trying to setup postfix to relay email to my gmail account and found out:

which is working, compared to a skrewed solution like:


HAL Keymap Quirks

Today trying to start the wifi I discover things were not working as expected. Check this thread:

So searching on the net for:

[ 446.068109] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 446.068117] atkbd.c: Use 'setkeycodes e008 ' to make it known.

reveal this bug report on debian:

Which lead to this page:

Bad luck, this is not working anymore and there is no redirect. Using web.archive I found this page:

Searching for keywords on this page, reveal that this page has moved to:

Pheeww.... that was hard !

Tuesday, November 3, 2009

a.vim : Alternate Files quickly

There is a very cool vim script a.vim:

However this script is really poorly documented, so I spend half an hour just to figure out how to add a special extension.


let g:alternateExtensions_txx = "hxx,h,hh"

Well now how about t++ -> h++ ? Look easy, try it yourself !


:so $HOME/.vim/plugin/a.vim
let g:alternateExtensionsDict['t++'] = "h++"

Wednesday, October 28, 2009

net-entreprises est le service proposé aux entreprises et à leurs mandataires(experts-comptables, centres et associations de gestion agréés…) par l’ensemble des organismes de protection sociale pour effectuer et régler, par internet, de manière sécurisée, simple et gratuite, leurs déclarations sociales.

C'est le site reference depuis:

En cliquant a droite on est envoye sur le site de

Plus qu'a attendre l'activation des mes declarations !

"Recognizing that public shame is a potent weapon, the Electronic Frontier Foundation today launched a new Web site — its Takedown Hall of Shame — that will shine an unflattering spotlight on those corporations and individuals who abuse copyright claims to stifle free speech. Among the early inductees are NPR, NBC, CBS, and Diebold."

Monday, October 26, 2009

Message d'erreur : Impossible d'ouvrir une session car il y a une limitation des comptes

This is simply because:


Indeed, you cannot login as Adminstrator from 'normal' session.

This happened to me when Admin password was emptied from using:

Offline NT Password & Registry Editor, Bootdisk / CD

Sunday, October 25, 2009

/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe: cannot execute binary file

Yup there is one remaining issue with wine/cygwin configuration, see:

which turns out to be:

Simple patch worked out; ok:

$ cd .wine/drive_c/cygwin/usr/i686-pc-cygwin/bin
$ for a in *; do ln -sf ../../../bin/$a; done


Thursday, October 22, 2009

Declaration Trimestrielle de Recettes

Je viens de recevoir ma declaration trimestrielle de recettes de l'URSSAF. Je ne comprends pas sur quelle periode cela s'applique.

en cherchant un peu en ligne, je tombe sur des liens google cache:


Donc en gros:

Quand déclarer et payer mes cotisations ?
Le premier paiement de vos cotisations intervient après un délai minimum de 90 jours suivant la date de début d’activité. Par ailleurs, lors de votre adhésion, vous pouvez choisir de déclarer et payer chaque trimestre ou chaque mois.

* Paiement trimestriel : 30 avril, 31 juillet, 31 octobre et 31 janvier. La première déclaration trimestrielle porte sur la période comprise entre le début d’activité et la fin du trimestre civil qui suit.

Et pour ceux qui comme moi ne se souvienne plus de la definition de trimestre:

Au plus tard le dernier jour du premier mois de chaque trimestre civil (pour les cotisations et primes émises ou encaissées au cours du trimestre civil précédent).
La contribution doit donc être versée le :
- 30 avril (pour les cotisations et primes du 1er trimestre)
- 31 juillet (pour les cotisations et primes du 2è trimestre)
- 31 octobre (pour les cotisations et primes du 3è trimestre)
- 31 janvier (pour les cotisations et primes du 4è trimestre de l’année précédente)

Wednesday, October 21, 2009

Facture Auto Entrepreneur

J'ai été extrêmement decu que le facturier sur le site auto-entrepreneur soit en PDF.
Heureusement que des sites plus professionnel distribue un facturier éditable, par exemple:

Et surtout bien lire

Moi j'ai choisis: 2009-numéro séquentiel

Le site renvoi aussi sur:

Qui a l'air de bien simplifier la gestion des factures.

Oh joie !

The Joel Test: 12 Steps to Better Code

The Joel Test

1. Do you use source control?
2. Can you make a build in one step?
3. Do you make daily builds?
4. Do you have a bug database?
5. Do you fix bugs before writing new code?
6. Do you have an up-to-date schedule?
7. Do you have a spec?
8. Do programmers have quiet working conditions?
9. Do you use the best tools money can buy?
10. Do you have testers?
11. Do new candidates write code during their interview?
12. Do you do hallway usability testing?

Tuesday, October 20, 2009

How to Build a Hackintosh with Snow Leopard, Start to Finish

Just for fun:


Sunday, October 18, 2009

Law.Gov: America's Operating System, Open Source

HP Deskjet F2290: Installation succeed !

After some struggle:

I solved it using:

finally: NEVER ever run hp-toolbox a root:

You'll get the infamous "Failed to create file: Permission denied"

Also described at:

Saturday, October 17, 2009

Ubuntu + Virtualization + Windows on HP TX1499US Laptop

Pretty intersting link to read:

and also:

Choosing virtualization solution

Ce PC n'est pas pris en charge par les disques de réinstallation du système.

I cannot install WinXP from my system restore DVDs, what a pity :(


Trying now on virtualbox ML:


Friday, October 16, 2009

virtualbox: RTR3Init failed with rc=-1912 (rc=-1912)

Even if virtualbox is nicely package on debian it is not that easy to get it right the first time.



do not forget:

Oh well, sh*$ happens

Wednesday, October 14, 2009

100 years of Big Content fearing technology—in its own words


"I cannot think of a single significant innovation in either the creation or distribution of works of authorship that owes its origins to the copyright industries."
William Patry in his book Moral Panics and the Copyright Wars.

Monday, October 12, 2009

How to recognise a good programmer

Thursday, October 8, 2009

[HOWTO] Extract Fonts from a PDF File

Wednesday, October 7, 2009

Installing Intel C++ compiler on debian

Looks like Intel is finally making some progress toward support of debian:


I still prefer the old installation steps:


At least it generates a 'normal' deb file.

Tuesday, October 6, 2009

Closer to get XBMC on debian

Hey I finally made some progress on getting XBMC to compile on my debian box, see my post



I recently was looking for a solution to run WinXP on my Linux debian system, since wine did not worked for me. I had to give up on kvm since I do not have the proper extension, I was then slowly looking into XEN...
Until my attention was brought to virtualbox:

This looks like the perfect solution, I am not a big fan of vmware and there is a debian package for virtualbox :)

There is no USB support in the debian package apparently, you need the commercial version :

Friday, October 2, 2009

Trying to get VS 2005 to work on wine

This is not so easy. some random links:

My original problem:

KB92077 - C1902 error in AT Command in Visual Studio 2005

Program database manager mismatch

fatal error C1902: Program database manager mismatch; please check your installation

Version number incorrect in Microsoft.VC80.CRT.manifest, VS2005 SP1 Beta

MS C++ 2005 express database mismatch error when compiling

Yup, to be able to build from command line in an environment w/o VC++ 8.0 installed, here are all the files that I found I needed to have in the %Path% (in addition to all the files in the %ProgramFiles%\Visual Studio 8.0\VC\Bin):

msvcm80.dll (CRT WinSxS)

msvcp80.dll (CRT WinSxS)

msvcr80.dll (CRT WinSxS)

Microsoft.VC80.CRT.manifest (CRT WinSxS - Copy and rename from C:\WINDOWS\WinSxS\Manifests\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_0de06acd.manifest; Also need to change the version string to 8.0.50608.0)





fatal error C1902: Program database manager mismatch; please check your installation

Unable to create folder in C:\Windows\WinSXS in Vista OS

Thursday, October 1, 2009

Today's random thoughts

Interactive Debugging KDE Apps with QtCreator

cmake vs autotools, a benchmark

How to write boost.python converters

Pretty nice link:

Tuesday, September 29, 2009

Converting floating point to string

This is not as simple as one could think:


Floating Point in XML:

Monday, September 28, 2009

Installing Visual C++ Toolkit 2003

I am banging my head trying to install Installing Visual C++ Toolkit 2003.

Instructions from:

However I cannot find msvcrt.lib:

$ winetricks dotnet20
$ cd .wine
$ find . | grep -i msvcrt

Where is msvcrt.lib ?

Tuesday, September 15, 2009

The passionate developer: I do like my profession, I don't like my job
The term alpha geek, has got most of its currency through a talk and online essay by Tim O'Reilly. In this talk he says that by watching what alpha geeks are doing you get a sense of what the future is like for the technology industry as a whole.

Alpha geeks are typically experimenting with technology. In software development they are the people who first try new languages and frameworks. They are also inclined to build things to solve their problems if there isn't a viable alternative out there. Although they can be wedded to a particular platform, most of them will use what makes them most effective, hopping between platforms. They usually are very passionate about software development and spend more time, often spare time, reading books, going to conference, and tinkering.

Tim's view was that alpha geeks, as a whole, are leading indicators. This isn't true of an individual, who may try all sorts of things and drop if they don't end up being useful. But the aggregate result is important. If many alpha geeks are liking the same thing, then there's a good chance that this is something that's important. It may be several years before it hits the mainstream, but when it does it will matter.

I tend to agree with this view. Although most of my work is playing around with the recent past, trying to capture things we know in a comprehensible way, I do keep an eye on what alpha geeks are looking at and liking. So far its tended to lead to me things that are usually interesting, and more often than not to things that make an important difference to our profession as a whole.

In many ways the name "alpha geek" is unfortunate. In this context, at least, it doesn't necessarily indicate that the alpha geeks are the best technologists - someone who is very expert in a particular technology but doesn't look for new stuff wouldn't fit. "Alpha" also has connotations of superiority and dominance that also don't necessarily fit. The point in this context is that alpha geeks are the people who like to explore and try new things.

Monday, September 14, 2009

C++: Want Speed? Pass by Value.

Something that might surprise some people:

Sunday, August 30, 2009

Appel à cotisations de la CIPAV

Quelques liens pour ceux qui ne le sauraient pas encore:

* Appel à cotisations de la CIPAV
* Lien vers le communiqué sur le site de la CIPAV
* Auto-entrepreneur : un couac sur les appels à cotisations
* Auto-entrepreneurs : des appels à cotisations envoyés par erreur
* Cotisations indues au RSI, à la CIPAV, à l'URSSAF

Communiqué du 29 mai 2009
Certains professionnels auto-entrepreneur se sont émus d’avoir été destinataires d’un appel de cotisations émis par la CIPAV. Ainsi que l’a déjà rappelé la presse, les auto-entrepreneurs n’ont évidemment pas à s’acquitter de ces cotisations forfaitaires (régime vieillesse et régime invalidité décès).
On notera toutefois que les conseillers retraite du centre d’appels de la CIPAV n’ont traité qu’une quarantaine d’appels relatifs au statut d’auto-entrepreneur ces huit derniers jours. Rappelons que depuis le 1er janvier 2009, la CIPAV a affilié plus de 9 000 professionnels libéraux, aucun ne relevant du statut d’autoentrepreneur selon les éléments de déclaration qui ont été transmis à la Caisse.
La CIPAV s’emploie à identifier les sources d’erreurs dans la chaîne d’affiliation. D’ores et déjà, elle demande à tous les auto-entrepreneurs destinataires par erreur d’un appel à cotisations, de bien vouloir lui renvoyer (CIPAV, 21 rue de Berri – 75403 Paris cedex 08) l’attestation d’affiliation qui leur a été délivrée par l’URSSAF (l’accusé de réception reçu après l’inscription sur le site de l’autoentrepreneur ne vaut pas affiliation). Dans ce cas, les personnes concernées n’ont pas à s’acquitter des cotisations forfaitaires demandées.

Wednesday, August 19, 2009

DNA Evidence Can Be Fabricated, Scientists Show

Tuesday, August 18, 2009

The Hague Declaration

The Hague Declaration

Adopted and proclaimed
by the founders of the Digital Standards Organization
in The Hague on 21 May 2008.

Whereas almost 60 years ago the Universal Declaration of Human Rights, established in international law these rights and freedoms:

1. Freedom from discrimination by government or law (Article 2, Article 7).
2. Freedom of movement within the borders of each state (Article 13.1).
3. The right to participate in government (Article 21.1).
4. The right of equal access to public services (Article 21.2).

Whereas these rights and freedoms are today accepted by every democratic government and backed by the constitutions of most states;

Considering that all countries are moving, at different rates and from different starting points, towards a society in which full and effective participation in government and society, and access to public services, education and opportunity, are increasingly dependent upon access to electronic communications;

Considering more specifically that:

* Government information, services and resources are increasingly provided virtually rather than physically;
* Freedom of speech and association are increasingly exercised on line rather than in person;
* The Internet and the Web provide an unprecedented avenue to equality of education and opportunity for all peoples throughout the world;

Considering that the benefits of the Internet may only be guaranteed, and our hard-won human rights may only be preserved as we make the transition to a digital society, by ensuring affordable, equal access to the Internet, and if the openness of the Internet is also preserved;

Considering the unique role that free and open digital standards can play in ensuring this result by fostering competition and innovation, lowering costs and increasing choice;

Considering that governments, through example and procurement, are uniquely able to ensure that all people achieve the benefits that free and open digital standards can provide;

Considering that these benefits are of particular importance to the economically, socially, and geographically disadvantaged peoples of the world;

Considering that there is increasing consensus on the attributes of a free and open digital standard;

We call on all governments to:

1. Procure only information technology that implements free and open standards;
2. Deliver e-government services based exclusively on free and open standards;
3. Use only free and open digital standards in their own activities.

Wednesday, August 12, 2009

Subversion Upgraded to 1.6.4

Following up on:

I updated the gdcm svn server to 1.6.4, instructions can be found here:

Create the dump file:

Import the dump:

Tuesday, August 11, 2009

Sending email from python using

Tuesday, July 28, 2009


The C++0x "Remove Concepts" Decision

So C++1x will integrate Concepts again :)

Thursday, July 23, 2009

error: 'jvariant::jvariant(jbyte)' cannot be overloaded

Original post: