Archive for July, 2008

Linux distros

Tuesday, July 22nd, 2008

I found a cool schema that I hadn't seen before on reddit today: the linux distro timeline. We notice three main roots Debian the community distro, Slackware the one man distro and Red Hat the company developed distro. I guess everyone know them, nothing to see move along. What's interesting ? The ...

What are your chances of hitting a fly with a tennis racquet?

Friday, July 18th, 2008

Just one of the problems that I finished solving a few hours ago for google code jam. It's the first time I tried a programming competition, and it's a pretty interesting one. Problems are hard but solvable and you always get a few sample inputs and outputs, which is really ...

Good news everyone ! Futurama: the beast with a billion backs is out

Sunday, July 13th, 2008

Futurama: the beast with a billion backs is out in DVD in the US and Canada and illegally on the internet for others, may it lead to the end of civilisation. This is a must watch. Futurama is as witty and fun as ever. You will have the honor to ...

Smart indentation for python in gedit

Thursday, July 10th, 2008

A few days ago I developed a plugin for gedit that provides smart indentation for python code. The code is indented when the previous line ends with ':' and un-indented if the previous line starts with 'return', 'pass', 'continue' or 'break'. This plugin will use your tab configuration for indentation. To ...

Hope for the best, prepare for slashdot

Tuesday, July 8th, 2008

You have a brand new wordpress blog. How fast is it ? It's supposed to be fast, isn't it ? Lighttpd is dead fast, php is fast, mysql is fast. So let's try it with ApacheBench: ab -n 1000 http://libreamoi.com/ This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus ...

Starting ipython from pdb

Monday, July 7th, 2008

Well this is not so useful now that ipdb exists. Still ipdb sometimes fights with ipython, the ? of ipython doesn't work, so it might still be useful from time to time. For those that are used to ipython the python debugger is often frustrating by its limitations: no completion, no ...

Installing wordpress and lighttpd on ubuntu

Monday, July 7th, 2008

My blog is finally up ! But it's a wordpress blog, not one that I made myself in python. Wordpress is great as a tool. Simple enough, functional enough, I wish it was written in python for me to extend. Anyway, let's forget python for a second and go into ...