<?xml version="1.0" encoding="iso-8859-1"?>

<rdf:RDF 
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns="http://purl.org/rss/1.0/"
>
	<channel rdf:about="http://www.coldfusioncookbook.com">
	<title>Coldfusion Cookbook</title>
	<description>Coldfusion Cookbook - Latest 10 Entries</description>
	<link>http://www.coldfusioncookbook.com</link>
	
	<items>
		<rdf:Seq>
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/142/How-can-I-easily-control-the-look-and-feel-of-my-site?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/141/How-can-I-find-what-machine/server-my-code-is-running-on?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/140/How-can-I-use-ColdFusion-to-work-with-JSON?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/60/How-can-I-read-a-simple-text-file,-processing-each-line-of-the-file?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/139/How-do-I-check-if-a-date-is-in-the-current-century?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?" />
			
			<rdf:li rdf:resource="http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?" />
			
		</rdf:Seq>
	</items>
	
	</channel>
	

	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/142/How-can-I-easily-control-the-look-and-feel-of-my-site?">
		<title>How can I easily control the look and feel of my site?</title>
		<description>While non-ColdFusion techniques like an effective CSS file are one way to easily control layout across a site, you also want to consider using custom tags, and custom tag &quot;wrappers&quot; as a way to maintain a consistent look and feel across your site. Custom tags &quot;wrappers&quot; are simply custom tags that wrap content. As an example:

&lt;code&gt;
&lt;cf_foo&gt;
Stuff here
&lt;/cf_foo&gt;
&lt;/code&gt;

When ColdFusion runs this file, it will execute the custom tag, foo, twice. Once before &quot;Stuff here&quot; and once after. ...</description>
		<link>http://www.coldfusioncookbook.com/entry/142/How-can-I-easily-control-the-look-and-feel-of-my-site?</link>
		<dc:date>2008-07-03T10:55:36-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/141/How-can-I-find-what-machine/server-my-code-is-running-on?">
		<title>How can I find what machine/server my code is running on?</title>
		<description>You can determine the name of the server your code is running on, as well as the ColdFusion instance that is executing it. This is very useful if you have code that you only want to execute in a development environment, or to easily tell which server in a cluster is executing your request.

To retrieve the physical server name:
&lt;code&gt;
&lt;cfset host = CreateObject(&quot;java&quot;, &quot;java.net.InetAddress&quot;).getLocalHost().getHostName();&gt;
&lt;/code&gt;

To retrieve the ColdFusion instance:
&lt;code&gt;
&lt;cfset cfse...</description>
		<link>http://www.coldfusioncookbook.com/entry/141/How-can-I-find-what-machine/server-my-code-is-running-on?</link>
		<dc:date>2008-07-03T09:29:38-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/140/How-can-I-use-ColdFusion-to-work-with-JSON?">
		<title>How can I use ColdFusion to work with JSON?</title>
		<description>JSON stands for JavaScript Object Notation. You can think of it as a way to represent data (and type of data) in a string. This makes the data easy to pass between the client side and the server side and is a favorite format for use with AJAX based applications.

ColdFusion adds three functions that work with JSON: serializeJSON(), deserializeJSON(), and isJSON(). Let&apos;s look first at serializeJSON. You can take any arbitrary ColdFusion data and translate it into JSON using the function:

&lt;co...</description>
		<link>http://www.coldfusioncookbook.com/entry/140/How-can-I-use-ColdFusion-to-work-with-JSON?</link>
		<dc:date>2008-07-01T11:09:33-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/60/How-can-I-read-a-simple-text-file,-processing-each-line-of-the-file?">
		<title>How can I read a simple text file, processing each line of the file?</title>
		<description>ColdFusion makes it easy to read a file using the &amp;lt;cfloop&amp;gt; tag. By using the file attribute, you can tell &amp;lt;cfloop&amp;gt; to iterate over each line of a file. This sample reads in a text file and displays each line:

&lt;code&gt;
&lt;cfset myfile = expandPath(&quot;./dump.txt&quot;)&gt;

&lt;cfloop index=&quot;line&quot; file=&quot;#myfile#&quot;&gt;
	&lt;cfoutput&gt;
	The current line is #line# &lt;br /&gt;
	&lt;/cfoutput&gt;
