Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Rinse, repeat (Another day, just like the last...)


I was strongly tempted to repeat yesterday's post. Turns out that today was Tuesday, the meeting and party were to be Wednesday (I discovered this only on phoning Tim at 9am this morning to ask if he wanted to head over yet). Looks like we won't be doing the party. The SSL error turned out ...

Continue reading

Business Plans (and SSL)


Couldn't get the Twisted.spread server to work when using SSL, but it works fine with bald TCP. Burned far too long on that today. Got Shane hooked up on the VoIP system, which was good. He seemed very happy when he just plugged it in and everything worked.

After I got fed up with "connection ...

Continue reading

Dipping a toe into pb connection pooling (Brr, these pools get cold in the Canadian autumn...)


Okay, this is a hack written in the middle of the night, so expect there to be problems, but it does seem to basically work. What it is is a collection of three object types.

The first, the ConnectionStats, is a simple utility object that tracks statistics and the semaphor used to throttle the number ...

Continue reading

PB connection pooling eludes me (Sigh)


It really seems there should be something in Twisted that does something along these lines, but I can't find anything quite right:

Create and monitor a pool of pb (twisted.spread) connections (this is to spread a CPU-intensive operation across many servers)

On disconnect or connect failure, do retries (forever), but with scaling frequency (i.e. if ...

Continue reading

Around the Corner


Resignation lurks around the corner
Can't see it but you know it's there
Subtle scent of rotting hopes
Hanging in the stagnant air

Lucky you don't have to move
You can hang around all day
Something will happen soon
You'll find a truth to bray

You think you hear it chortle
Something stirs within you ...

Continue reading

Screencasting via Gstreamer from Python (Playing with streaming media on Linux...)


Rather than charge back into doing work on Cinemon when it's late, I decided to focus instead on one of the side projects that's been sitting there in the project for a while, namely producing a screencast of basic usage for Cinemon. I'm considering one for the VoIP project as well.

What I want is ...

Continue reading

Change is as good as a rest (As old men like me are want to say...)


Spent the entire day on importing CAD maps into Cinemon. I don't know whether it's just being back in a Twisted-based environment with full sessions, persistent state, a full ORM and the rest, but it seems like it was a far more pleasant 9 hours than 9 hours coding raw CGI with no templating system, ...

Continue reading

Sometimes it's just easier to code something new (That's a bad thing...)


I finally got time today to work seriously on Cinemon again. Spent the time working on a remoted SNMP query server (i.e. something that can be put in a remote network to do the actual querying while the Cinemon server is outside the network). I initially tried using Twisted's jelly module (via pb), but couldn't ...

Continue reading

It's always the code that's a PITA to code... (That turns out to be superfluous)


I just ripped out one of those annoying little bits of code; the ones where you check 3 or 4 times saying "are you absolutely sure you want this, it really seems like a bad idea, it's going to cause this problem and that problem and be a pain to implement". It's not that it's ...

Continue reading