Saturday, April 02, 2011 at 9:08 PM.


local (apiurl = "");
local (feed = "linkblog.xml", title = "Hacker News firehose");
local (link = "");
local (description = "A fast-moving feed for Hacker News.");
local (username =;
local (password =;
local (url = apiurl + "?feed=" + string.urlencode (feed) + "&title=" + string.urlencode (title) + "&link=" + string.urlencode (link) + "&description=" + string.urlencode (description));
local (s = tcp.httpReadUrl (url, 3, false, username, password, adrcode:@code));
json.compile (s, @scratchpad.jstruct);
dialog.alert (s)

This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.