python

Introducing Redique

I've been working on a very simple project that allow processes or computers to communicate seamlessly using Redis as a backend. I love Redis because it's very powerful, yet very simple to configure and use. Let's first understand the motivation behind redique The motivation is the need for a small…

Use Virtualenv with IPython 0.11

If you are a Python hacker, most likely you will be using a virtualenv for your development environment, you are probably an iPython user. Unluckily, IPython doesn't pick the virtualenv paths by default and you will have to tweak it a little bit to make it work. Basically, this a…

Auto restarting python application

This is a cool sample on how to write an automatic self-restarting python application after a timeout, of course you can modify this application to be much more sophisticated so it can close all open files before restarting or restarting based on a signal (SIGHUP maybe?) or whatever you like…

Introducing Kyoto Cabinet

Most developers tend to use a general purpose SQL databases for all kinds of data storage, which is okay most of the times but can add great overhead if you have a massive amount of data and when you want to minimise the deployment overhead. Different data storage databases exist…

The good and bad about web2py

a few months ago I was looking for a web development framework that is less painful and fun. Earlier I've been using web2py and I was partially satisfied of what it can do in a very short period of time. However, after I started to use web2py in production I…

Common mistakes about Python default parameter value

I know it's a little bit long title but didn't find a better one :) It's one of the common mistakes a python beginner does and even more experienced programmers can fall into the same mistake so I thought it might be useful if I illustrated that out here so you…