Archives January 2012

Fake French is Fun!

Ran FakeLion over our current project.  It's actually pretty cool just as a design tool.  The text is backward and in a weird "font", so you aren't distracted by what is says, you just see the site's layout with text-where-text-will-be.  With this being the third time we've used it on the ...

Continue reading

Watch your Django field defaults do not load objects if you use South

Just ran into a South migration issue.  Basically we had a field that looked like this (simplified):

class MyModel( models.Model ):
    hostname = models.CharField(
        default = random_unique_hostname,
    )

where random_unique_hostname() was written like so (again, simplified):

def random_unique_hostname():
    test = generate_random()
    try:
        MyModel.objects.get( hostname = test )
    except MyModel.DoesNotExist, err:
        return test
    else:
        return random_unique_hostname()

the actual ...

Continue reading

Bad Coder, No Cookie

We use globalsub and MockProc extensively in our test-suite at work.  Today I wanted to look up the name of the argument in MockProc (we use globalsub in almost every test case, so I don't need to look that up).  So, look up the docs... wow, whoever wrote this library really sucks, there's ...

Continue reading

Minor changes to OpenGL.raw

I've just done a bit of hacking to make the (Py)OpenGL.raw hierarchy a little more "normal" looking when you read the auto-generated code.  There are now functions declared, the functions are then annotated with decorators to make them into wrappers (which actually replaces the original functions).  Doesn't really affect how the ...

Continue reading

Forget "pledges" to release updates and fuzzy timelines

Hey, google/android peoples. Here's a proposal: shame *every* licensee into releasing official unlockers for *every* Android phone ever released.  The unlocker should just install an open bootloader that can install whatever ROM the user wishes (it can scream loudly at the user that they are voiding their warranty, of course).

To be clear ...

Continue reading

Modernising PyVRML97

Spent a few hours working on getting PyVRML97 (on which OpenGLContext is built) updated to use Cython instead of hand-coded C modules for the accelerators.  The transformation-matrix stuff worked pretty well, but so far the frustum-culling code isn't happy.  I'd like to get the rework done before releasing a new version of OpenGLContext ...

Continue reading

Daily archives

Previous month

December 2011

Next month

February 2012

Archives