<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HonkBlog&#124;TechNotes &#187; Coldfusion</title>
	<atom:link href="http://www.honk.com.au/index.php/category/dev/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.honk.com.au</link>
	<description>Notes, fixes, tips and suggestions from across my technical world</description>
	<lastBuildDate>Wed, 02 Jun 2010 13:24:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Variable is &#8220;undefined&#8221; even with cfparam Coldfusion 9</title>
		<link>http://www.honk.com.au/index.php/2009/11/26/variable-is-undefined-even-with-cfparam-coldfusion-9/</link>
		<comments>http://www.honk.com.au/index.php/2009/11/26/variable-is-undefined-even-with-cfparam-coldfusion-9/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 13:00:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://www.honk.com.au/?p=265</guid>
		<description><![CDATA[Going through some testing as part of our upgrade to Coldfusion 9 I encountered a compatibility issue that is worth knowing about.  In Coldfusion 9 there is now a variable status &#8220;undefined&#8221;, that is the variable can exist (and appear in cfdump for example) but is not usable, it is explicitly undefined.  This [...]]]></description>
			<content:encoded><![CDATA[<p>Going through some testing as part of our upgrade to Coldfusion 9 I encountered a compatibility issue that is worth knowing about.  In Coldfusion 9 there is now a variable status &#8220;undefined&#8221;, that is the variable can exist (and appear in cfdump for example) but is not usable, it is explicitly undefined.  This is a problem because if you try and use cfparam later for example it doesn&#8217;t override the &#8220;undefined&#8221; variable.   So far the only place I&#8217;ve seen this is when using components, and then to be fair the condition arose because of some inconsistent defaulting so it&#8217;s not completely the fault of the new process but it&#8217;s worth being aware of if you are getting <strong>unexplained &#8220;undefined&#8221; errors</strong> when moving up to Coldfusion 9.</p>
<p>Ok so consider the following:</p>
<p>&lt;CFFUNCTION name=&#8221;getByCriteria&#8221; access=&#8221;public&#8221; returntype=&#8221;query&#8221; output=&#8221;false&#8221; displayname=&#8221;" hint=&#8221;"&gt;<br />
&lt;CFARGUMENT name=&#8221;child_ocl_id&#8221; required=&#8221;false&#8221; &gt;</p>
<p>This will result in an explicitly set variable that is set to &#8220;undefined&#8221; &#8211; the cfdump is thus:</p>
<p style="text-align: center;"><img class="size-medium wp-image-266 aligncenter" title="cfdump_with_undefined_variable" src="http://www.honk.com.au/wp-content/uploads/2009/11/cfdump_with_undefined_variable-300x185.png" alt="cfdump_with_undefined_variable" width="300" height="185" /></p>
<p>Note the explicitly &#8220;undefined&#8221; status as well as (what my code was expecting) the &#8220;[empty string]&#8221; status</p>
<p>This stays the same whether you add a cfparam later or not, thus:</p>
<p>&lt;CFFUNCTION name=&#8221;getByCriteria&#8221; access=&#8221;public&#8221; returntype=&#8221;query&#8221; output=&#8221;false&#8221; displayname=&#8221;" hint=&#8221;"&gt;<br />
&lt;CFARGUMENT name=&#8221;child_ocl_id&#8221; required=&#8221;false&#8221; &gt;<br />
&lt;CFPARAM name=&#8221;arguments.child_ocl_id&#8221; default=&#8221;my new default&#8221; &gt;</p>
<p>Note the above example isn&#8217;t what was in my code!  It&#8217;s just a simple explanation of the behaviour I noticed.  So just something to be aware of if you get unexplained &#8220;undefined&#8221; errors in your migration to Coldfusion 9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honk.com.au/index.php/2009/11/26/variable-is-undefined-even-with-cfparam-coldfusion-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free coldfusion Diff comparison of HTML &#8211; CFX_CompareHTML</title>
		<link>http://www.honk.com.au/index.php/2009/11/16/free-coldfusion-diff-comparison-of-html-cfx_comparehtml/</link>
		<comments>http://www.honk.com.au/index.php/2009/11/16/free-coldfusion-diff-comparison-of-html-cfx_comparehtml/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 09:07:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://www.honk.com.au/?p=247</guid>
		<description><![CDATA[The Coldfusion open source community just keeps getting stronger.  Whenever I talk to other cf programmers who are thinking of moving to another platform (there still seems to be a deep seated belief that CF is not a &#8220;real&#8221; programming language) I point them to great projects like RIAForge or a host of open [...]]]></description>
			<content:encoded><![CDATA[<p>The Coldfusion open source community just keeps getting stronger.  Whenever I talk to other cf programmers who are thinking of moving to another platform (there still seems to be a deep seated belief that CF is not a &#8220;real&#8221; programming language) I point them to great projects like <a href="http://www.riaforge.org/" target="_blank">RIAForge</a> or a host of open source tags and components that I have used recently to remind them that the community is alive and well.</p>
<p>The latest of these that I have implemented successfully is an excellent implementation of <a href="http://code.google.com/p/daisydiff/" target="_blank">DaisyDiff </a>by <a href="http://www.cfdan.com" target="_blank">Daniel Mackey</a>.  Though he has put together a direct <a href="http://www.cfdan.com/posts/CompareHTMLComponent__JAR_to_compare_two_HTML_fragments.cfm" target="_blank">Java jar implementation</a> I have opted for his<a href="http://www.cfdan.com/posts/CFX_CompareHTML_ColdFusion_HTML_diff_custom_tag.cfm" target="_blank"> CFX_CompareHTML</a> implementation because of it&#8217;s support for UTF-8 characters, he sent it on to me directly the last time I checked it wasn&#8217;t available on line (thanks Dan).</p>
<p>The free CFX_compareHTML does a <strong>DIFF analyses on formatted html</strong>, and then displays it as a combined diff output, this is useful for comparing before and after content for example and is comparable to tools such as (the very expensive) <a href="http://www.softinterface.com/MD/Document-Comparison-Software.htm" target="_blank">diffdoc</a>.  Diffdoc costs about $4000 for a server license, and while it has more applications (i.e. as a desktop tool) for web based html comparison CFX_CompareHTML is more than adequate.</p>
<p>Once installed (the one downside of CFX tags is of course the need to install them and set their path in CF admin) it&#8217;s as simple as:</p>
<p><span style="color: #800000;">&lt;cfx_CompareHTML left=<span style="color: #0000ff;">&#8220;Some HTML content&#8221;</span> right=<span style="color: #0000ff;">&#8220;Some more HTML Content&#8221;</span>&gt;</span></p>
<p><span style="color: #800000;"><span style="color: #000000;">Produces the following (nicked from CFDan.com &#8211; hope that&#8217;s ok Dan?!)</span></span></p>
<p style="text-align: center;"><span style="color: #800000;"><span style="color: #000000;"><img class="aligncenter size-medium wp-image-248" title="compareHTML" src="http://www.honk.com.au/wp-content/uploads/2009/11/compareHTML-300x207.jpg" alt="compareHTML" width="300" height="207" /></span></span></p>
<p style="text-align: left;"><span style="color: #800000;"><span style="color: #000000;">As I mentioned there are a couple of great tags/components in the CF open source world that I&#8217;ve used lately, and inspired by this excellent work I&#8217;ll be documenting them over the coming days.<br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.honk.com.au/index.php/2009/11/16/free-coldfusion-diff-comparison-of-html-cfx_comparehtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Define shortcut keys for Snippets in CFEclipse</title>
		<link>http://www.honk.com.au/index.php/2009/10/12/define-shortcut-keys-for-snippets-in-cfeclipse/</link>
		<comments>http://www.honk.com.au/index.php/2009/10/12/define-shortcut-keys-for-snippets-in-cfeclipse/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 10:43:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Eclipse]]></category>

		<guid isPermaLink="false">http://www.honk.com.au/?p=127</guid>
		<description><![CDATA[Something I have to continually remind myself about for some reason is how to define and use shortcut keys for snippets in CFEclipse.   I&#8217;ve written about how to use snippets in cfeclipse before but failed to mention that an additional powerful feature is the ability to have them operate using keyboard shortcuts.
So, here it is [...]]]></description>
			<content:encoded><![CDATA[<p>Something I have to continually remind myself about for some reason is <strong>how to define and use shortcut keys for snippets in CFEclipse</strong>.   I&#8217;ve written about <a href="/index.php/2009/08/27/how-to-use-snippets-in-cf-eclipse-coldfusion-for-eclipse/">how to use snippets in cfeclipse </a>before but failed to mention that an additional powerful feature is the ability to have them operate using keyboard shortcuts.</p>
<p>So, here it is in all it&#8217;s glory:</p>
<p>Firstly I&#8217;ve assumed you have <a href="/index.php/2009/08/27/how-to-use-snippets-in-cf-eclipse-coldfusion-for-eclipse/">set up a snippet in cfeclipse</a> as described <a href="/index.php/2009/08/27/how-to-use-snippets-in-cf-eclipse-coldfusion-for-eclipse/">here</a>.</p>
<p>Now, you will notice there is an attribute int eh snippet description called &#8220;trigger text&#8221;, this is the the text that is used to specify your shortcut, it is however not used as the short cut itself but rather in combination with the actual snippet shortcut which at time of writing was CTRL + J.</p>
<p>So, having saved a snippet with a trigger text for example of &#8220;rk&#8221; you can cause the snippet to appear by typing anywhere on the page:</p>
<p style="padding-left: 30px;">rk+CTRL+J</p>
<p>And your text should magically be replaced by the new snippet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.honk.com.au/index.php/2009/10/12/define-shortcut-keys-for-snippets-in-cfeclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic robots.txt file with .asp (or coldfusion)</title>
		<link>http://www.honk.com.au/index.php/2009/06/06/dynamic-robotstxt-file-with-asp-or-coldfusion/</link>
		<comments>http://www.honk.com.au/index.php/2009/06/06/dynamic-robotstxt-file-with-asp-or-coldfusion/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 20:37:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[Coldfusion]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Active Server Pages]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Internet Information Services]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://www.honk.com.au/?p=35</guid>
		<description><![CDATA[Something I had to do a while back, but have had to repeat recently when setting up new servers is setting IIS to run robots.txt files as if they were a dynamic page.  This is because I run a single code base that shows different languages depending on the domain being called.  The process for doing [...]]]></description>
			<content:encoded><![CDATA[<p>Something I had to do a while back, but have had to repeat recently when setting up new servers is setting IIS to run robots.txt files as if they were a dynamic page.  This is because I run a single code base that shows different languages depending on the domain being called.  The process for doing this is, in theory, quite straight forward but it got a little fiddly as I worked on it late in the evening so I thought I&#8217;d log the standard process as well as the problem I encountered.</p>
<p>NB: I&#8217;ve included Coldfusion in the title because that&#8217;s the language I was using on the site in question, it&#8217;s not actually a Coldfusion process, but it should work fine on any IIS based CF system.</p>
<h4>Firstly set up the IIS server so that it will run your robots.txt dynamically:</h4>
<p>By default IIS will treat .txt files as non dynamic and will simply render the text in them if they are called.  We want to tell IIS to parse them in the same way they would parse .asp files.  Note there&#8217;s a handy example of how to parse <a href="http://www.kleenecode.net/2007/11/17/dynamic-robotstxt-with-aspnet-20/" target="_blank">robots.txt files with ASP.net here</a>.</p>
<h4>Get the path to the ASPX engine</h4>
<p>This bit is adapted from <a href="http://www.kleenecode.net/2007/11/17/dynamic-robotstxt-with-aspnet-20/" target="_blank">ASP.net article</a> mentioned above.</p>
<ol>
<li>Open IIS and right click on your website and bring up the properties screen</li>
<li>Go to Home Directory &gt; Configuration. You will be on the Mappings Tab.</li>
<li>Locate the .asp item and click Edit &#8211; Copy the path in the Executable Field and cancel out of that window. <strong>Make no changes here</strong>, you just need the path to the executable.</li>
<li>Now, check to see that .txt extension has not been defined (if it has you should check to see who has made this change and why before changing).</li>
<li><strong>If it has not been defined</strong> then click &#8216;Add&#8217;, paste the path into the &#8216;Executable&#8217; field, and &#8216;.txt&#8217; into the &#8216;Extension&#8217; field.  In the &#8216;Verbs&#8217; field you should limit the verbs to &#8216;POST,GET&#8217; - I haven&#8217;t investigated security implications for this, but limiting by default is a good idea IMO.  Both &#8216;Script engine&#8217; and &#8216;Verify that file exists&#8217; should be checked.</li>
<li><strong>If it has been defined</strong> and you don&#8217;t mind changing it, obviously skip the add bit, click on the extension then click &#8216;Edit&#8217; and make changes as above. </li>
<li>Once you&#8217;ve saved, &#8216;OK out&#8217; of the configuration section</li>
</ol>
<h4>Double check that Active Server Pages are enabled </h4>
<p>This is the bit that got me the other night, working on a new install there was no reason for Active Server Pages to be enabled, so when I was testing nothing happened.</p>
<p>In IIS again, this time click on Web Service Extensions (below the Web Sites folder), on the right there should appear a list of extensions.  Active Server Pages should be one of them, and it should be set to &#8216;Allowed&#8217;.  If not make it so!</p>
<h4>Now, restart IIS and test it all works</h4>
<p>Assuming you have done nothing yet to your old robots.txt (and it had something in it), when you now try to browse to it in the browser you should get a an unformatted dump of the text you had in it. This means IIS is now using Active Server Pages to parse the request, but there is no .asp code to parse so it just renders text.</p>
<p>From here you need to put some .asp logic in place so that it loads the appropriate information.</p>
<h4>If you get a 404 error</h4>
<p>It probably means you have not allowed ASP pages to execute, refer to instructions above. Remember to restart IIS again after doing this.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/6de67bc1-d532-4a54-96b3-8c0f51481b5d/"><img class="zemanta-pixie-img" style="float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=6de67bc1-d532-4a54-96b3-8c0f51481b5d" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.honk.com.au/index.php/2009/06/06/dynamic-robotstxt-file-with-asp-or-coldfusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gzip for coldfusion, zip.cfc &#8211; brilliant tag useful for compressing google sitemaps.xml to Gzip</title>
		<link>http://www.honk.com.au/index.php/2008/10/31/gzip-for-coldfusion-zipcfc-brilliant-tag-useful-for-compressing-google-sitemapsxml-to-gzip/</link>
		<comments>http://www.honk.com.au/index.php/2008/10/31/gzip-for-coldfusion-zipcfc-brilliant-tag-useful-for-compressing-google-sitemapsxml-to-gzip/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 13:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coldfusion]]></category>

		<guid isPermaLink="false">http://www.honk.com.au/index.php/2008/10/31/gzip-for-coldfusion-zipcfc-brilliant-tag-useful-for-compressing-google-sitemapsxml-to-gzip/</guid>
		<description><![CDATA[Am in the process of automating the generation of google sitemaps on the sites I work on, one of the requirements is to gzip the end result.&#160; After a brief  scan and simple setup zip.cfc has come to the rescue.
Download the tag here.
The manual here.


]]></description>
			<content:encoded><![CDATA[<p>Am in the process of automating the generation of google sitemaps on the sites I work on, one of the requirements is to gzip the end result.&nbsp; After a brief  scan and simple setup <a href="http://livedocs.newsight.de/Zip/">zip.cfc</a> has come to the rescue.</p>
<p>Download the tag <a href="http://download.newsight.de/Zip.zip">here</a>.</p>
<p>The manual <a href="http://livedocs.newsight.de/Zip/">here</a>.</p>
<p></p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.honk.com.au/index.php/2008/10/31/gzip-for-coldfusion-zipcfc-brilliant-tag-useful-for-compressing-google-sitemapsxml-to-gzip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
