Hacking Radio by Charles Miller
Tales of my hackery with Radio Userland, and useful links thereof.

 







Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Thursday, 13 June 2002


Step one: a replacement Radio aggregator that remembers when you've un-checked a story, and doesn't check it again. This hack will only be useful for people who have this preference turned on..

License: This code is provided for free. It is derived from the aggregator code within Radio Userland, I thus retain no rights to it. It is UNTESTED CODE, and is provided WITHOUT WARRANTY OF ANY KIND. If it corrupts your data, crashes your computer, erases your hard drive, sleeps with your wife and performs satanic rites on your dog, don't come crying to me.

Instructions: Put the root file somewhere Radio can see it. Edit www/system/pages/news.txt and replace the macro call with one to aggregatorCategoriesSuite.viewNewsItems (). The aggregator should behave pretty much like it used to, it'll just remember when you uncheck boxes.

Note: What I did could be accomplished with about five lines of changes to radio.root, rather than an entirely new tool. The reason it's a tool is that this is the first small step in a pretty big overhaul of the aggregator, I'm just releasing it now because it's doing something useful already.

The aggregator might run a little slower than before. I did a lot of refactoring of the Userland code and moved a bunch of logic around in order to separate the "select which stories to display" code, the "handle the user request" code and the "draw the page" code.


11:15:50 AM    



Click here to visit the Radio UserLand website. © Copyright 2002 Charles Miller.
Last update: 19/6/02; 4:04:39 PM.

June 2002
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
May   Jul