<?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>CFgears - CFML</title>
			<link>http://www.cfgears.com/index.cfm</link>
			<description>Eric Cobb&apos;s blog about ColdFusion, Railo, Mach-II, Web Development, and other things that make the CF Gears in my head turn.</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 10:11:29 -0500</pubDate>
			<lastBuildDate>Thu, 02 Sep 2010 15:38:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>ecobb@ecartech.com</managingEditor>
			<webMaster>ecobb@ecartech.com</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>ecobb@ecartech.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Using RepeatString to create a mask in NumberFormat</title>
				<link>http://www.cfgears.com/index.cfm/2010/9/2/Using-RepeatString-to-create-a-mask-in-NumberFormat</link>
				<description>
				
				&lt;p&gt;Today I was working on creating a CSV file that required numeric columns to be a fixed number of digits, using leading zeros to make up the difference.  So, for example, if the column required 5 digits, the number 123 should show up as 00123.  This is super simple using the NumberFormat() function in CFML, simply specify a mask like so:&lt;/p&gt;
&lt;code&gt;
&lt;cfset variables.myNum = NumberFormat(123,&apos;00000&apos;)&gt;
&lt;cfoutput&gt;#variables.myNum#&lt;/cfoutput&gt;
&lt;/code&gt;
&lt;p&gt;But, in my particular case, I had several columns that required 12 and 15 digit numbers.
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<pubDate>Thu, 02 Sep 2010 15:38:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/9/2/Using-RepeatString-to-create-a-mask-in-NumberFormat</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Accessing Application.cfc methods from Application.cfm</title>
				<link>http://www.cfgears.com/index.cfm/2010/3/30/Accessing-Applicationcfc-methods-from-Applicationcfm</link>
				<description>
				
				&lt;p&gt;
This is pretty cool.  I really had no idea that you could do this.  (Now &lt;em&gt;why&lt;/em&gt; you would want to do this is another story!)
&lt;/p&gt;&lt;p&gt;
As I mentioned in my &lt;a href=&quot;http://www.cfgears.com/index.cfm/2010/3/29/Query-struct-gets-added-to-the-Variables-scope-of-Applicationcfc-whether-you-like-it-or-not&quot;&gt;last post&lt;/a&gt;, I&apos;ve been spending a lot of time lately working on porting a legacy ColdFusion application over to Application.cfc.  Everything has been going pretty well, until I started getting into sub-directories that have their own Application.cfm files in them.  There&apos;s not a whole lot going on in these Application.cfm files, but each one of them is required and each one of them has a different name in its cfapplication tag.  
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<pubDate>Tue, 30 Mar 2010 12:17:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/3/30/Accessing-Applicationcfc-methods-from-Applicationcfm</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Query struct gets added to the Variables scope of Application.cfc, whether you like it or not.</title>
				<link>http://www.cfgears.com/index.cfm/2010/3/29/Query-struct-gets-added-to-the-Variables-scope-of-Applicationcfc-whether-you-like-it-or-not</link>
				<description>
				
				&lt;p&gt;I&apos;ve been spending a lot of time lately working on porting a legacy ColdFusion application over from Application.cfm to Application.cfc on ColdFusion 8.  One of the things I&apos;m paying close attention to is what gets put into the variables scope inside of my Application.cfc.  I don&apos;t want to accidentally have stuff floating around in there and causing problems.  So, my constantly checking the variables scope of various methods is how I found this little gem.
&lt;/p&gt;&lt;p&gt;
Did you know that, even if a query name is var scoped in Application.cfc, you&apos;ll still get CFQUERY.EXECUTIONTIME stored in the variables scope of your CFC?
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 29 Mar 2010 15:11:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/3/29/Query-struct-gets-added-to-the-Variables-scope-of-Applicationcfc-whether-you-like-it-or-not</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Using a Java Object to replace blanks in a list.</title>
				<link>http://www.cfgears.com/index.cfm/2010/3/26/Using-a-Java-Object-to-replace-blanks-in-a-list</link>
				<description>
				
				&lt;p&gt;Today I was working on parsing through a CSV file, when I came across the all too familiar &quot;ColdFusion ignores blank list elements&quot; situation.  This is nothing new, it has been around forever, and there&apos;s even an &lt;a href=&quot;http://www.cflib.org/udf/ListFix&quot;&gt;excellent udf&lt;/a&gt; on cflib that does a great job of handling this.  But, I was feeling a little creative and decided to see if I could tap into Java and accomplish the same thing.&lt;/p&gt;&lt;p&gt;As it turns out, it was actually pretty easy to do.
				 [More]
				</description>
						
				
				<category>Java</category>				
				
				<category>CFML</category>				
				
				<pubDate>Fri, 26 Mar 2010 08:10:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/3/26/Using-a-Java-Object-to-replace-blanks-in-a-list</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Using Java objects to loop through a directory and check date last modified on files.</title>
				<link>http://www.cfgears.com/index.cfm/2010/2/25/Using-Java-objects-to-loop-through-a-directory-and-check-date-last-modified-on-files</link>
				<description>
				
				&lt;p&gt;
