Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

I make things *way* too complex sometimes (Laying out 16,000 modems is hard, laying out 80 groups is easy (well easier))


Instead of a 1.8MB file, I get a 14KB file. Instead of taking 10 seconds to produce, it takes an unnoticably small time. It's a heck of a lot faster to load, and it's much easier to understand. Anyway, now that I've got the layout algorithm working, I can start adding in the node visualisations ...

Continue reading

Slogs of war (Layout algorithms...)


Whole day so far has been layout algorithms. So far even just the lines for the graph are 1.8MB of SVG. The problem is that generic layouts wind up creating extremely imbalanced graphs, but doing the analysis of which groups to give more space is taking far too long. Oh well, continuing to slog on ...

Continue reading

New TwistedSNMP and PyDispatcher available (Mmmmmm open-source-software...)


Have just released a new version of TwistedSNMP which now catches errors during attempts to send messages and reports them back to the original deferred call.

Also released version 1.0.0 (final) of PyDispatcher, which lets you set up multi-producer-multi-consumer communications channels within a Python process. No big changes there, PyDispatcher has been basically stable ...

Continue reading

Weird error showing up (socket.error: (65, 'No route to host'))


Periodic scanner was hung up for about 4 hours there by a strange socket error "no route to host". Not sure if Tim changed something in the routing tables, or if a router somewhere blew up. Going to have to alter the code to gracefully handle the condition. No big deal, just generalise which errors ...

Continue reading

PyOpenGL *is* now building cleanly on Gentoo (One-line fix...)


With a one-line fix, PyOpenGL is back to building on Gentoo. I haven't tried installing it, as I don't know how Gentoo would react to my unmerging PyOpenGL right in the middle of emerging 7 updated (but unrelated) packages.

Spent the "morning" (I actually slept until 4pm or so) working on summarising Cinemon for managerial ...

Continue reading

PyOpenGL isn't building cleanly even on Gentoo (Looks as though SWIG checking needs to get a lot more anal)


SWIG wrapper generation is attempting to continue even when it finds that it doesn't have the right version, that just makes bad things happen. Anyway, should sleep now, just booted into Gentoo to start the system off on building xorg-x11 while I'm busy and got distracted a little. Also looks as though I need to ...

Continue reading

Think that about wraps up the week (13 hours is too long a time to sit in one spot)


Mostly work on UI stuff again today. Nothing really exciting, just cleaning up and converting to the new UI style. Unfortunately, I didn't wind up getting a chance to work on the product summary document (that was going to be my first task of the day, but then I got side-tracked trying to figure out ...

Continue reading

A slogging we have gone (And some shopping too...)


Today was all about the UI. Mostly refactoring the various pages to use the same basic tabular control where it's useful (and extending the control to support that). The person and group editing pages are now back up and running and at least moderately usable. The trigger editing/inserting isn't working (the choice-of-event control has gone ...

Continue reading

Hmm, still up (Realised I have to get moving on replacing the computer)


Ken, our long-suffering business-person once again brought up the fact that I should really be moving off of the flaky machine, so I've just asked him to get me some prices for replacing the motherboard, cpu, and memory. I also threw in a replacement for the broken MSNatural (original) keyboard, and a new (cheap) case ...

Continue reading

Some more things to do for Eric (When I get a chance...)


Working with Eric this evening has pointed out a few more things that I'll need to work on to make it feel comfortable:
  • single-instance operation -- i.e. when I select a .py file and choose "edit" in konqueror I should have the file loaded in the current instance, not starting up another instance

  • drag-and-drop -- ...

Continue reading