Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

A day without connectivity is a sad day indeed (Musings on the need for Cinemon...)


Today was taken up in its entirety by a meeting with Bryan and Clint regarding the billing front-end for the VOIP platform. Mostly just walking them through the interface, discussing problems, features we want, that kind of thing. However, about an hour before they were scheduled to come, Roger's cable went out. I phoned Rogers, ...

Continue reading

Inter-page messaging in Django? (Django form-processing module tutorial and sessionMessage())


Just reading through the Django tutorial part four. One pattern from my own web-framework that didn't get covered is the "sessionMessage" tool. This is used when you submit a form via post, so you want to send the user to a new page, but you want to tell them what happened during the post ...

Continue reading

Tear down the wall! (Or, at least, begin poking holes though it)


Today was pretty much the end of the stand-alone operations for the VOIP admin front-end (I'll decide on a real name for this project about the time I finish it, I'm sure). Other than the question of when/how billing is done (i.e. prorated or not), and a few highly-isolated (and parameterised) foreign-key references, nothing done ...

Continue reading

ctypes-ing the night away (Shake-shake-shake your bootie... though that doesn't move one forward very far...)


Although it was tempting to try to rewrite the whole VOIP billing front-end in Django this evening as a test, I decided that getting OpenGL-ctypes moved forward would be a bigger net win for the world. So, sat down and wrapped the GLUT font pointers and the GLU tessellation structure/functions.

I've got to find a ...

Continue reading

A little more time with Django (All in all I like it...)


Have just finished reading through the tutorial. Unfortunately, after finding the solution to the admin interface not showing up (you have to specify the "admin" settings file, despite the tutorial's assertion that the two settings files are the same), ran into a failure with a many-to-many relationship (can't delete). No big deal, still able to ...

Continue reading

Thoughts on BasicProperty in the morning (How to unify the dozens of domain-modelling descriptor libraries?)


As I covered in my talk this past PyCon, we're getting a proliferation of domain-modelling frameworks in Python. I'm actually responsible for 2 of them myself (OpenGLContext's fields and BasicProperty). There's also Traits, Zope's fields, and a similar system in PEAK.

When you consider PyTable (which creates BasicProperty properties from database-schema definitions and builds convenience ...

Continue reading

Millis are metering (Thomas fixes bug, I run into weird bad-pointer exception...)


Thomas posted a patch yesterday that seems to take care of the callback deallocation problem I was having with OpenGL-ctypes. Unfortunately, it didn't move me very far forward. I'm now seeing a crash inside the GLUT mainloop, particularly during a call to glFlush().

Only thing I can think of at the moment that would cause ...

Continue reading

Don't leave the on/off switch to last (Refactoring and other joys of iteration completion...)


Today marked the end of the single-account iteration for the VOIP front-end project. Today was mostly taken up with refactoring, testing, and generally cleaning up the single-account stories. The refactoring was pretty intensive, lots of common code factored into a small set of common, logically meaningful base classes, APIs for what seemed like different things ...

Continue reading

As the caffeine fades (I realise that night hasn't just fallen, it's been lying unconscious on the floor for a good few hours...)


Had two extremely strong largish regular coffees at the management meeting this morning. No breakfast or lunch. Sat down to work at 2 in the afternoon and didn't get up until around 8 at night, when I got myself a couple of pieces of bread with chocolate-hazelnut spread and briefly considered making dinner, but decided ...

Continue reading