Posts Tagged ‘Snippets’

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 slightly tweaked version of this [...]

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

Building VirtualBox on Mac OS X Lion with Python Bindings

After building VirtualBox with VNC support in my previous post I discovered two problems with that installation (VirtualBox 4.1.2 on Mac OS X Lion 10.7): SDK was not installed by default, import vboxapi from python failed. VBox Python bindings were built for python 2.6 and segfaults on python 2.7 I contacted some guys on #vbox-dev on [...]

Building VirtualBox on Mac OS X with VNC Support

I’ve been using VirtualBox for months for several reasons and recently I’ve been forced to use only the free version of vbox (without the Extensions Pack), which doesn’t include the sweet bits of VRDP server among other things. I wanted to boot my virtual machines headless and access it using VNC which doesn’t come by [...]

mercurial-server on Fedora/Centos

If you want to setup mercurial-server on fedora or centos/rhel server you are going to see lots of failure messages during installation and the installation will definitely fail. Mercurial-server was written to run smoothly on debian-based systems, so I patched it to run on fedora/centos and I would like to share the patch with you. [...]