slottedpig.info

05401, 05403, 05446, 05462, 05482, 05673, 05701, 37signals, 40hz, 2008, 2010, aardman animations, ac propulsion, adium, ads, aim, airport, al franken, algorithm, amazon, andy hertzfeld, animation, apache, apple, applescript, architecture, archive, art, article id, asterisk, at&t, atom, automobile, away message, backpack, badge, barack obama, basecamp, bash, beos, bernie sanders, bicycling, bill atkinson, billboard, blacklisting, blog, blogroll, blogzot, bluetooth, blunt, bluray, book, bookmarklet, bot-net, brad bird, browser, btv, bug, build, bungie, bunny, burlington, call of duty, camera, camping, can-spam, cars, centralized, channel camp, chocolate, classic, classic mac workshop, clothing, cms, collection, color classic, comedy, comedy central, comic, computer, concert, conversion, cookbook, corrosion, cowards way out, crack, crashing, creature comforts, criticism, daring fireball, darwin, dashboard, david byrne, dcl, death, delicious, derbi, design, development, digg, dilemma, discussion, disney, domain, download, drivers, dvd, dynetk, e-mail, e3, easter, ebox, eckhart, eckhart köppen, eckhart koppen, eddie izzard, edward gorey, einstein, election, electric motorcycle, electric motorsport, electric vehicle, electronics research laboratory, elmo, emate, emulator, encryption, environment, environmental impact, erin mckeown, escale, exploit, express 530t, expressionengine, feature, feed, feedburner, filtering, finance, firmware, fixdavsvn, flickr, flynn center, focus, font, food, ford, for sale, free, freeverse, freezing, fresh air, frog design, front row, fusion, games, gears of war, geek, geek technique, geocities, gmail, google, gpr, grammar, grant hutchinson, graylisting, gtd, hack, haiku, halo, hayao miyazaki, health, higher ground, highrise, hiking, hiroshi noguchi, history, hope, hotspot, html, html5, hulu, humor, hybrid, hybrid technologies, hypercard, intel, internet, interview, ipad, iphone, ipod touch, isao takahata, itunes, jabber, japan, javascript, jetblue, jfk, john gruber, john oliver, jon stewart, kid koala, launchd, layover, leopard, liberal, long trail, lorem ipsum, mac, macbook pro, macpaint, macworld, maczot, magazine, mail, maine, makkintosshu, marathon, marketing, mark hoekstra, matthias melcher, media, mesagepad, messagepad, microbus, microsoft, mobileme, model s, modern warfare, money, monitoring, moon river, motorola, movie, movies, mrtg, multitasking, music, mwsf07, mystic, nascar, ncx, nda, netflix, network, newton, newton os, newton press, newtontalk, newton x press, nick park, nitch, npr, on point, openpbx, open source, operation ivy, optimization, organic, os 6, os 8, os9, osheaga, osx, os x, owc, package, palm, password, patch, paul guyot, pbx, pdf, pesticides, photography, pico card, pilot, pixar, playstation, plist, plug-in, pod jungle, politics, productivity, ps3, psp, pump-and-dump, quickdraw, quicksilver, racism, rack-n-roll, radio, ratatouille, rebooting, recycling, remake, required reading, restoration, retrochallenge, review, roadster, room without a window, rss, scion, screencast, script, search, security, server, sesame street, seven days, shame, shelburne, shelburne museum, shirt, shoppinging cart, signature, simon bell, small dog electronics, snow leopard, social, software, solution, sony, spam, spam haus, startup item, statistics, status, stefano paris, stephen colbert, steve jobs, steven colbert, steven frank, studio 360, studio ghibli, subethaedit, subversion, susan kare, swiss, sync, syndication, sysmon, tablet, tags, tax, technorati, ted talk, television, terry gross, tesla motors, textpattern, the colbert report, the daily show, the flaming lips, the gashleycrumb tinies, the radiator, the world, times argus, titles, tkip, todd kollins, tom gage, trailer, travel, tree, trends, troubleshooting, truetype, twitter, typography, tzero, unicel, unna, update, upgrade, url title, user interface, v710, venue, verizon wireless, vermont, victor rehorst, video, virtualization, vmware, volkswagen, volvo 122, vpr, vw, wait wait don't tell me, wall-e, wallace & gromit, wavelan, web, web 2.0, webkit, web site, whitepaper, wifi, wikipedia, windows, winter warm-up, wireless, wpa, writing, wwdc, wwnc, xbox 360, xbox live, xhtml, yahoo, ze frank, zero emission

