Author archives: Mike
I forget how advanced TurboGears 2.0 is, sometimes
Written by
on
in
Snaking.
I wanted to code up a single-form application for updating/editing the PyGTA events. Since it runs on Vex and I didn't want to bother them with setting up per-user WSGIs or TurboGears for me (they do give me the space free, after all), I went with bald CGI.
Wow.
I've written very large CGI-only systems ...
First PyGTA Class Begins to Take Shape
Written by
on
in
Snaking.
We had a lively PyGTA this evening on the topic of concurrency. After which I put out a call for those who are interested in helping setup and teach (low-cost) courses on Python.
Our first course looks to be an Introduction to Django, likely on a Saturday in early November, taught by a consultant who ...
Hack to map Vertex Buffer Objects into Numpy arrays...
Written by
on
in
Snaking.
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 = ...
Hard-linking and disk-space... whatever...
Written by
on
in
Tuxedo.
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't check owner/group/mode ...
Further to back up nirvana...
Written by
on
in
Tuxedo.
Continuing to toy with rdiff-backup. There's enough areas that you *don't* want to back up (or rather, don't need to, such as icon and font caches) that you wind up with some pretty hideous command-line operations if you go that route, but this post is about another need, namely the need to "compress" the storage ...
rdiff-backup with source-control and mozilla-profile handling...
Written by
on
in
Tuxedo.
Can't sleep, so thought I might do some work getting a better backup system built for our machines. I really like rdiff-backup so far, it's got the "rewind to any time" functionality I'd like, along with reasonable query features and fairly simple operation, so this:
rdiff-backup --exclude-if-present .svn --exclude-if-present .bzr --exclude-if-present CVS
pretty much does ...
Of Design release 1.0a1
Written by
on
in
Design Theory.
As regular readers will know, I've been working (slowly) on a rewrite of my BIS Thesis in Design Epistemology. The original thesis was huge, covering way more material than anyone should attempt to cover in one thesis, and as a result it was rather cursory in its coverage of most of the areas on which ...
From where the short posts come...
Written by
on
in
Polis.
Have been seeing weirdly trivial blog-post spam lately. Someone will post a single-line comment that is entirely generic, no real content, just a bland "nice post" or "thanks for the article" where the user's URL is a link to what looks like a SEO page.
Turns out that there's a set of sites that "markets" ...
easy_install no longer working with SourceForge-hosted projects?
Written by
on
in
Snaking.
It seems like all of the projects I host on SourceForge are no longer easy-installable. The only ones that can install are the ones that have been uploaded to PyPI, and then only the versions on PyPI install (i.e. a later version on SF doesn't install or prevent an earlier version from installing). I'm guessing ...
Reminder: Exceptional Conditions at PyGTA this evening!
Written by
on
in
Snaking.
We're going with a round-table discussion at PyGTA this evening. How do *you* deal with exceptional conditions in your code? 7:10pm at Linux Caffe.