Just knocked a quick script up to read in an excellon drill file and display it using pygoocanvas:
The lines show the path in the file. Tool changes aren’t yet shown.
Source coming later. After sleep.
Have just spent an hour or so setting up an RSS feed for John’s New Zealand adventures. Should update every half an hour.
Source used to generate it available here :-)
Edit: Something’s gone wrong with the ECS servers… I guess it’ll be back up soon…
Edit: Seems to be back up now.
Particularly uninteresting for anyone but me. I need to log this for my project, you see.
Just created a patch for optionally building the python shared library.
Getting python onto the gumstix requires some work. By selecting python, the file system goes from 4 Mb (4131692 bytes to be exact) to 11Mb (11495444 bytes). That’s OK for the 16Mb gumstix boxes, but seems a little wasteful. After close inspection with the help of baobab, I find that a lot of it’s taken up by the python libraries:

Over the past few days I’ve been working on a yum plugin that will pick-up local yum repository mirrors using avahi. It wouldn’t have taken that long to sort out if I hadn’t failed to read the bit of the dbus tutorial I was reading that said I’d need “import dbus.glib” to make callbacks work.
I spent many hours trying to work out what was going on. Steve found the problem with me not importing dbus.glib. Thanks Mr Steve.
I’ve put the code up here. It’s a git repository. Grab it using:
git clone http://www.ecs.soton.ac.uk/~rds204/yum-avahi/.git
There are two python files: repos_announce.py and repos_listen.py
repos_announce.py: This is to be run on the server. It uses avahi to tell the rest of the network that a yum repository is available locally. It points to the http server that it runs which servers the “conf” file, which contains the configuration for the various yum repositories.
repos_listen.py: This is the yum plugin. Stick it in the yum plugins directory (defaults to /usr/lib/yum-plugins). The yum plugin also requires a configuration file called “repos_listen.conf” which sits in the yum plugin config directory (/etc/yum/pluginconf.d), and this needs to contain:
[main]
enabled = 1
Currently it will only attempt to grab repositories that you already have configured.
I reckon it’s a relatively safe thing to have enabled even in potentially unfriendly networks, as long as you have gpgkey checking enabled.
Comments welcome.
Just written a python script to keep a local backup of my blog. I need a backup because I want to post my thoughts about my third year project without the fear of something web-related going wrong and losing important things. So I used the python library from feedparser.org and I now have a script which does what I want. I’ve inserted it into cron accordingly.
Site by Robert Spanton. ©2008






