Friday, February 8, 2002




Cool! The filesystem upstreaming driver works. That's useful. The requirement that one uses Mac Classic style paths is kind of a bummer-- carbonized apps should all use POSIX paths at this point, I believe.

In any case, this answers the preview question quite nicely. I simply upstream to my local web server (as Mac OS X ships with Apache) and preview there.
8:41:31 PM    




Aha! On Mac OS X (and, I would assume, OS 9), Radio uses FSRefs to refer to everything from the template files to the #upstream.xml configuration file. An FSRef is a filesystem reference-- it follows a file as the file moves and is renamed. Cool, but it causes some issues.

As such, if you edit a template with an editor that saves to a backup file, typically the editor will rename the existing file to something like '#upstream.xml~' and save the edited version to the original Filename.

However, Radio will not see the changes. Because the file has merely been moved, not removed, Radio will continue to refer to the previous revision of the document and you won't see the changes!

The fix is simple: Remove the backup version of the file and Radio seems to correctly check to see if a file exists on the original path. I.e. once the FSRef has been invalidated, it will reset to using the actual path to find the file.

To fix (in case anyone from userland is actually reading this): FSRefs are actually a very good idea, but you should check the original path to see if something newer is there and go with it, if there is.

(Also, Radio still can't open a template in TextEdit if TextEdit is already running.)
8:38:25 PM    




Hey! What happened to my 'referers' page? It's blank and has been for 48 hours!
3:24:47 PM    



Formatting code for publishing in Radio is kind of a bear. If I stick the code in a <pre></pre> block, Radio interprets each line of vertical whitespace as, effectively, a triple-space. If I prefix the vertical whitspace with '//', it is turned into a link. Normally, this auto-paragraph break on whitespace behavior is incredibly handy, but is there a way to temporarily turn it off for a chunk of content? That would be handy.
9:41:25 AM    



Bummer. The drawCalendar() emits cells that are 19 pixels wide. This makes the calendar too fat to fit as is into the left side of the sound waves theme.

Feature request: Add an optional parameter to drawCalendar() that lets one adjust the horizontal width (and another to shorten the day names to just a letter).
1:13:07 AM