This is probably a no-brainer for some of you, but I was playing around with CFML&apos;s underlying Java capabilities the other day and thought I would share this little gem.  Not that it&apos;s all that extraordinary, or even really useful, I&apos;ve just got some free time and I haven&apos;t blogged anything in a couple of weeks so I figured &quot;why not?&quot;. 
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>Java</category>				
				
				<category>CFML</category>				
				
				<pubDate>Thu, 25 Feb 2010 07:09:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/2/25/Using-Java-objects-to-loop-through-a-directory-and-check-date-last-modified-on-files</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Discrepancies in the way ColdFusion validates dates.</title>
				<link>http://www.cfgears.com/index.cfm/2010/2/8/Discrepancies-in-the-way-ColdFusion-validates-dates</link>
				<description>
				
				&lt;p&gt;There seems to be discrepancies in the various date validations used throughout ColdFusion, or at least I&apos;ve found one case where it inconsistently considers a value a valid date.  It&apos;s probably easier to demo what I&apos;m talking about than to try to explain it.  Here&apos;s an example:
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 08 Feb 2010 14:29:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/2/8/Discrepancies-in-the-way-ColdFusion-validates-dates</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Problem with cfqueryparam and Oracle&apos;s char datatype.</title>
				<link>http://www.cfgears.com/index.cfm/2010/1/8/Problem-with-cfqueryparam-and-Oracles-char-datatype</link>
				<description>
				
				&lt;p&gt;I ran into a problem this afternoon with cfqueryparam when querying an Oracle database that really had me scratching my head.  In my query&apos;s WHERE clause I was filtering against a column that had a CHAR(8) datatype, but whenever I ran the query with cfqueryparam it wouldn&apos;t return any results.&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>Databases</category>				
				
				<category>CFML</category>				
				
				<pubDate>Fri, 08 Jan 2010 15:51:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2010/1/8/Problem-with-cfqueryparam-and-Oracles-char-datatype</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>CFML 101 - Rookie Mistakes Part 2</title>
				<link>http://www.cfgears.com/index.cfm/2009/12/17/CFML-101--Rookie-Mistakes-Part-2</link>
				<description>
				
				&lt;p&gt;
Just as in &lt;a href=&quot;http://www.cfgears.com/index.cfm/2009/12/6/CFML-101--Rookie-Mistakes-Part-1&quot;&gt;Rookie Mistakes Part 1&lt;/a&gt;, this post will cover mistakes that we&apos;ve all made at one point or another.  These are things that seasoned developers instinctively know to do, but beginners may not realize are better or more efficient.  Some of this post is based loosely on Adobe&apos;s &lt;a href=&quot;http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html&quot;&gt;Coding Best Practices for ColdFusion Performance&lt;/a&gt;, with a few of my own personal favorites thrown in there.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<category>CFML 101</category>				
				
				<pubDate>Thu, 17 Dec 2009 15:53:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/12/17/CFML-101--Rookie-Mistakes-Part-2</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>A valid use for the Evaluate() Function?</title>
				<link>http://www.cfgears.com/index.cfm/2009/12/10/A-valid-use-for-the-Evaluate-Function</link>
				<description>
				
				&lt;p&gt;
In the comments to my recent &lt;a href=&quot;http://www.cfgears.com/index.cfm/2009/12/6/CFML-101--Rookie-Mistakes-Part-1&quot;&gt;Rookie Mistakes&lt;/a&gt; post, Paul mentions that he is using Evaluate() to get the value of variables stored in a database.  In this particular case, he&apos;s not storing the variable values in the DB, he&apos;s storing the actual variable names and then using Evaluate() to get their values via CF.  To be specific he&apos;s storing a formula in the DB, and then using Evaluate() to perform the calculation and get the values.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<pubDate>Thu, 10 Dec 2009 13:21:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/12/10/A-valid-use-for-the-Evaluate-Function</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>CFML 101 - Rookie Mistakes Part 1</title>
				<link>http://www.cfgears.com/index.cfm/2009/12/6/CFML-101--Rookie-Mistakes-Part-1</link>
				<description>
				
				&lt;p&gt;This is the first in what I hope to be a continuing series of &lt;a href=&quot;http://www.cfgears.com/index.cfm/CFML-101&quot;&gt;CFML 101&lt;/a&gt; articles.  My intent is to produce a blog series aimed at the beginning CFML developer, one which helps to explain basic techniques and concepts to those new to the CF world.  The topics and examples covered in this series focus on the CFML programming language in general, not a specific application server. So whether you&apos;re using ColdFusion, Railo, or Blue Dragon (referred to as CF/R/BD from this point forward) to run your CFML applications, these concepts still apply.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<category>CFML 101</category>				
				
				<pubDate>Sun, 06 Dec 2009 22:34:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/12/6/CFML-101--Rookie-Mistakes-Part-1</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Using a Session Facade in ColdFusion</title>
				<link>http://www.cfgears.com/index.cfm/2009/12/3/Using-a-Session-Facade-in-ColdFusion</link>
				<description>
				
				&lt;p&gt;
