Category Python

Thomas Vander Stichele made my day

Since a while, everyday at 8pm, my N900 was complaining because it wasn't able to sync one of my calendar (my corporate google calendar). I never really paid attention... but yesterday I decided to fix this. The calendar sync is done using erminig-ng. My first action was to save the backtrace and have a look at it... I could understand that a integer was provided where the code was expecting a string. So before fixing this, I decided to get the last source code... mmm... and then the github reposirory of thomasvs made my day ! Indeed this guy already fixed the problem and explains that on his blog. He also provides a package to update erminig-ng on the phone :-) Thank you Thomas to not letting me reinventing the wheel !

Ignite talks with impress!ve

During last devopsdays in Hamburg, Gildas presented a session of ignite talks. He was using impress!ve but it seems the software was not really designed for that purpose: you should have manually defined the duration of the session but also calculate the duration of each slides... I decided then to patch this very nice product to fit the "ignite" needs :) The proposed patch automatically calculate the duration of the slides and add the a countdown for the slide display + the slide number. (see screenshots) New argument :
$ impressive --ignite 5m MySQL-spider.pdf

dstat and my.cnf

What a surprise, this week-end I received I very nice email asking me some help on the plugins I wrote for dstat. I wrote them more then 2 years ago while listening to Linus Torvalds in Cambridge :) The request was to enable the read of the password and user from the my.cnf file instead of exporting them in environment variables. Here are the patch for the release 7.x (fedora) and 6.x (centos 5.3) The patch is only for one of the plugin, but it's easy to apply it to all of them.

EeePC synchronization with unison

Sometimes I use my EeePC during a meeting, or when I don't want to use my bigger Dell laptop. But of course I'd like to be able to synchronize one folder on both machines to transfer documents that I should update on both laptops. unison is my friend for this task, but as I'd like to test some avahi and libnotify code to automate and integrate this solution on my gnome desktop, I wrote the following python script : EeepcSync Instructions on how to use it are present in the script. Somes screen captures : of course the code should be reviewed as I'm very newbie in python ;-)

As MySQL Community Manager, I am an employee of Oracle and the views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

You can find articles I wrote on Oracle’s blog.