Archive for November, 2008

Organizing core dumps

Wednesday, November 26th, 2008

Tired of looking for core files in your whole $HOME (because apps do chdir, and cores are by default in $PWD)?

mkdir /cores; chmod go+w /cores; echo “/cores/%e.%p.core” > /proc/sys/kernel/core_pattern

And voilà, you’ll find your cores easily in /cores. Much easier than find ~ -mtime 0 -name ‘core*’ !

Dell’s Ubuntu offering

Tuesday, November 25th, 2008

Yesterday I received my new laptop, a Dell XPS m1330. I bought it to replace Clo’s aging laptop (the right hinge is broken, the battery is dead, and the DVD drive is so utterly broken I had to physically remove it because the stream of errors logged to syslogd made the laptop slow…) with my previous laptop, a Sony Vaio in good condition. I blogged about the Vaio Ubuntu install last year ; it basically worked fine, with only a few quirks.

This time, I decided to buy a Dell for a few reasons ; first, their customer support is constantly improving in my eyes (and I use it a lot : given that I maintain about hundred Dell servers and thirty Dell workstations, they have their share of hard drives, motherboard or power supply failures). Also, last year they started to offer Ubuntu on some of their computers, and I really wanted to vote with my wallet here, and avoid paying the Windows tax for the first time!

I found two little annoyances upon booting the new laptop: Dell installs the 32 bits version of Ubuntu although the platform is 64 bits; and they leave the default partition scheme, with a big root filesystem and nothing else (apart their diagnostics partition). I prefer having a separate /home, in case I have to reinstall the distribution. No showstoppers, though; it just shows me 3.5GB of memory instead of 4GB.

As expected, all the hardware bits work out of the box (this is the big advantage of buying Linux preinstalled, and not too surprising as most of the chips in there are Intel) : CPU scaling, video, wifi, bluetooth, webcam – and they all work with free software. Hibernate works out of the box, as well as suspend (to RAM). Even the little remote control they give, that one puts in the ExpressCard slot for storage, works like a breeze: it sends keycodes, and you don’t have to mess around with lirc to make it work with mplayer. Finally, no need to lift ass to hit pause on the movie :-)

Setting up the machine was pretty quick, just a matter of apt-getting the packages I use (starting with xubuntu-desktop) and migrating my 50GBs of /home data and dot-files. I now get the occasional command-not-found warning for packages I forgot to reinstall, and that’s solved in seconds.

I got the 9-cell battery to get more autonomy, and combined with good power management (it eats 15 watts when idling with the screen to the brightest and all subsystems and radios on), it gets 6 hours of battery life when idling, more than 4 with a standard workload (my standard workload being mostly typing and compiling).

Finally, the stuff seems pretty solid and doesn’t weigh too much – I have no precise number (too bad I brought back the baby scale last week ;-) but it’s easier on the shoulder than the previous 15.4″ laptops I had. Dell says the it starts at 1.8kgs, I guess mine’s 2.2kgs with the big battery.

Registar switch

Tuesday, November 25th, 2008

Back in may 2001, I grabbed my first domain name, colino.net. I wanted to stop switching URL each time I switched the hosting. At the time I had no debit card, and I chose the first registrar I found which accepted payment by cheque, amen.fr.

Since then, I grumbled and grumbled each time I had to log in to their web administration interface, for domain renewal, DNS glue records updates, etc ; but out of habit, I bought two more domain names from them : my wife‘s, and a second one I had.

Finally, last week, after more failing glue records updates, I switched my domain and my wife’s domain to gandi.net. I left the third one on amen, as I don’t plan on renewing it, it’s useless for me to keep two domain names.

I knew Gandi beforehand as it’s the registrar for my work’s domain, and I’m glad I did the switch. Their interface is multiple times better, it does what it has to do and doesn’t bug out when hitting Submit with not even an error message.

Résiliation de contrats à la MAAF, les doigts dans le nez

Saturday, November 22nd, 2008

Vous l’avez sans doute remarqué : dans le domaine des assurances ou des banques, il est toujours beaucoup plus facile de souscrire un contrat que d’en résilier un, tout comme il est beaucoup plus facile de payer que de se faire rembourser après un sinistre…

