722

 

WTF? my keyboard layout changed while I was working under Eclipse!

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.

Some jRRD news

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.

Cygwin rxvt under windows Seven

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!

Piwik Analytics plugin for Hudson

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.

Hudson Piwik Analytics plugin

Fedora Core 11 & VMware Player 2.5.2

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

jrrd TODO List

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)

Java: auto-initialisation des variables d’instance…ou pas

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 »

Comparaison de frameworks web

May 26, 2009

Plus on lit d’articles à ce sujet, plus on trouve de nouveaux liens. En voici quelques uns (des liens):

Soap vs Rest

May 19, 2009

Rest est “tendance” en ce moment. Mais est-ce toujours le bon choix? Elements de réponse par ici sur CleverAge.

TODO: scruter la Boîte A Outils du Developpeur Java

May 18, 2009

Par ici => http://java.developpez.com/outils/developpeur/

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org