Category archives: Snaking
Discussions of programming, particularly of programming Python
Dipping a toe into pb connection pooling (Brr, these pools get cold in the Canadian autumn...)
Written by
on
in
Snaking.
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 ...!-->!-->
PB connection pooling eludes me (Sigh)
Written by
on
in
Snaking.
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 ...!-->!-->!-->!-->
Around the Corner
Written by
on
in
Snaking.
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 ...!-->!-->!-->!-->!-->!-->!-->!-->!-->!-->!-->
Screencasting via Gstreamer from Python (Playing with streaming media on Linux...)
Written by
on
in
Snaking.
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 ...!-->!-->
Change is as good as a rest (As old men like me are want to say...)
Written by
on
in
Snaking.
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, ...
Sometimes it's just easier to code something new (That's a bad thing...)
Written by
on
in
Snaking.
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 ...
It's always the code that's a PITA to code... (That turns out to be superfluous)
Written by
on
in
Snaking.
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 ...
More details (I hate details...)
Written by
on
in
Snaking.
Another day of fixing trivial bits. Not over yet, a few hours still need to be turned in on the day. I'm thirsty for a good conversation about now, but instead I'll twiddle a few more bits.
High priority post-launch items (Day of post-launch details...)
Written by
on
in
Snaking.
Spent the entire day on items for the VoIP project that were below "launch" level, but needed for release to the general public. First was a password-resetting mechanism, after that continuing work on the guided user-setup pages, then a rework of a set of menus into a single menu.
Tomorrow I'll lose a half-day to ...!-->!-->
Graphics take time (Even when you're just throwing them together as placeholders...)
Written by
on
in
Snaking.
Working on the user's guide for creating accounts today, along with the root page for the VoIP configuration. Long boring day of trivial stuff, but I did get to create some graphics.
Nothing really exciting, just icons for accounts, devices and signing up (silouhette, old-fashioned telephone and quill pen respectively). Inkscape worked fairly well for ...!-->!-->