Skip to content

Month: February 2013

What does 200 calories look like?

200 Calories-worth of Bagel

I’ve been on a bit of a diet recently – trying to drop about 20lbs or so before my 40th birthday in May.  So far I’ve been keeping it simple – mostly portion-control and smart food/drink choices.  I’ve been laying off the booze (although that’s partly a function of being busy in other aspects of life), sticking mostly to water rather than iced-tea or soft drinks, I have been keeping cookies and other snacks out of the house, and generally trying to eat lots more vegetables and lots fewer carbs.

I’ll write more about that and my progress separately, but because of all of this, I found this series of photos interesting.


Introducing: OC me

 I’ve been playing around with the OC Transpo Live Next Bus Arrival Data Feed API and built a simple little mobile web site that will tell you when the next bus is coming for your stop.  Check it out: OC Me

Simply enter a stop number and click Get Routes, or if you have geolocation enabled on your mobile device, you can find a stop close to you on a map.  The application will get live GPS and schedule data from OC Transpo, and tell you which buses are coming soon, with an estimated arrival time.

This was all built in JQuery Mobile, and has only been tested to work on my iPhone 4.  I have no idea how well it works on other platforms.  On the backend it’s PHP, and I’ve written some xml-caching functions so I don’t overload my API calls to the Live Data Feed API.  The app is mostly bilingual, but the current translation is probably pretty bad (I have a translator girlfriend who promises she’ll help me fix it up at some point soon).

No doubt there are plenty of other bus tracker apps out there for OC Transpo, including their own official iOS app, and many of them have far more features than I intend to build into mine.  I built this mostly as a personal proof-of-concept project, but I figured I’d throw it out there for others to see anyway.

I will post the code to GitHub soon in case anyone wants to see how it was built and perhaps build one of their own.