Entries tagged “facebook”

California FAQ

Katie and I are “officially” moving to California. A lot of people have been asking questions about this, so I’ll try to create a FAQ:

Why are you moving?
Short answer:
I got a job at Yahoo!/Delicious
Long answer:
I work on the symfony project a framework that makes building quality web sites easier. I will be contributing to this project in a way that is beneficial to Yahoo!. Furthermore, Katie and I are looking for an adventure. Moving out of our home in Minneapolis and into a new part of the country will be a big adjustment for us.
Where in California are you moving?
We are moving to the San Francisco Bay area. We will find a place when we arrive. We will likely be in Mountain View or if we can find some place affordable, the City of San Francisco.
When are you moving?
We are moving in early November. I start my job in mid-November.
That's really soon?
Yes! I know!
What will you do with your house?
We own a duplex, we'll rent out the half we live in. We're also finishing up our attic as I type. Initially our good friends Marc and Sadie will live here.
What about your cats?
We are not sure. They will eventually join us in California, but we are not sure if they will come with us right away in November, or later.
You're going to have a going away party?
Of course, just email me
What about your car/bikes?
Car is being shipped to CA. We bike a lot and intend to do so in California, so we'll be moving our bikes as well.
Are you excited?
Yes.
What is Katie going to do?
We will be getting an apartment that has a pool. I can only imagine she will spend her days making daiquiris sitting by the pool.
</dl>

Read full post
Facebook Markup Language: the Dashboard and Action links

[tags]facebook, fbml, apps, reviewsby.us, symfony, sfFacebookPlatformPlugin, plugins[/tags]

Read full post
The Namesake

Like a good second generation Desi I saw The Namesake after recently completing the novel. Both are very good and I recommend reading the book and watching the movie, although not necessarily in that order.

The following should not spoil the movie much, but are some criticisms that Katie and I had.

  • The numbers don’t add up. The ages mentioned in the movie do not make sense (i.e. the mother (Ashima) being nearly 45 and talking to her son (Gogol) who is at least 10 years older than her when she got married just doesn’t make much sense.
  • In the movie he graduates in 1996, but his graduation gift is dated as June 1995.
  • When Gogol is flying to India the first time, they have some placements of the Northwest Airline logo, you know… back when it was Northwest Orient Airlines and the logo looked more like this:
    Northwest Orient Airlines
  • Of course, it also seemed that a lot of parts of this movie would be hard to understand without reading the book (or for that matter having a vague understanding of Bengali).

The movie however, was very good overall. The book is much better, as books tend to be, because they convey things that movies cannot. It really struck a chord with me, making me want to be with my family more, and reflect on my life (albeit my life is not nearly as bittersweet as Gogol’s).

Read full post
Make Adium show your Facebook status

By using a simple RSS feed, you can have Adium report your Facebook status.

I am a late-adopter to social networks. I participated in LiveJournal years after many of my friends started using it. I finally got into Facebook months after it was “openned up.” I like this strategy because I can immediately find my friends on the network and add them and amass 100s in a few short days.

Facebook is nice for its simple and clean interface. Even the features are fairly simple. I like the status feature… for no good reason. It’s a simple AJAX status update that updates your status on the site. What I don’t like to do is repeat myself. I wanted Adium to repeat what Facebook said.

My first inkling was to use the Facebook API, but that seemed less appealing since it would involve authentication. I almost gave up and then discovered that in Facebook you can go to “My Profile” and under “Status” go to “See All” and there’s an RSS link to your status messages. Awesome. All I needed to do is grab the first one.

I decided this looked like a task for Simple XML which can take an XML string and turn it into a PHP object.

The first step of course was to fetch the RSS feed into a string. file_get_contents made the most sense, but Facebook does a browser check even for getting RSS feeds. I’m not fond of browser sniffing, but its easy to work around if you use cURL.

Excellent… this does exactly what I want - but it’s slow. Like any good script, we should use caching if it makes sense. Obviously we don’t want to overload the servers at Facebook (or for that matter any place that serves up RSS feeds) so we implement PEAR’s Cache_Lite package. We’ll tell it to cache results for 15 minutes. The code changes are marked with //+++ at the end of each new line:

That’s it on the PHP side. On the Adium side you’ll need to use the exec AdiumXtra. It’ll allow you to set your status to something like:

/exec {/usr/local/php5/bin/php /usr/local/bin/facebook.php}

Enjoy.

Read full post