Nov 12 2008
Says you, gravy!
I’m on my NaNoWriMo death march, so posting through the rest of the month will be spotty, but in the mean time let me present you with a Dinosaur Comic that’s getting me through the day.
Nov 12 2008
I’m on my NaNoWriMo death march, so posting through the rest of the month will be spotty, but in the mean time let me present you with a Dinosaur Comic that’s getting me through the day.
Nov 04 2008
Would you like your friends to see how you’re doing in NaNoWriMo without having to look at a page other than your truly awesome blog? Well, I’m here to tell you how to do it the wrong way.
You heard that right, people. This is not the right way to do it. I mean, it works. You can see that on the side of the page. But it’s a hackity hack.
If you feel like putting more than 15 minutes into the entire process, you can come up with a better option. But if not, just drop this into your sidebar.
One note: Dreamhost doesn’t let you use the php file() method to get external URLs by default, so there’s a little hack in there to turn the option on, then turn it back off. If you’re not on Dreamhost, this may not be necessary. The methods to remove are the init_set() methods. Just so you know.
<?php
// Allow file() to open urls.
ini_set('allow_url_fopen', '1');
// Replace the url here with your own NaNoWriMo API url.
// Just log in, go to Fun Stuff->Word Count API and you can get it there.
$result = file('http://www.nanowrimo.org/wordcount_api/wc/418267');
// This is the hack part of the hack. The results come back in an array,
// and I hardcoded the correct index for the word count. There is probably
// a better overall way to do this. I don't care.
echo("I've written " . $result[10] . " of 50,000 words.");
// turn back off letting file() open urls.
ini_set('allow_url_fopen', '0');
?>
Nov 02 2008
Support the economy! You, too, must do your part to keep commercials on the air that use words that sound like “titty” 20 or 30 times in a 2 minute period! Please! BUY NOW!
Nov 01 2008
See? McCain isn’t that old. It’s clear Anna Nicole Smith, at least, is capable of, um, arousing him. And I suppose in Smith he has someone who actually makes Sarah Palin look smart in comparison.