Parsing Atom & RSS in Ruby/Rails?
Solution 1
Feedzirra is one of the better options: http://www.pauldix.net/2009/02/feedzirra-a-ruby-feed-library-built-for-speed.html
Of course, I'm biased since I wrote it. :)
Solution 2
Googleage reveals some things. Were they not acceptable?
require 'simple-rss'
require 'open-uri'
rss = SimpleRSS.parse open('http://slashdot.org/index.rdf')
rss.channel.title # => "Slashdot"
Solution 3
If you meet crappy feeds, you may want to use HPricot to parse the feed.
Solution 4
Feed Normalizer looks like it may be a good option
https://github.com/aasmith/feed-normalizer
Solution 5
Looks like in 2009 the standart Ruby RSS library just didn't exist yet?
Marten Brosch
Updated on June 05, 2022Comments
-
Marten Brosch about 2 years
i'm using the nouislider (http://refreshless.com/nouislider/) with some buttons to get the slider controlled via the buttons and with an active status on the buttons for the picked value.
in modern browsers, like firefox, safari, chrome and ie10 the script works good i think. but in the shitty ie 8 this piece of code acts pretty strange: the wrong buttons are marked as active and all of the: "please add the class to the right buttons" doesn't work.
this is the function for the active status:
function headClassToggle() { $('#calc-heads button').removeClass('calc-active'); $('#calc-heads #calc-1').addClass('calc-active'); var calcSliderValue = $('#calc-slider').val(); var iEra = $('#calc-heads button'); var thumbLi = $('#calc-heads button'); for (iEra = 1; iEra < calcSliderValue; iEra++) { thumbLi.eq(iEra).addClass('calc-active'); } }
here you can find a working example:
so my question, what could be wrong on the for loop for internet explorer 8?
thanks!