Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Think it's time to declare defeat for the night (Irresistable Mikey meets immovable bug)


I'm getting precisely nowhere with this, and the cycle of attempts is so long it's silly. There's obviously something hosed on my machine, or a bug in PostgreSQL itself. Either way, I'm not going to fix it by continually installing, wiping the database and attempting to load it.

PyTable Release while I'm screaming (Upgrading and importing, and crashing and importing, and throwing machine out window...)


Well, since the absolutely newest code needs a new feature of PyTable I decided to do a release while I was waiting. Mostly this just makes working with the DBRow objects a little more intuitive. Setting a field to NULL deletes the value, and setting a foreign-key field to a DBRow instance tries to find ...

Continue reading

How do I manage to find so many holes in PostgreSQL? (You'd think I was doing something out-of-the-ordinary)


Am I just abusing this poor little PostgreSQL installation on Win32? Is it just the flaky disks? I mean, infinite running time for a simple select * from table and some freaky error with clogs getting started, remembered, but not retained... you don't really hear about this being the normal experience of PostgreSQL users. Of ...

Continue reading

And now it's working again (Argh, debugging is hard when the debugged thing stops failing...)


Looks as though they've continued migrating modems off the old CMTS, so cmon has dropped below whatever magical threshold was causing the weirdness with PostgreSQL. I really do need to get TwistedSNMP to the level where it can simulate an entire Cable plant if I'm going to be able to properly debug these things. Problem ...

Continue reading

Patience sparrow, trust the code (If I'd just waited it would have been a less critical error...)


I'd forgotten that the manager process actually terminates hung scanning processes after a given period. Doesn't help with fixing the bug, but does at least mean the scanner can keep scanning everything else... though with a multi-hour glottal stop in the middle :( . The real thing it proves is that it's just scanning the ...

Continue reading

Think I need to take a real break (Writing blogs as I watch the scanner stall isn't helping...)


Obviously I'm just missing something obvious. Wish Lawrence didn't have a guest tonight so I could go get a snack, or even go on a walk. Though I already walked quite a bit today. Should work on the metaclass presentation... or more critically, rent a hotel room for PyCon!

Randian versus Liberal views in Programming (Joey points out debate+followup regarding the ethics of Open Source)


Back when I was in high-school, our "extended learning" course was given a "real world" demonstration of Randian versus Liberal ideology via an old party game. If everyone in the group is willing to accept a moderate reward, then everyone can simply have that moderate reward. If any one person gets greedy while everyone else ...

Continue reading

This isn't helping much... (Old (running) code is finally showing the cracks that made me replace it)


Have spent > 4 hours tracking down problems with the old scanner code. This code is entirely ripped out and replaced with TwistedSNMP in the new version, but the old version is what the customer is running at the moment. I was seriously tempted to just upgrade them to the new version.

Widgets should be determined w/out if/elif junk (Things you know you should do right in the first place but never get around to...)


Well, mostly wound up generalising the planned-object editing system today (modulo a few hours trying to figure out what was wrong with my SNMP queries, (it was just a system mis-configuration in the end, nothing to do with my code)). Got the "choose an existing or other-new-planned" control working nicely. Whipped up a street view, ...

Continue reading