Category archives: Snaking
Discussions of programming, particularly of programming Python
Javascript and Namespaces...
Written by
on
in
Snaking.
Say you want to trigger the submission of a form in jquery:
$("form.someclass").submit();Simple, straightforward, robust... you think. Turns out in Firefox, if you have any form element (such as your submit button) named "submit", the submit referenced becomes that element, rather than the function to do the submission.
OMG, you think, has no-one thought ...
PyOpenGL Testing on Linux and Win32 Today
Written by
on
in
Snaking.
Spent most of the afternoon and evening working on PyOpenGL testing today. Whole raft of small bugs fixed. Also did some refactoring of the OpenGL_accelerator support code, still want that to be cleaner. I've also added a top-level flag to PyOpenGL so that you can disable accelerator loading on a per-application basis. Unfortunately, that's going ...
Contributors verily rocketh
Written by
on
in
Snaking.
There's a 2.1.1a2 release of SimpleParse out. The only significant change is to allow building on Python 2.6 with Mingw32. Anthony Tuininga pointed out that the only place the compiler actually had difficulty with was in a debug printing function that isn't particularly necessary. I've completely gutted the function for now.
Thanks also to Alan ...
Capturing and replaying from easy_install
Written by
on
in
Snaking.
Have some time before a client meeting this afternoon... so here's the issue I've been turning over in my mind since it was brought up at the last PyGTA. We've run into the same issue at multiple clients and while the "right" solution would likely be to make easy_install/distutils record the information, I've spent way ...
Testing and Point Parameters (sprites)
Written by
on
in
Snaking.
Spent the afternoon testing PyOpenGL 3.0.1, dull, really. Found a few errors in the Demo where code was trying to use OpenGL before there is a context (recent Linux drivers are getting *really* picky about that). Added a flag to the root OpenGL namespace to control unpacking of single-length arrays, thinking that PyOpenGL 3.1 should ...
What should networking look like?
Written by
on
in
Snaking.
I spent far too long today playing with two different networking systems. The first was RabbitMQ and py-amqplib. This seems pretty nice, you can send hundreds of messages in a fraction of a second... though it then seems to take *forever* to process them. Appears to force in-order delivery, including an explicit ack from the ...
This evening's pyqnet hacking brought to you by annoying neighbours
Written by
on
in
Snaking.
Began work on simplifying the PyQNet API. Got rid of blocking/non-blocking versions (everything is non-blocking now, though there's a "wait" operation to block until incoming messages are received). Also simplified the callback-based (server) interface. Added (optional) zlib compression to the packages and added support for arbitrarily sized messages.
Probably next up would be getting the ...
PyGTA is on Wednesday this month, PyCairo
Written by
on
in
Snaking.
Behdad is going to be presenting how to use PyCairo. PyCairo is a immediate-mode 2D rendering library. It can target all sorts of back-ends including OpenGL, X windows, PDF, etceteras.
[Update] We'll still be on Wednesday, but turns out Behdad is unavailable due to the turmoil in Iran.
SimpleParse rev'd for Python 2.6
Written by
on
in
Snaking.
I've just released the Python 2.6 compatible version of SimpleParse. The only changes of note were the 2.6 fixes and a renaming of the simpleparse.xml module to simpleparse.xmlparser, as under Python 2.6 import semantics the "xml" module caused an import conflict.
I've released only the 2.5 win32 egg, as I'm using my Vista machine to ...
One more bug then should do a PyOpenGL 3.0.1 release
Written by
on
in
Snaking.
Just about time to do a 3.0.1 release, with the accelerator modules and bug-fixes. Still have a bug-report about Linux GLUT crashing in glGetError, will have to try to track down and fix that before a release. Other than that it's just testing, building and testing again...