not idle

Fibonacci, nature and GIMP

Tuesday, September 4th, 2012

I’m a fan of Vi Hart‘s mathematical videos, and was particularly blown up by a 3-videos series on Spirals, Fibonacci and being a plant that I strongly suggest (if you can keep up the pace!). My wife tried to reproduce some of the Vi’s great drawings, but small errors in the angle quickly added up [...]

Read the rest of this entry »

Importing your Python modules into Ruby

Sunday, January 8th, 2012

I am considering using Cucumber for testing a project we have in Python. Since Cucumber uses Ruby for doing the actual work, the question is how to bridge with Python. There are, of course, several options, like calling the Python code as a shell script from Ruby. Or maybe XML-RPC? To me, however, the most [...]

Read the rest of this entry »

Writing custom Python metric modules for Ganglia

Wednesday, October 29th, 2008

First you have to make sure Python development package is installed on your system # apt-get install python2.5-dev I recommend adding –with-python=PATH parameter to the configure script when building Ganglia # ./configure –with-python=/usr/bin/python2.5 To write a Python module you have to follow a template (sample below) and put the resulting Python module (.py) in ganglia/python_modules. [...]

Read the rest of this entry »