Saturday, April 23, 2005

The Cubicle Farm...

Question: I've worked with Directors in the past and they have sent me things to post that have been in error. Whose job is it to fix these things? Should it be my job? Marketing director? Submitter?

Answer: Some of you may have administrative rates that cover things like this or you may have others on staff that you work with that you can send these things to for cleanup or your job may require that you do these types of clean up. That is all well and good, however in my job as a programmer, it is not my responsibility to make changes to content that I have received. So, after noticing that there are glaring errors in the type, I simply send them back to the provider with a note telling them to make the necessary corrections.

Friday, April 22, 2005

Podcasting Article

From the Santa Cruz Sentinel, and it's followed by a more general story about podcasting.

Thursday, April 21, 2005

Coldfusion Replace Question

Question: I am getting an error when I do this: <cfset newfilename = Replace(sourcefilename, " ", "_", [ALL])>

Because I am specifying the scope of the replace. I want it to do it for every occurence as opposed to one.

The error I get is: Missing argument name. When using named parameters to a function, every parameter must have a name Is there a better way to do this?

Answer:
<cfset newfilename = Replace(sourcefilename, " ", "_", "ALL")> The "ALL" is supposed to be in quotes. So your statement would be:

<cfset newfilename = Replace(sourcefilename, " ", "_", "ALL")> In the documentation, [] usually means "optional". So, you could have the statement:

<cfset newfilename = Replace(sourcefilename, " ", "_")>
<!--- without the "ALL", replace only first occurrence (default) --->
<cfset newfilename = Replace(sourcefilename, " ", "_", "ONE")>
<!--- replace only first occurrence --->

Or your statement with the "ALL".

<cfset newfilename = Replace(sourcefilename, " ", "_", "ALL")>

Wednesday, April 20, 2005

Podcasting Articles

Podcast Novel Collects Over 5,500 Readers, and Counting April 19 - PRNewswire



Joint Effort Will Apply Proven Broadcast Fundamentals to Podcasting and Internet Radio April 19 - PRNewswire



NAB speakers urge broadcasters to keep pace with technology April 19 - Las Vegas Sun



DoubleClick Releases 'Decade in Online Advertising' Paper April 19 - Stockhouse



A Silicon Valley Prophet April 18 - CBS News



Eyes Need A Break? Try XP's Clear Type April 18 - TBO.com



RADIO ACTIVE April 17 - NYPOST



'Visual radio' headed for U.S. cell phones April 17 - CNET



Peduto runs a do-it-yourself campaign for mayor April 17 - Pittsburg Tribune-Review



Podcasting to the world Political Gateway



BBC offers talk radio for the iPod generation April 16 - The Independent



The week on the web April 16 - Times Online



BBC Radio podcasts 20 more shows April 15, 2005 - BBC News



Ottawa's premier podcasters April 14, 2005 - Canada.com



US politicians embrace podcasts April 13 - BBCNews

Tuesday, April 19, 2005

Coldfusion Page Breaks

One CF page contains several document sections (i.e. Index, Content I, Content II, etc, and Appendix). Is there a way (in CF or something else) to put "print break" so that each section can be printed separate, not as one long document?

<div style="print-break-after:always"> </div>
But this will not work in all browsers, most current ones though.

This works fine on IE 6, which is my users are using.

<style type="text/css">
P.breakhere {page-break-before: always}
</style>
<p class="breakhere">

I am not sure if there is a CSS or something else to skip certain pages, when being printed, which will save some trees. I have some pages that I do not want to print.

<style type="text/css" media="print">
.doNotPrint {display:none}
</style>

Apply this style to those areas that you do not want to print out.

Monday, April 18, 2005

John and Steve Show -- NEW !!

A new episode of the John and Steve Show has been released, The John and Steve Show - Brother-in-Laws Gone Wild! These guys are flashing their wits all over the place.

Go to the site now and download it.

Sunday, April 17, 2005

Coldfusion Javascript Tip

If you're creating apps that process data and sends the current progress status to the browser so you can keep track of what's going on, you may have encountered the problem with having the hold down the scroll button (arrow/pgdn) so you can keep up with it or the data will just scroll off the page.

Here's a little javascript block that you can send with your progress status that'll scroll the browser for you.

Here's an example where it processes a data file line by line

<CFSET JS="<script language=""Javascript"">window.scroll(0,999999999);</script>">

<CFLOOP index="loop" from="1" to="#ListLen(DataFile,Chr(10)#">
<CFSET CurrLine=ListGetAt(DataFile,loop,Chr(10))>
<CFOUTPUT>Processing line #loop#<br>#JS#</CFOUTPUT>
<CFFLUSH>

<!--- Random bits of code here --->

</CFLOOP>