Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Long day of dribs and drabs (Hushed mutter of tickets drifting to the ground...)


There's a point in a project where everything that's left is either not a priority, or so messy and ugly that you just don't want to tackle it until you have a better spec. I think I'm almost there for the VoIP project. There's a few big-ugly items (such as 9-1-1 location-data verification and a ...

Continue reading

Inch, inch, inching along (Tiny bit of OpenGL-ctypes work...)


Oh, how trivial a bit of work it was. I just added a numarray-based array FormatHandler to OpenGL-ctypes. It seems to work fine, though I don't have any non-trivial numarray-using code with which to test it. The difference between the Numpy and numarray code is trivial, other than the imports the modules are identical (including ...

Continue reading

Good PyGTA Turnout (and other little details...)


Turnout at PyGTA last night was decent, 9 or 10 people, enough to occupy (but not fill) the whole meeting end of the Linux Caffe. I should have brought along some VRML content to display, OpenGLContext's tests just aren't that interesting to watch. Also ran into a bug with the mouse-event handling, thinking it may ...

Continue reading

For the ravening OpenGL-ctypes hordes (A few tweaks and fixes...)


Prepping for mini-talk tonight on OpenGL-ctypes I've just been installing it to Tim's laptop. Came across a few shallow bugs along the way; for one, I'd introduced unintended dependencies on FreeGLUT and GLE, those are now caught on failure, there was also a pointless import of Numeric in the glget module (Numeric shouldn't be a ...

Continue reading

Pythonic duct tape (When data imports...)


I spent much of the day working on CDR billing-data import for the VoIP project. This is pretty simple stuff, download the records, load them, unify them with the ids in the database, and then insert records to record the charges. It just takes forever. Lots of trivial little bits that need to be dealt ...

Continue reading

To the Philosopher


Pluck silver threads of signs
From the dross of every day
Hold to Heaven's music
On warm Summer's night
Hold someone in your arms
Offer to the world your trinkets
Pattern draped on folded pattern
Silk sheets wrapped around sweet forms
Ignore that you will be ignored
Find a few to share your dreaming
Sitting ...

Continue reading

Just kidding (TurboGears template language vs the old-code mess...)


Okay, I've officially gone way over my time for the day. I wanted to see if I could use a templating language to clean up some of the old-code cruft without having the project's owner have a heart attack. A good bit of time was spent trying to get kid installed. It uses a Python ...

Continue reading

Ah, the piquant aroma of well-aged web code (Or, at least aged...)


Five and a half hours today restructuring a couple of web pages. These are basically huge (1000+ line) scripts with a handful of individual "functions", save that they aren't coded as actual functions, they're just conditional branches scattered throughout the script.

All the code's generated with print statements and embedded HTML strings (with all tags ...

Continue reading