Current weather

Nantes

Clear sky
  • Clear sky
  • Temperature: 7 °C
  • Wind: Variable from NNW (340°) to NE (40°), 11.1 km/h
Reported on:
Thu, 03/11/2010 - 19:00

Paris-Orly

Clear sky
  • Clear sky
  • Temperature: 4 °C
  • Wind: N (10°), 22.2 km/h
Reported on:
Thu, 03/11/2010 - 19:00

Berlin-Schönefeld

Broken clouds, mist
  • Broken clouds, mist
  • Temperature: -2 °C
  • Wind: WNW (290°), 16.7 km/h
Reported on:
Thu, 03/11/2010 - 18:50

Latest useless stuff

Latest comments

4 weeks 3 hours
Anonymous (not verified): spip2drupal

6 weeks 4 days
Tsunulukai (not verified): Tout à fait

10 weeks 1 day
admin: Merci! C'est exactement ce

11 weeks 22 hours
Baloo (not verified): Table de routage

18 weeks 3 days
pounard: Il est très loin

18 weeks 5 days
Anonymous (not verified): suite ?

19 weeks 3 days
pounard: Duplicate!

21 weeks 19 hours
pounard: Suivi mensuel des lunettes

28 weeks 1 day
admin: I always use casts, no

28 weeks 3 days
mini (not verified): To know in php

28 weeks 6 days
pounard: Triple oooups

Coder's life

Personal reminder about Drupal's settings.php

Because I often duplicate a production site on a local machine in order to do some debugging/bugfixes, I like everything to be ready the sooner as possible without having to do a lot of clicks.

Here is how I override values in my custom settings.php file instead of loosing time clicking into the administration pages or even doing configuration alteration with Drush.

Here is a common production site settings.php $conf variable alteration :

Tuning a bit Eclipse

I promised to some colleagues that someday, I will make a short post about my Eclipse eclipse.ini file, there it is!

Using Eclipse with some fancy plugins, you may experience a lot of the infamous quite annoying OutOfMemoryException or some incredible slowness sometime.

WTF is that!? - PHP will drive me crazy; Drupal FAPI too!

What do you think this code will output:

<?php
  $foo
= '7rray';
  echo (int)
$foo;
?>

If you answered NULL, 0 or '7rray', you're absolutely wrong. The magic with PHP is whatever you use (int) or intval() you get absolutely weird results, because it'll try to parse your string as an integer whatever is in it.

Playing with Python, D-Bus and Pidgin

Since last week, I finally can use my own domain name as jabber domain Yay! Thanks to http://jabber.apinc.org public free server, I used some DNS SRV records, and with the agreement of server owners let them handle my domain.
Now, the boring phase begins, I have to tell all my contacts to use the new XMPP screen name instead of the old @gmail.com one I was using before. The fact is I have *a lot* of contacts, even some of them which I don't really talked to. But they are all people I know, I like, or I work with, so I can't afford to loose some of them.

So, what about a bit of automation?

Let's start with the XMPP client I use, Pidgin. What's nice with pidgin, it's libpurple, and its D-Bus interface.

MDrush, a Drush python wrapper

Some months ago, I was developing some Drupal modules for my Company, I noticed the time I loose each time I have to run a Drush command (such as clear cache) in order to do basic Drupal developer stuff.

How to get rid of intrusive Ubuntu's Notify-OSD

Some people like Ubuntu's Notify-OSD deamon, because black bubbles are good looking; but in everyday's life, these are so intrusive that it becomes really anoying.

Browsing the internet, I found some a nice blog post linking to gnome-stracciatella-session. This ubuntu package was done to get rid of all gnome ubuntu modification, it contains a single xsession file which runs a vanilla gnome, getting rid of Notify-OSD, reverting to gnome default notification-deamon.

All you have to do is install this package :

About