April 16, 2008 – 12:31 pm
This is McDonald’s idea of making their Happy Meals educational. (That I took this photograph may also be proof of bad parenting on our part, but let’s overlook that.)
I think what they mean is that you can jump six times as high on the Moon.
In case you were wondering, that’s because the [...]
April 15, 2008 – 11:48 am
Or whatever certain circles think is the controversial-book-we-need-to-protect-people-from du jour.
There are earnest people who recommend realistic reading for everyone because, they say, it prepares us for real life, and who would, if they could, forbid fairy-tales for children and romances for adults because they ‘give a false picture of life’—in other words, deceive their readers.
I [...]
April 14, 2008 – 11:48 pm
Several years ago, PPK of Quirksmode sponsored a contest to come up with a new version of the trusty JavaScript addEvent function. The original addEvent was created by Scott Andrew LePera in 2001 as a way to merge Internet Explorer’s attachEvent with the W3C’s addEventListener. Both addEventListener and attachEvent allow you to attach [...]
April 14, 2008 – 11:39 pm
WordPress 2.5 introduced a much more thorough password-hashing algorithm with PHPass. That is great for security, but I was afraid that it would make restoring your WordPress password in the database almost impossible. You see, prior to 2.5, if you needed to reset your password, you could just hash it using md5 and [...]
April 12, 2008 – 10:06 pm
A friend today sent me this picture from the Boston Museum of Science. It’s especially funny to me, because I have formal education in both mathematics and philosophy. And anyone who’s read Plato’s Republic is bound to think it odd.
It’s odd because Plato’s good society, the republic, requires its citizens to study mathematics [...]
April 11, 2008 – 10:27 am
Ozh explains how to properly use JavaScript in your WordPress plugins. There are two key parts:
Use wp_enqueue_script() to load external libraries and standalone scripts, instead of generating your own script header tags.
On admin pages, use the admin_print_scripts-[mypage] action hook to register the code on only your plugin’s page, not every admin page.
Both of those [...]