Creating A "Down For Maintenance" Page

Ben Nadel  has blogged a neat way to render a "Down For Maintenance" page including being Google friendly. The only thing I'd change is to put the code outside of the Application.cfc in a CFINCLUDE so that it could be styled to suit the site without all that code cluttering up the Application.cfc file.

CFSCRIPT Cheat Sheet

Pete Fritag has a great CFSCRIPT Cheat Sheet.

CFEclipse Cheatsheet

Do I need to say more?

http://www.thecrumb.com/cfeclipse/

Quick Access to cfQuickDocs

Drop and drop this cfQuickDocs Bookmarklet into your Firefox Links bar and you can get access to the CFQuickDocs website!

Comments

Kay started it and Sean followed it up. How do you comment?

ColdFusion Training Courses

Here's a list of ColdFusion training courses I've found:

Alternating Row Color Tip

Mark Kruger has blogged a tip on colouring alternative rows in HTML using CSS. I've done something similar before, but the use of #currentrow mod 2# is neat.

I now have a better tip. Use BitAnd() like <tr class="rowBackground#BitAnd(query.currentRow,1)#">.

Sample Applications

Looking for example applications built with Macromedia products? I found this list of Macromedia sample applications in the del.icio.us side bar on cfmx.org.

There are Flex, Flash, ColdFusion, and Dreamweaver example apps there.

Hungarian Notation

Where have I been going wrong!

It seems from Sean's blog that I, and most dev's, have got hold of the wrong end of the stick when it comes to Hungarian Notation.

Sean quotes Joel's blog and he, eventually, makes some interesting points.

Personally I'm happy with prefixing vars with their datatype as I think it's appropriate for a weakly type language like ColdFusion. Plus it helps with db column types when it comes to choosing the cfsqltype attribute.

Other links from Joel:

[Update: 25-June 2006] Actually it seems like I wasn't so wrong. Sounds like I've been using Hungarian System Notation according to Wikipedia.

Duplicating a Function

To stop you accidently defining a function more that once, try bracketing your code like this...

<cfif StructKeyExists(variables,"Foo") AND NOT IsCustomFunction(Foo)>
    <cfscript>
    function StripHTMLscope() {
        ...
        return true;
    }
    </cfscript>
</cfif>

More Entries

BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner