<?xml version="1.0" encoding="iso-8859-1"?>
 <rss version="2.0">
   <channel>
     <title>cogdogblog: Feed2RSS: Minor Cleanups and Fixing My Goofs Comments and Trackbacks</title>
     <link>http://cogdogblog.com/alan/archives/2004/05/26/feed_goofs.php</link>
     <description>It's been nice getting wide and praising notes, comments, trackbask about the new Feed2RSS-- I must admit being eager to rush it out and while the MagpieRSS seems to be running smoothly, I had a few minor goofs that others...</description>
     <language>en-us</language>
     <lastBuildDate>Fri, 07 Apr 2006 11:40:48 -0700</lastBuildDate>
     <generator>Movable Type v2.661</generator>
     <ttl>60</ttl>
    <item>
      <title>CDB Entry: Feed2RSS: Minor Cleanups and Fixing My Goofs</title>
      <description>It's been nice getting wide and praising notes, comments, trackbask about the new Feed2RSS-- I must admit being eager to rush it out and while the MagpieRSS seems to be running smoothly, I had a few minor goofs that others...</description>
      <link>http://cogdogblog.com/alan/archives/2004/05/26/feed_goofs.php</link>
       <pubDate>Wed, 26 May 2004 13:22:19 -0700</pubDate>
    </item>
        <item>
     <title>comment by: Alan Levine</title>
     <description>&lt;p&gt;More doh! D'Arcy just ichatted me in the middle of a dull meeting (bless wireless)- with a parse error on line 100- it was a missing semi-colon on the end of line 97. Just uploaded a replacement.&lt;/p&gt;

&lt;p&gt;-- King of typos&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/26/feed_goofs.php#810</link>
      <pubDate>Wed, 26 May 2004 14:14:44 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Dan Schellenberg</title>
     <description>&lt;p&gt;I have the script working properly at:&lt;br /&gt;
&lt;a href=&quot;http://educationaltechnology.ca/test.html&quot;&gt;http://educationaltechnology.ca/test.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check the source out there, though it is essentially the same as described above by Allan.&lt;/p&gt;

&lt;p&gt;It seems to be working fine, and is validating properly as well (click on the valid XHTML link at the bottom of the page).&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/26/feed_goofs.php#811</link>
      <pubDate>Wed, 26 May 2004 16:02:30 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Alan Levine</title>
     <description>&lt;p&gt;Thanks much Dan. The problem was I was testing the embedded JavaScript URLs directly to the browser (where &amp; is replaced by &amp; in the CGI params). When in the source HTML, the &amp; are rendered BACK to &amp; for the links, and thus it works well.&lt;/p&gt;

&lt;p&gt;I will look into changing the build script to do this substitution, but if XHTML compliance is key, you can do some editing on your JavaScript embeds.&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/26/feed_goofs.php#812</link>
      <pubDate>Wed, 26 May 2004 16:09:11 -0700</pubDate>
     </item>
        <item>
     <title>comment by: todd</title>
     <description>&lt;p&gt;It seems to be working for me at &lt;a href=&quot;http://idea.matc.tec.oh.us/feeds&quot;&gt;http://idea.matc.tec.oh.us/feeds&lt;/a&gt; --thanks for your work! I need to look into the cache settings because I've had it up for about a day and I don't see any files in my cache directory.&lt;/p&gt;

&lt;p&gt;Also, my blog doesn't publish date with dc but uses pubDate; got any hints for fixing that :) ?&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/28/feed_goofs.php#815</link>
      <pubDate>Fri, 28 May 2004 09:08:59 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Alan Levine</title>
     <description>&lt;p&gt;Todd, Magpie creates cryptic named cache files, e.g.&lt;/p&gt;

&lt;p&gt;896308a033830edc06253e2838ad8644&lt;br /&gt;
37f206fd8a53505bc87d38dd63fb9f38&lt;br /&gt;
06c6631ffb0ab9639e4a631049b5ad8a&lt;/p&gt;

