Are you using git/svn/mercurial/bazaar as version control system and you ever wanted to visualize your work, how the project developed over time well Gource is there to visualize all this in a beautiful way. It takes the history of your svn/git/mercurial/bazaar repository and visualizes the changes over time, by whom they were done and so forth.

First we need to install gource if you are on Ubuntu/Debian do the following

sudo apt-get install gource

Now run the following with path/to/project being your projects root directory, and give gource the .git subfolder. Run it and you should see the animation being presented.

gource /path/to/project/.git/

Now to export this to an mpeg4 video do the following.

gource /path/to/project/.git/ --stop-at-end --output-ppm-stream - | ffmpeg -y -b 6000k -r 60 -f image2pipe -vcodec ppm -i - -vcodec mpeg4 /tmp/gource.mp4

Run through folder add files with a certain extension to a list - Python Oneliner

Mon, 26 Mar 2012 by Frank Lazzarini

Here is great Python Oneliner I came across, to put a list of files ending with a certain extension or name to a list, all this in just one line...

import os

list = []
list += [each for each in os.listdir('path/to/files') if each.endswith('.jpg')]
read more

Python resize image keeping aspect ratio

Thu, 22 Mar 2012 by Frank Lazzarini

This time I am posting just a little snippet which came in handy with the latest web development I am doing. The problem was to resize an uploaded image on the fly and creating an according thumbnail for that image. For testing purposes I create a script that could be …

read more

Python Kinterbasdb from source on ubuntu

Fri, 30 Dec 2011 by Frank Lazzarini

This is a little tutorial about how to compiler python-kinterbasdb from source in ubuntu, due to the fact that the official packages are broke. First off you need the following dependencies build-essentials, python-dev, firebird2.1-dev.

root@linuxbox:~$ apt-get install build-essential python-dev firebird2.1-dev

Afterwords download the latest package from https …

read more

Firebird Nagios plugin check_firebird.py

Fri, 20 May 2011 by Frank Lazzarini

At work we use a lot of Firebird databases, and so far our system admins checked the availability of a Firebird Database by simply trying to connect via telnet to the port 3050 and see if they would get a response. With this kind of check you can't really determine …

read more

Rename white spaces in folders to dots

Tue, 15 Mar 2011 by Frank Lazzarini

Don't you just hate when you get a copy of a scene release from somewhere and the guy that gave it to you "descened" the release folder, i.e out of Something.other.than.Potato.HDTV.XviD became Something other than Potato HDTV XviD. So how to fix this, in …

read more