&lt;/cfloop&gt;
&lt;/code&gt;
</description>
		<link>http://www.coldfusioncookbook.com/entry/60/How-can-I-read-a-simple-text-file,-processing-each-line-of-the-file?</link>
		<dc:date>2008-07-01T09:38:29-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/139/How-do-I-check-if-a-date-is-in-the-current-century?">
		<title>How do I check if a date is in the current century?</title>
		<description>Date comparisons are fairly easy in ColdFusion. One common task is to compare a date value to the current date and check if there is a match on the day, week, month, etc. For this entry we will consider comparing a date&apos;s century to the current century. This is a bit more complex. While ColdFusion has functions to retrieve parts of a date (seconds, minutes, day, month, etc) it does not have a function to return the century value. You can get this using a bit of math though. 

Consider the foll...</description>
		<link>http://www.coldfusioncookbook.com/entry/139/How-do-I-check-if-a-date-is-in-the-current-century?</link>
		<dc:date>2008-05-29T07:25:01-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?">
		<title>How can I access/call functions in .Net classes?</title>
		<description>As per the ColdFusion documentation, the &amp;lt;cfobject&amp;gt; tag can be used to access and use .Net classes inside of your CFML code.

&lt;code&gt;
&lt;cfobject
   type = &quot;.NET&quot;
   name = &quot;myInstance&quot;
   class = &quot;myDotNetClass&quot;
   assembly = &quot;C:/Net/Assemblies/dotNetClass.dll&quot;&gt; 

&lt;!--- Call a method---&gt;
&lt;cfset myVar = myInstance.myDotNetClass(5)&gt; 
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/138/How-can-I-access/call-functions-in-.Net-classes?</link>
		<dc:date>2007-12-19T10:54:05-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?">
		<title>How can ColdFusion work with ZIP and JAR files?</title>
		<description>Use the &amp;lt;cfzip&amp;gt; and the &amp;lt;cfzipparam&amp;gt; tags.

&amp;lt;cfzip&amp;gt; provides access to ZIP and JAR files with the following actions: 
delete:  Deletes one or more files from the file. 
list: Lists the contents of the file. 
read: Reads the contents of the file into a variable. 
readBinary:  Reads the contents of a binary archived file into a variable. 
unzip:  Extracts files from the ZIP or JAr file. 
zip: Compress files into a ZIP or JAR file. 

&lt;code&gt;
&lt;cfzip file=&quot;c:/foo.jar&quot; acti...</description>
		<link>http://www.coldfusioncookbook.com/entry/137/How-can-ColdFusion-work-with-ZIP-and-JAR-files?</link>
		<dc:date>2007-12-12T12:09:25-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?">
		<title>How can I use ColdFusion to crop an image?</title>
		<description>Use the  imageCrop() function.

&lt;code&gt;
&lt;!---Read in the image ---&gt;
&lt;cfimage action=&quot;read&quot; name=&quot;myImg&quot; source=&quot;foo.jpg&quot;&gt; 

&lt;!--- Crop to 50x50 pixels starting at  X = 1 &amp;  Y=1.
&lt;cfset imageCrop(myImg,1,1,50,50)&gt;
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/136/How-can-I-use-ColdFusion-to-crop-an-image?</link>
		<dc:date>2007-12-10T12:21:59-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?">
		<title>How can I use ColdFusion to watermark an image?</title>
		<description>Use the imagePaste() function.

The imagePaste() function takes two images and an X Y coordinate, and draws the second image over the first image with the upper-left corner at X Y coordinate. 

&lt;code&gt;
&lt;cfset foo(myBigImage.jpg,myWatermark.jpg,50,50)&gt;
&lt;/code&gt;</description>
		<link>http://www.coldfusioncookbook.com/entry/135/How-can-I-use-ColdFusion-to-watermark-an-image?</link>
		<dc:date>2007-12-07T11:16:50-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	
		
		
		
	  	<item rdf:about="http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?">
		<title>How can I create a CAPTCHA image with ColdFusion?</title>
		<description>CAPTCHA images contain distorted text that is human-readable but not machine-readable.

The &amp;lt;cfimage&amp;gt; tag allows you to create CAPTCHA images.  You can specify the text you want to distort, the height and width of the text area, font and font size, and the level of difficulty (affects readability).

Note: As per the ColdFusion docs, in order for the CAPTCHA image to display, the width value must be greater than: fontSize times the number of characters specified in text times 1.08.

&lt;...</description>
		<link>http://www.coldfusioncookbook.com/entry/134/How-can-I-create-a-CAPTCHA-image-with-ColdFusion?</link>
		<dc:date>2007-12-06T17:46:33-04:00</dc:date>
		<dc:subject></dc:subject>
		</item>
		
	

	
	</rdf:RDF>