<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Blog of Shaun McCran - Architecting robust, elegant technical and business solutions - Coldfusion</title>
			<link>http://www.mccran.co.uk/index.cfm</link>
			<description>I write about Architecture and Design, Architectural patterns, Architectural Principles and Architectural policies. This includes TOGAF, Zachman, Business Architecture, SOA and Process and tools such as the IBM Rational software and Adobe products. I also write about my previous life as a mobile and web developer.</description>
			<language>en-gb</language>
			<pubDate>Tue, 09 Jun 2026 06:56:55 -0000</pubDate>
			<lastBuildDate>Mon, 01 Aug 2011 13:52:00 -0000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>shaun@mccran.co.uk</managingEditor>
			<webMaster>shaun@mccran.co.uk</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>shaun@mccran.co.uk</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>How I got started in ColdFusion</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/8/1/How-I-got-started-in-ColdFusion</link>
				<description>
				
				I thought Steve Bryant&apos;s idea of encouraging the ColdFusion community to write a blog article about how each of us got started with ColdFusion was genius. Here is a link back to Steve&apos;s blog. I&apos;d recommend reading it and seeing just how many of us have chipped in with something.

&lt;a href=&quot;http://www.bryantwebconsulting.com/blog/index.cfm/2011/7/20/August-1-2011-is-How-I-Started-ColdFusion-Day&quot; target=&quot;_blank&quot;&gt;http://www.bryantwebconsulting.com/blog/index.cfm/2011/7/20/August-1-2011-is-How-I-Started-ColdFusion-Day&lt;/a&gt;.

The story of how I got started in ColdFusion is below....
				 [More]
				</description>
				
				
				<category>Coldfusion</category>
				
				<pubDate>Mon, 01 Aug 2011 13:52:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/8/1/How-I-got-started-in-ColdFusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Handling Error templates in FW/1</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/6/8/Handling-Error-templates-in-FW1</link>
				<description>
				
				I&apos;ve been using Framework one for a few smaller scale projects, and during a wrap up session I noticed that I didn&apos;t have a global catch-all error page, or any kind of error notification subsystem, like an admin email prompt.
&lt;p&gt;
This blog article describes how FW/1 looks for and uses an error handling template.
&lt;p&gt;
				 [More]
				</description>
				
				
				<category>Coldfusion</category>
				
				<pubDate>Wed, 08 Jun 2011 04:49:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/6/8/Handling-Error-templates-in-FW1</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>HostMediaUK site migration complete</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/6/4/HostMediaUK-site-migration-complete</link>
				<description>
				
				I&apos;d been unhappy with my current hosting provider for a while, the performance just wasn&apos;t there, and the more I pushed the boundaries of development the more blocks I encountered. Also they were running old versions of ColdFusion and an old JVM which was having an effect on some Java development.
&lt;p&gt;
About three months ago I bought a test account with HostmediaUK. I thought I&apos;d venture into Linux based ColdFusion 9 hosting and see how it worked out.
I dropped a few test sites onto the platform and discovered a few migration issues around Linux, obvious things to me now, but case sensitive database table names and a totally different file directory system caused me major headaches.
&lt;p&gt;
That being said the server performance is great. sites respond well to requests, is easy to manage through the software layer installed on the servers, and when I requested access to the DNS settings it was freely given (albeit with the usual &apos;here be dragons&apos; warning!).
&lt;p&gt;
The customer service is great too, they keep winning awards and I can see why.
I&apos;ve just finished migrating the rest of my site to their platform, it is rare that I recommend a service but I&apos;d point anyone in the direction of HostmediaUK.
&lt;p&gt;

&lt;p align=&quot;center&quot;&gt;
&lt;a href=&quot;http://www.hostmediauk.com/coldfusion-hosting/&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.mccran.co.uk/images/hostmedia.jpg&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;
				
				</description>
				
				
				<category>Coldfusion</category>
				
				<category>Server management</category>
				
				<pubDate>Sat, 04 Jun 2011 14:22:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/6/4/HostMediaUK-site-migration-complete</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>JQuery datatable with added FancyBox and auto refresh</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/5/19/JQuery-datatable-with-added-FancyBox-and-auto-refresh</link>
				<description>
				
				Recently I&apos;ve had a few questions about how to use the datatables plugin to display data, and also integrate a pop up or lightbox function. The pop up would have an edit form in it, and when the user completes the edit the light box goes away and the datatable refreshes.
&lt;p&gt;
This is relatively straightforward to do, but there are several key concepts to getting everything working correctly, so I&apos;ve broken it down into a few chunks.
				 [More]
				</description>
				
				
				<category>JQuery</category>
				
				<category>Coldfusion</category>
				
				<category>Javascript</category>
				
				<category>RIA</category>
				
				<pubDate>Thu, 19 May 2011 22:11:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/5/19/JQuery-datatable-with-added-FancyBox-and-auto-refresh</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Handling CFfile upload &apos;accept&apos; file type errors</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/5/11/Handling-CFfile-upload-accept-file-type-errors</link>
				<description>
				
				&lt;p&gt;
I was working on a system recently that allowed a user to upload images onto the server. It was restricted to files types of images, more specifically &apos;jpeg&apos; and &apos;gif&apos; files.
&lt;p&gt;
This is easily done with the &apos;accept&apos; parameter, as documented in the ColdFusion documentation:
&lt;p&gt;
&lt;code&gt;
Accept:

Limits the MIME types to accept. Comma-delimited list. For example, the following code permits JPEG and Microsoft Word file uploads: 
accept = &quot;image/jpg, application/msword&quot;

The browser uses the file extension to determine file type.

&lt;/code&gt;
&lt;p&gt;
It is important to note here that it is the browser uses the file extension, so renaming an exe to jpg would fool it entirely.
&lt;p&gt;
Issues arise when you don&apos;t handle an invalid file upload in a friendly manner. In this case when a user tried to upload an incorrect file type they saw a nasty unformatted error message stating that the request could not be processed as the file was the wrong Mime type.
&lt;p&gt;
You cannot tell what the file type is until you attempt to upload it, so wrap your cffile tags in a simple try-catch and handle any errors in the same fashion as you normally would, I.E. by handling the system message and instead displaying a nice, user friendly message that doesn&apos;t sound like it was written by robots.
&lt;p&gt;
&lt;code&gt;

&lt;cftry&gt;

&lt;cffile action=&quot;upload&quot; destination=&quot;#request.uploadPath#&quot; fileField=&quot;form.new_image&quot; accept=&quot;image/jpeg, image/gif&quot; nameConflict=&quot;overwrite&quot;&gt;

&lt;cfcatch&gt;

	&lt;cfset attributes.errors.type = &apos;error&apos;&gt;
	&lt;cfset attributes.errors.message = &quot;The type of file you have tried to upload is not allowed, please select a jpg or gif.&quot;&gt;
	&lt;cfset request.continue = false&gt;

&lt;/cfcatch&gt;

&lt;/cftry&gt;

&lt;/code&gt;
&lt;p&gt;
				
				</description>
				
				
				<category>Coldfusion</category>
				
				<category>Best practices</category>
				
				<category>File Interactions</category>
				
				<pubDate>Wed, 11 May 2011 12:24:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/5/11/Handling-CFfile-upload-accept-file-type-errors</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Plesk 10.1.1 release adds ColdFusion 9 support</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/3/31/Plesk-1011-release-adds-ColdFusion-9-support</link>
				<description>
				
				It seems as though the newest version of the server management software &apos;Plesk&apos; v 10.1.1 is now officially ColdFusion 9 compatible.
&lt;p&gt;
Previously Plesk could only integrate with ColdFusion 8 as it caused instability issues with ColdFusion 9.
&lt;p&gt;
There isn&apos;t much about this in the release notes, just a simple statement.
&lt;p&gt;
&lt;code&gt;
ColdFusion 9 support. A new version of the popular site developing tool is available.
&lt;/code&gt;
&lt;p&gt;
The full release notes article is here:
&lt;a href=&quot;http://download1.parallels.com/Plesk/PP10/10.1.1/release-notes/parallels-plesk-panel-10.1.1-for-windows-based-os.html&quot; target=&quot;_blank&quot;&gt;http://download1.parallels.com/Plesk/PP10/10.1.1/release-notes/parallels-plesk-panel-10.1.1-for-windows-based-os.html&lt;/a&gt;
&lt;p&gt;
I&apos;m hoping it works well as I&apos;ve just commissioned a new server running both these software versions.
&lt;p&gt;
				
				</description>
				
				
				<category>Coldfusion</category>
				
				<pubDate>Thu, 31 Mar 2011 20:41:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/3/31/Plesk-1011-release-adds-ColdFusion-9-support</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Getting Video thumbnails from YouTube</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/3/28/Getting-Video-thumbnails-from-YouTube</link>
				<description>
				
				I want to display an image thumbnail on a page, so that a user can click on it and the video will pop up in a lightbox. But how do I get a thumbnail image of the video I want?