&lt;p&gt;but I am not sure how/when it decideds to create a new one. It looks like they each correspond to a different RSS URL.&lt;/p&gt;

&lt;p&gt;I am not sure how you are trying to view the files, it may be they are hidden becaise of their naming style? I'd have to investigate to see why it would not be writing files. If you are not getting PHP errors than it must be dealing with write permissions okay.&lt;/p&gt;

&lt;p&gt;As far as the way the date values are accessed, this is the beauty of Magpie- no matter what XML tag is used to define the date (pudDate, dc:date. etc) Magpie finds it and returns it to an array always named dc:date-- it does not mean that your pubDate values are ignored, they are just referenced by a different name later. This way, my script does not have to do all kinds of branching depending on the RSS feed type.&lt;/p&gt;

&lt;p&gt;I have tested this on RSS 2.0 feeds that use pubdate and it works as advertised.&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/28/feed_goofs.php#816</link>
      <pubDate>Fri, 28 May 2004 09:45:43 -0700</pubDate>
     </item>
        <item>
     <title>comment by: David Carter-Tod</title>
     <description>&lt;p&gt;I haven't installed these latest versions yet, but on the first version, I couldn't get the cache to work until I created a directory called &quot;cache&quot; (not &quot;cached&quot;) with the right permissions (775 should do it by the way, not 777).&lt;/p&gt;

&lt;p&gt;Also, although the code seems to support it, I'm not seeing etags coming through.  This is a critical bandwidth saver.&lt;/p&gt;

&lt;p&gt;David&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/29/feed_goofs.php#817</link>
      <pubDate>Sat, 29 May 2004 12:20:58 -0700</pubDate>
     </item>
        <item>
     <title>comment by: David Carter-Tod</title>
     <description>&lt;p&gt;Oh, and those long, convoluted strings for file names look like MD5 encodings of the url requested.  It's a guaranteed way to get a unique id.&lt;/p&gt;

&lt;p&gt;David&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/29/feed_goofs.php#818</link>
      <pubDate>Sat, 29 May 2004 12:22:03 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Alan Levine</title>
     <description>&lt;p&gt;David,&lt;/p&gt;

&lt;p&gt;I've not run into an issue with Magpie needing a specific name for the cache directory/ It looks like it tries to create on named &quot;cache&quot; if is not defined, but my tests show ti writing to ones name &quot;cached&quot;-- though it would not hut to suggest the default name.&lt;/p&gt;

&lt;p&gt;As far as permissions (which I am hardly a master of mostly a slave), it may vary depend on how servers are set up and wether the process that runs the server is consider a &quot;group&quot; owner. The code comments read:&lt;/p&gt;

&lt;p&gt;&quot; * MAGPIE_CACHE_DIR - Where should Magpie cache parsed RSS objects?&lt;br /&gt;
 * This should be a location that the webserver can write to.   If this &lt;br /&gt;
 * directory does not already exist Mapie will try to be smart and create &lt;br /&gt;
 * it.  This will often fail for permissions reasons.&quot;&lt;/p&gt;

&lt;p&gt;I usuallly go 777 for places my webserver needs to write to. But I cannot say I tested with 775.&lt;/p&gt;

&lt;p&gt;And I would need to know more of what an &quot;etag&quot; is to comment. I would prefer not to try and do wild parsing on different versions of RSS feeds...&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/29/feed_goofs.php#819</link>
      <pubDate>Sat, 29 May 2004 19:10:51 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Gerry Paille</title>
     <description>&lt;p&gt;I am not getting anything written to the &quot;cached&quot; directory either. I have tried using David's suggestion by renaming the directory to cache and double checking the permissions. I also deleted the &quot;cached&quot; directory all together to see if Magpie would create a new directrory and it did not.&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/31/feed_goofs.php#820</link>
      <pubDate>Mon, 31 May 2004 10:56:26 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Gerry Paille</title>
     <description>&lt;p&gt;I have the cache working, but I'm not 100% sure what I did that caused the change. I think it is pretty much as Dave described above. I changed the name of the directory from cached to cache and edited the feed2js.php file to reflect the name change. The permissons for the cache directory look like this:&lt;/p&gt;

