A few different people have asked me recently how I created the activity stream/life stream you see in the sidebar of Dented Reality. It’s actually really simple, and all it does is load up the feeds from a few different locations, combine them in date order and then output them on my page using an HTML “UL” (unordered list). Based on the source of each feed, it also adds a CSS class to each list element (LI) so that I can add an appropriate icon. Here’s the complete code that I use, and then I’ll explain some parts of it, and some of what makes it tick: Read the rest of this post…
Me, Live (ish)!
- Listened to Létoile (feat. Max the Sax), Parov Stelar (22 May, 5:01 pm)
- Listened to Distance (feat. Lylith), Parov Stelar (22 May, 4:58 pm)
- Listened to Charleston Butterfly, Parov Stelar (22 May, 4:55 pm)
- Listened to Afternoon Breaks, Parov Stelar (22 May, 4:41 pm)
- Listened to The Fusion, Parov Stelar (22 May, 4:37 pm)
- Tweeted: #wpsfo meetup! (with @chexee and Evan at @Exygy) — http://t.co/pJR1tn0N # (22 May, 1:07 am)
- Listened to Lost in Amsterdam, Parov Stelar (22 May, 12:28 am)
- Listened to Little Lion, Parov Stelar (22 May, 12:25 am)
- Listened to Promises (feat. Klaus Hainy), Parov Stelar (22 May, 12:21 am)
- Listened to Odessa, Parov Stelar (22 May, 12:18 am)
- Listened to Sometimes, Parov Stelar (22 May, 12:15 am)
- Tweeted: Amazing projection technology for smartphones, coming "soon": http://t.co/5Y3bGZ8a # (21 May, 9:10 pm)
- Tweeted: Apparently my barista just stopped a guy from breaking into his friend's car and had to giv... (at Contraband Coffee) — http://t.co/2bYAWvfU # (21 May, 8:53 pm)
- Tweeted: The Chase Sapphire Preferred Visa card has an aluminum core. Enough to block a Clipper Card signal :) # (21 May, 5:11 pm)
- Tweeted: Watching Total Recall. Total flashback :) # (21 May, 3:39 am)
- Tweeted: Canadian maple + "I ❤ US EH". Awesome. [pic] — http://t.co/ChVE0ZF0 # (20 May, 9:35 pm)
- Tweeted: RT @Ross: RT @NatGeo: Find out how you can see tonight's "ring of fire" solar #eclipse: http://t.co/no6FxHn6 #ringoffire # (20 May, 8:03 pm)
- Tweeted: This is not a large container. (at Nob Hill Manor) [pic] — http://t.co/AbqFAg5K # (20 May, 7:20 pm)
- Tweeted: Sweet Ride. @ Cordon Bleu http://t.co/TYqu7buY # (20 May, 2:00 am)
- Tweeted: “@BreakingNews: Facebook founder and CEO Mark Zuckerberg marries longtime girlfriend - @AP” *Now* he can afford the wedding? ;) # (20 May, 1:55 am)
- Tweeted: RT @munidiaries: (new) Someone saw two guys putting up the fake ads on Muni! via @missionmission http://t.co/FsvYZf7M # (20 May, 1:50 am)
- Tweeted: #asianheritagestreetcelebration #longesthashtagever # (19 May, 8:38 pm)
- Tweeted: In Seshen @ Asian Heritage Street Celebration http://t.co/74iH0mld # (19 May, 7:57 pm)
- Tweeted: OMG so hot in here. Lucky we brought the party! (@ The Ambassador w/ 3 others) http://t.co/qXgqufzg # (19 May, 6:57 am)
- Tweeted: Getting dark. Looking good SF. (at @ICMarkHopkins) [pic] — http://t.co/BvQrdaec # (19 May, 3:52 am)
- Tweeted: And this. http://t.co/UOp9ewtq # (19 May, 3:04 am)
- Bookmarked Open Graph Parser - A PHP library based on an RDFa parser, for parsing Open Graph tags out of a webpage/string. (17 May, 1:41 am)
- Bookmarked OSXNotes - Brilliant set of CLI commands and keyboard shortcuts etc for Mac OSX (10 May, 6:24 pm)
- Bookmarked Mom’s Apple Cake - Recipe for a delicious-looking apple/cinnamon cake. (30 Apr, 4:27 pm)
- Bookmarked BrooklynVegan - Music, events, photos and more from things going on in Brooklyn. (24 Apr, 9:41 pm)





















