Category archives: Snaking
Discussions of programming, particularly of programming Python
Slides for this evening (To avoid repeating the PyCon problem...)
Written by
on
in
Snaking.
Okay, the slides for the presentation are now up. Hopefully the demo will work, but if not at least I'll have my talking points available.
I have to stop thinking about this now, I have work to get done.
For the ravening OpenGL-ctypes hordes (A few tweaks and fixes...)
Written by
on
in
Snaking.
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 ...
Pythonic duct tape (When data imports...)
Written by
on
in
Snaking.
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 ...
PyGTA this Tuesday! (Probably present OpenGL-ctypes...)
Written by
on
in
Snaking.
Looks like I'm responsible for arranging PyGTA again this month (though Paul already did the hard part). So, since I haven't had any other proposals, I'm thinking of presenting OpenGL-ctypes in all it's unfinished glory.
Be there @ 7pm Tuesday.
To the Philosopher
Written by
on
in
Snaking.
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 ...!-->!-->!-->!-->!-->!-->!-->!-->!-->!-->
Just kidding (TurboGears template language vs the old-code mess...)
Written by
on
in
Snaking.
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 ...
Ah, the piquant aroma of well-aged web code (Or, at least aged...)
Written by
on
in
Snaking.
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 ...!-->!-->
The joys of long-deferred todos (You defer them because they are ugly and nasty...)
Written by
on
in
Snaking.
Today I finally tackled one of the longstanding todos in the VoIP project, namely the point of interface between ISP account activation and VoIP account activation. Since the VoIP system is written to be largely independent of the ISP billing system there's a certain "energy barrier" whenever there's something needing to be done in the ...
We need test code (Me writing a test for every extension will be a bit too slow...)
Written by
on
in
Snaking.
I continued working on OpenGL-ctypes for a few hours yesterday (until I fell asleep), just sitting down and writing test-cases for those extensions I have and using them to see if the extension modules are working. There's generally some work to do for every module that has a function using a pointer, out parameter, glGet* ...
Extensions move into CVS (OpenGL-ctypes grows by hundreds of modules in a few minutes...)
Written by
on
in
Snaking.
I've just checked the auto-generated extensions for OpenGL-ctypes into the Sourceforge CVS repository. The autogeneration is still quite crude, so expect any extension with glGet-like, pointer or image-based functionality to fail. I've also reworked the glget module to use the wrapper system, which makes it a much simpler module (and makes the patterns easier to ...