This article shows you how you can quickly and easily use a Youtube URL to get video thumbnails.
&lt;p&gt;
There is a demo of this here: &lt;a href=&quot;http://www.mccran.co.uk/examples/youtube-thumbs/&quot; target=&quot;_blank&quot;&gt;http://www.mccran.co.uk/examples/youtube-thumbs/&lt;/a&gt;
&lt;p&gt;
				 [More]
				</description>
				
				
				<category>Coldfusion</category>
				
				<pubDate>Mon, 28 Mar 2011 21:45:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/3/28/Getting-Video-thumbnails-from-YouTube</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Daily Dilbert RIAforge project release 1.0</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/2/18/Daily-Dilbert-RIAforge-project-release-10</link>
				<description>
				
				I&apos;m a great fan of the Dilbert cartoon series, so I&apos;ve put together a little application to go and get the Daily Dilbert cartoon strip from the Dilbert website.

It&apos;s a simply cfc call that will get today&apos;s Dilbert cartoon and save it to a path the user has defined and passed in as an argument.

Let me know if you use it, or think of any ways of to extend it.

It is also one of the first tests I was set as a trainee 10+ years ago, so was quite an interesting comparison to write it again.

You can download it from RIAforge here: &lt;a href=&quot;http://dilbert.riaforge.org/&quot; target=&quot;_blank&quot;&gt;http://dilbert.riaforge.org/&lt;/a&gt;
				
				</description>
				
				
				<category>Coldfusion</category>
				
				<category>General Interest</category>
				
				<pubDate>Fri, 18 Feb 2011 16:52:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/2/18/Daily-Dilbert-RIAforge-project-release-10</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>QRcfc released on RIAforge.org</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/1/30/QRcfc-released-on-RIAforgeorg</link>
				<description>
				
				I&apos;ve released the first version of a ColdFusion QR barcode generator on &lt;a href=&quot;http://qrcfc.RIAforge.org&quot; target=&quot;_blank&quot;&gt;http://qrcfc.riaforge.org/&lt;/a&gt;.
&lt;p&gt;
It is a CFC based wrapper for the Google ZXing barcode Java library &lt;a href=&quot;http://code.google.com/p/zxing/&quot; target=&quot;_blank&quot;&gt;http://code.google.com/p/zxing/&lt;/a&gt;.
&lt;p&gt;
There is a demo here: &lt;a href=&quot;http://www.mccran.co.uk/examples/qr-generator/&quot; target=&quot;_blank&quot;&gt;ColdFusion QR barcode generator&lt;/a&gt;&lt;!-- &lt;a href=&quot;http://www.mccran.co.uk/examples/qr-generator/&quot; target=&quot;_blank&quot;&gt;http://www.mccran.co.uk/examples/qr-generator/&lt;/a&gt;--&gt;

&lt;p&gt;
				 [More]
				</description>
				
				
				<category>Development</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Sun, 30 Jan 2011 23:05:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/1/30/QRcfc-released-on-RIAforgeorg</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Using ColdFusion to see Java server values</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/1/30/Using-ColdFusion-to-see-Java-server-values</link>
				<description>
				
				I&apos;ve been dabbling in more and more Java recently as an accompaniment to my using ColdFusion development, and I&apos;ve been finding more and more places where they support each other.

I rolled out a new Application to a live server (this one) and it failed to launch. This was all down to it running an incompatible JVM. So how do you tell what JVM version your server is running? I don&apos;t have direct access to this box, so I needed to do it in code.
				 [More]
				</description>
				
				
				<category>Development</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Sun, 30 Jan 2011 19:40:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/1/30/Using-ColdFusion-to-see-Java-server-values</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>The Coldfusion Hash() function decoded - kind of</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/1/23/The-Coldfusion-Hash-function-decoded--kind-of</link>
				<description>
				
				I&apos;ve always believed that using the hash() function in ColdFusion is a one way process. If I wanted to reverse a string I had to use encode() and decode(). The Adobe documentation states that &quot;It is not possible to convert the hash result back to the source string&quot; - &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c52.html&quot; target=&quot;_blank&quot;&gt;Adobe Docs for Hash()&lt;/a&gt;.

Strictly speaking this is still true, but some bright spark has decided to host an MD5 string database and provide a lookup service.
				 [More]
				</description>
				
				
				<category>Security</category>
				
				<category>Coldfusion</category>
				
				<category>Best practices</category>
				
				<pubDate>Sun, 23 Jan 2011 22:29:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/1/23/The-Coldfusion-Hash-function-decoded--kind-of</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Dynamically adding markers to Google maps</title>
				<link>http://www.mccran.co.uk/index.cfm/2011/1/15/Dynamically-adding-markers-to-Google-maps</link>
				<description>
				
				&lt;p&gt;
