Updated: 4/12/2002; 1:47:59 PM.
Phil's Own Radio Weblog
The radio web log of Phillip Harrington, web programmer, troglodyte.
        

Tuesday, April 02, 2002

Edited UserLand Script

I edited a userland script. I edited radio.macros.weblogRecentPosts. I did it so the titles show up in bold with a break after them. Screenshot. Can I save my version somewhere else so an update of Radio.root doesn't overwrite it?
11:47:23 PM    comment []  Google It!  


XML Coffee Mug


11:17:00 PM    comment []  Google It!  


I paid for Radio

I bought Radio. My 30 days were up. OK, now that I'm back on Radio I'm going to go and play with all the tutorials again and really try to get into the fun of it. Dave annoys me but I'm intrigued I guess.
9:35:16 PM    comment []  Google It!  


Radio Dynamic DNS Idea

Idea: What if part of what Radio did when it started was to ping a Dynamic DNS server so that people could have domain names routed to their desktops?
9:32:14 PM    comment []  Google It!  


Question about Python/UserTalk style indentation.

I've attempted to adapt a "Python/UserTalk" style of indentation when working with all languages. In PHP I'll indent the trailing curly bracket along with the rest of the block of code like so:
if(!emailValid($attributes['email'])){
  raiseError("Please enter a valid email address");
  }
In tag based languages, I've tried the same approach. I have one question. How do I handle an "else" block of code? Should the "else" statement be at the same level as the original "if"? I've been doing it that way. With ColdFusion it makes for some un-even diagonal lines when backing out of the indented blocks.
<cfif press.recordCount gt 0>
  <cfoutput query="press">
    <p><a href="index.cfm?fuseaction=one_press&content_id=#content_id#">#title#</a><br>
    #summary#</p>
    </cfoutput>
<cfelse>
  <p>There are currently no press stories.</p>
  </cfif>
See the jump from the closing "cfoutput" to the "cfelse" tag? Is that correct? It bothers me. I know I have much more interesting things to worry about if I'm still using ColdFusion (ha ha), but seriously I would love to get some thoughts on the issue from people who have an opinion.
9:23:54 PM    comment []  Google It!  



© Copyright 2002 Phillip Harrington.
 
April 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        
Mar   May


Click here to visit the Radio UserLand website.


Click on the coffee mug to add Phillip Harrington's Instant Outline to your Radio UserLand buddy list.

Click to see the XML version of this web page.

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