Archive for March, 2008

Jaiku Planet Venus Filter

12 March 2008

Just started exploring Jaiku and, coincidentally, Planet Venus. One of the cool things about Jaiku is that it aggregates your other web presences (like your blog, twitter, del.icio.us, and flickr posts) and integrates them into Jaiku presence stream. The down side of this is that it's not as good at that as Planet Venus, and then if you use Planet Venus to create a aggregation of your web presences and you include Jaiku, then you've got annoying duplication.

So, I'm not much of a Python programmer, but I wrote this Planet Venus filter that looks at each entry, and if it detects that it's a Jaiku presence update, it only includes it if it originated via Jaiku. In other words, it filters out all the duplicates.

If you understood any of that, you may find this helpful. If not, nevermind.


"""
For jaiku presence entries, only retain entries that originate from jaiku
(as opposed to grabbed via web feeds)
"""
import sys, xml.dom.minidom
entry = xml.dom.minidom.parse(sys.stdin).documentElement
entry_id = entry.getElementsByTagName('id')[0].firstChild.data
for node in entry.getElementsByTagName('link'):
if node.getAttribute('rel') == 'alternate':
entry_link = node.getAttribute('href')
break
if entry_id.find('jaiku.com/presence') > 0 and (entry_id != entry_link):
sys.exit(1)
print entry.toxml('utf-8')

(Updated to fix a bug on line 11.)

Nick's Zappa Playlist

10 March 2008

I twittered about an amazing playlist (or iMix, if you will) of Frank Zappa tunes that Nick Bradbury published, but it appears that iTunes has deleted the iMix because Zappa is no longer on iTunes. But it's an amazing playlist, so here it is:

  1. Peaches In Regalia, Hot Rats (1969)
  2. Camarillo Brillo, Over-Nite Sensation (1973)
  3. My Guitar Wants To Kill Your Mama, Weasels Ripped My Flesh (1970)
  4. Maggio, The Man From Utopia (1983)
  5. St. Alfonzo's Pancake Breakfast, Apostrophe' (1974)
  6. Echidna's Arf (Of You), Roxy And Elsewhere (1974)
  7. Mother People, We're Only In It For The Money (1968)
  8. Cocaine Decisions, The Man From Utopia (1983)
  9. Five-Five-Five, Shut Up N' Play Yer Guitar (Disc 1) (1981)
  10. Can't Afford No Shoes, One Size Fits All (1975)
  11. G - Spot Tornado, Jazz From Hell (1986)
  12. Dumb All Over, You Are What You Is (1981)
  13. Teen-Age Prostitute, Ship Arriving Too Late To Save A Drowning Witch (1982)
  14. Sleep Dirt, Sleep Dirt (1979)
  15. Tell Me You Love Me, Chunga's Revenge (1970)
  16. Pygmy Twylyte, Roxy And Elsewhere (1974)
  17. Baby Snakes, Baby Snakes (1983)
  18. Electric Aunt Jemima, Uncle Meat (1969)
  19. Po-Jama People, One Size Fits All (1975)

Enjoy!

Unfortunate Coplacement of the Day

3 March 2008

Mind in the gutter!