{
  "attachments": [],
  "comments_archived": true,
  "date": "2006-01-21T06:54:30.000Z",
  "layout": "post",
  "tags": [
    "asides",
    "rss",
    "syndication",
    "feeds",
    "radio",
    "newsriver",
    "frontier",
    "userland",
    "usertalk",
    "dwiner"
  ],
  "title": "A bit of newsRiver hackery",
  "wordpress_id": 833,
  "wordpress_slug": "a-bit-of-newsriver-hackery",
  "wordpress_url": "http://decafbad.com/blog/?p=833",
  "year": "2006",
  "month": "01",
  "day": "21",
  "isDir": false,
  "slug": "a-bit-of-newsriver-hackery",
  "type": "entry",
  "postName": "2006-01-21-a-bit-of-newsriver-hackery",
  "html": "<p><strong>Update:</strong> <em>I moved this code over to <a href=\"http://blogs.opml.org/decafbad/\">my space over at hosting.opml.org</a> and added some updater code from <a href=\"http://web.sabi.net/nriley/software/\">Nicholas Riley's webdav tool</a>, so that you should be able to just \"Get Latest Code...\" once you've got this installed.  (Or reinstalled, if you grabbed last night's version.)  Also, I fixed a bug or two.</em></p>\n<p>So, I couldn't resist poking around with Dave Winer's <a href=\"http://www.newsriver.org/\">newsRiver</a> in the <a href=\"http://www.opml.org\">OPML editor</a>.  For whomever's interested in this sort of thing, here's the result of a couple of hours' hacking this evening:</p>\n<ul>\n<li><a href=\"http://hosting.opml.org/decafbad/decafbadNewsRiver/decafbadNewsRiver.root\"><code>decafbadNewsRiver.root</code></a></li>\n</ul>\n<p>In this is a tool to be dropped into your OPML Editor install's Guest Databases / apps / Tools directory, right alongside <code>newsRiver.root</code> itself.  You may need to restart the OPML Editor.  Once installed, you should see a new \"DecafbadNewsRiver\" menu item under the Tools menu, allowing you to view your news in this new UI.  Expect <em>lots</em> of bugs, though.</p>\n<p>Basically, this provides an alternate DHTML outline rendering of the news items gathered by newsRiver—quite similar to <a href=\"http://decafbad.com/blog/2005/10/05/feedspool-is-progressing-nicely\">what I did back in October for FeedSpool</a>.  I'm not sure how far I'll take this, if I take it any farther.  I've got a bit of a notion to tackle some REST/AJAX interaction with newsRiver for on-the-spot item deletion, and maybe on-demand item content retrieval.</p>\n<p>But, for newsRiver hackers:  You might like what I've done with the <code>viewNewsItems</code> script under <code>decafbadNewsRiverSuite</code>.  I've made an attempt to pull all of the HTML out of the midst of the processing code.  That's was icky, and I hated it back when I first ran into it in Radio UserLand.  </p>\n<p>I've broken all of that out into smaller external templates for page, feed, and item under <code>decafbadNewsRiverData</code>.  This should allow for easier styling and customization of the code that newsRiver produces, as well as maybe swapping themes on the fly with a preference that points the rendering process at a different root table for templates.</p>\n<p>In any case, do what you like with this work.  I hope it's useful to someone out there.</p>\n<!-- tags: newsriver frontier userland radio usertalk rss syndication feeds dwiner -->\n\n<div id=\"comments\" class=\"comments archived-comments\"><h3>Archived Comments</h3>\n<ul class=\"comments\">\n<li class=\"comment\" id=\"comment-221084999\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://donovanwatts.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=188ad8b4dc99107d22c8b868e45f0508&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://donovanwatts.com/\">Donovan Watts</a>\n</div>\n\n\n<p><a href=\"#comment-221084999\" class=\"permalink\"><time datetime=\"2006-01-21T07:55:24\">2006-01-21T07:55:24</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>neat! i much prefer this interface. thanks much.</p></div>\n\n\n</li>\n</ul>\n\n\n</div>\n\n\n",
  "body": "**Update:** *I moved this code over to [my space over at hosting.opml.org][ms] and added some updater code from [Nicholas Riley's webdav tool][nu], so that you should be able to just \"Get Latest Code...\" once you've got this installed.  (Or reinstalled, if you grabbed last night's version.)  Also, I fixed a bug or two.*\r\n\r\n[ms]: http://blogs.opml.org/decafbad/\r\n[nu]: http://web.sabi.net/nriley/software/\r\n\r\nSo, I couldn't resist poking around with Dave Winer's [newsRiver][] in the [OPML editor][oe].  For whomever's interested in this sort of thing, here's the result of a couple of hours' hacking this evening:\r\n\r\n* [`decafbadNewsRiver.root`](http://hosting.opml.org/decafbad/decafbadNewsRiver/decafbadNewsRiver.root)\r\n\r\nIn this is a tool to be dropped into your OPML Editor install's Guest Databases / apps / Tools directory, right alongside `newsRiver.root` itself.  You may need to restart the OPML Editor.  Once installed, you should see a new \"DecafbadNewsRiver\" menu item under the Tools menu, allowing you to view your news in this new UI.  Expect *lots* of bugs, though.\r\n\r\nBasically, this provides an alternate DHTML outline rendering of the news items gathered by newsRiver—quite similar to [what I did back in October for FeedSpool][fs].  I'm not sure how far I'll take this, if I take it any farther.  I've got a bit of a notion to tackle some REST/AJAX interaction with newsRiver for on-the-spot item deletion, and maybe on-demand item content retrieval.\r\n\r\nBut, for newsRiver hackers:  You might like what I've done with the `viewNewsItems` script under `decafbadNewsRiverSuite`.  I've made an attempt to pull all of the HTML out of the midst of the processing code.  That's was icky, and I hated it back when I first ran into it in Radio UserLand.  \r\n\r\nI've broken all of that out into smaller external templates for page, feed, and item under `decafbadNewsRiverData`.  This should allow for easier styling and customization of the code that newsRiver produces, as well as maybe swapping themes on the fly with a preference that points the rendering process at a different root table for templates.\r\n\r\nIn any case, do what you like with this work.  I hope it's useful to someone out there.\r\n\r\n<!-- tags: newsriver frontier userland radio usertalk rss syndication feeds dwiner -->\r\n\r\n[oe]: http://www.opml.org\r\n[newsriver]: http://www.newsriver.org/\r\n[fs]: http://decafbad.com/blog/2005/10/05/feedspool-is-progressing-nicely\r\n\r\n<div id=\"comments\" class=\"comments archived-comments\">\r\n            <h3>Archived Comments</h3>\r\n            \r\n        <ul class=\"comments\">\r\n            \r\n        <li class=\"comment\" id=\"comment-221084999\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://donovanwatts.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=188ad8b4dc99107d22c8b868e45f0508&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://donovanwatts.com/\">Donovan Watts</a>\r\n                </div>\r\n                <a href=\"#comment-221084999\" class=\"permalink\"><time datetime=\"2006-01-21T07:55:24\">2006-01-21T07:55:24</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>neat! i much prefer this interface. thanks much.</p></div>\r\n            \r\n        </li>\r\n    \r\n        </ul>\r\n    \r\n        </div>\r\n    ",
  "parentPath": "./content/posts/archives/2006",
  "path": "2006/01/21/a-bit-of-newsriver-hackery",
  "needsBuild": true,
  "prevPostPath": "2006/01/21/links-for-2006-01-21",
  "prevPostTitle": "links for 2006-01-21",
  "nextPostPath": "2006/01/22/links-for-2006-01-22",
  "nextPostTitle": "links for 2006-01-22"
}