Over the weekend I updated my &lt;a href=&quot;http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/UsingSessionFacade&quot;&gt;Using a Session Facade&lt;/a&gt; entry on the &lt;a href=&quot;https://greatbiztoolsllc.trac.cvsdude.com/mach-ii/&quot;&gt;Mach-II wiki&lt;/a&gt;, and decided to abstract part of it and repost here as a &quot;non Mach-II&quot; tutorial on Session Facades.  Now by no means do I consider myself an authority on Session Facades (or anything else for that matter). I realize that there are varying opinions on the subject of Session Facades, as well other (possibly better) ways to accomplish the same thing.  My hopes are that I&apos;ve written this blog post in a way that it can explain the basic concept of a Session Facade to someone who&apos;s never used it, and possibly help to trigger one of those &quot;Ah-ha!&quot; moments that we programmers do so enjoy.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<pubDate>Thu, 03 Dec 2009 14:30:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/12/3/Using-a-Session-Facade-in-ColdFusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>How does caching a query inside of a CFC work?</title>
				<link>http://www.cfgears.com/index.cfm/2009/9/25/How-does-caching-a-query-inside-of-a-CFC-work</link>
				<description>
				
				&lt;p&gt;I have some confusion on caching a query from inside a component, so this post is really just a call-out to the CFML community to help me figure it out. In a nutshell, here&apos;s my question: Can you cache a query if it&apos;s in the &quot;var&quot; scope of a CFC? Before you answer, let me elaborate a little to explain my thoughts on the subject.&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>General</category>				
				
				<category>CFML</category>				
				
				<category>Ramblings</category>				
				
				<pubDate>Fri, 25 Sep 2009 11:00:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/9/25/How-does-caching-a-query-inside-of-a-CFC-work</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Using a Session Facade in Mach-II</title>
				<link>http://www.cfgears.com/index.cfm/2009/8/24/Using-a-Session-Facade-in-MachII</link>
				<description>
				
				&lt;p&gt;Last week I added an entry to the &lt;a href=&quot;http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/&quot;&gt;Mach-II wiki&lt;/a&gt; on &lt;a href=&quot;http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/UsingSessionFacade&quot;&gt;using a Session Facade&lt;/a&gt;. This was my first time writing anything for the wiki, and I have to say that I really enjoyed working on it. Do you ever have those &quot;Ah-ha!&quot; moments when you&apos;re trying to figure something out and suddenly everything just clicks? Well, that happened to me 3 or 4 times while putting that wiki entry together.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<category>Mach-II</category>				
				
				<pubDate>Mon, 24 Aug 2009 07:00:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/8/24/Using-a-Session-Facade-in-MachII</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>cfheader, 404 status codes, and why you shouldn&apos;t use them.</title>
				<link>http://www.cfgears.com/index.cfm/2009/8/11/cfheader-404-status-codes-and-why-you-shouldnt-use-them</link>
				<description>
				
				&lt;p&gt;In a previous post, I wrote about &lt;a href=&quot;http://www.cfgears.com/index.cfm/2009/2/11/Using-cfheader-to-guide-the-Search-Engines&quot;&gt;using cfheader to specify different HTTP status codes&lt;/a&gt; and how you can use them to guide the Search Engines. I briefly touched on using a 410 &quot;Gone&quot; status code versus a 404 &quot;Not Found&quot;, and wanted to expand on that a little bit here.&lt;/p&gt;
&lt;p&gt;A lot of times people mistakenly use a 404 status code when they should be using a 410. In fact, there are very few (if any) cases where you would want to programmatically return a 404 error.
				 [More]
				</description>
						
				
				<category>CFML</category>				
				
				<pubDate>Tue, 11 Aug 2009 11:00:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/8/11/cfheader-404-status-codes-and-why-you-shouldnt-use-them</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Tapping in to ColdFusion&apos;s underlying Java capabilities</title>
				<link>http://www.cfgears.com/index.cfm/2009/5/19/Tapping-in-to-ColdFusions-underlying-Java-capabilities</link>
				<description>
				
				&lt;p&gt;One of the things I like about ColdFusion is how easy it is to tap into it&apos;s underlying Java capabilities. Now I&apos;ll be the first to admit that I know virtually nothing about Java, but I have found a few places where tying in to it via CF can be useful. One of the best uses I&apos;ve found for it (so far) has been working with directories and files.
&lt;/p&gt;
				 [More]
				</description>
						
				
				<category>Java</category>				
				
				<category>CFML</category>				
				
				<pubDate>Tue, 19 May 2009 19:26:00 -0500</pubDate>
				<guid>http://www.cfgears.com/index.cfm/2009/5/19/Tapping-in-to-ColdFusions-underlying-Java-capabilities</guid>
				
				
			</item>
			
		 	
			</channel></rss>