March 15, 2010
Just happened again to me. Once again. And I had to search once again how to fix it.
Actually, I was playing with Eclipse shortcuts…and I fired Alt+Shift several times…which seems to be the default shortcut under windows to switch between registred keyboard layouts. I don’t remember why but I registred a QWERTY layout (but can’t remember when I could have use it), but I always work with an AZERTY layout.
2 solutions:
- change the windows shortcut (that is global to windows, i.e. that will surcharge any application shortcut)
- unregister the layout that you never use
In both cases, go to Control Pannel > Regionnal Settings > Languages > Details.
tags: eclipse, tip
posted in Développement, Tips by LooZtrA | No Comments
February 17, 2010
Some (old) news about jRRD, a pure java library that allows you to read Round Robin Database files created by rrdtool.
The project has been “mavenized” and moved to SVN (ok, maybe we should have switched directly to Git, please don’t tell Linus we are still using SVN).
A version 0.3 has been released, a full changelog can be found here. The main changes are:
- a patch to fix the case of multiple datasources has been applied (initialy provided by Juraj Sucik).
- supports version 3 rrd files (jRRD v0.1 only had support for version 1 rrd files)
- x86_64 files (only tested on linux 64bits plateform, if you have access to other 64bits plateform, please contact us)
The project is not really active because in its current state, it fits our needs, so fill free to wake it up and send us your feature requests.
tags: Java, jrobin, jrrd, rrd, rrd4j
posted in Développement, jrrd by LooZtrA | No Comments
February 17, 2010
Ok, you’ve not been blessed by the MacOS Spirit so you don’t have a MBP but you’d like to have a decent *nix term under windows Seven. You tried the same shortcut that worked previously under XP:
C:\Cygwin\bin\rxvt.exe -g 120×70+75+-1 -sl 1500 -fn courier -bg black -fg grey -sr -e bash –login -i
but all you get is big window with strange spacing between chars:
.
Ok, it’s time to customize some stuff. Open a cygwin shell (or an ugly uncustomized rxvt), go to your home directory, and create/edit your .Xdefaults file to fit this one:
#Rxvt.reverseVideo: true
Rxvt.scrollBar_right: false
Rxvt.saveLines: 2048
Rxvt.font: "Lucida Console-12"
Then edit your shortcut to something similar to this one:
C:\cygwin\bin\rxvt.exe -display :0 -bg black -fg grey -tn rxvt -sr -sl 1500 -g "140x60+1+-1" -e /usr/bin/bash --login -i
If you need to adjust the size of the window, you can change the -g “140×60+1+-1″ values.
You should now get something much more like that:

Enjoy!
tags: bash, cygwin, rxvt
posted in Développement, Tips by LooZtrA | No Comments
November 2, 2009
Piwik is an open source (GPL licensed) web analytics software program (similar to Google Analytics). Hudson is a continuous integration server. If you want to track visits on your Hudson server using piwik, you need a Piwik Analytics plugin for Hudson. None exists officialy. I had a look at the Google Analytics plugin and adapted it to Piwik.
All you’ll need is a piwik siteId, the piwik server name and path of your piwik installation. And the Piwik Analytics plugin for Hudson that you can download here (save as…) till there is an official version available (maybe some more tests needed, any feedback will be appreciated!)
Update 2009-11-03: I fixed the mime type for hpi files so no more Save as should be needed.
Update 2009-11-04: some minor changes: french translations and the possibility to add download extensions (see
http://piwik.org/docs/javascript-tracking/
Update 2009-11-06: fixed the package to be compatible with jdk 1.5
Update 2009-11-07: the plugin has been officially released and should be available in you admin plugin list.

tags: continuous integration, Hudson, piwik analytics
posted in Développement, Hudson by LooZtrA | No Comments
June 23, 2009
Si vous venez comme moi de mettre à jour votre fedora vers la version 11 et que vous utilisez VMware player (par choix ou sous la contrainte, alors que VirtualBox fonctionne très bien), vous allez vous confronter à un petit problème: les modules supplémentaires compilés par l’installeur de vmware ne compilent pas justement.
La raison est simple, le kernel livré avec la fc11 est un 2.6.29, qui n’était pas encore sorti lorsque le player 2.5.2 est sorti.
Toutes les infos et le patch a appliquer se trouvent par là.
Après application du patch, ça devrait donner:
Starting VMware services:
Virtual machine monitor [ OK ]
Virtual machine communication interface [ OK ]
Blocking file system [ OK ]
Virtual ethernet [ OK ]
Shared Memory Available [ OK ]
et zou.
vmware-6.5.2-modules-2.6.29-fix.sh
vmware-6.5.2-modules-2.6.29-fix.patch
If you’ve just upgraded your fedora install to version 11 and that you (have to) use VMware player (despite VirtualBox works very well), you will encounter a small problem: additionnal kernel modules needed by the vmware install won’t compile.
Indeed, the kernel bundled with fc11 is a 2.6.29, that wasn’t out when vmware player 2.5.2 was released.
All informations and a patch to apply are provided here.
Let’s apply the patch and enjoy:
Starting VMware services:
Virtual machine monitor [ OK ]
Virtual machine communication interface [ OK ]
Blocking file system [ OK ]
Virtual ethernet [ OK ]
Shared Memory Available [ OK ]
that's all folks!
vmware-6.5.2-modules-2.6.29-fix.sh
vmware-6.5.2-modules-2.6.29-fix.patch
tags: fedora vmware player
posted in fedora by LooZtrA | No Comments
June 20, 2009
- update website
- release 0.2
- use maven and SVN
- explain the differences with other java rrd tools (jrobin, rrd4j, see https://wiki.man.poznan.pl/perfsonar-mdm/index.php/RRD_Java_libraries)
posted in Java, jrrd by LooZtrA | No Comments
June 11, 2009
A chaque fois que je crée une nouvelle classe, je me demande si je dois forcer la valeur par défaut des variables d’instance. La plupart du temps je me dis “je ne veux pas dépendre d’un comportement par défaut, je vais forcer explicitement la valeur par défaut de la variable d’instance, ce sera plus lisible”. C’est peut-être discutable mais je n’ai jamais eu l’occasion d’en discuter avec des java-gurus, ni d’ailleurs de réellement me poser des questions sur le bien-fondé et la justesse de ce choix.
Jusqu’à ce jour. Je viens de découvrir (shame on me?) qu’il est parfois nécessaire de ne pas explicitement forcer la valeur par défaut.
Continue Reading »
tags: java initialisation variable
posted in Développement, Java by LooZtrA | No Comments
May 26, 2009
Plus on lit d’articles à ce sujet, plus on trouve de nouveaux liens. En voici quelques uns (des liens):
tags: java web framework
posted in Développement by LooZtrA | No Comments
May 19, 2009
Rest est “tendance” en ce moment. Mais est-ce toujours le bon choix? Elements de réponse par ici sur CleverAge.
tags: soap rest serviceweb
posted in Développement, Java by LooZtrA | No Comments
May 18, 2009
tags: java outils
posted in Java, Tips by LooZtrA | No Comments