Category archives: Snaking
Discussions of programming, particularly of programming Python
Sometimes the solution needs time to gestate (Sometimes you induce labour...)
Written by
on
in
Snaking.
Had another one of those moments, you know the ones; you are starting to run out of tickets in the project and realise that 2 or 3 of them are actually the same basic problem that you've been avoiding for a few months because it doesn't seem to have an elegant solution.
You back off ...!-->!-->
A bit of paying work (Since I don't seem to be getting anything done on the Open Source stuff)
Written by
on
in
Snaking.
Finally discovered the reason the silly togl ebuild doesn't work: the makefile doesn't actually install anything, so it creates an empty package... so useful. I got to that point and just said to heck with togl.
Decided instead to take a nap and then get some paying work done. Discovered one of those nasty bugs ...!-->!-->
Togl really is a PITA (ebuilding works... sort-of...)
Written by
on
in
Snaking.
Decided this evening I'd try to get Togl working under OpenGL-ctypes. First annoyance was discovering that the project page claims the project is GPL-licensed (the license text in the project file is basically a BSD license). Anyway, built an ebuild for the project, having to create a diff for the amd64 processor, but otherwise no ...
Sleep descends disquietly (Comes back for a rematch a few hours later...)
Written by
on
in
Snaking.
Rather a slow start today. Got up on time, but didn't sleep particularly well. By the time I'd sat down to work I realised I just wasn't clear-headed enough to be charging anyone for my work. 3 hours of napping later it's already dark out, but at least I feel like I could write a ...
It's been too long since I played with graphics (Algebra and geometry is starting to fail...)
Written by
on
in
Snaking.
Just realised as I was working out linear interpolations across a plane in 2D that I'm getting very rusty in my basic math skills. Used to be that I played with this kind of stuff every time I sat down to program. Nowadays it's all if statements and SQL queries, with elegant algorithms few and ...
Rinse, repeat (Another day, just like the last...)
Written by
on
in
Snaking,
Vindaloo.
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 ...
Business Plans (and SSL)
Written by
on
in
Snaking.
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 ...!-->!-->
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 ...!-->!-->!-->!-->!-->!-->!-->!-->!-->!-->!-->