Category archives: Snaking
Discussions of programming, particularly of programming Python
Emerges for all! (Oh what a geeky life we lead...)
Written by
on
in
Snaking.
Tim dropped by this evening, so I figured I may as well do some work on Gentoo. Reworked all of the emerges I created (fonttools, ttfquery, pydispatcher, and twistedsnmp) to conform to the (rather too terse for my taste) Gentoo style.
Then I added drag-and-drop from Konquerer into Eric3 to open files, wound up with ...!-->!-->
Should check all these scripts into local CVS (Noticable amount of effort could be lost)
Written by
on
in
Snaking.
Being a python programmer, I tend to write Python scripts to solve little problems that arise, for instance:
- Download my Sourceforge projects' CVS repositories into a directory for backup every week
- process CVS logfiles to help with generating changelogs
- add my python-coding sub-vocabulary to Dragon Naturally Speaking
- backup mozilla profile and secondary mail directories as ... !-->!-->!-->
Premature optimisation kills (Well, introduces errors...)
Written by
on
in
Snaking.
I think I've just discovered an anti-pattern in my code. Unfortunately, it's a really common idiom in the code base. Basically, I've been using dictionaries initialised with all records in a tracking table to make looking up a particular record very fast.
If you're going to be looking up individual records many times, and are ...!-->!-->
Oh, about the slogging (Little forward motion, mostly just learning the limitations of SVG)
Written by
on
in
Snaking.
I spent a truly inordinate amount of time trying to figure out how the heck to make an SVG graphic navigable... that is, how to make the darn viewer show scrollbars. Apparently it just isn't something that is supported. If you're SVG is "stand alone" and larger than your viewport it just gets clipped. Which ...
Moving work into Gentoo (Well, really just a little more work toward it...)
Written by
on
in
Snaking.
Too wired (far too much caf coffee at PyGTA) to work on Cinemon directly this evening (luckily I was pretty much done anyway), so I dumped the live database and am loading it into Gentoo.
Since it's taking forever I've been doing some work to create and submit ebuilds for many of my open-source projects. ...!-->!-->
I make things *way* too complex sometimes (Laying out 16,000 modems is hard, laying out 80 groups is easy (well easier))
Written by
on
in
Snaking.
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 ...
Slogs of war (Layout algorithms...)
Written by
on
in
Snaking.
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 ...
New TwistedSNMP and PyDispatcher available (Mmmmmm open-source-software...)
Written by
on
in
Snaking.
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 ...!-->!-->
Weird error showing up (socket.error: (65, 'No route to host'))
Written by
on
in
Snaking.
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 ...
PyOpenGL *is* now building cleanly on Gentoo (One-line fix...)
Written by
on
in
Snaking.
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 ...!-->!-->