A genuine Silicon Valley Web Flyer | One line of code at a time...

Foursquare Wordpress Plugin

This is my first plugin, so let’s see how it goes!

Usage (version 0.2)

Download the zip file and extract the contents to your wp-content/plugins directory. In your blog’s admin tool, activate the plugin.

Next, login to Foursquare and goto the feeds page. Find your RSS feed.

Copy it to the clipboard, and paste it into the Foursquare settings panel.

Finally, paste the following code in your sidebar.php file in Wordpress:

<?php echo foursquare_get_checkins(); ?>

Here is the working version of the plugin in action:

Pretty basic now, but there will be further revisions, I promise :)

Downloads and version history

  • Version 0.1 – Simple widget showing the latest 5 checkins with links back to venue pages – [download]
  • 0.2 – Added the ability to control the number of checkins you post. Also cleaned up the code a little bit. Still want to figure out how to eliminate duplicate checkins via strcmp() or array_unitque() functions in PHP. I want to add a Google map with the kml file and show checkins on a map – [download]

In further versions, I want to explore the Wordpress widget API. Instead of this being a plugin where you have to actually paste PHP code into your sidebar, I want to bring all the interaction into the admin panel.

I welcome further requests please! Email me or leave some comments below.

Here is the git repository for my Wordpress plugins.

Note: this blog post is still a work in progress, check back periodically for updates

Facebook redefines the name space



http://www.facebook.com/mager

Moving Alison Rosen to Wordpress

I am not a fan of Blogger. It can’t be hosted on your own server, and there is an element of control missing that Wordpress has and Blogger doesn’t.

So when I saw Alison Rosen using Blogger, I wanted to help her move to Wordpress, and start using her own domain name. I’m no designer, but here’s what I’ve come up with so far:



I got Facebook Connect up and running with the help of Disqus. Each post has the ShareThis plugin, in addition to the Tweetmeme plugin.

Also, moving from Blogger was a breeze. You login to Blogger within Wordpress and it just imports everything.

Another cool thing that I did is cached her Twitter feed. I modified this code to accept the JSON instead of an RSS feed. We are only hitting the Twitter API every ten minutes, instead of everytime someone hits the site.

Hope you like the site. I plan on building more things into it, and eventually trying to get a real designer to take a look at it.

Check out her demo reel, she is pretty funny:

I wanted to help her because she blogs A LOT. And she deserves to have a nice place for her to express herself, and for her audience to contribute. What do you think of the site?

Kamikaze Heart stretches out the mind

This Friday, I had the opportunity to watch amazing bay area talent in the play Kamikaze Heart, written by Tim Barksy.

The story starts out:

Once upon a time in a little place they used to call the City of Lights, there was a Boy who had a Heart Made of Gold…

Brava Theatre

I wasn’t allowed to take pictures inside, so I will have to explain it here. Imagine an urban circus. People flying back and forth on living room drapers, little people chasing tires, a love story, lots of dancing, acrobatics, painfully flexible but graceful stretching, a drum and xylophone two-piece, and a lots of laughs, oos, and aahs.

Brava Theatre, blurry though

I could say more, but I want you to see the show. It’s playing at San Francisco’s Brava Theatre in the Mission.

Click here to buy tickets for Kamikaze Heart.

Grilled Cheese tasting at Foodzie

My friends over at Foodzie invited me to a grilled cheese tasting this past week, and I didn’t know what to expect.

Grilled Cheese with salami, 1-year aged Vermont cheddar, and some bacon. And butter.

It was totally different than the pot-pie tasting I did at Chow last year.

Their startup is a marketplace for high-end artisan food vendors, so they get a lot of free food samples to try. This tasting was to decide if they would ultimately decide to offer some of these ingredients in their store. I was lucky to taste along.

A tradition at Foodzie tasting is to sign your name on a cork. Last week, Kevin Rose was at a tasting, and I got a picture of his cork:

Foodzie office

Read More »