Monday, November 30, 2009

Copenhague: L'Ultimatum Climatique

Le lien pour signer la petition:

http://www.copenhague-2009.com/

LC_NUMERIC

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:

http://groups.google.com/group/comp.lang.c++/browse_thread/thread/a881d87a65b260b7

well in fact it is much more complex:

http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Testing/Source/DataStructureAndEncodingDefinition/Cxx/TestLCNumeric.cxx?view=markup

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

Bastille

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

* http://todeathwithasmile.blogspot.com/2009/06/bastille-and-debian-5-aka-lenny.html

Which leads to :

* http://www.linode.com/forums/viewtopic.php?p=20446

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
bastille:
Installed: 1:3.0.9-12
Candidate: 1:3.0.9-12
Version table:
*** 1:3.0.9-12 0
200 http://ftp.fr.debian.org testing/main Packages
100 http://ftp.fr.debian.org unstable/main Packages
100 /var/lib/dpkg/status
1:2.1.1-19 0
500 http://ftp.fr.debian.org lenny/main Packages


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

$ sudo su -
$ InteractiveBastille

If you get an error for Tk.pm 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:

http://d-i.alioth.debian.org/manual/en.i386/ch04s03.html#ftn.id318505

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:

http://www.debian-administration.org/articles/446

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:
http://svn.haxx.se/users/archive-2009-11/0677.shtml