similar to: How to convert time from rss feed to another format ?

Displaying 20 results from an estimated 6000 matches similar to: "How to convert time from rss feed to another format ?"

2006 Apr 30
2
Rss feed items disappear using feedtools?
I have met a problem on Feedtools and felt very confused about it: The feed that I generated using feedtools can not be read correctedly by feedtools,while rss from other websites can be read. Still,the code for rss generating: def userrss @user = User.find_by_id(params[:id]) @articles = @user.articles(:all,:order => ''updated_at desc'',:limit => 15)
2006 Apr 02
2
Problem with RSS feed from Rails Recipes
I''m trying to add an RSS feed to my app, and am going through the Rails Recipes chapter on doing so. I get the following error when I request the feed: undefined method `gmtime'' for #<DateTime: 1963061961/800,0,2299161> ... 7: xml.pubDate CGI.rfc1123_date(@posts.first.created_on) Any idea what''s up? Pat
2006 Apr 29
3
Feedtools question
I use feedtools to generate the feeds and read them,and now they can not work well: This is the code for feed generating: class FeedsController < ApplicationController def userrss @user = User.find_by_id(params[:id]) @articles = @user.articles(:all,:order => ''updated_at desc'') @headers["Content-Type"] = "application/xml; charset=utf-8"
2006 Jul 22
0
RSS XML Generation Problem
I''m getting an interesting problem. I''d trying to generate an RSS document and then real it from outside of my app. Here''s what the view looks like. xml.instruct! :xml, :version=>"1.0" xml.rss(:version=>"2.0"){ xml.channel{ xml.title("mytitle") xml.link("http://www.myapp.com")
2006 Jun 14
1
simple-rss caching
The index page of my rails app grabs an rss feed from a neighboring news site. Unfortunately, the process of grabbing that feed seems to be slowing down the initial load time of my site to the point where it takes about 10-12 seconds to respond and render. I''d like to speed that up somehow (for 8-10 seconds it looks like my server is not responding at all..) Any suggestions? I
2014 Nov 28
0
[PATCH 3/4] Update news feed
--- feeds/feed.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/feeds/feed.xml b/feeds/feed.xml index 0d16cd9..2390cd0 100644 --- a/feeds/feed.xml +++ b/feeds/feed.xml @@ -7,6 +7,30 @@ <atom:link href="http://xiph.org/flac/feeds/feed.xml" rel="self" type="application/rss+xml" /> <item> + <title>FLAC
2006 Mar 20
3
can''t get my rss to validate with feedtools
I know that I''m doing something wrong, but I can''t figure out what. I''ve looked at every wiki and tutorial I can find on feedtools but I still can''t get my rss feed working. Here''s my code. feed = FeedTools::Feed.new feed.entries << FeedTools::FeedItem.new feed.entries[0].author.name = "Charlie Bowman" feed.entries[0].title =
2008 Mar 20
6
Parsing multiple RSS & Atom feed formats
I''m working on a RSS aggregator, and I''ve based the parser on a script from this post; http://www.superwick.com/archives/2007/06/09/rss-feed-parsing-in-ruby-on-rails/ But, being the complete newbie, I''ve found that this parser only works for specifically formatted feeds. For example, some feeds will throw a ''nil text'' error. I know that I could make
2009 Feb 04
4
Rails 2.2.2 to_date and to_datetime methods
In the console I see this behaviour: >> "19270412000000".to_date.methods => ["ns?", "mon", "ago", "end_of_month", "months_since", "default_inspect", "minus_without_duration", ... >> "19270412000000".to_date.class => Date >> "19270412000000".class => String >>
2008 Nov 18
2
rss feed is not detected in firefox ?
my rails version is 2.2.0 i have created a rss feed It is working fine in IE but in fire fox only xml content is showned like "This XML file does not appear to have any style information associated with it. The document tree is shown below." any idea ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 Mar 17
1
RSS problem when trying to display ID - HELP
I want to append "#comment-1" or whatever, depending on the id to the end of my xml.link(" ... /#comment-1") attribute in my generated xml. Well, when I put: xml.link(" ... /#comment-" + comment.id) I get an Application error (rails) message when I look at the generated XML. This is what I''m doing without the id on the comments (its working fine):
2007 Nov 02
3
Date Issues + Oracle + RoR
Hi Experts I''ve a product like this ID -> 1 Name -> Xyz Price -> 30 Created_at -> 02-NOV-07 from_date = Date.new(2, 10, 07) to_date = Date.new(2, 10, 07) @product = Product.find_by_sql("select * from products where created_at between from_date and to_date") code works perfectly, buy my issue is i dont get any data. always says no record found but if i use
2011 Feb 04
5
Date parse - month and day reversed
I am getting the month and day reversed in parsing a date. I am wondering if there is some intelligence in Ruby that knows that at the moment I am in Mexico, as the parsing is working as if I was "6/15/2008".to_date => ArgumentError: invalid date "15/6/2008".to_date => Sun, 15 Jun 2008 What I really want is my date to be understood as month/day/year. Is there a way to
2013 Jan 26
0
[PATCH] Update news section
Adds two small news items and a news item on Blackberry support --- feeds/feed.rss | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/feeds/feed.rss b/feeds/feed.rss index 45d8ec1..ec230aa 100644 --- a/feeds/feed.rss +++ b/feeds/feed.rss @@ -6,12 +6,29 @@ <description>The latest news about FLAC (Free Lossless Audio Codec)</description>
2009 Feb 22
6
CHECK if param exists? please help
hi folks. i want to check if a param exists if not to set it to a default value for my date range filter. in my controller i have: @from_date = Date.strptime(params[:startdate],"%d/%m/%Y") @to_date = Date.strptime(params[:enddate],"%d/%m/%Y") @articles = @results.find(:all, :conditions => [ "created_at >= ? and created_at
2006 May 13
6
Asking for help again about my thread debug
As http://www.ruby-forum.com/topic/65495 has shown,I have drawn into trouble about my thread debugging for some days,and need help to solve it urgently! This thread problem comes from the design requirements that my web application will get the rss feeds read which are generated by the web application itself. http://www.ruby-forum.com/topic/63984 has shown my code,and the key code is the
2013 Jan 01
0
[PATCH] Added some news (including FLAC development moving to Xiph.org), replaced cvs-links by git-links and changing most links to the bug tracker with the new sourceforge link-style (for example replaced http://sourceforge.net/tracker/.... with
--- developers.html | 16 ++++++++-------- documentation.html | 4 ++-- documentation_bugs.html | 2 +- documentation_example_code.html | 2 +- documentation_tools.html | 2 +- download.html | 2 +- faq.html | 2 +- feeds/feed.rss | 31 +++++++++++++++++++++++++++++--
2006 Mar 05
2
RSS feed for blog entries...
Can someone guide me on the process of providing an RSS feed for my site? I''m not sure how to go about this. Thanks. -- Posted via http://www.ruby-forum.com/.
2004 Jun 26
2
RSS News Feed
Tom, Can you/someone get a news feed setup for shorewall announcements? If not, I''ll have to make use of the shorewall rss feeds at SF. Project RSS Feeds: shorewall http://sourceforge.net/export/rss2_project.php?group_id=22587 BTW, planetplanet.org has links to some cool feeds. -- Mike Noyes <mhnoyes at users.sourceforge.net> http://sourceforge.net/users/mhnoyes/ SF.net
2007 Jul 09
1
CRANberries -- An RSS feed about New and Updated CRAN packages
Announcing CRANberries -- An RSS feed about New and Updated CRAN packages A new RSS feed [1] is now available that summarizes uploads to CRAN. This makes it possibly to quickly obtain concise information about which (of the now over one thousand !!) packages were added or updated at CRAN and its mirrors. To this end, two basic variants are provided: - a feed for new packages where we display