Monday, February 15, 2010

Tiny, neat Django trick

In SQL, you can retrieve a list of records via the "IN" syntax:


   SELECT * FROM mytable WHERE id IN (1,2,3,4,5,6);

Django supports near-identical syntax:


   MyTableModel.objects.filter(id__in=[1,2,3,4,5,6])

nice!

Saturday, February 13, 2010

Happiness

Small bit of Scientology bashing: Is it possible to be happy?

Thursday, February 11, 2010

Screen recordings under Snow Leopard (OS X 10.6)

For all your software demo needs: Snow Leopard will create screen recordings out of the box.

Just run Quicktime, go to File -> "New Screen Recording."

(Thanks to Nithin Reddy for the heads-up)

Animal adjectives

That I found this on a site called "PubQuizHelp" seems appropriate enough. You probably know that "simian" refers to all things monkey-related--hence the adjective's popularity during the Bush administration--and you may have heard that "ursine" is the word for all things bear ... but did you know that calling someone "lapine" likens them to a rabbit?

Very useful stuff.