'Why do we have an IMG element?' ¬
2009-11-03
Mark Pilgrim traces the history of HTML’s IMG element:
[…] all the way back, 17 years, through the Great Browser Wars, all the way back to February 25, 1993, when Marc Andreessen offhandedly remarked, “MIME, someday, maybe,” and then shipped his code anyway.
Right up my alley.
[Via Grant Hutchinson]
Automating Countdown Tweets with Bash ¬
2009-11-02
Modern Warfare 2 will be out in a few days, so I felt @cowardswayout should count down to the release day. I could spend a few minutes at some point during each of the next few days—assuming I can remember to—posting a nearly-the-same message to Twitter or I could automate it. Yeah, better automate.
In trying to keep my bash-fu hightened, I tossed together the following bash script:
#!/bin/bash# # mw2_countdown # # Post countdown to Modern Warfare 2 release to Twitter every day #release_year=2009 release_month=11 release_day=10 year=$(date +%Y) month=$(date +%m) day=$(date +%d) username='cowardswayout' password='somethingiwontleakhere'if [ $release_year -eq $year -a $release_month -eq $month -a $day -le $release_day ]; then if [ $day -eq $release_day ]; then printf -v message "Modern Warfare 2 (http://bit.ly/dQMPz) is out! Go get your copy!" else printf -v message "Modern Warfare 2 (http://bit.ly/dQMPz) in %s..." $(( $release_day - $day )) fi curl -u $username:$password -d status="$message" http://twitter.com/statuses/update.xml fi
Since I host with Mac OS X Server and am anal about doing things “The Mac Way”, I whipped up a launchd job to run it every morning at 1am:
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.cowardswayout.mw2_countdown</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/mw2_countdown</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>1</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>
As you can see, I installed the bash script in /usr/local/bin/mw2_countdown and the launchd job went in /Library/LaunchDaemons/com.cowardswayout.mw2_countdown.plist.
I changed the permissions so that only root has read/execute access to the bash script, since the Twitter account password is stored in plain text:
sudo chmod 700 /usr/local/bin/mw2_countdown
And loaded the launchd job:
sudo launchctl load /Library/LaunchDaemons/com.cowardswayout.mw2_countdown.plist
Now I only have to remember to remove the bash script and launchd job sometime after 11/10/09. Naturally, this script can be easily tailored to your own needs.
Netflix Coming to PS3 ¬
2009-10-26
I love Netflix on my Xbox 360. Killer app, esp. considering I can pause what I’m watching and resume it on my MacBook Air. Oh, and browse for and add movies to my Instant Queue from either.
Now it’s coming to the PlayStation 3. Oddly, it’ll comes on a disc which you can reserve now. Notes about Netflix being “exclusive” on the Xbox 360 console are no longer present on Xbox.com.
I’d highly consider the PS3 w/Netflix. Blu-ray would be nice. I’d miss Gears of War & the Xbox 360 controller. It’d be an even sweeter deal if they hadn’t dropped Linux support in the PS3 slim.
[Via Jon Hicks]
Long Live Geocities ¬
2009-10-26
Archive Team’s Project Geocities has been archiving Geocities content under the geociti.es domain.
I also archived Newton-related Geocities sites for UNNA.
[Via NewtonTalk]
Geocities is Dead ¬
2009-10-26
Fake AP Stylebook ¬
2009-10-23
@FakeAPStylebook. Choice tweets include:
On first reference, use “retweeted.” On subsequent references, you may use “RTed,” “copied” or “had nothing original to say.”
And:
According to our technology writer, “Disc” refers to optical media while “disk” refers to magnetic media. NERD.
Not to mention:
While it’s tempting to call them “baristi” because of the Italian roots, the plural of “barista” is “journalism majors.”
[Via Grant Hutchinson] (I’m not sorry.)
First Rule of Twitter ¬
2009-10-16
The first rule of Twitter should be: don’t follow celebrities. It only encourages them. Don’t do it.
[Via Paul Guyot]