&lt;p&gt;drwxrwxrwx  4 admin  admin    136 31 May 13:39 cache&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/05/31/feed_goofs.php#821</link>
      <pubDate>Mon, 31 May 2004 13:44:53 -0700</pubDate>
     </item>
        <item>
     <title>comment by: Alan Levine</title>
     <description>&lt;p&gt;I will have to dig deeper in the cache directory issue-- But I have it running fine writing a directory named &quot;cached&quot;:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://jade.mcli.dist.maricopa.edu/feed/cached/c4e70593705e2b86cb9daf9f767e0485&quot;&gt;http://jade.mcli.dist.maricopa.edu/feed/cached/c4e70593705e2b86cb9daf9f767e0485&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but it looks like fomr Gerry and David's case a better suggestion is one named &quot;cache&quot;.&lt;/p&gt;

&lt;p&gt;A first thing to try would be to turn on the Magpie debugging, set to &quot;2&quot;:&lt;/p&gt;

&lt;p&gt;// value of 2 optionally show lots of debugging info, 0 for production&lt;br /&gt;
define('MAGPIE_DEBUG', 2);&lt;/p&gt;

&lt;p&gt;Another issue is that I thought one could use a relative path- you might try an absolute path for MAGPIE_DIR. If the relative fails, Magpie creates the one called &quot;cache&quot; which might explain your situations.&lt;/p&gt;

&lt;p&gt;// Path to cache directory (must be writable permissions CHMOD 777)&lt;br /&gt;
// The simplest is a directory inside the location of this file&lt;br /&gt;
// define('MAGPIE_DIR', './cached/')&lt;/p&gt;

&lt;p&gt;Also try using the magpie_debug.php script provided to test your settings as well.&lt;br /&gt;
&lt;/p&gt;</description>
     <link>http://cogdogblog.com/alan/archives/2004/06/01/feed_goofs.php#822</link>
      <pubDate>Tue, 01 Jun 2004 09:25:49 -0700</pubDate>
     </item>
    

      <item>
     <title>Trackback from &quot;Feed2RSS Available&quot;</title>
       <description>&lt;b&gt;Excerpt:&lt;/b&gt; I just finished getting what I think is a working setup of Feed2RSS, provided by Alan Levine. Just paste in the URL of a feed and it generates the javascript code you need to add the headlines to your Web page. A couple of issues I have noticed: from m...&lt;br /&gt;
       &lt;b&gt;Weblog:&lt;/b&gt; Big IDEA&lt;br /&gt;
       &lt;b&gt;Tracked:&lt;/b&gt; May 28, 2004 10:10 AM</description>
     <link>http://idea.matc.tec.oh.us/wordpress/archives/2004/05/feed2rss-available/</link>
     <pubDate>Fri, 28 May 2004 10:10:09 -0700</pubDate>
      </item>
      <item>
     <title>Trackback from &quot;Feed2JS&quot;</title>
       <description>&lt;b&gt;Excerpt:&lt;/b&gt; I recently stumbled upon the 

Feed to JavaScript tool created by Alan Levine from the Maricopa Center for Learning &amp; Instruction(mcli).  An incredibly useful tool that allows you to aggregate xml feeds (rss, atom, etc.) and call them via a simple Java...&lt;br /&gt;
       &lt;b&gt;Weblog:&lt;/b&gt; Dan Schellenberg&lt;br /&gt;
       &lt;b&gt;Tracked:&lt;/b&gt; May 26, 2004 05:40 PM</description>
     <link>http://educationaltechnology.ca/dan/archives/2004/05/26/feed2js/</link>
     <pubDate>Wed, 26 May 2004 17:40:08 -0700</pubDate>
      </item>
 
  </channel>
</rss>