Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Little fixes here and there (Day vanishes into the air...)


Did a couple of extra hours of work today so I can justify taking a few hours tomorrow afternoon to pick up groceries. Nothing huge, just a lot of little fixes, mostly for presentation problems. Anyway, think I'll do a bit of writing and then try to get to bed at a decent hour.

Kinda fascinating watching Cinemon work (Though it means I can't update the running copy)


I've been watching our client's network through Cinemon for the last 3 hours now, trying to figure out how to go about making it easier to "see into" what's going on (looks like they've had some serious outage, now coming back online). No great insights as of yet, though my not actually knowing what the ...

Continue reading

No sleep for the over-stimulated (Maybe I shouldn't think about work before bed...)


Made the mistake of running over everything I want to get done tomorrow as I was trying to get to sleep. 2.5 hours later, can't sleep, as I'm still spinning ideas... not even really ideas, just priorities mostly, which items need to be in the 1.0 release, how to get everyone on the same page ...

Continue reading

Lots of rewriting to make this work (Pointer handling is pretty deep in the system...)


Making the pointer handling code simpler is proving rather involved. PyOpenGL is written (not by me, this is all Tarn's code) as a set of macros that expand 4 or 5 levels deep even before it gets to SWIG, which is essentially an interlocking set of macro expansions. The problem is that the pointer-handling basically ...

Continue reading

Moving code from C to Python (Maintainability and robustness)


Spent the evening after work on trying to track down why there's a memory leak in the pointer-management functions in PyOpenGL. Problem is, the code there is this grotty low-level stuff that winds up re-creating the reference-counting mechanism in Python just to track whether anything is referencing a pointer.

Decided to rework it as a ...

Continue reading

This getting up early business sure warps the day... (Working before noon is wrong in some way)


Other than some brief over-the-phone debugging, mostly worked on little issues all day, adding links to various pages, refactoring things, adding paging to a long table views, the kind of cleanup you need to do before a project becomes a product.

Still quite a bit to do that way, but that's tomorrow's bugbear. Tonight I'm ...

Continue reading

New TwistedSNMP goodness heading into the world (Happy little SNMP sprite challenges the darkness...)


Only changes are to the BisectOIDStore; allowing it to have sub-OIDStores registered for handling a given table, and allowing it to have callable objects registered to return dynamically calculated values for a given OID.

Those were just features I needed for testing Cinemon, but they should make the writing of test code far simpler in ...

Continue reading

Test fixtures for fun and profit (Extending TwistedSNMP to allow for more complex Agent-side code)


TwistedSNMP is fairly minimal in what it allows on the Agent side, basically static tables mapping OID to value. That's been fine up to now, but I realised as I was trying to track down a bug in Cinemon this afternoon that the reason all of my modems are showing 0-values for their counters in ...

Continue reading

New hierarchy types are fun! (Though we got our collective arses whipped in Cranium...)


Spent the bulk of the day finishing and then debugging the new hierarchy type, and then figuring out why an old hierarchy type seemed to have been messed up (it wasn't, it's always worked like that, I just never noticed it).

After that, went to our cousin's husband's sister's house for dinner and a game ...

Continue reading