Technorati Chart for 'games'

Articles Tagged "games":

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=10#$(date +%Y)
month=10#$(date +%m)
day=10#$(date +%d)
username='cowardswayout'
password='somethingiwontleakhere'

if (( $release_year == $year && $release_month == $month && $day <= $release_day )); then
	if (( $day == $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.

Update: I’ve updated the script to prepend 10# to each call like $(date +%y) to force it to be evaluated as base 10 and also switched from using test (square brackets) to using the correct arithmetic evaluations (double parentheses).

Marathon Nostalgia (or, It Hits Xbox) ¬

2007-08-06

I won’t yet get into why I have an Xbox 360 or what the general consensus is, but I would like to say that I’ve recently purchased a couple Xbox Live Arcade titles that I absolutely love.

This weekend it is Bungie’s classic Marathon: Durandal. I first learned it was coming to Xbox Live as I saw it flash by in the E3 2007 Xbox Live Arcade Games Montage and was giddy as a school girl due to the fact that I’ve played some Marathon in my day.

Freeverse released this Marathon port mid-last week and I have to say that its fast-paced multiplayer action feels like it was originally intended for the Xbox 360 and Xbox Live! Plus, playing this in HD on very fast hardware is a quite the dream-come-true.

I had also picked up Prince of Persia Classic when it was released on Xbox Live Arcade as well. This too brings back memories of playing it on various classic Macs in my younger years. They did a great job of updating it with much better graphics and animations, but keeping the game-play and levels exactly as I remember them.

New developers have a lot to learn from the greats of yesteryear, so it’s good to see some of them making it back into the mass market. I think Cliff Bleszinski, lead game designer for Gears of War, is one of the few recent developers who “gets it”. Especially with regard to keeping controls simple and using context-sensitivity to his advantage (much like Prince of Persia). He also seems to have Bungie’s knack for focusing on making fun games.

To [Marathon] Infinity And Beyond! ¬

2006-05-22

I recently decided that it’s time to give up on my PSP. I definitely don’t play games on it and I rarely even use it for music in my car anymore. It’s time to replace it with something a little more practical and a lot more fun: my ‘Mystic’ Macintosh Color Classic. Oh, yes!

... And you think I’m kidding!

This weekend I fired up my Color Classic and decided it was time to set it for some nostalgic gaming: Marathon. After all, the entire Marathon Trilogy is now a free download! I’m currently upgrading to System 7.5.5, but once I’m done I’ll be happily yelling “frogblast the ventcore!” with dual-Enforcers in-hand!

There are other great games I will likely end up playing on my Color Classic, but Bungie’s are by far my favorite. They were quite original at the time, extremely fun (there’s nothing like Marathon LAN games), and Bungie was the game company I aspired to be when I was in the game development period of my life. I had played, although not completed, the Marathon games in middle school and high school, and feverishly stalked the development of Oni and Halo in high school and college.

Unfortunately, I do not plan on picking up an Xbox 360 (the PSP was not a good introduction to video games consoles for me), so I’ll likely never get to play through the Halo trilogy (yes, as of May 9 th, Bungie has announced Halo 3!). But their games, technologies, and stories will always interest me greatly.

For an extra little Marathon-related tidbit, read From ‘94 to Infinity: Before Halo in the latest issue of the escapist and Tuncer Deniz’s blog post: The Bungie Years – Part 1 (including some archival footage of the developers behind Marathon and the Chicago Bungie studio). An interesting coincidence that this should all show up the same week I decided to pick up Marathon again. :)