Archives Sept. 1, 2009

Hard-linking and disk-space... whatever...

Toying yet more with compressing rdiff-backup repositories with hard-linking.  Turns out there's already someone who's done it.  My script for hard-link finding is different than the (packaged) one he's using, but it seems to have the same basic idea (I use filecmp, though, rather than reading the files myself, and I don ...

Continue reading

Hack to map Vertex Buffer Objects into Numpy arrays...

This post from the numpy list shows you how to turn a ctypes c_void_p into a numpy array.  The glMapBuffer() function maps your currently-bound array into a void * which you can access directly... combining the two:

def map_buffer( vbo, access=GL_READ_WRITE ):
    """Map the given buffer into a numpy array..."""
    func = ctypes.pythonapi.PyBuffer_FromMemory
    func.restype ...

Continue reading

Previous day

Aug. 31, 2009

Next day

Sept. 15, 2009

Archives