Differential RSS feeds
I just refactored my RSS plugin and gave the final touches to the differential feeds as promised.
Differential RSS feeds come in three flavors:
- unified diff: just add ;mode=0 to the feed URL
- summarized htmldiff-alike (;mode=1)
- full-text plus addition/removal info: note that this uses the <ins> and <del> tags, which some RSS readers don't render correctly. Append ;mode=2 to the feed URL to get this.
I've written this with my Ruby 1.9 changelog in mind, whose corresponding feeds would be:
While I'm at it, here's another feature I didn't show before: you can use some basic feed algebra with eigenclass' feeds, as follows.
http://eigenclass.org/hiki.rb?c=rss;tags=a+b+c
corresponds to the postings matching the a, b and c tags. You can also do
http://eigenclass.org/hiki.rb?c=rss;tags=a,b,c
which matches all entries tagged as a or (inclusive) b or c. finally,
http://eigenclass.org/hiki.rb?c=rss;tags=a+b,c+d,e
is for the articles matching (a AND b) or (c AND d) or e*1.
*1 This is also reflected in the feed title.
Referer
- 6 http://www.artima.com/forums/flat.jsp?forum=123&thread=150355
- 3 http://chixy.co.cc
- 2 http://rubyriver.org
- 2 http://www.artima.com/forums/flat.jsp?forum=123&thread=180239
- 1 http://www.google.com/custom?q=RSS Feeds&client=pub-6699214427597032&cof=L:http://www.petercooper.co.uk/images/rubylogo.gif;LH:50;LW:47;LP:1;BGC:#FFFFFF;T:#000000;LC:#CC0000;VLC:#663399;ALC:#CC0000;GALT:#008000;GFNT:#000000;GIMP:#000000;DIV:#CC0000;LBGC:#FFFFFF;AH:left;S:http://www.rubyinside.com/;CX:Ruby%20Search;&btnG=Search&cx=005711913906221599786:gq5z1mmqveq&hl=en
- 1 http://planetruby.0x42.net
- 1 http://www.rojo.com/?feed-id=2474522
- 1 http://pragdave.pragprog.com
- 1 http://search.yahoo.com/search?p=rss diff&ei=UTF-8&fr=moz2
- 1 http://www.feedshow.com/show_items-feed=76a17efe29cc0f8113bc479ab111dbc4?page=2
Keyword(s):[blog] [eigenclass.org] [rss] [diff] [feed]
References:[Changes in Ruby 1.9, second update (2006-01)] [Last month, in Ruby 1.9... (2006-03)] [Ruby HEAD's been evolving in the last 4 months (2006-10)] [Richer RSS selection expressions with negation]