Bye bye Dapper, Welcome Hardy

April 27th, 2008

I’ve just finished upgrading my server to Ubuntu Hardy, with virtual no trouble.

The only problem came from the kernel, which now calls  ide drives ’sd…’ instead of ‘hd…’ so hda1 becomes sda1.

Update grub or face the consequances.You have been warned!

Bye bye trackbacks

April 10th, 2008

FYI, I’ve deactivated trackbacks since nobody seems to want to send me one :’(

And because spammers seem to love them :-[

Ring Log Liscense

March 8th, 2008

Just to let everyone know, I’ve added a license file putting ringlog under the Gnu Affero General Public License.

In a nut shel, you can use this code for your project, but any modifications that you make to ring_log must be published under the Gnu AGPL

Presenting ring_logger v0.1

February 25th, 2008

 Ring logger

This weekend, I had an urge to catch up on one of the umpteen projects that I’d like to start, so I attacked a ring logger.

Basically, a ring logger, keeps the log messages in a ring buffer, which can be dumped when interesting circumstances arrise.

The particularité of this one is that it’s pure javascript, and dumps as a ‘POST’ request to a url. This allows for much improved debugging of js-rich web pages, whilst not filling up the web browsers memory with useless logs.

It depends on ToutouJS but doesn’t have a lot of calls, so it should be easilly portable if anyone finds the need.

 Usage

First off, you have to include the relevent files:

<script src="js/toutou/toutou.js" type="text/javascript"></script>
<script src="ring_log.js" type="text/javascript"></script>

Then you just log away (the mores the better):

js.ring_log.log(js.ring_log.DEBUG,'Test','Test message');

Finally, to retrieve your log, ie dump the buffer:

js.ring_log.dump();

Et voila!

For testing purposes, the logger is pre-configured to call a script log.php in the same directory as it is in, and has a buffer size of 10, both parameters changeable in the source. The different parts of the log messages are seperated by a ’splitter’, by default ‘==|==’, this is also configurable.

js.ring_log.requestUri='log.php';
js.ring_log.log_data_size=10;
js.ring_log.splitter='==|==';

And that’s just about it, hope you find it usefull :)

Update: forgot to add the .tgz, oups :$

Zabbix

February 7th, 2008

Sometimes things that seem completely harmless just come and hit you over the head…

That’s what happened to me with Zabbix yesterday. I was going through some items and cleaning up, when suddenly, 4 hosts went off-line. Except that they hadn’t.

I couldn’t understand why Zabbix refused to see them (the agents were responding fine).

I finally found out that it was because of the way that Zabbix calculates the ’status’ item, which has a value of 0 if alls well, and 2 if the host is off-line.

Zabbix looks at the first item to be taken of the host, if that item returns an empty string, Zabbix decides that the host is dead and raises the alarm, even if the host has 150 other items all working perfectly. This bizzar to say the least, but workable. If this happens, a quick fix is to deactivate the offending Item, so that the first Item checked returns a value, then the host comes back :)

Any how, I thought I’d just document this in case anyone else starts loosing hair over the issue :)

Rate cuts and what they mean to the rest of us

January 24th, 2008

No, I haven’t got a multi paged analyses lined up, I’ll leave that to Mark and others like him who can put it much much better than I can.

OTOH, here’s a couple of quotes for the day:

A banker is a fellow who lends you his umbrella when the sun is shining and wants it back the minute it begins to rain.

- Mark Twain (attributed)

OCTOBER: This is one of the peculiarly dangerous months to speculate in stocks in. The others are July, January, September, April, November, May, March, June, December, August, and February.

- Mark Twain, Pudd’nhead Wilson’s Calendar

Mon tout premier boulot…..

January 22nd, 2008

En me baladant sur le net ce midi, je suis retombé sur la site web de mon tout premier emploie.

La Maison des Etudiants (1991-2003) était une association d’aide aux étudiants, qui grâce aux emplois jeunes, entre autre fournissait divers service aux étudiants adhérants de l’association. Notament les copies et l’informatique (principalement ce de quoi je m’occuper):

J’y étais entre 2001 et 2003, et l’expérience était pour le moins formateur,

-Premier Boulot
-Premier Linux
-Premiers projets aussi :)

Vers la fin j’avais même fait un premier déploiement sur les posts disponibles ‘grand public’, qui aurait pu être pire point de vue désastre ;).

Malheureusement, pile au moment où mon Emploi Jeunes arrivait à term, la fac à décider de faire couler l’asso pour reprendre l’activité, et c’est ainsi que s’est terminé une expérience que je n’oublirai sans doute jamais.

Un coucou à tout ceux qui se reconnaîtront de cette époque (y compris l’Afev et Velocampus, dés assos nés de la MDE et qui battent toujours de leurs propres ailes): Xavier, Claire, Laurent….

Analytics

January 15th, 2008

Just a quick note to say that I’ve just set up google Analytics on this blog, so lets see what it shows up :)

Geek’s dream…

December 11th, 2007

Or mabey not, anyhow, here’s a quick counter to tell you how far away KDE4 is… :)

KDE 4.0 Release Counter

XKCD Rocks

December 5th, 2007

Just a quick link to a couple of xkcd webizodes…

Philippe, you were right, Python is the best thing since sliced bread!

And on a more sentimental note:

Dedicated to everyone who’re just to far away ;)