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/libclearlooks.so: 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/libclearlooks.so: wrong ELF class: ELFCLASS64

Looking in the bug tracker it seems this is:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490947

But as reported here, this is a recent regression:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544324#15

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.5.1.4.1.1.104.1)

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

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555959

Today I found out, there is a new effort:

http://planet.gnu.org/gnupdf/

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
xbmc:
Installed: (none)
Candidate: 9.11~b2-0.0
Version table:
9.11~b2-0.0 0
100 http://www.debian-multimedia.org 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.5.1.4.1.1.481.8).

The code is available at:

http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Utilities/VTK/Examples/Cxx/gdcmrtionplan.cxx?view=markup

Enjoy !

Inconsistency detected by ld.so: 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:

* https://developer.skype.com/jira/browse/SCL-510?focusedCommentId=35740&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_35740

which leads to:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543448

Steps:

wget http://ftp.fr.debian.org/debian/pool/main/t/tcp-wrappers/libwrap0_7.6.q-16_i386.deb
wget http://ftp.fr.debian.org/debian/pool/main/g/gdbm/libgdbm3_1.8.3-3_i386.deb
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/libwrap.so.0 bla/lib/libwrap.so.0.7.6 /lib32/


Cheers

Le contre-appel des scientifiques incultes

Ref:
* http://www.liberation.fr/societe/0101607895-le-contre-appel-des-scientifiques-incultes

Friday, December 4, 2009

