Author archives: Mike

RSS feed of Mike

So Far the Nexus 5 is a Nice Step Up

My youngest threw my (ancient) Motorola Milestone (Android 2.1 era phone) across the room onto a tile floor. Amazingly, the phone still worked, and I've been using it broken for a while now. I almost talked myself into just keeping it, as after all, a few minor cuts on the finger-tip from broken glass don't ...

Continue reading

Testing a Fresh Checkout Encounters Errors

So it turns out that the xml-generation branch for PyOpenGL was entirely broken. I'd cleaned up a module (OpenGL/constants.py) that shouldn't have been necessary any more, as the types and constants were moved into the OpenGL/raw/GL hierarchy.  Oops, turns out that everything imports that module.  Spent a ridiculous amount of time fixing that (i.e. making ...

Continue reading

Restricting Comments

The spammers finally convinced me that I have to restrict comments on the blog.  I was up to a few thousand blog-spams/day, enough that I was forgetting what I was going to blog about before I got through killing them all.  Comments are still open for 2 months, but trackback/pingbacks close within a few days.

PyOpenGL from spec almost there

Was stuck with no internet today, so the world gets a bit of work done on PyOpenGL...

So the branch in which PyOpenGL is generated directly from the Khronos API specification (xml) documents is almost workable. There are a lot of (internal) changes, particularly the OpenGL/raw APIs are pretty heavily rewritten, and I've landed a ...

Continue reading

Bit more forward motion on PyOpenGL-from-spec

The spec-xml-generated wrappers are getting pretty close, only the glGet constant handling is preventing the test_core suite from passing, and I want to rework that to use the spec's enum groupings to provide better coverage of those and be able to flag missing GET enum specs on generation.  Haven't started into GLX/EGL/WGL etc yet, just ...

Continue reading

Moving forward with PyOpenGL XML Generation

So I finally (with some prompting) sat down to create a code-generator based on the Khronos specification xml documents (the things that khronos uses to generate the official OpenGL (GL and GLES), EGL, GLX, and WGL headers.  Originally I was trying to use Khronos own generator code, but in the end I just wound up ...

Continue reading

Uploading GBs to Django

As some may remember, one of our products involves the user posting very large (multiple GB) files. Previously we've been using an nginx extension that does a direct-to-disk streaming decode during an upload, but that extension isn't available in newer nginx (which we'd like to have available in order to take advantage of HTTP Live ...

Continue reading

Updating the Laptop to Kubuntu 13.10

Apparently Kubuntu 13.10's version of the fglrx driver is now equivalent to the beta one I added to my 13.04 install to get it running, so I decided to do the upgrade. However, it kept failing with a cryptic error that it couldn't do the upgrade because I was either running a pre-release ubuntu (no) ...

Continue reading

Multicast and Performance Binds

Networking fun this week.

The big nasty that bit me was that a .bind( ('',port) ) on a multicast socket will get all packets sent to any local socket listening to that port, even if this socket has not registered membership in the group.  So if you have two capture processes, each trying to listen ...

Continue reading