Tony Thomas

Father to two, husband to one, web developer and musician.


Archive for the ‘rss’ Category


Simple RSS Parsing and Caching Using PHP

Saturday, March 12th, 2011

I feel like I should begin by stating that my college degree is in English Literature. In other words, I am not formally trained to be a programmer. Still I’ve spent many years working in PHP. It can be liberating to find out that something you thought would be complicated, is actually not that hard when broken down into discrete steps.

This whole adventure started for me when I went looking for a way to parse an RSS feed. Contrary to those who proclaim that RSS is dead, at it’s heart, RSS is XML. As such it’s a useful method to access content. In my case, I wanted to parse my blog RSS feed as well as my most recent Tweets. That was revelation number one.

RSS is XML > XML has a structure that can be put into objects in PHP

To many of my friends and colleagues, this may seem incredibly simple. To me it was a revelation that opened up a new door. I’ve never tried to create an RSS parser before. Suddenly it was less daunting. (Aside: For me, simple truths often come as revelations. To know me is to know this.)
(more…)

APML

Wednesday, April 16th, 2008

On Monday, as I may have mentioned, I attended MinneWebCon 2008. Looking back, I think Laurie McGinley‘s presentation on microformats was my favorite session of the day. I had no idea I would find it as interesting as I did.

I think the concept that intrigues me the most is APML, or Attention Profile Markup Language.

How many of you use an RSS reader? Raise your hands. How many times a week to you go and “Mark All As Read”? RSS was a godsend for those of us who are interested in finding information on the web. The ability to scan hundreds, or even thousands of titles of my favorite websites to decide to read was exciting, for a while. Soon people like me built up so many feeds that the practice of scanning became overwhelming. After your feed posts get a few days old, there are just way too many even to scan through. So almost daily we all go through and mark them all as read. Really we’re just getting them out of the way because we want to scan the 200-300 newest headlines. You know what I’m talking about. Enter APML.

In an APML-enabled world, I can decide what topics I’m most interested in and the blog posts that most closely match my predefined interests will rise to the top. I can focus my attention on the posts that are most interesting to me. Sound great? We’re not quite there yet. There are a few websites out there trying to utilize the concept, but as far as usability goes, they’ve got a long way to go. I want to use APML because I have limited time. If I have to work very hard to use the service, I quickly move on. That sounds petty, but my lack of time/attention is what got me to APML in the first place.

But the technology is not far from being implemented. It serves as a reminder that relatively low-tech solutions can still emerge as important tools on the web.