Merry Christmas

Bon, je sais que ça fait super longtemps que j’ai négligé ce blog.

Mais, promis: 2009 sera l’année où ce site entendra parler de moi!

En attendant (et avant de partir dans le sud rejoindre ma belle-famille), il me reste plus qu’a souhaiter à  toutes et à  tous une joyeuse noël et une bonne année!

Posted in Uncategorized | Leave a comment

Le Relais de Roquefereau

Pour tout ceux (et celles) qui sont toujours curieux de savoir où on as passé notre nuit de noces, ce billet est pour vous.

Je viens vous parler du Relais de Roquefereau.

Situé à 10 minutes de Penne d’Agenais (et encore moins de la salle où on à  fêté le mariage), le Relais de Roquefereau offre une retrait idyllique en plaine campagne Lotoise.

[mode publicité = off]

Bon, vous avez pigé je crois, on à  adoré.

Les chambres sont vraiment sympas

Le petit déj extra

Et la vue imprenable

On le recommende à  qui quonc en demande ;)

Posted in français, personnel | Tagged , , | 1 Comment

I Hate downtime

Yesterday evening, I agreed to turn my Home Server ™ off too help some people sleep.

Unfortunatly my servers sleep turned out to be the big sleep, and this morning it refused to start.

A few hours and a HD transplant later, evrything is back on line, now running on a Semperon 2600 and 1Go of ram :)

Posted in english, linux | Tagged , , | Leave a comment

Ubuntu vs AAC (round 1)

For better or for worse, (generally for worse) a lot of multimedia systems seem to like making peoples lives difficult.

This is painfully obvious with AAC and the formats that use it (think mp4).

Luckally, playback can be assured by using a nice arrangement of plugins that are downloaded just in time to play the offending file on your computer (thanks ubuntu).

This help doesn’t extend to re-encoding though, so for those of you lucky enough to have an mp4 capable phone (like the sony erricsons), you can find that putting the latest Bleach on your phone to be an exercise in frustration.

The reasons for this are numerous and complexe but come down to the simple fact that if cannonicle put aac encoders in Ubuntu they’d be sued to kingdom come in the states (thank god I don’t live there ;) ).

Help is at hand though, since even if the versions of the enncoding tools included with Ubuntu don’t come equiped, you can re-compile them so that they work as intended.

First up: ffmpeg

FFmpeg is one of the many swiss army knives used for video encoding available with Linux. It’s probably the easiest to use, and like it’s cousins, the ubuntu version comes cripled.

What to do?

First of all, make sure we have what’s needed to re-build it

sudo apt-get build-dep ffmpeg

Then add a few libraries (that add the magic support)

sudo apt-get install libfaac-dev libfaac0 libfaad-dev libfaad2-0 libfaad0

Finally, get the source code to ffmpeg

mkdir ffmpeg
cd ffmpeg
apt-get source ffmpeg

Now the fun starts, you should have 3 files and a directory before you.

Cd into the directory.

Now let’s move this thing arround a bit:

Open: debian/rules

This file tells dpkg how to build ffmpeg, we want to add a config flag so go to the lines that start with “confflags” and add on to one of them:

–enable-libfaad –enable-libfaac

Save, and quit, now all you have to do is re-build the package

dpkg-buildpackage

go have a coffee while it builds, and then install the result:

cd ..
dpkg -i ffmpeg*

To use, something like this is needed:

ffmpeg -i Source.avi -vcodec h263 -b 400 -s 352×288 -acodec aac -ab 64 -ar 48000 -ac 2 -f mp4 Dest.mp4

Update:

For eugenia (and anyone else who also wants AMR support), here are the debs with it (supported in the ‘if it breaks you get to keep both pieces’ way since I haven’t got the means to test them atm:

Update :

I’ve removed the download links for now since the files aren’t available on my server any longer. If anyone needs them, let me know

Posted in english, linux | Tagged , , | 2 Comments

Bye bye Dapper, Welcome Hardy

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!

Posted in english, linux | Tagged , , , | Leave a comment

Bye bye trackbacks

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

And because spammers seem to love them :-[

Posted in english, personnel | Leave a comment

Ring Log Liscense

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

Posted in Uncategorized | Leave a comment

Presenting ring_logger v0.1

 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:


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 :$

Posted in english, Javascript | Leave a comment

Zabbix

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 :)

Posted in english, linux, work | Leave a comment

Rate cuts and what they mean to the rest of us

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

Posted in english, personnel | Leave a comment