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)!
- Tweeted: RT @BestAt: RT @kellyoxford: That first glance you catch of yourself in the mirror at 6am, that's the real you. # (23 May, 5:53 pm)
- Tweeted: RT @michiokaku: Congratulations to SpaceX for yesterday's successful launch. The future of commercial space exploration depends on launc ... # (23 May, 5:51 pm)
- Listened to Leave My Body, Florence + the Machine (23 May, 5:28 pm)
- Listened to Seven Devils, Florence + the Machine (23 May, 5:26 pm)
- Listened to All This and Heaven Too, Florence + the Machine (23 May, 5:21 pm)
- Listened to Shake It Out, Florence + the Machine (23 May, 5:16 pm)
- Listened to Spectrum, Florence + the Machine (23 May, 5:12 pm)
- Listened to Breaking Down, Florence + the Machine (23 May, 5:05 pm)
- Listened to Never Let Me Go, Florence + the Machine (23 May, 4:55 pm)
- Listened to Shake It Out, Florence + the Machine (23 May, 4:51 pm)
- Listened to What the Water Gave Me, Florence + the Machine (23 May, 4:46 pm)
- Listened to Spectrum, Florence + the Machine (23 May, 3:27 pm)
- Tweeted: RT @djcp: I think I may've gotten a (trivial but bug fixing) patch accepted against the #wordpress core. Fun. # (22 May, 10:08 pm)
- Tweeted: Recent surveys show Australia as the "happiest" and fastest growing OECD nation. BOOM. # (22 May, 9:33 pm)
- Tweeted: Took me a minute to click or I'd have said hello, but pretty sure I just randomly walked past @tferriss. Hi Tim! # (22 May, 7:22 pm)
- Tweeted: #wpsfo meetup! (with @chexee and Evan at @Exygy) — http://t.co/pJR1tn0N # (22 May, 1:07 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)
- 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)






















