Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Oh, about SIP (Project shrinks as one realises how much is already written...)


For the SIP project, discovered that Shtoom is, in fact, a user-level client... in other words, a Soft Phone. We need far less code than that for our project, in fact, it's all available from core Twisted.

Did a spike test creating a Proxy/Registration-server and a client to log into it in about 30 lines ...

Continue reading

Tracking down sample-code for PyOpenGL (Documentation enhancements take a long time...)


One of the things I do to try to make PyOpenGL newbie friendly is providing sample code links directly from the PyOpenGL man pages to files from various projects which use the discussed function/constant.

This has proved very successful... so much so that we almost never get questions regarding how to use any given function/parameter. ...

Continue reading

Where did the week go? (Feels like Wednesday, but it's Friday morning...)


Wound up unable to get to sleep until 7 or 8 in the morning. Then was woken up at 10 or so. Have been largely non-functional all day as a result. Began implementing the performance changes. The storage, calculation and retrieval is all working... now I just need to get it hooked back up to ...

Continue reading

Amazing what a difference having someone *like* the project makes (Trying to sleep for 5 hours now and just keep popping up to write down new ideas...)


From ways to implement new features to what looks like it will be a huge improvement on memory usage and query speed... I just can't seem to stop thinking... which in a way is bad, because I'm not on the clock here. Oh well :) .

Can't really explain the major new feature (the others ...

Continue reading

Review goes very well (Dan seems to like it...)


Started out a little rocky (Vince's IE was set such that it disallowed the SVG viewer), but Dan seemed to be very impressed with the product and its potential. I spent the time between and around the conference calls working on icons (still not happy with the one for optical nodes).

Management meeting in a ...

Continue reading

Think I may have discovered a serious performance flaw (Formatting ignored error message in a very tight speed-critical loop)


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 ...

Continue reading

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...)


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 ...

Continue reading

Oops, forgot the pre-coffee work (Most of the day disappears in my shoddy memory)


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 ...

Continue reading

Drafting icons look like c^@9 when rendered in a full-colour environment... (I just work here...)


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 ...

Continue reading

Catcher of last resort (First thing to be created?)


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 ...

Continue reading