‘Tis the season (for Google Live Updates)
‘Tis also the season for Christmas carols on the radio (already? Really, guys?) and animated snow on WordPress’s login page. (I swear to God I’ll switch over to Blogger if they pull that next year.)
Google recently unveiled their Updates feature, which is pretty if not spectacularly useful.
An impressive demonstration is the results for Christmas. I think this, better than any Internet-stats page I’ve ever seen, shows the sheer size of the Web, and specifically Twitter. People are tweeting about Christmas as fast as I can read it, and there’s still more than a week to go. (So seriously, cut it out with the carols.)
78 exabytes is a big number (thanks, Discover!), but it doesn’t drive home the personal aspect as well as the buzz of live Twitter updates does. Of course, it’ll be noisier still as the week progresses…
Fun fact: I’m actually Jewish, but Hanukkah doesn’t generate quite the same buzz for some reason.
Add comment December 14, 2009
SI units: because 9,192,631,770 is such a round number

(Click for full 1024×768 image)
Note: The kilogram is technically defined only from the ridiculous lump of metal in a vault in France. The thing with water is the traditional, imprecise definition, but I included it for the sake of explanation (maybe the second’s definition as a fraction of a day should be in there, but ah well.) I used the American spelling of
“meter”, but the quotes (both from Wikipedia) use the official international spelling.
Interestingly, the main complaint with the SI system seems to be that “amount of substance” isn’t a proper physical quantity.
What’s the matter, guys? I thought you liked arbitrary big numbers?
Hmm. I should note, too, that it’s still a far better system than anything else out there, before the powers-that-be force me to use Furlong/Firkin/Fortnight instead.
I want a t-shirt with “Fuck the International Prototype Kilogram”.
4 comments December 6, 2009
Chickens, turkeys and raptors, oh my!
Take a look at this graph: (via Google: Insights for Search, slightly modified)
Which bird wins? Well, the chicken (red) has the best overall search volume, but Thanksgiving pushes turkeys (blue) right up to the top.
This makes sense. Thanksgiving is more closely associated with turkey than with gratitude.
But what of that yellow line? Raptors deserve more attention. I tell ya, birds these days got no respect for their heritage.
Just imagine if xkcd used chickens.

