Category archives: Snaking
Discussions of programming, particularly of programming Python
A day spent with Zope (Is a day you never get back...)
Written by
on
in
Snaking.
Somehow managed to miss blogging for an entire day there; oops. Spent the whole day with the wonder that is Zope, first on the PyTableDA, tracking down a security-system complaint, fixing an icon, and repairing a form.
Then switched to stress-testing... or more precisely, setting up something so I can reproduce the annoying 4 or ...!-->!-->
Blocked on ResourcePackage/wxPython conflict (I hate being blocked by silly things)
Written by
on
in
Snaking.
I decided to update the generated ResourcePackage-hosted resources directory to use wxPython 2.5 style naming. This should have been a few seconds of effort, but as soon as I re-generated the embedded resources everything went all to heck. Though the old generated files worked fine in wxPython 2.5, the new ones are fubarred, they cause ...
Pleasant afternoon with Golnar (Now back to work (sigh))
Written by
on
in
Snaking,
Vindaloo.
Same old feeling of needing to cram my consciousness back into boring coding again. Today I'm going to try to finish off the wxoo conversion to wxPython 2.5 and maybe get some decent demos set up for PyTable's wxoo mechanisms. Last night I spent a few hours rewriting the current hotspot in PySNMP, unfortunately, though ...
Rot13 silliness (Saw a post on rot13 and had to run it...)
Written by
on
in
Snaking.
There was a post on Leonard Richardson's blog about him playing with rot13 encodings of words that turn into other words. So, I did some interactive Python poking for a few moments using the international aspell dictionary/word-list. I stripped out all the 1 and 2 character matches, and here's the result.
Minimalism in design (Difficult)
Written by
on
in
Snaking.
Been working on the email alert design for Cinemon. The challenge here is to teach a computer to extract the "important" bits of information about an anomalous condition and report only that information in a clean-looking and readily understood format for the user.
Lots of UI tweaks (Feedback at last...)
Written by
on
in
Snaking.
We're going to try for more regular and robust feedback, so today we actually got some concrete directions on what needs to change in the UI. Nothing major, all pretty tiny changes, but enough to take at least a few days of work.
Tim was here with the laptop he has on loan from a ...!-->!-->
Management meetings, argh! (Just when you're in the middle of debugging)
Written by
on
in
Snaking.
Trying to figure out what to do about this situation that has re-occurred. Basically, the CMTS can talk to the modems fine, so Cinemon sees them as online (because they CMTS says they are), but Cinemon itself can't talk to them. The question is do I report them as online or offline? Oh well, Tim's ...
PyDispatcher should be standard... (Just so I can use it everywhere)
Written by
on
in
Snaking.
I have to promote PyDispatcher more, particularly the "robust apply" and "safe ref" modules, which I find myself wanting in other projects all the time. Robust apply looks at the parameters a callable object takes and filters a set of parameters to only include those declared. Safe ref allows for registering callbacks to instance methods ...
Testability and code-size (Refactoring statistics-gathering code so I can write unit tests)
Written by
on
in
Snaking.
Well, the 3 or 4 hour server outage (upgrade) kind of mucked up the middle of my day. Wound up starting a refactoring of the statistics code so that I could do offline testing with unit-tests to see why I'm not getting record-counts.
Auto-conversions and distutils (Or how I spent my afternoon)
Written by
on
in
Snaking.
Turns out the auto-conversion script I was given is actually pretty limited in what it does. I wound up hacking in a few extra features (such as actually using the new import wx form), but I really should have just gone ahead and rewritten it. It's using a manually-maintained mapping set that's seriously limited, so ...