Eh bien, la MAAF ne déroge pas à cette règle ! Vous vous souviendrez peut-être de mon accident de voiture il y a un an… Suite à cet accident, la MAAF qui assurait la voiture a unilatéralement résilié le contrat, et j’ai dû me trouver un assureur spécial alcooliques et irresponsables :-)

Malgré cela, ils avaient soigneusement oublié de résilier les petits plus qu’on avait souscrit (protection du conducteur, protection des passagers, individuelle accident…) ; petits plus que j’ai donc payé pour rien cette année.

J’ai donc reçu mon avis d’échéance hier, le 21 novembre, et me suis dit qu’il fallait que je résilie ces inutilités. En lisant les petits caractères, j’ai appris que “la date limite d’exercice de [mon] droit à dénoncer la reconduction du contrat est le 31 octobre”. Détail amusant, tous les avis d’échéance MAAF arrivent après cette date… Mais plus loin il est précisé en aussi petits caractères que “si le présent avis d’échéance m’a été adressé après cette date, je dispose d’un délai de vingt jours pour exercer ce droit, soit par lettre recommandée, [...], soit par une déclaration faite dans mon agence”.

Fort de ces informations, je prépare un petit courrier type, je prends mon avis d’échéance, l’enveloppe avec le cachet de la Poste, me prépare psychologiquement et me rends à l’agence MAAF la plus proche.

Tandis que j’attends mon tour, le client précédent venu lui aussi pour une résiliation se fait envoyer paître pour cause de c’est passé, le 31 octobre, ce qui a l’avantage de bien compléter ma préparation psychologique.

Lorsque mon tour vient la gentille dame me regarde avec des yeux navrés et m’indique que c’est impossible de résilier ces contrats… La raison invoquée est la même, c’est passé le 31 octobre… Trop dommage, essaye l’an prochain, me dit son sourire !

Lorsque je lui réponds que j’ai lu les petits caractères et qu’il me semble que j’ai encore vingt jours, elle fait mine de réfléchir et de lire lesdits petits caractères puis me répond qu’effectivement, je peux dénoncer la reconduction par lettre recommandée

Information que j’ai complété par “ou dans mon agence, voyez la ligne d’après”. N’ayant plus de fausse raison de m’envoyer paître, elle m’a demandé de préparer un petit courrier ; et la tête qu’elle a fait lorsque je lui ai sorti ma lettre, prête, en deux exemplaires, “Remise en main propre le 22 novembre 2008, était tordante. Durant le temps de ce court échange de trois arguments merdiques aussitôt contrés, elle est passé d’un franc sourire à un certain agacement.

Je suis donc parti avec mes contrats inutiles résiliés et ma copie de lettre remise en main propre dûment tamponnée et signée, mais je regrette juste de n’avoir pas poussé le jeu un tout petit peu plus loin ; j’aurais voulu lui demander si ces mensonges par omission sont une directive de l’agence ou de la maison mère. Je penche pour une directive de la maison mère, car une autre fois on m’avait fait la même chose — sauf que je n’avais pas encore lu les petits caractères…

En tout cas, la façon qu’ils ont de traiter les demandes de résiliation est vraiment emplie de mauvaise foi et de tentatives de désinformation pour éviter au client d’obtenir ce qu’il est en droit d’obtenir. C’est assez agaçant.

Newborns and your mental health

Thursday, November 6th, 2008

6.30 pm – baby eating
7.00 pm – father and mother start eating dinner while baby’s calm
7.10 pm – baby starts crying, parents postpone dinner
7.30 pm – baby eating
8.00 pm – finish dinner hastily while baby cries in the background
9.00 pm – baby still cries
10.00 pm – baby stopped crying, thanks to having his mouth full of milk
11.00 pm – baby cries again, pauses as you take him in your arms
11.30 pm – baby resumes crying after getting his diaper changed
12.30 pm – baby suddenly stops crying
12.31 pm – dad gets up in fear that baby stopped breathing.
12.32 pm – baby is breathing. notices dad, wakes up and starts crying again.
12.33 pm – dad hates himself.

news for few, stuff no-one cares about