<?xml version="1.0"?>
<rss version="2.0">
<channel>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<link>http://www.sorcerers-isle.net</link>
<title>Sorcerer&apos;s Isle :: ColdFusion</title>
<description>Welcome to Sorcerer&apos;s Isle, a weblog covering a multitude of topics, ranging from programming to 3D graphics; photography to gadgets; tutorials to tinkering.</description>
<category>ColdFusion</category>
<item>
<title>CFML on Wikipedia</title>
<link>http://www.sorcerers-isle.net/article/cfml-on-wikipedia.html</link>
<description>&lt;p&gt;If you&apos;ve ever looked at the CFML related articles on Wikipedia, you can&apos;t fail to have noticed that, especially when compared to other programming articles, they&apos;re not very good.
&lt;p&gt;When somebody puts &quot;coldfusion&quot; or &quot;cfml&quot; into Google, they will almost certainly see the respective Wikipedia pages amongst the top three results, but when they follow those links they&apos;re unlikely to get a very good impression!
&lt;p&gt;If you agree that the CFML presence on Wikipedia can and should be improved, and it&apos;s up to the CFML community to do it, then &lt;a href=&quot;/article/cfml-on-wikipedia.html&quot;&gt;read on to find out how you can help fix it&lt;/a&gt;.</description>
<pubDate>Sun, 02 Oct 2011 22:08:01 GMT</pubDate>
</item>
<item>
<title>Introducing the cfRegex Project!</title>
<link>http://www.sorcerers-isle.net/article/introducing-the-cfregex-project.html</link>
<description>&lt;p&gt;The &lt;a href=&quot;http://cfregex.net&quot;&gt;cfRegex project&lt;/a&gt; is two things. Firstly, it is a complete regex implementation
for CFML, providing more functionality, flexibility, features and power than the
existing CFML RE functions. Secondly, it is a drive to encourage people to
properly learn and make use of regex.
&lt;p style=&quot;text-align:center;&quot;&gt;&lt;a href=&quot;/article/introducing-the-cfregex-project.html&quot;&gt;Read the rest of this article to find out more.&lt;/a&gt;&lt;/p&gt;
&lt;div style=&quot;text-align:center;margin:2em;&quot;&gt;
&lt;a href=&quot;http://cfregex.net&quot; title=&quot;Visit cfregex.net&quot;&gt;&lt;img src=&quot;http://cfregex.net/resources/images/cfregex-logo.tagb.png&quot; alt=&quot;cfRegeX :: First-class Regex for CFML :: http://cfregex.net&quot;&gt;&lt;/a&gt;&lt;/div&gt;</description>
<pubDate>Fri, 22 Jul 2011 22:20:48 GMT</pubDate>
</item>
<item>
<title>expandPath bug in CF8</title>
<link>http://www.sorcerers-isle.net/article/expandpath_bug_in_cf8.html</link>
<description>&lt;p&gt;I&apos;ve just encountered a very annoying bug with the expandPath function in CF8.&lt;/p&gt;
&lt;p&gt;Take the following code:&lt;/p&gt;
&lt;code class=&quot;block&quot;&gt;&amp;lt;cfset MyDir = &quot;.&quot;/&gt;
&amp;lt;cfloop index=&quot;i&quot; from=&quot;1&quot; to=&quot;5&quot;&gt;
&amp;lt;cfset MyDir = expandPath(MyDir)/&gt;
&amp;lt;cfoutput&gt;&amp;lt;br/&gt;#MyDir#&amp;lt;/cfoutput&gt;
&amp;lt;/cfloop&gt;&lt;/code&gt;
&lt;p&gt;Run the code through Railo and you will get exactly the right behaviour, with the current directory output five times:&lt;/p&gt;
&lt;code class=&quot;block&quot;&gt;C:\dev\scratch
C:\dev\scratch
C:\dev\scratch
C:\dev\scratch
C:\dev\scratch&lt;/code&gt;
&lt;p&gt;Now go run the same code with CF8 - and this is what you get:&lt;/p&gt;
&lt;code class=&quot;block&quot;&gt;F:\ColdFusion8\wwwroot\scratch
F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch
F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch
F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch
F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch\F:\ColdFusion8\wwwroot\scratch&lt;/code&gt;
&lt;p&gt;It simply stacks the current directory onto the front each time. Very frustrating.&lt;/p&gt;
&lt;br/&gt;
&lt;p&gt;In order to get round this, I created a regular expression to pull off the last value of any directory containing more than one colon - this will work for Windows machines, but may need to be changed for Linux or MacOSX machines (if the bug affects these).&lt;/p&gt;
&lt;code class=&quot;block&quot;&gt;&amp;lt;cfif isDefined(&apos;Server.ColdFusion.ProductName&apos;)
AND Server.ColdFusion.ProductName EQ &apos;ColdFusion Server&apos;
AND ListLen( MyDir ,&apos;:&apos;) GT 2&gt;
&amp;lt;cfset MyDir = REreplace( MyDir , &quot;^.*([A-Z]:[^:]+)$&quot; , &quot;\1&quot; )/&gt;
&amp;lt;/cfif&gt;&lt;/code&gt;</description>
<pubDate>Sat, 16 Aug 2008 17:23:42 GMT</pubDate>
</item>
<item>
<title>CFML Engine Comparison</title>
<link>http://www.sorcerers-isle.net/article/cfml_engine_comparison.html</link>
<description>&lt;p&gt;I have just published the &lt;a href=&quot;http://www.cfml-engines.info&quot;&gt;CFML Engine Wiki&lt;/a&gt;, a website to compare and detail the features and differences of the top CFML engines.&lt;/p&gt;
&lt;p&gt;There is still a lot of work to be done with it, but with it being a wiki I decided it better to release the URL and allow others to help with doing that.&lt;/p&gt;
&lt;a class=&quot;c&quot; href=&quot;http://www.cfml-engines.info&quot;&gt;www.cfml-engines.info&lt;/a&gt;</description>
<pubDate>Mon, 02 Jun 2008 09:07:15 GMT</pubDate>
</item>
</channel>
</rss>

