...by the inmates...for the inmates...

Deer Trouble, Bad Check, Festival, Random Link, Radio Fun, Movie du Jour
Deer broke the arm off of an angel in the garden.
Last week Bryan received a $500 check from a former employer, which bounced due to a closed account. Probably an accident since the gentleman is relocating his business from our town to another. Bryan did router and server configuration, maintenance, and customer support for him. We'll see...
Maria and I attended our local art & wine festival with chihuahua Misty in a bellypack. Heard a local friend Mike M. perform; singing and playing guitar.
The jenett randomizer (the little blue button, top center on this page) took me to GIGO: words unreadable aloud, another Bay Area blogger. Found that he referenced my site last month, the first link of which I am aware. We are the same age. He also relocated from Southern California, but years earlier. One post on his site led me to John Udell's storyList macro and Marc Barrot's radioScan. I tested the storyList macro, Marc's modified version, on my stories page as a table of contents. It lists the stories (only those with titles), links most of them OK, but does not properly link to category posts. I'll check further. I added John's leading date text back to Marc's version, which may have caused the failure.
Last week I received my first YACCS comment from a post author whom I referenced.
Bryan and Katie brought a DVD to watch during dinner. Amelie, a French movie with English subtitles. We made more hot shrimp and Hawaiian chicken pineapple kabobs.
Radio Stuff To Try
John Udell's storyList macro

Listing titled items on a storyList page
If I've got this right, posting this item should update my new storyList page, which enumerates all my titled items in reverse order, so that it also includes this item.
Hey, it worked. Cool. OK, here's how. First, a script which gathers all the posts that have titles:
on storyList()
{
local (s = "");
local (adrblog = radio.weblog.init ());
local (adrposts = @adrblog^.posts, i);
for i = sizeof (adrposts^) downto 1
{
local (adr = @adrposts^ [i]);
local (t = adr^);
try
{
local( title = t.title); // if none, skip to next post
local(d = date.year(t.when) + "/" + string.padWithZeros(date.month(t.when),2) + "/" + string.padWithZeros(date.day(t.when),2));
local( itemno = nameOf(adr^) );
regex.subst("^0+","",@itemno);
s = s + "<p>" + d + ": " + "<a href=\"http://radio.weblogs.com/0100887/";
s = s + d + ".html#a" + itemno;
s = s + "\">";
s = s + title;
s = s + "</a></p>";
};
};
return(s);
};
I saved this as /radio/Macros/storyList.txt. Then I wrote a story that contains nothing but a reference to the macro, in other words:
<% storyList() %>
So far so good. But how to make it update when new postings appear? I got the necessary ideas from Russ Lipton and Simon Fell.
From Russ, I got the idea for a script that touches the storyList, so it will re-upstream. From Simon, I learned of the callback that can invoke that script when an item is published. So, I wrote this:
on updateStoryList(adrPost)
{
on touch(path)
{
try
{ file.touchPath(path) }
};
file.visitFolder(user.radio.prefs.wwwfolder + "stories\\2002\\03\\16", infinity, @touch);
};
And I entered it as a script, called updateStoryList, in the table user.radio.callbacks.publishItem.
Nice. Now, I think I'll have a neat and automatically maintained list of my titled items.
One gripe, which I noticed again while doing this: the permalink's target (e.g., <a name="a146">) has been in the wrong place since the advent of titles. It should come before, not after, the title.
10:59:27 PM
