Making Maya’s Python palatable

code 3 March 2009 | 2 Comments

Maya’s python interface leaves something to be desired, as it seems like a straight port of their existing MEL interface with no additional thought put into designing a nice OO interface. For example, here is how to set or get the ‘radius’ attribute of a sphere: s = cmds.sphere() r = cmds.sphere(s, query=True, radius=True) cmds.sphere(s, [...]

Tagged in , , , , ,

Annoyances with Intrepid

commentary 27 February 2009 | 0 Comments

After having just installed Intrepid on a friend’s PC last night: I ran into this bug (here’s the fix) ATi’s dual monitor setup is still too hard (here’s how to do it) ATi’s drivers can’t do compiz and video at the same time (Install the latest drivers to fix it)

Tagged in , , , , , , , ,

Parametrizing Monoids and Monads

code 16 February 2009 | 0 Comments

Dan Piponi’s latest post “Beyond Monads” has prompted some wonderment (and forehead-slapping). For example: How did we all miss that before? —Peaker The answer (of course!) is that while we might have, they didn’t. For example, Edward Kmett’s category-extras package has had Control.Monad.Indexed available for use in Haskell since early last year, while the concept [...]

Tagged in , , , , , ,

Cleaning up a set of tags with Awk

code,commentary,replies,utility 28 January 2009 | 3 Comments

Introduction David R. MacIver has recently written this blog post about cleaning up a set of tags. This blog post, on the other hand, is about a nice old Unix tool called ‘awk’. Awk is one of those programs that is often overlooked. It is really a small domain-specific language for processing text. In some [...]

Tagged in , , , , , , ,