<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>CFDev</title>
	<atom:link href="http://cfdev.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://cfdev.wordpress.com</link>
	<description>coldfusion development blog</description>
	<pubDate>Fri, 23 May 2008 13:09:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>We&#8217;ve moved offices!</title>
		<link>http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/</link>
		<comments>http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/#comments</comments>
		<pubDate>Thu, 15 May 2008 13:31:50 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[coastdigital]]></category>

		<category><![CDATA[coast]]></category>

		<category><![CDATA[digital]]></category>

		<category><![CDATA[barn]]></category>

		<category><![CDATA[move]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/?p=13</guid>
		<description><![CDATA[Just thought I would share some previews of our new office with our funky new furniture, it&#8217;s so exciting! It&#8217;s an amazing building to be working in.
You&#8217;ll find more info about our move here
 
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>
<a href='http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/coast-digital-offices/' title='coast-digital-offices'><img src="http://cfdev.files.wordpress.com/2008/05/coast-digital-offices.jpg?w=72&h=96" width="72" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/coast-digital-offices2/' title='coast-digital-offices2'><img src="http://cfdev.files.wordpress.com/2008/05/coast-digital-offices2.jpg?w=72&h=96" width="72" height="96" class="attachment-thumbnail" alt="" /></a>
<a href='http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/coast-digital-offices3/' title='coast-digital-offices3'><img src="http://cfdev.files.wordpress.com/2008/05/coast-digital-offices3.jpg?w=72&h=96" width="72" height="96" class="attachment-thumbnail" alt="" /></a>
Just thought I would share some previews of our new office with our funky new furniture, it&#8217;s so exciting! It&#8217;s an amazing building to be working in.</p>
<p>You&#8217;ll find more info about our move <a href="http://www.coastdigital.co.uk/whats-new/news/coast-digital-expand-into-attractive-new-offices-in-16th-century-barn/" target="_blank">here</a></p>
<p> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=13&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2008/05/15/coast-digital-move-offices/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Remove carriage returns from a string</title>
		<link>http://cfdev.wordpress.com/2008/04/10/remove-carriage-returns-from-a-string/</link>
		<comments>http://cfdev.wordpress.com/2008/04/10/remove-carriage-returns-from-a-string/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 10:45:24 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[coldfusion]]></category>

		<category><![CDATA[carrage return remove coldfusion]]></category>

		<category><![CDATA[chr(13)]]></category>

		<category><![CDATA[chr]]></category>

		<category><![CDATA[string functions]]></category>

		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/?p=11</guid>
		<description><![CDATA[Quite often I need to remove carriage returns and usually I use the following code:
Replace(myvar,&#8221;#chr(13)#&#8221;,&#8221;",&#8221;ALL&#8221;);
However I have found this doesn&#8217;t always remove the carriage returns.
How did I fix it? I used the following code:
REReplace(myvar,&#8221;#chr(13)#&#124;\n&#124;\r&#8221;,&#8221;",&#8221;ALL&#8221;);
This works everytime, its very handy for writing html with javascript
for example:
&#60;cfsavecontent variable=&#8221;thecode&#8221;&#62;
&#60;cfinclude template=&#8221;#dynamicCFMfile#&#8221;&#62;
&#60;/cfsavecontent&#62;
&#60;cfscript&#62;
newDefaultCode = Replace(thecode ,&#8221;"&#8221;",&#8221;\&#8221;"&#8221;,&#8221;ALL&#8221;);
newDefaultCode = REReplace(newDefaultCode ,&#8221;#chr(13)#&#124;#chr(9)#&#124;\n&#124;\r&#8221;,&#8221;",&#8221;ALL&#8221;);
&#60;/cfscript&#62;
&#60;cfoutput&#62;theHTML = &#8220;#newDefaultAdCode#&#8221;;&#60;/cfoutput&#62;
document.write(theHTML);
This [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Quite often I need to remove carriage returns and usually I use the following code:</p>
<p>Replace(myvar,&#8221;#chr(13)#&#8221;,&#8221;",&#8221;ALL&#8221;);</p>
<p>However I have found this doesn&#8217;t always remove the carriage returns.</p>
<p>How did I fix it? I used the following code:</p>
<p>REReplace(myvar,&#8221;#chr(13)#|\n|\r&#8221;,&#8221;",&#8221;ALL&#8221;);</p>
<p>This works everytime, its very handy for writing html with javascript</p>
<p>for example:</p>
<p>&lt;cfsavecontent variable=&#8221;thecode&#8221;&gt;<br />
&lt;cfinclude template=&#8221;#dynamicCFMfile#&#8221;&gt;<br />
&lt;/cfsavecontent&gt;</p>
<p>&lt;cfscript&gt;<br />
newDefaultCode = Replace(thecode ,&#8221;"&#8221;",&#8221;\&#8221;"&#8221;,&#8221;ALL&#8221;);<br />
newDefaultCode = REReplace(newDefaultCode ,&#8221;#chr(13)#|#chr(9)#|\n|\r&#8221;,&#8221;",&#8221;ALL&#8221;);<br />
&lt;/cfscript&gt;<br />
&lt;cfoutput&gt;theHTML = &#8220;#newDefaultAdCode#&#8221;;&lt;/cfoutput&gt;</p>
<p>document.write(theHTML);</p>
<p>This allows me to dynamically write a coldfusion template to the page via javascript.</p>
<p> </p>
<p> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=11&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2008/04/10/remove-carriage-returns-from-a-string/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Coast Digital antics!</title>
		<link>http://cfdev.wordpress.com/2007/10/10/coast-digital-antics/</link>
		<comments>http://cfdev.wordpress.com/2007/10/10/coast-digital-antics/#comments</comments>
		<pubDate>Wed, 10 Oct 2007 16:32:54 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[coastdigital]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/10/10/coast-digital-antics/</guid>
		<description><![CDATA[We&#8217;ve just signed up with Flickr (about time!) and we are going to be posting examples of our work, cool photos and us just generally having fun! Come and have a look
       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We&#8217;ve just signed up with Flickr (about time!) and we are going to be posting examples of our work, cool photos and us just generally having fun! <a target="_blank" href="http://www.flickr.com/photos/coast-digital">Come and have a look</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=10&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/10/10/coast-digital-antics/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New site goes live!</title>
		<link>http://cfdev.wordpress.com/2007/08/03/new-site-goes-live/</link>
		<comments>http://cfdev.wordpress.com/2007/08/03/new-site-goes-live/#comments</comments>
		<pubDate>Fri, 03 Aug 2007 11:00:13 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[coastdigital]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/08/03/new-site-goes-live/</guid>
		<description><![CDATA[We have just launched our new website.
We’ve updated our branding and website to reflect how Coast Digital has evolved.
Check it out

http://www.coastdigital.co.uk

       ]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We have just launched our new website.</p>
<p>We’ve updated our branding and website to reflect how <a target="_blank" href="http://www.coastdigital.co.uk">Coast Digital</a> has evolved.</p>
<p>Check it out</p>
<p><a href="http://www.coastdigital.co.uk/"></p>
<h3>http://www.coastdigital.co.uk</h3>
<p></a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=9&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/08/03/new-site-goes-live/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I love XSL!</title>
		<link>http://cfdev.wordpress.com/2007/07/17/i-love-xsl/</link>
		<comments>http://cfdev.wordpress.com/2007/07/17/i-love-xsl/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 10:17:20 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[XML]]></category>

		<category><![CDATA[XSL]]></category>

		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/07/17/i-love-xsl/</guid>
		<description><![CDATA[I have been fighting with recursion for ages now and have found it to always be a real problem effecting performance, quite often you have to use complicated caching techniques, until now!
Using XSL you can perform recursion techniques on flat XML data. It sounds complicated but really it isn&#8217;t.
 Say you have node data like the following [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been fighting with recursion for ages now and have found it to always be a real problem effecting performance, quite often you have to use complicated caching techniques, until now!</p>
<p>Using XSL you can perform recursion techniques on flat XML data. It sounds complicated but really it isn&#8217;t.</p>
<p> Say you have node data like the following (in a flat structure).<br />
<code><br />
&lt;tree&gt;<br />
&lt;node icon=&#8221;" id=&#8221;1&#8243; objectID=&#8221;9&#8243; parentID=&#8221;0&#8243; recordID=&#8221;15&#8243; ref=&#8221;sites&#8221; title=&#8221;Sites&#8221;/&gt;<br />
&lt;node icon=&#8221;" id=&#8221;2&#8243; objectID=&#8221;9&#8243; parentID=&#8221;0&#8243; recordID=&#8221;28&#8243; ref=&#8221;media&#8221; title=&#8221;Template Media&#8221;/&gt;<br />
&lt;node icon=&#8221;" id=&#8221;3&#8243; objectID=&#8221;9&#8243; parentID=&#8221;0&#8243; recordID=&#8221;31&#8243; ref=&#8221;templates&#8221; title=&#8221;Templates&#8221;/&gt;<br />
&lt;node icon=&#8221;site.png&#8221; id=&#8221;4&#8243; objectID=&#8221;11&#8243; parentID=&#8221;1&#8243; recordID=&#8221;1&#8243; ref=&#8221;refresh&#8211;test&#8221; title=&#8221;Refresh&#8221;/&gt;<br />
&lt;node icon=&#8221;page.png&#8221; id=&#8221;5&#8243; objectID=&#8221;1&#8243; parentID=&#8221;4&#8243; recordID=&#8221;134&#8243; ref=&#8221;home&#8221; title=&#8221;Home&#8221;/&gt;<br />
&lt;node icon=&#8221;form.png&#8221; id=&#8221;6&#8243; objectID=&#8221;12&#8243; parentID=&#8221;5&#8243; recordID=&#8221;60&#8243; ref=&#8221;enq_form&#8221; title=&#8221;Enquiry Form&#8221;/&gt;<br />
&lt;node icon=&#8221;form.png&#8221; id=&#8221;7&#8243; objectID=&#8221;12&#8243; parentID=&#8221;5&#8243; recordID=&#8221;61&#8243; ref=&#8221;site_review&#8221; title=&#8221;Site Review&#8221;/&gt;<br />
&lt;node icon=&#8221;menu.png&#8221; id=&#8221;11&#8243; objectID=&#8221;5&#8243; parentID=&#8221;4&#8243; recordID=&#8221;8&#8243; ref=&#8221;topnav&#8221; title=&#8221;Top Nav 2&#8243;/&gt;<br />
&lt;node icon=&#8221;" id=&#8221;12&#8243; objectID=&#8221;9&#8243; parentID=&#8221;0&#8243; recordID=&#8221;33&#8243; ref=&#8221;users&#8221; title=&#8221;Users&#8221;/&gt;<br />
&lt;/tree&gt;</code></p>
<p>Using XSL you can build a hierarchical tree from this data:<br />
<code><br />
&lt;xsl:stylesheet xmlns:xsl=&#8221;<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>&#8220;<br />
version=&#8221;1.0&#8243;&gt;</code><code> &lt;xsl:template match="tree"&gt;</code><code>  </code></p>
<p><code>&lt;!-- Starts the tree --&gt;<br />
  &lt;ol&gt;</code><code>   </code></p>
<p><code>&lt;xsl:apply-templates/&gt;</code><code>  </code></p>
<p><code>&lt;/ol&gt;</code><code> </code></p>
<p><code>&lt;/xsl:template&gt;</code><code> </code></p>
<p><code>&lt;!-- Selects root nodes --&gt;<br />
 &lt;xsl:template match=&#8221;//node[@parentID=0]&#8220;&gt;</code><code> </code><code>  &lt;xsl:call-template name="process-branch"&gt;<br />
   &lt;xsl:with-param name=&#8221;id&#8221;&gt;&lt;xsl:value-of select=&#8221;@id&#8221;/&gt;&lt;/xsl:with-param&gt;<br />
   &lt;xsl:with-param name=&#8221;parentID&#8221;&gt;&lt;xsl:value-of<br />
select=&#8221;@parentID&#8221;/&gt;&lt;/xsl:with-param&gt;<br />
  &lt;/xsl:call-template&gt;</code><code> &lt;/xsl:template&gt;</code><code> &lt;!-- Recursive function --&gt;<br />
 &lt;xsl:template name=&#8221;process-branch&#8221;&gt;<br />
  &lt;xsl:param name=&#8221;id&#8221;/&gt;<br />
  &lt;xsl:param name=&#8221;parentID&#8221;/&gt;</code><code>  &lt;xsl:choose&gt;</p>
<p>   &lt;!&#8211; If element has no sub-nodes &#8211;&gt;<br />
   &lt;xsl:when test=&#8221;count(//node[@parentID=current()/@id])=0&#8243;&gt;</p>
<p>    &lt;!&#8211; Writes the node &#8211;&gt;<br />
    &lt;li&gt;<br />
     &lt;a href=&#8221;" mce_href=&#8221;"&gt;&lt;xsl:value-of select=&#8221;@title&#8221; /&gt;&lt;/a&gt;<br />
    &lt;/li&gt;</p>
<p>      &lt;/xsl:when&gt;</p>
<p>   &lt;!&#8211; If element has sub-nodes&#8211;&gt;<br />
      &lt;xsl:otherwise&gt;</p>
<p>    &lt;!&#8211; Starts a node with children element &#8211;&gt;<br />
    <br />
    &lt;li&gt;<br />
    &lt;a href=&#8221;" mce_href=&#8221;"&gt;&lt;xsl:value-of select=&#8221;@title&#8221; /&gt;&lt;/a&gt;<br />
    &lt;ol&gt;<br />
    <br />
        </p>
<p>     &lt;!&#8211; For every sub-nodes of current node &#8211;&gt;<br />
     &lt;xsl:for-each select=&#8221;//node[@parentID=current()/@id]&#8220;&gt;</p>
<p>      &lt;!&#8211; Recurse the branch processing &#8211;&gt;<br />
      &lt;xsl:call-template name=&#8221;process-branch&#8221;&gt;<br />
       &lt;xsl:with-param name=&#8221;id&#8221;&gt;&lt;xsl:value-of<br />
select=&#8221;@id&#8221;/&gt;&lt;/xsl:with-param&gt;<br />
       &lt;xsl:with-param name=&#8221;parentID&#8221;&gt;&lt;xsl:value-of<br />
select=&#8221;@parentID&#8221;/&gt;&lt;/xsl:with-param&gt;<br />
      &lt;/xsl:call-template&gt;</p>
<p>     &lt;/xsl:for-each&gt;<br />
     <br />
    &lt;/ol&gt;<br />
    &lt;/li&gt;<br />
      &lt;/xsl:otherwise&gt;</p>
<p>  &lt;/xsl:choose&gt;</p>
<p> &lt;/xsl:template&gt;</p>
<p>&lt;/xsl:stylesheet&gt;<br />
</code><br />
Obviously you can replace the html with whatever elements you wish, even build hierarchical XML.</p>
<p>You then use the (rather handy) coldfusion function</p>
<p><code>#XMLTransform(XMLParse(xmldata), xslSheet)#</code></p>
<p>And there you have it, no long loops with recurring queries!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=8&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/07/17/i-love-xsl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Finding an e-commerce package</title>
		<link>http://cfdev.wordpress.com/2007/07/05/finding-an-e-commerce-package/</link>
		<comments>http://cfdev.wordpress.com/2007/07/05/finding-an-e-commerce-package/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 12:37:53 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[E-commerce]]></category>

		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/07/05/finding-an-e-commerce-package/</guid>
		<description><![CDATA[About 4 months ago we purchased a license for a coldfusion e-commerce software package, but only now am I finding functionality missing that I assumed would be there. For example the system allows you to enter discounts, but it doesn&#8217;t cater for &#8220;buy x get x free&#8221; and today a customer wanted to know how many customers they [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>About 4 months ago we purchased a license for a coldfusion e-commerce software package, but only now am I finding functionality missing that I assumed would be there. For example the system allows you to enter discounts, but it doesn&#8217;t cater for &#8220;buy x get x free&#8221; and today a customer wanted to know how many customers they had. I went to reporting and couldnt find a report for this simple piece of information. I had to do a search on the customers and read how many results were returned. Not ideal.</p>
<p>I think it&#8217;s very hard to think about all the functionality you require when you are buying an e-commerce solution. It&#8217;s also hard to find something that does everything you want but doesn&#8217;t cost too much per-license. Most people who are looking to start a shop don&#8217;t often have a lot to spend and they see advertisements like &#8220;E-commerce solution £9.99 a month&#8221; which makes them question why they have to pay such a hefty price tag for your solution. </p>
<p>I&#8217;d love to hear your thoughts and If you have any recommendations for any other software packages.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=7&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/07/05/finding-an-e-commerce-package/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Blog CFC customization</title>
		<link>http://cfdev.wordpress.com/2007/07/05/blog-cfc-customization/</link>
		<comments>http://cfdev.wordpress.com/2007/07/05/blog-cfc-customization/#comments</comments>
		<pubDate>Thu, 05 Jul 2007 12:04:15 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[coldfusion]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/07/05/blog-cfc-customization/</guid>
		<description><![CDATA[I don&#8217;t know if any of you have used Blog CFC but it&#8217;s a great little app. I have been implementing it into our CMS. I have found a few problems with it though, for example if you want the admin completely seperate in a different folder structure it&#8217;s very hard to get the links [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I don&#8217;t know if any of you have used <a target="_blank" href="http://blogcfc.riaforge.org/">Blog CFC</a> but it&#8217;s a great little app. I have been implementing it into our CMS. I have found a few problems with it though, for example if you want the admin completely seperate in a different folder structure it&#8217;s very hard to get the links to work.<br />
I also didnt really like the calendar aspect of the tool so I have written my own &#8220;pod&#8221; for just showing the months and years with posts.</p>
<p>in the blog.cfc i have written the following function:</p>
<p><code>&lt;cffunction name="getActiveMonths" returnType="query" output="false" hint="Returns a query of months and years with Entries."&gt;<br />
  &lt;cfargument name=&#8221;year&#8221; type=&#8221;numeric&#8221; required=&#8221;false&#8221;&gt;<br />
  <br />
 &lt;cfset var months = &#8220;&#8221;&gt;<br />
&lt;cfset var posted = &#8220;&#8221;&gt;   </code><code></code><code>  &lt;cfif instance.blogDBType is "MSSQL"&gt;<br />
   &lt;cfset posted = &#8220;dateAdd(hh, #instance.offset#, tblblogentries.posted)&#8221;&gt;<br />
  &lt;cfelseif instance.blogDBType is &#8220;MSACCESS&#8221;&gt;<br />
   &lt;cfset posted = &#8220;dateAdd(&#8217;h', #instance.offset#, tblblogentries.posted)&#8221;&gt;<br />
  &lt;cfelseif instance.blogDBType is &#8220;MYSQL&#8221;&gt;<br />
   &lt;cfset posted = &#8220;date_add(posted, interval #instance.offset# hour)&#8221;&gt;<br />
  &lt;cfelseif instance.blogDBType is &#8220;ORACLE&#8221;&gt;<br />
   &lt;cfset posted = &#8220;tblblogentries.posted + (#instance.offset#/24)&#8221;&gt;<br />
  &lt;/cfif&gt;    <br />
  <br />
  &lt;cfquery datasource=&#8221;#instance.dsn#&#8221; name=&#8221;months&#8221; username=&#8221;#instance.username#&#8221; password=&#8221;#instance.password#&#8221;&gt;<br />
   select distinct<br />
    &lt;cfif instance.blogDBType is &#8220;MSSQL&#8221;&gt;<br />
     datepart(mm, #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;MYSQL&#8221;&gt;<br />
     extract(month from #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;MSACCESS&#8221;&gt;<br />
     datepart(&#8217;m', #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;ORACLE&#8221;&gt;<br />
     to_char(#preserveSingleQuotes(posted)#, &#8216;mm&#8217;) <br />
    &lt;/cfif&gt; as posted_month,<br />
    &lt;cfif instance.blogDBType is &#8220;MSSQL&#8221;&gt;<br />
     datepart(yyyy, #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;MYSQL&#8221;&gt;<br />
     extract(year from #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;MSACCESS&#8221;&gt;<br />
     datepart(&#8217;y', #preserveSingleQuotes(posted)#)<br />
    &lt;cfelseif instance.blogDBType is &#8220;ORACLE&#8221;&gt;<br />
     to_char(#preserveSingleQuotes(posted)#, &#8216;yyyy&#8217;) <br />
    &lt;/cfif&gt; as posted_year<br />
   from tblblogentries<br />
   where<br />
    <br />
    blog = &lt;cfqueryparam value=&#8221;#instance.name#&#8221; cfsqltype=&#8221;CF_SQL_VARCHAR&#8221; maxlength=&#8221;50&#8243;&gt;<br />
    and #preserveSingleQuotes(posted)# &lt; &lt;cfqueryparam cfsqltype=&#8221;cf_sql_timestamp&#8221; value=&#8221;#blogNow()#&#8221;&gt;<br />
    and released = 1<br />
    ORDER BY posted DESC<br />
  &lt;/cfquery&gt; &lt;cfreturn months&gt;</p>
<p> &lt;/cffunction&gt;<br />
</code></p>
<p>Then in the front end in the calendar.cfm pod I commented out the calendar and put in the following code:</p>
<p><code>&lt;cfscript&gt;<br />
monthsQuery=application.blog.getActiveMonths();<br />
&lt;/cfscript&gt;<br />
&lt;ol&gt;<br />
&lt;cfoutput query=&#8221;monthsQuery&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#application.rooturl##posted_year#/#posted_month#&#8221; mce_href=&#8221;#application.rooturl##posted_year#/#posted_month#&#8221;&gt;#monthAsString(posted_month)# #posted_year#&lt;/a&gt;&lt;/li&gt;<br />
&lt;/cfoutput&gt;<br />
&lt;/ol&gt;</code></p>
<p>It seems to work a treat!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=6&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/07/05/blog-cfc-customization/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Coldfusion 8 security</title>
		<link>http://cfdev.wordpress.com/2007/07/04/coldfusion-8-security/</link>
		<comments>http://cfdev.wordpress.com/2007/07/04/coldfusion-8-security/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 13:00:39 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/07/04/coldfusion-8-security/</guid>
		<description><![CDATA[An independant source has released a report on the security of the new version of Coldfusion, with the conclusion being &#8220;ColdFusion 8 exhibits a high degree of resilience to application layer attacks with no compromise on functionality provisioned by the new features.&#8221; 
There is also mention of the new Authentication and Authorization model ( you [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>An independant source has released a report on the security of the new version of Coldfusion, with the conclusion being <em>&#8220;ColdFusion 8 exhibits a high degree of resilience to application layer attacks with no compromise on functionality provisioned by the new features.&#8221; </em></p>
<p>There is also mention of the new Authentication and Authorization model ( you can now have more than one login for the coldfusion administration)  and that it has raised the security of the overall product.</p>
<p>Here is the report <a href="http://www.dcooper.org/ColdFusion_8_Product_Security_Brief.pdf">http://www.dcooper.org/ColdFusion_8_Product_Security_Brief.pdf</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=5&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/07/04/coldfusion-8-security/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Aggregation using coldfusion components</title>
		<link>http://cfdev.wordpress.com/2007/06/29/aggregation-using-components/</link>
		<comments>http://cfdev.wordpress.com/2007/06/29/aggregation-using-components/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 11:11:23 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA['OO' Programming]]></category>

		<guid isPermaLink="false">http://cfdev.wordpress.com/2007/06/29/aggregation-using-components/</guid>
		<description><![CDATA[Recently I&#8217;ve started using a more object-orientated way of programming but have found it is really starting to hurt my head. The main problems I have found seem to be with coldfusion itself. I am currently developing in CF7 and it doesn&#8217;t support multiple inheritance, it also doesnt have interfaces, as far as I understand, interfaces allow you [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I&#8217;ve started using a more object-orientated way of programming but have found it is really starting to hurt my head. The main problems I have found seem to be with coldfusion itself. I am currently developing in CF7 and it doesn&#8217;t support multiple inheritance, it also doesnt have interfaces, as far as I understand, interfaces allow you to share methods across classes (components). I have found many articles written by <a target="_blank" href="http://www.halhelms.com/">Hal Helms</a> on this subject which have helped but i&#8217;m still unsure that I am understanding the whole thing correctly.</p>
<p>Here is some code to show you what I have done so far&#8230;</p>
<p><code>contactObj=createObject("component","components.contact").init();<br />
titleObj=createObject(&#8221;component&#8221;,&#8221;components.contact.title&#8221;).init();</code><code> </code><code>titleObj.setTitleID( form.titleID )<br />
contactObj.setTitle( titleObj );<br />
contactObj.setFirstName( form.firstName );<br />
contactObj.setLastName( form.lastName );<br />
contactObj.setEmail( form.email );<br />
contactObj.setUsername( form.username );<br />
contactObj.setPassword( form.password );<br />
contactObj.setContactID( form.contactID );</code></p>
<p>As you can see I have a setTitle() Method and this creates an object within contact of type &#8220;title&#8221;. The set title method looks like this:</p>
<p><code>&lt;cffunction name="setTitle" access="public" returntype="void" output="false" hint="I set the title property"&gt;<br />
&lt;cfargument name=&#8221;title&#8221; type=&#8221;components.contact.title&#8221; required=&#8221;yes&#8221; hint=&#8221;title value&#8221; /&gt;<br />
&lt;cfset variables.title = arguments.title /&gt;<br />
&lt;/cffunction&gt;</code></p>
<p>The whole thing seems to work fine, but i&#8217;m still unsure i&#8217;m actually doing things correctly, sometimes you can go down a path and find out later that you should of been doing it a different way and it will cause you a headache further down the line.</p>
<p>I&#8217;d love to hear your thoughts on Aggregation using components and I&#8217;d also like to know if i&#8217;m doing it correctly.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=3&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/06/29/aggregation-using-components/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Introduction</title>
		<link>http://cfdev.wordpress.com/2007/06/29/hello-world/</link>
		<comments>http://cfdev.wordpress.com/2007/06/29/hello-world/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 10:45:39 +0000</pubDate>
		<dc:creator>cfdev</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi there WordPressers!
I&#8217;m Matt and I work for a web agency called coastdigital. I&#8217;ve decided to try out this blogging malarky and hopefully get some responses from the public about my methods of programming and to discuss what is the best way of doing things!
 My main role in the company is developing our content management [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Hi there WordPressers!</p>
<p>I&#8217;m Matt and I work for a web agency called <a target="_blank" href="http://www.coastdigital.co.uk">coastdigital</a>. I&#8217;ve decided to try out this blogging malarky and hopefully get some responses from the public about my methods of programming and to discuss what is the best way of doing things!</p>
<p> My main role in the company is developing our content management system called <a target="_blank" href="http://www.refreshcms.com">Refresh</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/cfdev.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/cfdev.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cfdev.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cfdev.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cfdev.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cfdev.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cfdev.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cfdev.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cfdev.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cfdev.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cfdev.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cfdev.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=cfdev.wordpress.com&blog=1302874&post=1&subd=cfdev&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://cfdev.wordpress.com/2007/06/29/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>