I would like to learn how to build a background running program that
track all questions of ruby related questions on Stack Overflow
http://api.stackoverflow.com/1.1/questions?tagged=ruby and alert to me
somehow.
But the question is how do I know when new questions has asked on Stack
Overflow and get only those?
···
--
Posted via http://www.ruby-forum.com/.
You fetch it regularely (but don't abuse the service) and diff what has changed; you could use the "creation_date", "last_edit_date" or "last_activity_date" to figure out which ones you want to see.
HTH
···
On 15.09.2011 11:39, Samnang Chhun wrote:
I would like to learn how to build a background running program that
track all questions of ruby related questions on Stack Overflow
http://api.stackoverflow.com/1.1/questions?tagged=ruby and alert to me
somehow.
But the question is how do I know when new questions has asked on Stack
Overflow and get only those?
Just in case you didn't know:
* There is already an RSS feed for these: feed://stackoverflow.com/feeds/tag/ruby
* If you hover the "ruby" tag on the site, the box that comes up has a "subscribe" link at the top that emails you new questions daily.
Not that I'm trying to dissuade you from some good Ruby programming fun, mind you. 
···
On Sep 15, 2011, at 3:39 AM, Samnang Chhun wrote:
I would like to learn how to build a background running program that
track all questions of ruby related questions on Stack Overflow
http://api.stackoverflow.com/1.1/questions?tagged=ruby and alert to me
somehow.
But the question is how do I know when new questions has asked on Stack
Overflow and get only those?
Save the date ("last_activity_date", or "creation_date" are good
candidates, depending on the definition of "new") of the last seen
item, and compare it to the dates in the re-fetched feed. Any thing
that's newer than the date saved is new.
No diffing necessary. 
···
On Thu, Sep 15, 2011 at 11:48 AM, Markus Fischer <markus@fischer.name> wrote:
You fetch it regularely (but don't abuse the service) and diff what has
changed; you could use the "creation_date", "last_edit_date" or
"last_activity_date" to figure out which ones you want to see.
--
Phillip Gawlowski
gplus.to/phgaw | twitter.com/phgaw
A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
-- Leibniz
Gavin Kistner wrote in post #1022144:
Not that I'm trying to dissuade you from some good Ruby programming fun,
mind you. 
Yes, that's just for fun 
Thank everyone, it's very helpful information.
···
--
Posted via http://www.ruby-forum.com/\.