Recently

Categories
By Topic
Categories
By Audience

Theme and CSS
IT Support
Hosting and comments

Sunday, August 11, 2002

Managing Local and Remote URLs in Radio

I don't know anything about writing macros for Frontier so how would I create an ifLocal macro? For my reference mainly, as I don't fully understand the fix but I most definitely understand the problem -- it's bitten me a couple of times already.

Jon Udell is moving his weblog to new home using Radio and external FTP site. One of the gotchas he found:

"- If you hardcode your site address anywhere, you'll get burned. I did this in a few places. For example, I had:

http://radio.weblogs.com/0100887/stories/2002/03/16/storylist.html

instead of:

<%radio.weblog.getUrl()%>stories/2002/03/16/storylist.html"

Right. In fact, I use my own macro to do just that and little bit more. <%ifLocal()%> macro, which looks like this:

on ifLocal (url1="/", url2=radio.macros.weblogUrl()) {
  if radioResponder.flSameMachine {return (url1)} else {return (url2)}
}

One of the problems with Radio that I noticed is that it's not easy to produce link that works properly off- and on-line. Local links look like this: http://127.0.0.1:5335/gems/toolbox.css, and external links look like this: http://radio.weblogs.com/0106541/gems/toolbox.css. I use external stylesheets and often work offline, so it's real problem for me. ifLocal macros always generates proper link and works for images, files and pretty much everything else. Just put this as a value for href or src attribute: <%ifLocal()%>gems/toolbox.css and you're done. [toolbox]


Automating Radio Deployment

I'd forgotten how many interesting items Steve Pilgrim picks up. I hadn't updated my subscriptions list since he had all his trouble moving Radio to his own ftp serer and domain. That's all better now, as is Steve's new home.

Steve points to some scripts Jon Udell is writing to smooth the deployment of multiple Radio blogs over at InfoWorld. I can't even deploy Radio on my laptop, but I think it's due more to some intellectual deficiency than any serous technological problem. Maybe I'll get it right when I have more time.

Udell's post is focused more on replicting all the little changes we do to personalize our instance of Radio -- a good thing since it's likely a good many of us personalize at least some of the prefs once we get used to it.

EVEN PILOTS WITH 8000 HOURS RUN CHECKLISTS FOR PROCEDURES
Jon's checklist is handy if you change PC's, move your site or simply want to understand Radio better
Radio deployment descriptors. A few weeks ago, I spent some time showing an InfoWorld colleague, Mark Jones, how I use Radio. As always in this kind of situation, I was reminded of: ... [Jon's Radio]
[Rodent Regatta]


Playing With Wireless

I'm just fooling around with my new wireless toys and Radio Remote Access -- sitting in the TV room watching NASCAR at Watkins Glen while blogging. The D-Link AirPlus hub is really cool. I can't tell any difference in performace vs sitting on my local desktop.

I should have done this months ago.



Search this site:
August 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 31
Jul   Sep

Contact

Terry W. Frazier
1041 Honey Creek Road
Suite 281
Conyers, GA 30013
 
770-918-1937 office
404-822-6014 mobile

  Click here to send an email to the editor of this weblog.     blogchat: If diamond is GREEN click to chat

Wide.angle
K.log
Un.commontary
Tech.knowlogy
Legal
Body.politic
Books
Radio.active
Design.graph
Ref.useful
Atlanta.area