Tom Morris

03
Dec
2006

Podcast #1: Semantic Web and RDF

Here’s my first new podcast. It’s a kind of waffly monologue about the SemWeb and RDF space. I’d say it’s pretty good for my first proper podcast.

Some links are necessary, no?

icon for podpress  Standard Podcast: Download

26
Nov
2006

XPath: UCL Admissions

I’d like eventually to have a simple way of getting data from all the UK universities admissions departments. Considering that I’m not particularly bothered about getting any more degrees, I’m not totally sure why. But it certainly would be useful.

So, here are some XPaths for one college - namely, UCL.

First up, the undergraduate page:

Course Titles: //tr[count (td) = 5]/td[1]/a
Course Type: //tr[count (td) = 5]/td[3]
Course Code: //tr[count (td) = 5]/td[5]

Secondly, postgraduate admissions:

Courses: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]
Links: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]/td[1]/a
Qualification: //tr[count (td) = 3 and @height = '12' and td/@height != "25"]/td[3]

Now, universities. Get your act together and make all this information available in an open XML format and stop me having to write these blog entries!

26
Nov
2006

XPath: MySpace

Want to get data out of MySpace? Here are the XPath strings you need to extract data from a MySpace profile:

Top friends:
//table[4]/tr/td/table/tr/td/table/tr/td/table/tr/td/a/img/../@href
Name: //*[@class='nametext']
Status: //*[@id='ProfileStatus:']
Religion: //*[@id='ProfileReligion:']
Zodiac Sign: //*[@id='ProfileZodiac Sign:']
Smoke / Drink: //*[@id='ProfileSmoke / Drink:']
Children: //*[@id='ProfileChildren:']
Education: //*[@id='ProfileEducation:']
Number of friends: //*[@class='redbtext']
Schools: //a[contains (@href, "InterestType=SCH&")

And if you want to get the friends from your friends page:

//a/img/../@href

The problem with this is that MySpace uses a paging mechanism written in JavaScript (just to switch the pages - it doesn’t do anything funky or AJAXy to get the data down and switch it dynamically - it’s just bloat basically) - it is probably easy enough to skip around, but I haven’t spent the time to look under the JavaScript hood since the crazy HTML was enough for me!

When running XPath queries over MySpace, it’s probably a good idea to set your parser on the most ultra-liberal mode you can find, because MySpace is probably the most expensive pile of non-validating crap around.

06
Oct
2006

YouTube and the future of television

Alan Yentob asked “why is YouTube important?”Here’s what I think.
Formats available: Quicktime (.mov)
Tags: ,

15
Sep
2006

Why the iPod will continue to dominate

With all the hype now arriving about the Zune and how the iPod is dying because hipsters don’t want to be associated with a product their parents now use or white-earphone-phobia, here’s exactly why I use the iPod. Until someone replicates this functionality, they’re not even in the running.
Formats available: Quicktime (.mov)

10
Sep
2006

Tom’s PalmCast

Following Dave’s lead with his Blackberry video, I thought I’d do a little demo of some of the things I do with my Palm TX. It’s shot on the crappy little camera on my Mac, so I apologise if it looks a bit ropey. I hope I got my message across though.
Tags: , ,