TestPRandomGraphSource

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)...
...done.
Testing simple tree+random generator (100, 200)...
...done.
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/libc.so.6 [0x7fa832501fd0]
[dhcp-67-181:16211] [ 0] /lib/libc.so.6 [0x7f08aaf61fd0]
[dhcp-67-182:15734] [ 1] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost3putINS_25shared_array_property_mapINS_18default_color_typeENS_16vtkGraphIndexMapEEERS2_xS2_EEvRKNS_14put_get_helperIT0_T_EET1_RKT2_+0x2a) [0x7fa838518ce4]
[dhcp-67-181:16211] [ 1] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost3putINS_25shared_array_property_mapINS_18default_color_typeENS_16vtkGraphIndexMapEEERS2_xS2_EEvRKNS_14put_get_helperIT0_T_EET1_RKT2_+0x2a) [0x7f08b0f78ce4]
[dhcp-67-182:15734] [ 2] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost18depth_first_searchINS_14local_subgraphIKP18vtkUndirectedGraphEENS_6detail19components_recorderINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_25shared_array_property_mapINS_18default_color_typeESG_EEEEvRKT_T0_T1_NS_12graph_traitsISN_E17vertex_descriptorE+0xd7) [0x7fa838537c3e]
[dhcp-67-181:16211] [ 2] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost18depth_first_searchINS_14local_subgraphIKP18vtkUndirectedGraphEENS_6detail19components_recorderINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_25shared_array_property_mapINS_18default_color_typeESG_EEEEvRKT_T0_T1_NS_12graph_traitsISN_E17vertex_descriptorE+0xd7) [0x7f08b0f97c3e]
[dhcp-67-182:15734] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost18depth_first_searchINS_14local_subgraphIKP18vtkUndirectedGraphEENS_6detail19components_recorderINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_15graph_visitor_tENS_11no_propertyEEEvRKT_RKNS_16bgl_named_paramsIT0_T1_T2_EE+0x12b) [0x7fa838537ff0]
[dhcp-67-181:16211] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost18depth_first_searchINS_14local_subgraphIKP18vtkUndirectedGraphEENS_6detail19components_recorderINS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_15graph_visitor_tENS_11no_propertyEEEvRKT_RKNS_16bgl_named_paramsIT0_T1_T2_EE+0x12b) [0x7f08b0f97ff0]
[dhcp-67-182:15734] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost20connected_componentsINS_14local_subgraphIKP18vtkUndirectedGraphEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_15property_traitsIT0_E10value_typeERKT_SI_NS_11enable_if_cIXsrNS_19is_base_and_derivedINS_21vertex_list_graph_tagENS_12graph_traitsISL_E18traversal_categoryEEE5valueENS_5graph6detail12no_parameterEE4typeE+0x6b) [0x7fa8385380a2]
[dhcp-67-181:16211] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost20connected_componentsINS_14local_subgraphIKP18vtkUndirectedGraphEENS_21iterator_property_mapIN9__gnu_cxx17__normal_iteratorIPmSt6vectorImSaImEEEENS_16vtkGraphIndexMapEmRmEEEENS_15property_traitsIT0_E10value_typeERKT_SI_NS_11enable_if_cIXsrNS_19is_base_and_derivedINS_21vertex_list_graph_tagENS_12graph_traitsISL_E18traversal_categoryEEE5valueENS_5graph6detail12no_parameterEE4typeE+0x6b) [0x7f08b0f980a2]
[dhcp-67-182:15734] [ 5] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost5graph11distributed9cc_detail29parallel_connected_componentsIP18vtkUndirectedGraphNS_8parallel24distributed_property_mapINS1_17mpi_process_groupENS_18vtkVertexGlobalMapEP14vtkIdTypeArrayEEEEvRT_T0_+0x188) [0x7fa83853823c]
[dhcp-67-181:16211] [ 5] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN5boost5graph11distributed9cc_detail29parallel_connected_componentsIP18vtkUndirectedGraphNS_8parallel24distributed_property_mapINS1_17mpi_process_groupENS_18vtkVertexGlobalMapEP14vtkIdTypeArrayEEEEvRT_T0_+0x188) [0x7f08b0f9823c]
[dhcp-67-182:15734] [ 6] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN26vtkPBGLConnectedComponents11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x537) [0x7fa838502887]
[dhcp-67-181:16211] [ 6] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkParallel.so.5.5(_ZN26vtkPBGLConnectedComponents11RequestDataEP14vtkInformationPP20vtkInformationVectorS3_+0x537) [0x7f08b0f62887]
[dhcp-67-182:15734] [ 7] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN17vtkGraphAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x54) [0x7fa833bc901e]
[dhcp-67-181:16211] [ 7] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN17vtkGraphAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x54) [0x7f08ac62901e]
[dhcp-67-182:15734] [ 8] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x7d) [0x7fa833ba7dad]
[dhcp-67-181:16211] [ 8] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3_+0x7d) [0x7f08ac607dad]
[dhcp-67-182:15734] [ 9] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x65) [0x7fa833b91fc5]
[dhcp-67-181:16211] [ 9] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3_+0x65) [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/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x4a4) [0x7fa833b96226]
[dhcp-67-181:16211] [10] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x4a4) [0x7f08ac5f6226]
[dhcp-67-182:15734] [11] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x34d) [0x7fa833d0cc7b]
[dhcp-67-181:16211] [11] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3_+0x34d) [0x7f08ac76cc7b]
[dhcp-67-182:15734] [12] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x2bb) [0x7fa833b95d73]
[dhcp-67-181:16211] [12] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x2bb) [0x7f08ac5f5d73]
[dhcp-67-182:15734] [13] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0xc9) [0x7fa833d0b717]
[dhcp-67-181:16211] [13] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0xc9) [0x7f08ac76b717]
[dhcp-67-182:15734] [14] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkExecutive6UpdateEv+0x3d) [0x7fa833ba87f7]
[dhcp-67-181:16211] [14] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkExecutive6UpdateEv+0x3d) [0x7f08ac6087f7]
[dhcp-67-182:15734] [15] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline6UpdateEv+0x15) [0x7fa833b9413f]
[dhcp-67-181:16211] [15] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN23vtkDemandDrivenPipeline6UpdateEv+0x15) [0x7f08ac5f413f]
[dhcp-67-182:15734] [16] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEv+0x15) [0x7fa833d03341]
[dhcp-67-181:16211] [16] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEv+0x15) [0x7f08ac763341]
[dhcp-67-182:15734] [17] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkAlgorithm6UpdateEv+0x26) [0x7fa833b1a6aa]
[dhcp-67-181:16211] [17] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkFiltering.so.5.5(_ZN12vtkAlgorithm6UpdateEv+0x26) [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/libc.so.6(__libc_start_main+0xfd) [0x7fa8324eeabd]
[dhcp-67-181:16211] [19] /lib/libc.so.6(__libc_start_main+0xfd) [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:

* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475851

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

* http://packages.qa.debian.org/h/hal-info.html

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

* http://packages.qa.debian.org/h/hotkey-setup.html

cheers

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"
EndSection

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
...
*-network
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 !
Ref:

* http://wiki.debian.org/iwlagn#Lenny

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/libpthread.so.0 [0x7fd3f82f0a80]
[dhcp-67-180:21108] [ 1] /usr/lib/libXt.so.6(_XtAppCreateShell+0x48) [0x7fd3fbcd9198]
[dhcp-67-180:21108] [ 2] /usr/lib/libXt.so.6(XtVaAppCreateShell+0x156) [0x7fd3fbd07466]
[dhcp-67-180:21108] [ 3] /home/mpiuser/Kitware/VTK-gcc/bin/libvtkRendering.so.5.5(_ZN26vtkXRenderWindowInteractor10InitializeEv+0x597) [0x7fd3fdacb837]
[dhcp-67-180:21108] [ 4] /home/mpiuser/Kitware/VTK-gcc/bin/ParallelBFS(main+0x320) [0x409760]
[dhcp-67-180:21108] [ 5] /lib/libc.so.6(__libc_start_main+0xe6) [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
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497926

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

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


Doing another google search reveal:

error opening security policy file /usr/lib/xserver/SecurityPolicy
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=362246

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:
xserver-common
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 http://ftp.fr.debian.org 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:

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

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

Enjoy.

There are no availible options for this view.

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

"There are no availible options for this view. "

Eg:

http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/CMakeLists.txt?r1=6312&r2=6313

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:

http://www.mail-archive.com/debian-user@lists.debian.org/msg551758.html
http://www.mail-archive.com/debian-user@lists.debian.org/msg560095.html

Yesterday I finally found this post:

http://www.nvnews.net/vbulletin/showthread.php?t=135751

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

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557913

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

http://malatsblog.blogspot.com/2009/11/nvidia-on-debian.html

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.

Cheers

Tuesday, November 24, 2009

Doing UTF-16 on Win system

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

http://blogs.msdn.com/michkap/archive/2008/03/18/8306597.aspx

Educate to Innovate

From the white house:

http://www.whitehouse.gov/the-press-office/remarks-president-education-innovate-campaign

Monday, November 23, 2009

Installing CMake on MacOSX from the command line

I did not want to following instructions from:

http://www.boost.org/doc/libs/1_40_0/doc/html/quickbook/install.html

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://rsync.macports.org/release/ports/
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 http://mesh.dl.sourceforge.net/boost
---> 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 http://www.bzip.org/1.0.5
---> 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 http://www.gzip.org/zlib/
---> 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 http://mesh.dl.sourceforge.net/boost
---> 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

http://www.macports.org/install.php#pkg

$ curl -O http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg
% 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 (*)

(*) http://guide.macports.org/#installing.shell

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:

http://blogs.open.collab.net/svn/2009/07/subversion-16-security-improvements.html

Yeah !

Installing CMake on MacOSX from the command line

I thought I could just :

curl -O http://www.cmake.org/files/v2.8/cmake-2.8.0-Darwin-universal.dmg

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 http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ 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

Cheers

Thursday, November 12, 2009

Uploading file to sf.net is broken

I am following the instructions from:

http://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download

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,gdcm@frs.sourceforge.net:/home/frs/project/g/gd/gdcm/gdcm 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,gdcm@frs.sourceforge.net
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:

http://code.google.com/p/pydicom/

It says:

http://code.google.com/p/pydicom/source/browse/source/generate_dict/make_private_dict.py

...
# Generates output from a file from the MDCM project (http://code.google.com/p/mdcm),
...

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:

http://code.google.com/p/pydicom/issues/detail?id=61&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Difficulty

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

http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Source/DataDictionary/privatedicts.xml?view=markup

oh well...

Sunday, November 8, 2009

2012: la fin du monde ?

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

http://science.slashdot.org/story/09/10/26/1517242/2012-a-Miscalculation-Actual-Calendar-Ends-2220

-> http://www.natutech.nl/00/nt/nl/47/artikel/26050/Balen:_%272012%27_is_pas_over_twee_eeuwen.html

Postfix Gmail SMTP Relay

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

http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/

which is working, compared to a skrewed solution like:

http://bookmarks.honewatson.com/2008/04/20/postfix-gmail-smtp-relay/#comment-1154


Cheers

HAL Keymap Quirks

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

http://groups.google.com/group/linux.debian.user/browse_thread/thread/a35291009da3f16d

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:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475851

Which lead to this page:

http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html

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

http://web.archive.org/web/20080224232936/http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html

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

http://hal.freedesktop.org/quirk/quirk-keymap-index.html

Pheeww.... that was hard !

Tuesday, November 3, 2009

a.vim : Alternate Files quickly

There is a very cool vim script a.vim:

http://vim.sourceforge.net/scripts/script.php?script_id=31

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

Easy:

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


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

Answer:

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

Wednesday, October 28, 2009

http://www.net-entreprises.fr/

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.

http://www.net-entreprises.fr/

C'est le site reference depuis:

http://www.net-entreprises.fr/lautoentrepreneur/accueilgeneriquemdp.htm

En cliquant a droite on est envoye sur le site de http://www.net-entreprises.fr/

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

http://www.eff.org/takedowns

"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."

http://www.eff.org/takedowns

Monday, October 26, 2009

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

This is simply because:

* http://support.microsoft.com/kb/290109/fr

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
* http://home.eunet.no/pnordahl/ntpasswd/bootdisk.html

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:

http://bugs.winehq.org/show_bug.cgi?id=19856

which turns out to be:

http://bugs.winehq.org/show_bug.cgi?id=15679

Simple patch worked out; ok:

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


Cheers

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:

http://209.85.129.132/search?q=cache:HczAw-J4MBYJ:www.parisrp.urssaf.fr/index.php%3Foption%3Dcontent%26task%3Dview%26id%3D2035%26Itemid%3D7580+urssaf+declaration+trimestrielle+recette&cd=6&hl=en&ct=clnk&client=iceweasel-a

et

http://209.85.129.132/search?q=cache:ssdT7xV-3DQJ:urssaf.dmzhd.urssaf.fr/profil/employeurs/financeur_de_la_couverture_maladie_universelle/vous_-_vos_cotisations/infos_pratiques_02.html+trimestre+civil&cd=3&hl=en&ct=clnk&client=iceweasel-a

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:

http://factureautoentrepreneur.com/

Et surtout bien lire

http://factureautoentrepreneur.com/chronologie-factures-auto-entrepreneur

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

Le site renvoi aussi sur:

http://www.monae.fr/a-propos/abonnement

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

Oh joie !

The Joel Test: 12 Steps to Better Code

http://www.joelonsoftware.com/articles/fog0000000043.html

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:

* http://lifehacker.com/5351485/how-to-build-a-hackintosh-with-snow-leopard-start-to-finish#hardware

Sunday, October 18, 2009

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

http://radar.oreilly.com/2009/10/lawgov-americas-operating-syst.html

HP Deskjet F2290: Installation succeed !

After some struggle:

http://www.mail-archive.com/debian-user@lists.debian.org/msg558070.html

I solved it using:
http://www.mail-archive.com/debian-user@lists.debian.org/msg558073.html

finally: NEVER ever run hp-toolbox a root:
https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/96011
https://bugs.launchpad.net/hplip/+bug/447299

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

Also described at:
http://jamesmcdonald.id.au/gnu-linux/xsane-failed-to-create-file-permission-denied-error

Saturday, October 17, 2009

Ubuntu + Virtualization + Windows on HP TX1499US Laptop

Pretty intersting link to read:

http://www.microshell.com/sysadmin/windows/ubuntu-virtualization-windows-on-hp-tx1499us-laptop/

and also:


Choosing virtualization solution
http://www.microshell.com/sysadmin/virtualization/choosing-virtualization-solution/3/

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 :(

* http://groups.google.com/group/linux.debian.user/browse_thread/thread/d893164279d9476e#

Trying now on virtualbox ML:

* http://vbox.innotek.de/pipermail/vbox-users/2009-October/007469.html

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.

Ref:
http://lists.debian.org/debian-user/2009/10/msg00509.html

And
http://lists.debian.org/debian-user/2009/10/msg00687.html

do not forget:
http://lists.debian.org/debian-user/2009/10/msg00690.html

Oh well, sh*$ happens

Wednesday, October 14, 2009

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

* http://arstechnica.com/tech-policy/news/2009/10/100-years-of-big-content-fearing-technologyin-its-own-words.ars

"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

http://www.inter-sections.net/2007/11/13/how-to-recognise-a-good-programmer/

Thursday, October 8, 2009

[HOWTO] Extract Fonts from a PDF File

http://init.sh/?p=13

http://cg.scs.carleton.ca/~luc/pdfextract.html

Wednesday, October 7, 2009

Installing Intel C++ compiler on debian

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

* http://software.intel.com/en-us/articles/using-the-intel-compilers-for-linux-with-debian/

I still prefer the old installation steps:

* http://wiki.scilab.org/Installation_of_Intel_compiler_with_GNU/Linux_Debian

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

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469397#113

Cheers

VirtualBox

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:

http://wiki.debian.org/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 :

http://www.virtualbox.org/wiki/VirtualBox_PUEL

http://www.xkcd.com/644/

Friday, October 2, 2009

Trying to get VS 2005 to work on wine

This is not so easy. some random links:

My original problem:
* http://forum.winehq.org/viewtopic.php?p=27256&sid=ac9598008bdfa59b12c5d77016f76de1

KB92077 - C1902 error in AT Command in Visual Studio 2005
* http://code.msdn.microsoft.com/KB920770/Release/ProjectReleases.aspx?ReleaseId=752

Program database manager mismatch
* http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/22a3cc87-7052-4ede-9a1b-81e49ab41d0d

fatal error C1902: Program database manager mismatch; please check your installation
* http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=123792

Version number incorrect in Microsoft.VC80.CRT.manifest, VS2005 SP1 Beta
* http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=239935

MS C++ 2005 express database mismatch error when compiling
* http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/72f00daf-dfc6-473e-b8de-79e6dde7adda/


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)

mspdb80.dll

mspdbcore.dll

mspdbsrv.exe

msobj80.dll



fatal error C1902: Program database manager mismatch; please check your installation
* http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/eb49be0b-
2a8c-4d55-8791-17e3cb1364c1/

Unable to create folder in C:\Windows\WinSXS in Vista OS
* http://social.msdn.microsoft.com/forums/en-US/windowscompatibility/thread/beac915a-1ed3-4686-a62b-0fc2d079ebf8/

Thursday, October 1, 2009

Today's random thoughts

Interactive Debugging KDE Apps with QtCreator
http://www.sebruiz.net/359

cmake vs autotools, a benchmark
http://blogs.gentoo.org/lu_zero/2009/03/24/cmake-vs-autotools-a-benchmark

How to write boost.python converters

Pretty nice link:

http://misspent.wordpress.com/2009/09/27/how-to-write-boost-python-converters/

Tuesday, September 29, 2009

Converting floating point to string

This is not as simple as one could think:

Ref:
http://patrakov.blogspot.com/2009/03/dont-use-old-dtoac.html

http://en.wikipedia.org/wiki/Fixed-point_arithmetic

http://www.w3.org/TR/xmlschema-2/#float

Floating Point in XML:
http://discuss.joelonsoftware.com/default.asp?joel.3.653326.31

Monday, September 28, 2009

Installing Visual C++ Toolkit 2003

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

Instructions from:
http://root.cern.ch/root/Procedure/Procedure%20to%20install%20the%20free%20Microsoft%20Visual%20C.htm
http://www.ogre3d.org/forums/viewtopic.php?t=15131&highlight=&sid=ce193664e1d3d7c4af509e6f4e2718c6

However I cannot find msvcrt.lib:

Steps:
$ winetricks dotnet20
$ cd .wine
$ find . | grep -i msvcrt
./drive_c/windows/system32/msvcrt.dll

Where is msvcrt.lib ?

Tuesday, September 15, 2009

The passionate developer: I do like my profession, I don't like my job

http://blog.jonasbandi.net/2009/09/passionate-developer-i-do-like-my.html

http://www.martinfowler.com/bliki/AlphaGeek.html
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:

http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/

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

http://www.nytimes.com/2009/08/18/science/18dna.html?_r=1

Tuesday, August 18, 2009

The Hague Declaration

http://www.digistan.org/hague-declaration:en

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:

https://sourceforge.net/apps/wordpress/sourceforge/2009/08/07/subversion-upgraded-to-1-6-4/

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

Create the dump file:

https://sourceforge.net/apps/trac/sourceforge/wiki/SVN%20adminrepo#CreatingadumpfilefromanotherSVNrepo

Import the dump:

https://sourceforge.net/apps/trac/sourceforge/wiki/SVN%20adminrepo#Importingthedumpfile

Tuesday, August 11, 2009

Sending email from python using gmail.com

http://codecomments.wordpress.com/2008/01/04/python-gmail-smtp-example/

Tuesday, July 28, 2009

C++0X FAQ

http://www.research.att.com/~bs/C++0xFAQ.html

The C++0x "Remove Concepts" Decision

http://www.ddj.com/cpp/218600111

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

Thursday, July 23, 2009

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

Original post:

http://www.vtk.org/pipermail/vtk-developers/2009-June/006110.html