Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Draft finished (Going to sleep on it now... no, not literally...)


May not even be litterally "now", for that matter. I'm not really exhausted, but I could certainly sleep now. Question is whether I can get any useful amount of work done in the hour or so before I really should sleep (pause in here)... I think the sandman will win this argument.

Not particularly satisfied ...

Continue reading

Are pickles, cookies and yogurt a balanced diet? (Maybe I'm pregnant... oh, wait, I guess that would be a prerequisite... oh, and that too...)


Slow going on the Twisted tutorial. Mostly because there's far too much to say. There's over 25 pages already and I've only just started with the actual Twisted material (the earlier part being discussion of comparable approaches). I've got 15 minutes, so should have approximately 30 pages total... going to be a lot of editing ...

Continue reading

PyOpenGL Refactored (C APIs for Python modules...)


Spent most of last night learning how to create C APIs for Python modules (it's rather messy when you get right down to it). Basically, instead of a monolithic set of code linked into each PyOpenGL PYD file I'm planning to move all of the extended-API code into a seperate module. Then I'll move the ...

Continue reading

Simplifications poking up from under the surface (Refactoring is calling...)


As I was reworking the code to do the group statistics last night, I had one of those glimpses of where to go that you look for in a design. A few seconds of clarity when the Platonic ideal of what you're creating pokes through the messy aglomeration that is a working and evolving system. ...

Continue reading

Sawtooth patterns (Group statistics are this evening's bugbear)


The problem with statistics is that it's often messy to calculate for measurements of the real world. You wind up needing to introduce all sorts of machinery either to artificially create a consistent measurement framework, or to track all the various exceptions and partial contributions so that the final measurement has some relation to what's ...

Continue reading

Fruitless night chasing performance... (A second or two of gain from 8-1/2 hours work)


Well, I really wasn't in the mood to work on the main project last night (just too keyed up from the 4 or 5 coffees at the management meeting), so I did some housecleaning (the computer kind) and then sat down to try to optimise PySNMP some more.

This package is starting to get a ...

Continue reading

Drawing graphs with SVG (Using SVGdraw.py)


So, one of the goals for this stage of development is to provide higher-level overviews of the data, including graphical views. After spending a few hours looking at the various C-library charting solutions, I'm beginning to favour just creating the graphics as SVG vector images using a very lightweight library called SVGdraw. That will ...

Continue reading

Where are the radical ideas in computer science? (Radical is not adding functional elements to Python, for instance...)


Here, for instance, is a radical (but not particularly new) idea in computer language design:

The computer records all interactions with the programmer and shares it's understandings of meanings and implications of any given set of events/contexts with all other computers in the system.

With every spare bit of processing and communications power, the computer ...

Continue reading

Stupid combination of otherwise trivial problems (No network access, local postgresql database unable to restore)


So today's primary development requirement was to compile the group history into a readily-used form for doing back-history tracking. Unfortunately, Roger's cable seems to be having some difficulties, and local PostgreSQL refuses to load the database dump from the live system. Major PITA.

So, network's back up now, but I'm tired and have to get ...

Continue reading

Little tweaks and fixes (A day with little big to show for it...)


Sure, it's only 1/2 over, but so far it looks like this day is mostly just little bookkeeping fixes, interface tweaks, cleaning up after introducing stricter semantics for ESN fields, that kind of thing. Still no word from the customer, so still no idea if this approach is worthwhile for the UI or not. Hopefully ...

Continue reading