Archive for November, 2011

What are you doing with your talent and energy?

Bill Gates to members of the Harvard community:

I hope you will reflect on what you’ve done with your talent and energy. I hope you will judge yourselves not on your professional accomplishments alone, but also on how well you work to address the world’s deepest inequities, on how well you treat people a world away who have nothing in common with you but their humanity.


Google Reader export to bookmarks.htm

I was one of the small group of Google Reader users who actively used the sharing functionality before Google killed it with their latest upgrade. While the number of people I shared with was small, the quality was incredibly high. I don’t blame Google for wanting to consolidate their social graphs (makes sense to me), but I will miss the conversations I had there.

A friend asked me if I knew how to export the shared items JSON file to a standard bookmarks.htm file. I didn’t, but I managed to whip up a quick PHP script to do the trick. Here’s the code for anyone who is interested.


// bump this limit up as it can be quite memory intensive if you have a lot of shared items
ini_set('memory_limit', '64M');

// update to use your own file here
$json_file = "/tmp/shared-items.json";

// output the std header
echo <<< EOT
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

$json = json_decode(file_get_contents($json_file));
echo "<DL>\n\t<DT>";
foreach ($json->items as $item) {
    echo '\t<A HREF="'.$item->alternate[0]->href.'" ADD_DATE="'.$item->published.'" LAST_VISIT="'.round($item->crawlTimeMsec/1000).'" LAST_MODIFIED="'.$item->updated.'">'.utf8_decode($item->title).'</A>\n';
echo "</DL>";