Category Archives: Tips

Mercurial : track changes to a repository with RSS

If you are used to CVS or SVN notifications, you may want to reproduce the emails that you received each time a commit is made by a developper.

You can do that using Hooks with mercurial but the built-in mercurial web server provides RSS feeds of changes in every repository. Simply subscribe to the rss feed provided at your repository url + /rss-log/ and that's it.

Enjoy

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

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.

Cygwin rxvt under windows Seven

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!

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

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

Common Java Cookbook

En voilà un lien qu’il est bien => http://www.discursive.com/books/cjcook/reference/book.html

Ce cookbook contient pas mal d’exemple d’utilisation des outils Apache Commons , Apache * & autres, pour se faciliter la vie et ne pas réinventer le fil à couper le beurre (ou le GregorianCalendar)

Terminal RXVT sous windows

Ceux qui travaillent sous cygwin (parce que le bash c’est bon, mangez-en) utilisent en fait un shell bash encapsulé dans une ligne de commande windows (cmd pour les intimes). Il est tout à fait possible de faire du copier-coller sous cmd une fois qu’on a activé le mode d’édition rapide (clic btn droit dans la barre de titre>propriétés>cocher “mode d’édition rapide”), cependant les “bindings” utilisés sont différents de ceux que l’on utilise habituellement dans un environnement unix/linux. Pour copier, il faut sélectionner le texte puis clic btn droit; pour coller, c’est clic btn droit.

Saviez-vous qu’il existe sous cygwin la possibilité d’utiliser un terminal RXVT qui lui “réagit” exactement comme RXVT sous *nix? (i.e. copier sur sélection de texte, coller avec le bouton du milieu)

 Pour ce faire, vous pouvez utiliser le raccourci suivant (et le customiser suivant vos préférences):

 

C:\Cygwin\bin\rxvt.exe -g 120×70+75+-1  -sl 1500 -fn courier -bg black -fg grey -sr -e bash –login -i

  P.S: il vous faudra peut-être installer RXVT s’il n’est pas inclus dans votre install cygwin.