Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

PyDispatcher in the wild (Always nice to see work-product get used...)


"Golden Spud" has posted an introduction to his attempt to bring PyQt's signals/slots mechanism to wxPython. He's not using all of PyDispatcher's capabilitites (for instance, he's matching the consumer and producer signatures manually instead of letting PyDispatcher unify the arguments), but it is interesting to see it get used. (I didn't create PyDispatcher, I just ...

Continue reading

You say you slog? (What a coincidence, old chap, I've been known to slog a bit in my day...)


I really need to add view support to PyTable one of these days. Spent half an hour building yet another mock-view out of a classmethod. The method-based approach is nice in some ways, as you can customise all sorts of parameters to give you a nice query, but there are literally dozens of these things ...

Continue reading

One of those things about which I should probably be excited (Tuple spaces... why?)


Okay, what am I missing about tuple spaces? It seems to be a fairly basic data-sharing protocol which requires a server process somewhere. I mean, that's nice, but what are the advantages of this particular system over an RPC or formal message-passing/routing system.

If you're going to do all your networking using a (relatively ...

Continue reading

Slogs on toast (Perched on the edge of the sublime...)


Beyond UI cleanups and tracking down (or rather trying to track down) some bugs exposed during monkey-testing, I've been seriously pondering how to handle what amounts to a huge change in approach to the app without disturbing it too much just before the demo next week. Thing is, I would really like this approach to ...

Continue reading

I love to slog (Nothing better...)


Think I've finally got the ping scanner behaving properly. Now working on UI issues. First was cleaning up the error-log view to make the error tracebacks a little more pleasantly formatted. Second is testing the node-range mapping import. It seems to be working fine still, but it's linked to network-object views being the primary focus ...

Continue reading

And so I remember next time (Should have thought of it earlier, but the sketch said to go the other way...)


Oh, I figured out a simpler way to handle the numeric api module overriding of the base module's functions. Since the functions have identical signatures, I can just have the numeric module's initialiser load the base module and change the vtable using the base module's defined names for each function, i.e:

pyopenglbaseapi[ PyObject_FromDoubleArray_NUM ] = ...

Continue reading

How many support modules, that is the question (PyOpenGL after kebabs...)


Got home rather early from the dinner at Dave and Shabnam's place. We made kebabs (meat and onions barbequed on flat metal skewers). This is the second time we've tried that. This time was far more successful, with the primary advance being to switch to doing much smaller individual kebabs and being gentle when flipping ...

Continue reading

Python C modules for PyOpenGL (Wow that's a lot of work for little tangible benefit...)


First half of the weekend's PyOpenGL hacking finished. I spent most of the time working on getting a script put together to auto-generate a base and a numeric module. The idea is that we will try to load the numeric, and if that fails, we'll use the non-numeric, with both modules providing the same external ...

Continue reading

Templating joys (Slog, slog, slog, slog-slog-slog, slog, slog, slog, slog-slog-slog, slog, slog...)


Bryan truly impressed me today. Been trying to figure out why certain groups are winding up being reported as offline so often. The answer was staring me in the face, but Bryan had to point it out for me to realise it. Fixing it is going to be a bit of a PITA (the proper ...

Continue reading