dinsdag, januari 01, 2008

 

Finally feeds

I finally got around to create RSS feeds for about2findout.com. Now you can subscribe to new quizzes in English, new quizzes in Dutch and new questions by a certain member.


What are RSS feeds?
A key characteristic of modern 2.0 web sites is that you don't have to visit them every single time to check for new items. The content comes to you via something called RSS feeds. You can subscribe to news items, or get notified when a blogger posts a new article, or when a Flickr member posts a new photo, etc. RSS stands for Really Simple Syndication, and is basically a little file on a web site that lists the latest additions. So the web site has to have this RSS service. You, the user, need to have a little program to see and manage all your subscriptions. Some e-mail clients like Thunderbird have an RSS reader. Browsers such as Firefox and Internet Explorer have build-in capabilities for subscribing to RSS feeds these days. I'm using a free service from Google, called Google Reader to read all the stuff I'm subscribed to. Bloglines is another popular web-based RSS reader.

How to subscribe?
If a site has subscriptions, you will see it via the orange RSS icon. In modern browsers, you will be able to directly subscribe to them by clicking the icon and adding them to your RSS reader. Otherwise you can always copy/paste the URL of the feed manually in your reader.

Firefox shows the RSS button on the right end of the address bar, if a feed is available.



Internet Explorer 7 shows the RSS button next to the home button, but it is only enabled when one or more feeds are available.








RSS feeds in about2findout.com
On the home page and on the main page of the Quiz Zone, there is an automatic feed for new quizzes in English that your browser will detect. On the profile page of a member, there is an automatic feed available and a link to subscribe to all new questions of that member. The feed shows the last 10 additions and has a link to the question or quiz. A central page with direct links to all feeds that are available is here:

http://www.about2findout.com/feeds.aspx

How did I do it?
I used the ASP.NET RSS 2.0 Toolkit to create the feeds. It is a free asp.net component, available on Codeplex. You can find a nice tutorial on ScottGu's blog and on Piyush Shah's blog. What I did in essence was:
1- download the toolkit and sample site from Codeplex
2- add the components to Visual Studio (right click on the toolbar and choose 'select items' and point to the RSS toolkit dll file.
3- create an .ashx handler file, based on the sample in the toolkit that checks the request parameters of the page and creates the feed items based on that
3- add an RssHyperLink component to every page you want to have an automatic feed detection and point it to the .ashx file.
It took me a couple of hours playing with the sample site to figure out how it works, but the components are very good and you get a feed in no time published. I can recommend this toolkit to anyone wanting to publish RSS or atom feeds in an asp.net application.

Labels: , , , , ,


donderdag, december 20, 2007

 

RSS Feed Reader: Google Reader or Bloglines?

One of the things you do when you buy a new computer is clean up your old mess before you migrate everything, and move to new applications. So I'm also taking the opportunity to switch to a new reader to follow all the blogs, Flickr photo's and other RSS streams on the might Internet. I used to use the build-in reader on my mail client Thunderbird. But I wanted to switch to a web-based reader, that I can access from everywhere and has a nice and easy overview of what's new or unread.

So I made a choice between Blogliner and Google Reader. Blogliner is the oldest of the two and still very popular. Google Reader is more recent and had a bad start with bad reviews in the beginning, but after some upgrade earlier this year many people are happy with it. I also decided for Google Reader, because of the better interface (Google interface is just Google, but Blogliner's is really last century.) So far it is a joy to follow my feeds via Google, it integrates well with my browser's feed subscription capabilities, you can mark a post as unread, give it a star, add tags (or labels as Google names them), etc. And it's quite fast. Besides, both Ralph and Geert are using it, so who am I to doubt my friends? :-) The downside that I see is that once again I'm using another Google service. They now know what I search for (Google Search), what's in my agenda (Google Agenda), what I read (Google Reader), what I blog (Blogger), who reads my blog (Feedburner), how my web site is doing (Google Analytics), what's on my computer (Google Desktop), my home financials (Google Docs), and I just today paid them 50 euro for advertisements (Google AdWords)...

Labels: , , ,