Category archives: Snaking
Discussions of programming, particularly of programming Python
PyDispatcher in the wild (Always nice to see work-product get used...)
Written by
on
in
Snaking.
"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 ...
You say you slog? (What a coincidence, old chap, I've been known to slog a bit in my day...)
Written by
on
in
Snaking.
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 ...
One of those things about which I should probably be excited (Tuple spaces... why?)
Written by
on
in
Snaking.
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 ...!-->!-->
Slogs on toast (Perched on the edge of the sublime...)
Written by
on
in
Snaking.
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 ...
I love to slog (Nothing better...)
Written by
on
in
Snaking.
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 ...
When you find yourself reaching for heuristics (Stop yourself)
Written by
on
in
Snaking.
Frustrating day so far. Bryan needs the demo sometime this week or next, and I'm spending all day trying to find something intelligent to do that won't kill the Cinemon machine on network failure, but will also catch the offline condition within a minute or two.
And so I remember next time (Should have thought of it earlier, but the sketch said to go the other way...)
Written by
on
in
Snaking.
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 ] = ...!-->!-->
How many support modules, that is the question (PyOpenGL after kebabs...)
Written by
on
in
Snaking,
Vindaloo.
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 ...
Python C modules for PyOpenGL (Wow that's a lot of work for little tangible benefit...)
Written by
on
in
Snaking.
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 ...
Templating joys (Slog, slog, slog, slog-slog-slog, slog, slog, slog, slog-slog-slog, slog, slog...)
Written by
on
in
Snaking.
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 ...