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 This Place Is a Prison, The Postal Service (10 Feb, 7:10 am)
- Listened to Your Ex-Lover Is Dead, Stars (10 Feb, 7:06 am)
- Listened to Interlude (Milo), Modest Mouse (10 Feb, 7:01 am)
- Listened to Let It Die, Feist (10 Feb, 7:00 am)
- Listened to Kreuzberg [Album Version], Bloc Party (10 Feb, 6:58 am)
- Listened to Dream Girl, Dave Matthews (10 Feb, 6:52 am)
- Listened to Lightness, Death Cab for Cutie (10 Feb, 6:45 am)
- Listened to Angeles, Elliott Smith (10 Feb, 6:41 am)
- Listened to Those to Come, The Shins (10 Feb, 6:38 am)
- Listened to Romulus, Sufjan Stevens (10 Feb, 6:34 am)
- Tweeted: RT @michaelneale: The day may come when I tire of parsing HTML with regex jokes, but that is not this day http://t.co/2scrTtLk # (10 Feb, 5:56 am)
- Tweeted: Going snowboarding on Sunday, snow or no snow! # (10 Feb, 5:42 am)
- Bookmarked Learn Python The Hard Way - One day I'll get around to this. (9 Feb, 8:32 pm)
- Tweeted: Second time this week. Amazing. (@ Krav Maga Training Center) http://t.co/FSUjUeWw # (9 Feb, 3:23 am)
- Tweeted: SF from Soma http://t.co/QzLahDt6 # (9 Feb, 2:21 am)
- Tweeted: W00t! I'll be seeing Radiohead live for the first time in March, right before #SXSW. Rawk! \m/ # (8 Feb, 10:27 pm)
- Tweeted: Flights purchased for #SXSW. Here we go again :) # (8 Feb, 9:34 pm)
- Tweeted: RT @raanan: congrats to @rahulvohra! and the whole @rapportive team -- once of my favorite services gets acquired by @linkedin: http://t ... # (7 Feb, 11:58 pm)
- Tweeted: First Siren Net Checkin - http://t.co/g6DSbTpc # (7 Feb, 8:49 pm)
- Tweeted: W00t! I just submitted my first HAM Radio report on SirenNet: http://t.co/CkK8jkXf # (7 Feb, 8:17 pm)
- Tweeted: RT @kwestin: Asking me to sign an NDA before having coffee to discuss your startup idea is like me asking you to buy condoms before I me ... # (7 Feb, 12:02 am)
- Tweeted: RT @wpdevel: 19842: Initial import of the Twenty Twelve theme, by Drew Strojny. This time ... http://t.co/sXxGNP6F # (6 Feb, 11:57 pm)
- Tweeted: OH: "my diaper has bling!" # (4 Feb, 11:55 pm)
- Tweeted: This was fun, a few weeks ago in Hawaii :) http://t.co/S95oQ0qk # (4 Feb, 12:35 am)
- Watched Fringe - s4 | e9 - Enemy of My Enemy on hulu.com (1 Feb, 5:51 am)
- Watched TMZ on TV - Steven Tyler Wrecks His Face on hulu.com (1 Feb, 1:41 am)
- Watched Touch - s1 | e1 - Pilot on hulu.com (27 Jan, 7:36 am)
- Watched Haven - s2 | e13 - Silent Night on hulu.com (27 Jan, 6:34 am)
- Watched Fringe - s4 | e8 - Back to Where You've Never Been on hulu.com (27 Jan, 5:33 am)
- Watched Ctrl on hulu.com (27 Jan, 5:21 am)





















