Category archives: Snaking
Discussions of programming, particularly of programming Python
Gack this is slow (So many methods, so little progress)
Written by
on
in
Snaking.
Still working on the "randomised" ping mechanism. Spent close to an hour with the darn thing hanging because of a logic error where something that was originally synchronous was converted to being asynch, but I forgot to alter the client code in one place, so it would just sit about re-scheduling itself every 30 seconds ...
Gack this is slow (So many methods, so little progress)
Written by
on
in
Snaking.
Still working on the "randomised" ping mechanism. Spent close to an hour with the darn thing hanging because of a logic error where something that was originally synchronous was converted to being asynch, but I forgot to alter the client code in one place, so it would just sit about re-scheduling itself every 30 seconds ...
Standard test fixture specifying database records? (Frustrating writing these things ad hoc all the time)
Written by
on
in
Snaking.
Trying to be a good little Agile/Extreme programmer, I've been writing a test suite as I work on the ping scanner. The "Virtual Plant" stuff is nice for modelling the whole network-level plant, that is, it makes the SNMP queries all seem to find modems and that kind of useful thing, but it doesn't help ...
Simon's party tomorrow (After rebuilding JoAnne's machine...)
Written by
on
in
Snaking,
Vindaloo.
Simon is a neat chap I met at PyGTA and UU, rather fun to talk to all-in-all. He runs a little company, has a couple of neat technologies he's trying to market, and is rather active politically. He shares my love of throwing parties, so tomorrow I get to go out of the house ...
Think I should sleep... (Goes much faster when you're not spending all your time on stupid errors)
Written by
on
in
Snaking.
Well, that was markedly less frustrating. Got the next few boxes on the map worked out, though I haven't figured out an elegant (and efficient) way to make the hierarchy update. I'm actually considering using a single query for each node in the hierarchy so that the group-watcher will reload its own children every X ...
Heisenberg's revenge (Crude measurements mess up the test suite)
Written by
on
in
Snaking.
So, for the past 8 hours I've been debugging an error that just makes no sense. I commit changes to a record to the database (using the background thread, as required by twisted), and the record isn't committed a few seconds later. Ages spent assuring that the commit actually occurs, that a refresh is done ...
In other news... (Brief bits)
Written by
on
in
Snaking.
- I'm told someone reads this blog!
- Also, got a commitment from Shiva and Lisa to go hiking with the Bruce Trail club (and me) sometime in July.
- Made a nice curry, though it was far milder than I'd intended.
- Watched the season finales of Smallville and Enterprise. Think I'll just stop watching Enterprise. Smallville was ...
Pinging away (Randomised scanning going slowly)
Written by
on
in
Snaking.
Spent all of yesterday (after the visit to Tony's) working on the randomised "ping" scanner. Something weird is causing the whole process to be incredibly slow, and I'm beginning to think it's the creation and destruction of database connections in the thread-pool-managed-threads.
Twisted talk went okay (Even with only 2 hours to prepare)
Written by
on
in
Snaking.
Conversation at the pool-hall afterward was quite animated, particularly the rather long discussion of politics, philosophy and whether humans have a future. Have a meeting at 11am tomorrow with Tony, so should head off to bed ASAP.
The presentation is available, as is the small bit of sample code written explicitly for the presentation.
Twisted talk trashed by power outage and lack of backup (Arrrrgggghhhh!)
Written by
on
in
Snaking.
The silly UPS didn't catch the power outage, and somehow the file on disk got corrupted, so the presentation is just plain gone. This is *really* frustrating, I was working on the second-to-last slide already. Now I have to re-start from the beginning with less than 3 hours to complete it! Why doesn't OpenOffice automatically ...