Web Trenches

We recently had to update our post-commit hook functionality to be compatible with subversion 1.7 working copies.  There are more JAR file dependencies with 1.7, so here are some tips. First, some explanation of what our setup is.  On commit of a new revision of a file, we trigger a ColdFusion script that does several things: If […]

Content from a bug report I recently submitted to Adobe related to expandPath() in ColdFusion 10.  They have acknowledged it is a bug and will be fixing it.  https://bugbase.adobe.com/index.cfm?event=bug&id=3198902 — We have two identical versions of our application running on the same server – one in CF9 and one in CF10. We noticed that CF10 is signficantly […]

I was recently working on a legacy ColdFusion application that required .html and .htm files to be processed with ColdFusion.  The application currently runs on ColdFusion 9 and we are preparing it for ColdFusion 10.  To accomplish the processing of .html files with ColdFusion, we had always followed the method of editing the web.xml file and adjusting […]

The most recent hotfix for ColdFusion 9 can cause problems for people that have very large form submissions.  The fix imposes a form field limit of 100 fields on submit.  There is an override available for the default behavior, though.  I would recommend applying the patch to fix the security flaw, but then adjusting the default behavior […]

Story done by Hamilton College on our latest mobile Web project using both jQuery Mobile and CSS media queries: http://www.hamilton.edu/news/story/hamilton-offers-fast-access-with-new-mobile-friendly-app

I recently had to come up with a solution for Word-to-PDF file conversions on a server that was running Railo (UPDATE: Works on Lucee as well).  After much searching and combining of various articles that I read, I decided to put together a simple CFC to make this easier for others (and reusable for me).  This CFC will […]

After applying the 1.6 update to Mango Blog, my blog immediately stopped working.  Even after modifying some code to get around the error, all extensions were broken.  The answer was out there in the Mango forum, but it took me a while to find it.  I thought I'd spread the word for other Mango users. The problem's […]

For some reason, the production instances of ColdFusion 9.01 on our two production Windows 2008R2 64-bit servers just would not work with OpenOffice CFDOCUMENT conversions.  Our test and staging servers were working fine with the EXACT same configuration and CAR file imports.   Any time I attempted to run a Word-to-PDF or Excel-to-PDF conversion with the CFDOCUMENT […]

This has probably been written about many times before, but it stumped me today, so I thought I would share in case it saves anyone else some time.  By default, ColdFusion does not store data as UTF-8 into SQL Server.  This is a problem for Chinese characters sets, as well as many others.  I struggled with this […]

All of the programming that comes with the Uploadify plug-in for jQuery is done in PHP.  I've converted the new checkScript feature to use ColdFusion instead. —— checkfileexists.cfm —– <cfset returnArray = arrayNew(1) /><cfloop list=”#form.fieldnames#” index=”i”>    <cfif i NEQ “folder” AND fileExists('#expandpath(form.folder)#\#form[i]#')>            <cfset arrayAppend(returnArray,form[i]) />    </cfif></cfloop><cfcontent reset =”true” /><cfoutput>#serializeJSON(returnArray)#</cfoutput><cfabort> ——- end checkfileexists.cfm —— The cfcontent […]