Category archives: Snaking
Discussions of programming, particularly of programming Python
Tear down the wall! (Or, at least, begin poking holes though it)
Written by
on
in
Snaking.
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 ...
ctypes-ing the night away (Shake-shake-shake your bootie... though that doesn't move one forward very far...)
Written by
on
in
Snaking.
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 ...!-->!-->
A little more time with Django (All in all I like it...)
Written by
on
in
Snaking.
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 ...
Thoughts on BasicProperty in the morning (How to unify the dozens of domain-modelling descriptor libraries?)
Written by
on
in
Snaking.
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 ...!-->!-->
Playing with Django
Written by
on
in
Snaking.
Decided I needed to play with Django so that I can at least know what it is.
Millis are metering (Thomas fixes bug, I run into weird bad-pointer exception...)
Written by
on
in
Snaking.
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 ...!-->!-->
Don't leave the on/off switch to last (Refactoring and other joys of iteration completion...)
Written by
on
in
Snaking.
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 ...
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...)
Written by
on
in
Snaking.
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 ...
Web frameworks are too dang easy to write (Another bloody one showing up in my code...)
Written by
on
in
Snaking.
Spent the day pounding away at the VOIP Billing project. It's getting fairly close to functional at the single-account level. Did a couple of significant refactorings during the day and am now seeing a web framework poking it's hoary head out of the contingencies.
Since I'm using BasicProperty for all of the modelling, there are ...!-->!-->
Didn't quite manage an inch (Centimeter-ing forward with OpenGL-ctypes)
Written by
on
in
Snaking.
Gave my hands a break, then did a bit of work on the image-handling code for OpenGL-ctypes. Mostly just translating the array-setup functions (SetupPixelRead, SetupRawPixelRead) into Python code, then deciding instead to re-implement them, as they aren't really clear wrt what they're trying to do. Hopefully breaking it down into 4 or 5 functions, each ...