Entries Tagged as "Coldfusion"

Site Refresh - opinions?

I updated the site with a template from http://www.styleshout.com/. What do you guys think? Some of the links are not live yet, but overall I think its lookin decent. I know, its *very* blue, but thats my favorite web color. =)

5 Comments

Configuring IIS on one server, and Coldfusion on another

I was trying to configure my web server and coldfusion servers on seperate machines. My IIS server was setup to pull source from d:\\webroot. I copied the wsconfig.exe tool and its INI file from my coldfusion server root\\bin folder and ran it on my web server too hook them together.\n\nWhen I requested a file, I got a coldfusion message back file not found. If you look at the CF template path, the coldfusion server is looking for D:\\webroot\\blah.cfm (obviously that does not exist on the CF server, but only on the web server)\n\nI changed my IIS web server to point at itself using a UNC path instead of D:\\webroot, it became \\\\merovingian\\webroot, and now CF and IIS see the same path to my files and all is well.

Coldfusioncommunity.org launched

Very cool social networking site. If you want to view my amazing, beautiful, outstanding and flagrantly fascinating profile, just click!

My Profile

Quick check to find a value inside an array

I am setting up a registration form, and after validation if any errors occured I would pass back an array of error fields and messages. I wanted a very quick way to see if my array contain an element with the text "username". I know I could write or use a udf that would loop through the array, or I could even convert it to a list and then search that, but none of those solutions felt elegent to me. Until I found this:

<cfif errorArray.indexOf(<span class='cc_value'>"username"</span>)+1>error field</cfif>

I add 1 to this because indexOf is a java method, and it will return the array location that contains whatever string you searched for, and Java arrays start at 0. If the string is not found, it will return -1. So, will evaluate as 0, or false, and it wont execute. If it is found anywhere inside the array, it will return 1 or greater, which will evaluate as true and whatever is inside your if statement will execute. I love elegent solutions like this, a single line inside an if statement, and no converting arrays to lists to be seen anywhere.

One small caveat: this IS case sensitive, so USERNAME, or Username would not be found.

Thanks to the venture of online schools, correspondence education is not a problem. University of Phoenix favored this since ages. Now Kaplan University as well as DeVry University are in for it too. Only Walden University has yet to be convinced.

1 Comment

Web Charts - the hidden CF Gem

Dan Wilson of NoDans.com was speaking about this post today in #coldfusion on DalNet. Evidently, Coldfusion includes a license for the full version of Web Charts (http://www.webcharts3d.com). In the standalone coldfusion install, take a peek in {cfroot}\\charting\\ for a file called webcharts.bat. This little puppy starts up a java based chart designer where you can tweak your chart styles as much as you want, then save out the XML style and apply it to your own cf-chart. Looking on the webcharts3D.com site also lead me here: Eclipse Plugin Installer

Yes, being as its Java and WebCharts seems like a very slick product, they have an Eclipse plugin version of the GUI chart designer.

Happy designing!