Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Connection decides to take a vacation (So much for demoing tomorrow...)


The VoIP connection from our service provider over the internet to my little Asterisk development box has decided it doesn't want to work any more... well, it "works" in the sense that it connects, but the call breaks up too much to transmit DTMF reliably, which makes demoing somewhat difficult.

Now would be a great ...

Continue reading

Comment spammers suck rocks (But I built a mass-comment manager in response...)


As some of you may have noticed, some low-life comment spammers have been trashing the comments here all day. So, I created a view that reduces the work of removing a comment down to a single click (three if I'm not sure the comment is spam) from 8 or 9 with the default CoreBlog install ...

Continue reading

Better parallel iteration for Twisted (Annoying to discover the problem is something so simple...)


I spent a solid 7 hours this afternoon/evening working on Cinemon. Over the last few days I've left the live system running with the code that traps blocks, and it had identified the two places where unreasonably long blocks were occuring.

The second of those two is the one that's been causing problems on the ...

Continue reading

Maybe a signal-based timeout watcher should be in every Twisted app (Just a little something to log any uncaught blocking...)


Very long day today. Some template rework on the VoIP project. Lots of debugging on Cinemon to try to catch a hanging condition. Eventually decided to use the trick from James Knight to track down every blocking operation in the application.

So far only found one block of 5s or more; the point where the ...

Continue reading

Shidan suggests a predictive dialer app (Doesn't seem hard, but is it what I want to do...)


Shidan was mentioning that they might be interested in a predictive dialer application. It's a fairly straightforward system, you have a statistical algorithm that tries to predict how many operators will become free over the next X seconds (taking currently length of each call into account), another algorithm figures out how many connections will go ...

Continue reading

Those features you just want to avoid (Impedence mismatch is a powerful disincentive...)


I've been avoiding one of the features on the todo list for the VoIP project for quite a while, mostly because it seemed poorly defined and not particularly useful. Decided to just go ahead and bash through it yesterday. Still not finished, but the poorly defined part is done, the rest is just figuring out ...

Continue reading

A Ruined Nap (But a very pleasant meal)


Tried to take a nap this afternoon, but the bleeping phone kept ringing. Apparently Rose decided it would be cute to wake me up by calling the house phone from her cell every 15 minutes. Unfortunately, I really needed the sleep.

Luckily, the reason she was wanting to wake me up is because Shiva and ...

Continue reading

Getting OpenGL-ctypes to work with ctypes 0.9.9.3 (Done, sorta, but I don't recall these weird array problems before...)


At one of those annoying moments in coding where you're not sure if something is a bug in your own code, or one of two different libraries. I've been getting a few problems ironed out with the ctypes 0.9.9.3 release (a tool we were using was removed, but equivalent functionality is there).

The problem is ...

Continue reading

SimpleParse 2.1.0a1 released (3 years after the last release...)


You know you've got to spend more time on your Open Source projects when you start measuring the period between releases in years.

Anyway, SimpleParse 2.1.0a1 is now out. The actual SimpleParse code is pretty much identical to the 2.0.1 release of way back when. The big difference is that this release includes a forked ...

Continue reading