Following on from a previous article I wrote about (&lt;a href=&quot;http://www.mccran.co.uk/index.cfm/2011/1/11/Google-maps-panning-example&quot;&gt;Google maps panning&lt;/a&gt; the next step in my Google mapping project is to be able to add markers to a Google map dynamically.
&lt;p&gt;
This article deals with how to translate a location into a latitude and longitude using Google, and how to send and add markers from a database into a Google maps via a remote service, using AJAX and JSON.
&lt;p&gt;
There is a full example of the finished application here: &lt;a href=&quot;http://www.mccran.co.uk/examples/maps/recording.cfm&quot; target=&quot;_blank&quot;&gt;Demo of dynamically adding markers to Google maps&lt;/a&gt;
&lt;p&gt;
				 [More]
				</description>
				
				
				<category>JQuery</category>
				
				<category>Google</category>
				
				<category>Development</category>
				
				<category>Coldfusion</category>
				
				<category>AJAX</category>
				
				<pubDate>Sat, 15 Jan 2011 19:24:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2011/1/15/Dynamically-adding-markers-to-Google-maps</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Filtering a SELECT field using AJAX and JQuery</title>
				<link>http://www.mccran.co.uk/index.cfm/2010/12/22/Filtering-a-SELECT-field-using-AJAX-and-JQuery</link>
				<description>
				
				I&apos;ve got a select form field, and I want it to change based on a search string that someone enters. Luckily for me the select field is dynamically driven from a database, so the most obvious way for me to do this is to make an AJAX post request using the string entered to amend the SQL query building the field.
&lt;p&gt;
This article shows you how to do this, there is a demo of the select field using AJAX here: &lt;a href=&quot;http://www.mccran.co.uk/examples/jquery_textfilter_selectfield/&quot; target=&quot;_blank&quot;&gt;http://www.mccran.co.uk/examples/jquery_textfilter_selectfield/&lt;/a&gt;
&lt;p&gt;
				 [More]
				</description>
				
				
				<category>JQuery</category>
				
				<category>Coldfusion</category>
				
				<category>RIA</category>
				
				<category>AJAX</category>
				
				<pubDate>Wed, 22 Dec 2010 09:51:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2010/12/22/Filtering-a-SELECT-field-using-AJAX-and-JQuery</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Securing server side Coldfusion code with cfcompile</title>
				<link>http://www.mccran.co.uk/index.cfm/2010/11/1/Securing-server-side-Coldfusion-code-with-cfcompile</link>
				<description>
				
				If you ever need to protect your intellectual property, or you have suspicions that your code maybe be accessed on a server to be tampered with, then your best option is to compile your code base.

This article addresses how to use the cfcompile command, and what it actually does to your code base.
				 [More]
				</description>
				
				
				<category>Security</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Mon, 01 Nov 2010 11:46:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2010/11/1/Securing-server-side-Coldfusion-code-with-cfcompile</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>JQuery AJAX Http polling example</title>
				<link>http://www.mccran.co.uk/index.cfm/2010/9/26/JQuery-AJAX-Http-polling-example</link>
				<description>
				
				I&apos;ve been using the JQuery post() and get() functions for a while now, and thanks to decent Blog entries from other community members I&apos;ve got my head around the principles of seamless AJAX http requests and response handling.
&lt;p&gt;
This article examines a way of creating a polling AJAX http request. This is a request that will run every &lt;i&gt;N&lt;/i&gt; seconds based on a value. It will hit a remote service and return a result, and display that result on screen.
&lt;p&gt;
View a full demo of an &lt;a href=&quot;http://www.mccran.co.uk/examples/jquery-polling/index.cfm&quot; target=&quot;_blank&quot;&gt;AJAX polling request here.&lt;/a&gt;
&lt;p&gt;
				 [More]
				</description>
				
				
				<category>JQuery</category>
				
				<category>Coldfusion</category>
				
				<category>Json</category>
				
				<category>AJAX</category>
				
				<pubDate>Sun, 26 Sep 2010 19:05:00 -0000</pubDate>
				<guid>http://www.mccran.co.uk/index.cfm/2010/9/26/JQuery-AJAX-Http-polling-example</guid>
				
				
			</item>
			
		 	
			</channel></rss>