vendredi 18 avril 2008

Emacs "hook on save"

Pour exécuter automatiquement une commande shell lors d'une sauvegarde dans emacs :





(add-hook 'after-save-hook (lambda () (shell-command "cd /home/web/; make sync -f /home/Makefile")))





    attention :

  • Cela s'exécute à l'emplacement du fichier (d'où le "cd ...")

  • Cela s'applique pour TOUT les buffers ouverts


vendredi 7 mars 2008

Orthographe & cie.

Conjugaisons, sous linux :

samedi 26 janvier 2008

Firebug, tool for web development.

Remplace avantageusement le DOM inspector, puisqu'il est possible de modifier la page directement "on the fly" :-) (HTML, CSS, visualisation des entêtes, etc. )

Firebug

vendredi 25 janvier 2008

Bluetooth sync tool (adressbook + calendar) ?

seems interesting :

http://bluezync.kaarposoft.dk/

needs OpenSync 0.34 ...

Thunderbird Lightning + Google Calendar

Thunderbird (TB) is the popular mail client from Mozilla.

Lightning is the mozilla add-on to integrate a calendar in TB. It also exists as a standalone project named Sundbird.


If you need to store calendars on a central repository (for example to access them from different places), you may already have used Google Calendar.


dimanche 20 janvier 2008

rm or ram (realplayer formats) to audible...


mplayer -playlist playlist.rm -ao pcm -ao pcm:file=tmp.wav -vc dummy -vo null


for example, for Radio-France podcasts, it works very well :


  1. save the given .rm file on your computer

  2. give the file as playlist to mplayer as proposed here

jeudi 13 décembre 2007

Gimp (2.3) : new file from selection

The old behavior (selection -> new file) was not creating a well-sized image anymore.

Here is the new way to do that in Gimp (>= 2.3)


Creating a new image from the content of the clipboard has become more straight-forward in GIMP 2.3, actually. Use "File->Acquire->Paste as New" or "Edit->Paste as->New Image" to get there in one step.


Found here : http://lists.xcf.berkeley.edu/lists/gimp-user/2007-February/009608.html

mercredi 5 décembre 2007

Fonte moche Firefox sous ubuntu gutsy

Quand c'est moche comme ça :



Une seule solution :

sudo apt-get remove msttcorefonts


:-)

Tags : Fonte bizarre, Fonte moche, ms true type, ubuntu gutsy firefox

vendredi 2 novembre 2007

AllTray - Dock any program into the system tray.

AllTray - Dock any program into the system tray.

very useful for programs that aren't coded to be integrated in the tray-bar.

This is a handy replacement for the Thunderbird "Mail Icon" add-on that is no more maintained.

lundi 29 octobre 2007

Supprimer les paquets dont plus rien ne dépend...
C'est pratique, en particulier quand il faut faire de la place.

Le programme deborphan permet ainsi de détecter (sous les systèmes "debian-like") quels sont les paquets .deb "orphelins", et il ne reste plus qu'a les passer en paramètres de votre gestionnaire de paquets preféré... ;-)

Par exemple :

aptitude purge `deborphan --guess-all`