Posts Tagged ‘python’

JustRecord : a tool to record

Tuesday, November 27th, 2007

For many years, we’re using various tools to perform long recordings : record (from xawtools), an home-patched jack-record, arecord+split, rotter, etc.

To record Esperanzah lives or Forum PHP 2007 conferences, we used our ugly (but efficient) arecord+split script. But it’s really a tool which can be shared with other teams.

So we’ve just started a dedicated tool to perform long recordings : JustRecord. These few lines of python can record in loop via alsa, run as daemon, log with syslog and execute an external script when a file is ended, etc. Tiny but usefull ;-) And many features will follow.

Install a Trac plugin

Thursday, August 30th, 2007

It seems easy to install a Trac plugin … No idea why but I’ve experienced several difficulties before finding this procedure : I retrieve the python plugin source and create the egg file.

Most of time, the trac plugin source are available via subversion. A small checkout and you can find the setup.py file.

To create the egg file, execute python setup.py bdist_egg. You’ll find the egg file into the dist/ directory.

Take care to use the same python version than your trac server. An egg file created with python 2.4 will work with python 2.3.

Copy the egg file into the trac plugin directory (/usr/share/trac/plugins under debian). Trac will make the end of work.