L0K8 – A Simple Location Service For Twitter
This weekend I banged out a very simple location service called L0K8. It consists of a small (1.1MB) Windows download. You install & run, it pops up a web page, you give it your twitter username & password, and now as you move from place to place your Twitter location will change to follow you. And of course you can follow L0K8 on twitter to stay up to date with developments.
It was really fun and refreshing to go soup-to-nuts in 12 hours, something that I’ve done before with PBwiki, SingleStat.us, QuickFinger, and FailStamp, but this is my first “single session hack” that involved both a desktop client and a web service. I used ActiveState‘s PerlTray to make a simple Perl script into a system tray executable then installed with NSIS. I can provide source if people are interested. The server backend is in PHP and uses libcurl to post Twitter updates and GeoIP to do the location lookups.
The desktop app sits resident and every five minutes pulls the update URL (http://l0k8.com/update.php) to fetch a JSON array of simple info about the user’s current location. If the location has changed since the last update, the app then presents the new location to the user and the server posts the update to Twitter if the user has associated their L0K8 account with a Twitter username and password. Multiple installations can be used by the same account and each install is labeled (e.g. with the name of the computer).
This was designed to be the simplest possible incarnation of the server that could work and I think it is a very exciting baseline that could be built out substantially as a simple presence redistribution point. I’m tempted to explore ways to virally engage people with L0K8. If you have feedback, let me know!