Finding Drupal content that uses the PHP filter
2008 February 19
One new change in Drupal 6.0 is the PHP input format is now a part of an optional module instead of being enabled by default. After upgrading from Drupal 5, you can only disable the new PHP input format module if none of your content uses it. If you would like to determine which nodes, comments, blocks and content might be using the PHP filter so that you can migrate them and turn off the PHP module, keep on reading.
Drupal 5
How to find out which nodes, comments, and blocks use the PHP input format:
Food biofuels make more CO₂ than gasoline
2008 February 19
Beyond ethanol's low energy return on energy investment, a study suggests that it produces even more carbon dioxide than gasoline.
Hilarious.
. . .when we divert our corn or soybeans to fuel, . . . you have to replace that food somewhere else,"
. . .biofuel production here is driving agriculture to expand in other parts of the world. "That's done in a significant part by burning down forests, plowing up grasslands. That releases a great deal of carbon dioxide,"
But I get exercise from braking
2008 February 19
I'd love one of these knee brace electricity generators, so I hope it becomes commercialized and commonplace. But if it does, my prediction is the appearance of a new medical problem: knee brace hamstring atrophy syndrome.
Generalization
2008 February 19
What is a dog's mental model for where it is and is not allowed to poop? Inside versus outside? Places where people are often found versus places where people aren't often found? At first blush, it seems like they're solving a pretty useful generalization task, one that computers wouldn't be able to solve from so few examples.
Penn & Teller: Recycling
2008 February 18
God as an entity beyond human comprehension
2008 February 16
Is there any validity to the idea that Islam, in general opposition to Christianity, views “God not as an anthropomorphic being but as an entity beyond human comprehension, transcendent of man, independent and undivided?” I am no religious scholar, but such a broad claim is difficult to believe.
Drop all tables in a MySQL Database
2008 February 16
echo DROP TABLE `echo 'SHOW TABLES;' | mysql -u USER -p DATABASE | tail -n +2 | sed -e 's/$/,/'` | sed -e 's/,$/;/'
will output the necessary DROP TABLE command. If you have a my.cnf file (in the current directory) you can run the DROP at the same time with:
echo DROP TABLE `echo 'SHOW TABLES;' | mysql --defaults-file=my.cnf | tail -n +2 | sed -e 's/$/,/'` | sed -e 's/,$/;/' | mysql --defaults-file=my.cnf
Fedora 8 sopcast rpm
2008 February 7
My gsopcast binary from ftp.fedora.cn/pub/fedora-cn/linux/7/i386/gsopcast-0.2.10-1.fc7.fcn.y1.i386.rpm was crashing in Fedora 8.
There's a qsopcast rpm that works with Fedora 8 at http://apt.magiclinux.org/magic/2.1/unstable/RPMS.os/, as well as some other useful rpms like an rpm for the BlueDJ games client.
Snow
2008 February 4
Rammed earth wall ruins covered in snow, with the town and surrounding mountains in the background
Shangri-La, Yunnan, China
Snow
2008 February 4
Dirt wall ruins covered in snow, with the town and surrounding mountains in the background
Shangri-La, Yunnan, China