(from xkcd)
(chicken from Wikimedia Commons)
Add comment November 29, 2009
The “Hello World” from Hell, with exponential backslashes!
print eval("\"He\"+eval(\"\\\"ll\\\"+eval(\\\"\\\\\\\"o \\\\\\\"+eval(\\\\\\\"\\\\\\\\\\\\\\\"Wo\\\\\\\\\\\\\\\"\\\\\\\")+\\\\\\\"r\\\\\\\"\\\")+\\\"l\\\"\")+\"d\"")
All those backslashes are escaping each other, in order to escape the “.
To explain: in Python, the eval() statement evaluates a string as source code. eval(“5″) returns 5. Of course, this leads to messiness when you nest eval()s. For example: eval(“[5, eval(\"4\")]“) returns [5, 4].
Further reading: “Escape Artist” by our good friend xkcd.
But look at that code at the top of the post. Couldn’t we automate the process of typing up all those backslashes?
Sure!
(more…)
1 comment April 21, 2009
Doodlemaker: colorful random walk in Pygame
I should have posted this long ago. It was a big reason I got a blog.
Source code:
http://pastie.org/442885.txt
This has much more documentation than most of my scripts, but still not enough, really. If you have any questions at all, feel free to ask here or via email.
2 comments April 10, 2009
“Tabula Rasa” got published!
http://www.365tomorrows.com/04/09/tabula-rasa/
The wonderful site 365 Tomorrows puts a new “flash fiction” (defined here as 600 words or less) sci-fi story up every day. Some are written by staff writers for the site, but many (like mine!) are taken from submissions. Please feel free to leave feedback either here or on the 365 Tomorrows forum.
Tabula Rasa
I look around, one last time, at the empty apartment and the packed bags.
One last time? Nicholas Jameson will see those old, beat-up duffels often, but I can’t think of him as being me. As being real. It isn’t my new face I see in the mirror, courtesy of Tabula Rasa’s plastic surgery, it is his. It isn’t my brand-new driver’s license in my pocket, it’s Jameson’s.
Still, I tell myself it was worth it as I begin to feel sleepy. “‘Tis better to have loved and lost…” Bullshit. What did Tennyson know about loss? Better a new life, a new person, than this wretched loser. I try to silence my doubts, but if life is so terrible without Her, how can I live without even her memory?
I won’t. Nicholas Jameson will. I’ll fall asleep, and the nanobots will go to work on my amygdala. Nicholas Jameson will wake up, happily ignorant of the breakup, the obsession, the thousand unsuccessful drinking binges…
As my eyes begin to droops, I look around desperately for a pen, for some way to tell this new person who he once was…
—
Nick Jameson woke up in the middle of leaving for a new apartment. Making a mental note to get more rest, he checked to make sure nothing was forgotten. The raise had come as a bit of a surprise, but Nick had always been a hard worker. He could hardly wait to make the spacious new apartment his home.
“Well, time for one last check,” he muttered, wandering into the small bedroom. He looked under the beds, on the bedside table, in the drawer–
Nick froze. His mouth was dry, and there was a ringing in his ears. What the hell? It was just a photograph, no doubt left by the previous occupants. Strange that he’d never noticed it. It was of a happy couple, holding hands and basking in love. It was a cheerful picture, so why did he feel so sad? It wasn’t jealousy… Meh. A mystery for another time.
Turning to leave, Nick Jameson suddenly grabbed the photo and shoved it into his pocket. No point in leaving it behind, after all.
Add comment April 9, 2009
“Hooke’s Revenge” ping-pong ball gun

Named after Hooke’s Law, which describes the force exerted by a stretched or compressed spring (for you non-physics-nerds out there).
You turn the wrench at the top of the image to rotate the bolt and pull back the spring with the wire. The other wrench, held to the board, ratchets to prevent the bolt from turning the other way. The pin can be pulled out with that red loop to allow the spring to release, launching the ping-pong ball (not shown) into the air. The ball sits in that V-shaped thing at the end of the spring.
Time to build: ~3 hours planning, 2 hours getting supplies, 4-5 hours building
Range: 15-20m maximum
Epicness: 1336.8 (there are some issues with keeping the spring straight while winding)
Add comment April 7, 2009
Google Calculator via Python
(Wow, a month? Sorry, guys.)
Randall Munroe of xkcd (fantastic comic by the way) requested a command-line interface to Google Calculator (which is a fantastic tool if you don’t use it), and I delivered.
An example of Google Calculator:
(radius of Earth * 2 * pi) / the speed of light = 0.133675091 seconds
Of course, nobody wants to fire up a big, slow web browser just to do some calculations. The solution, thanks to my modest Python skillz:
The script will, by default, loop and repeatedly ask for input:
C:\Python26\googcalc>googcalc.py
> 2+2
2 + 2 = 4
> 17 meters in microparsecs
17 meters = 5.50932003E-10 microParsecs
>
You can also ask it to evaluate a single input string:
C:\Python26\googcalc>googcalc.py "17 meters in microparsecs"
17 meters = 5.50932003E-10 microParsecs
C:\Python26\googcalc>
It handles bad strings nicely:
C:\Python26\googcalc>googcalc.py "does not compute"
Google Calculator results not found.
C:\Python26\googcalc>
4/8/09: I’ve created a few versions:
Original: (takes an argument string) 441441
Interactive: (repeatedly loops, asking for input) 441428
Hybrid: (takes an argument, defaults to loop if none given) 441432 (recommended)
Randall now has this aliased to “c” for easy access; this is effectively the xkcd Seal of Approval :)
5 comments April 7, 2009


