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: OMG. Ugh. Sucks, but still happy the Niners got this far. Next year. # (23 Jan, 3:47 am)
- Tweeted: Getting live updates on the 9ers game via Yahoo Sports in the car coming back from Tahoe. Killin me! # (23 Jan, 3:27 am)
- Tweeted: Awesome day snowboarding. Starting to get the hang of it. # (23 Jan, 12:25 am)
- Tweeted: Doin it! (@ Northstar-at-Tahoe) http://t.co/JzXGl6Hb # (22 Jan, 9:54 pm)
- Tweeted: Hella snow in Tahoe. # (21 Jan, 8:18 pm)
- Tweeted: This is more like the weather I'd expect in SF in Jan. # (21 Jan, 1:19 am)
- Listened to Blinking Pigs, Little Dragon (21 Jan, 12:43 am)
- Listened to What's My Age Again?, blink-182 (21 Jan, 12:40 am)
- Listened to Damage, You Am I (21 Jan, 12:18 am)
- Listened to Since You've Been Gone, Powderfinger (21 Jan, 12:14 am)
- Listened to I Can Talk, Two Door Cinema Club (21 Jan, 12:10 am)
- Listened to Katie, Missy Higgins (21 Jan, 12:07 am)
- Listened to All My Friends, LCD Soundsystem (21 Jan, 12:03 am)
- Listened to Daniel, Bat for Lashes (20 Jan, 11:56 pm)
- Listened to We Fight For Diamonds, Cut Copy (20 Jan, 11:52 pm)
- Listened to The Day You Come, Powderfinger (20 Jan, 11:51 pm)
- Tweeted: #burritofriday. Finally. So hungry. (@ Taqueria Cancun) http://t.co/3wMEcpdw # (20 Jan, 10:27 pm)
- Watched The Colbert Report - s8 | e46 - Wed, Jan 18, 2012 on hulu.com (20 Jan, 6:10 am)
- Watched The Daily Show with Jon Stewart - s17 | e46 - Wed, Jan 18, 2012 on hulu.com (20 Jan, 6:01 am)
- Tweeted: "Nerds? Really? More like 'Experts'" -- @TheDailyShow # (20 Jan, 5:50 am)
- Watched The Ellen Show - Uggie the Dog Does Tricks for Ellen! on hulu.com (20 Jan, 5:06 am)
- Watched Late Night with Jimmy Fallon - Tebowie on hulu.com (20 Jan, 5:03 am)
- Tweeted: First gym in 3 months. Ouch. (@ Krav Maga) http://t.co/JB0swpFo # (20 Jan, 3:42 am)
- Tweeted: RT @rboren: You should never be embarrassed by your country or your representative. Are they you? Do they speak with your voice? You hav ... # (19 Jan, 4:25 am)
- Tweeted: Holy carp I just spent a bunch of money at Sports Basement buying snow stuff. # (19 Jan, 4:02 am)
- Tweeted: RT @benhuh: http://t.co/G5w38xwt is now joining the protest tomorrow! http://t.co/bHlMi99u # (18 Jan, 2:24 am)
- Tweeted: I just ate a deep fried ball of Mac n' Cheese. It was approximately as amazing as it sounds. # (17 Jan, 8:34 pm)
- Tweeted: RT @pmaiorana: http://t.co/qDLNyMUz VIP Developer Training Workshop: March 2012 http://t.co/Ea2D3epn via @wordpressdotcom # (17 Jan, 3:21 am)
- Tweeted: I just pre-ordered: 'Making Mirrors' by Gotye via @amazon http://t.co/p1hxx5Ur # (16 Jan, 6:38 pm)
- Tweeted: RT @mattb: the internet's subconscious made a video. this is the best thing I've seen all week. http://t.co/NiCNIRpD # (16 Jan, 4:56 pm)






















