Category archives: Snaking
Discussions of programming, particularly of programming Python
Think I may have discovered a serious performance flaw (Formatting ignored error message in a very tight speed-critical loop)
Written by
on
in
Snaking.
When I raise error messages I default to being verbose, I'll tend to format the error in such a way that even if it were to show up where a user could see it, it would be somewhat intelligible (or so I tell myself).
However, the SNMP storage mechanism is doing this type of reporting ...!-->!-->
When you know the app is CPU and memory starved... (Don't add extremely heavy processes to the box and head out to a meeting...)
Written by
on
in
Snaking.
Came back from the meeting to find hundreds of processes running on cmon, with complete memory exhaustion and hundreds of alert messages in my inbox. I'd decided earlier in the day to try running both the old (heavy) scanner and the demo scanner at the same time... stupid of me.
The load-levels were in the ...!-->!-->
Oops, forgot the pre-coffee work (Most of the day disappears in my shoddy memory)
Written by
on
in
Snaking.
Implemented crude throttling (twice) for Cinemon during the first 7 hours of the day. The first time I implemented it based on the idea that I could take the difference in time between when I scheduled an event to occur and the time it actually occured within Twisted.
That worked... sort-of. The problem is that ...!-->!-->
Drafting icons look like c^@9 when rendered in a full-colour environment... (I just work here...)
Written by
on
in
Snaking.
Spent the evening working on icons for Cinemon. Unfortunately, the standardised icons are rather... ahem... dull. They look like they were intended for use on black-and-white wiring diagrams, rather than full colour interactive maps. I really feel the desire to tweak them to return to the beauty of the all-circle diagrams of the past... but ...
Catcher of last resort (First thing to be created?)
Written by
on
in
Snaking.
Thinking, from now on, I should always code a catcher-of-last-resort first when working on a project. That is, a script that stands outside the long-running application and pings it every X seconds to make sure it's alive, and if it isn't, forces a restart.
We need to upgrade the hardware for Cinemon, particularly the RAM ...!-->!-->
A few OpenGLContext bug-fixes (And thus a day disappears...)
Written by
on
in
Snaking.
Well, actually, I slept a great deal too. Fixed two longstanding bugs in OpenGLContext, one in the handling of textured-transparent geometry and the other in handling commonly malformed geometry (degenerate faces in IndexedFaceSets).
Tomorrow (after visiting grams) I'm planning on spending the day on something more VexTech-ish... probably PySNMP, maybe PyTable.
For now I'm going ...!-->!-->!-->!-->
Tad frustrated with the (lack of) documentation (I mean, I can't even find a single instance of using "sequences" in Nevow!)
Written by
on
in
Snaking.
By now I'm somewhat accustomed to the... shall we say "meagre" documentation available for Twisted, but this instance is just weirdly under-documented. Normally there's at least one piece of sample code that uses a feature, but I can't find anything that uses the Nevow "sequence" feature. The idea is something like this:
About motivations and post-mortems... (Why the move from Zope)
Written by
on
in
Snaking.
A few weeks (maybe a month now) ago, Tim pointed out that for all intents and purposes he's unable to follow my code. As a result he's uncomfortable with the idea of working with it. I'm accustomed to programming fairly large systems (e.g. OpenGLContext, Tpresence's Holodesk, Tpresence's Portals, that kind of thing, systems with multiple ...
Speaking of distractions... (Well, some would say it's the more important stuff)
Written by
on
in
Snaking.
Also discovered (thanks to Richard Muller, who's been doing a lot of work testing on Fedora Core) that the PyOpenGL release isn't propagating across the SourceForge mirrors for some reason. Hopefully just some glitch in SF. One mirror has picked them up, and they are available from the root site as well.
Also, there was ...!-->!-->
Professional Development Day (Or, my day of reading...)
Written by
on
in
Snaking.
I hate getting distracted while I'm working. It's just something I know about myself. My mind is just too active to allow me to have lots of things going on around me. I'll jump from the task at hand to discussions of just about anything and spend hours not getting any work done.
So, since ...!-->!-->