Archive for the ‘Uncategorized’ Category

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 ...