<?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>Against All Odds - CF Function</title>
			<link>http://www.ppshein.net/index.cfm</link>
			<description>A blog for ColdFusion, Android, jQuery, jQueryMobile, Oracle, HL7 and other Web-based programming languages, Web Server like IIS7 and RDMS like Oracle, Microsoft SQL and MySQL.</description>
			<language>en-us</language>
			<pubDate>Tue, 21 May 2013 12:17:20 -0700</pubDate>
			<lastBuildDate>Thu, 27 Dec 2012 02:32:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>pyaephyoeshein@gmail.com</managingEditor>
			<webMaster>pyaephyoeshein@gmail.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>pyaephyoeshein@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>Remove MSWord comment in Coldfusion</title>
				<link>http://www.ppshein.net/index.cfm/2012/12/27/Remove-MSWord-comment-in-Coldfusion</link>
				<description>
				
				Today, I&apos;ve got problem because of messy of Microsoft Word comments in our database. It&apos;s because of our clients wrote some messages in MsWord and paste these into CFTextarea richtext data. That&apos;s why those data cannot be displayed at our project. It&apos;s my bad that I have not thought about how to prevent these kind of problems during project development.
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<pubDate>Thu, 27 Dec 2012 02:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/12/27/Remove-MSWord-comment-in-Coldfusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Convert date format UDF</title>
				<link>http://www.ppshein.net/index.cfm/2012/12/24/Convert-date-format-UDF</link>
				<description>
				
				Today, I&apos;ve created simple UDF for convert date format &quot;dd/mm/yyyy&quot; to &quot;mm/dd/yyy&quot;. Because our clients want to use &quot;dd/mm/yyyy&quot; format as our national format into our projects. You may all know that it&apos;s very easy to convert but it&apos;s dedicated to those who start learning Coldfusion UDF.
				 [More]
				</description>
				
				
				<category>UDF</category>
				
				<category>CF Function</category>
				
				<pubDate>Mon, 24 Dec 2012 01:49:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/12/24/Convert-date-format-UDF</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Webservices without using cfinvoke</title>
				<link>http://www.ppshein.net/index.cfm/2012/8/14/Webservices-without-using-cfinvoke</link>
				<description>
				
				As we all know if webservices of another party using window NT authentication, we cannot use CFInvoke for calling webservices. At that time, we need another 3rd party webservices integrator for coldfusion to access another party. At that time, we need to use CFObject instead of CFInvoke.

&lt;code&gt;
&lt;!--- Include .NET webservices DLL file ---&gt;
&lt;cfobject type=&quot;.NET&quot; name=&quot;webServiceName&quot; class=&quot;ViewUserLibrary.UserManagementService&quot; assembly=&quot;C:\ViewUserLibrary.dll&quot; /&gt;
&lt;!--- call webservices URL ---&gt;
&lt;cfset webServiceName.set_wsdl(&quot;http://10.168.7.71:8080/oaswebservices/OASWebSvcPatientMgmt.asmx?wsdl&quot;) /&gt;
&lt;!--- Window NT Username ---&gt;
&lt;cfset webServiceName.set_userId( &quot;CTTT24&quot; ) /&gt;
&lt;!--- Window NT Password ---&gt;
&lt;cfset webServiceName.set_password( &quot;passwd78&quot; ) /&gt;
&lt;!--- Window NT Domain ---&gt;
&lt;cfset webServiceName.set_domain( &quot;CGHAD&quot; ) /&gt;
&lt;cfset dataSetResult = webServiceName.viewUserInfo(&quot;CG&quot;,&quot;PPShein&quot;)/&gt;

&lt;!--- Dump it ---&gt;
&lt;cfdump var=&quot;#dataSetResult#&quot;/&gt;
&lt;/code&gt;
				
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<category>.NET</category>
				
				<pubDate>Tue, 14 Aug 2012 22:06:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/8/14/Webservices-without-using-cfinvoke</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Replace Javascript Confirm box with CFMessagebox</title>
				<link>http://www.ppshein.net/index.cfm/2012/6/19/Replace-Javascript-Confirm-box-with-CFMessagebox</link>
				<description>
				
				In my previous post &lt;a href=&quot;http://www.ppshein.net/index.cfm/2012/6/7/To-replace-javascript-alert-with-CFMessagebox&quot; target=&quot;_blank&quot;&gt;(here to view)&lt;/a&gt;, I&apos;ve mentioned how to replace Javascript Alert box with CFMessageBox. Here again, to replace Javascript Confirm box with CFMessage.

&lt;!--- Below is to dynamically create CFMessage box in Javascript ---&gt;
&lt;code&gt;
function DisplayMessageConfirm (obj, messageText) {
	var RandCount = Math.random();
	
	ColdFusion.MessageBox.create(obj + RandCount, &apos;confirm&apos;, &apos;CESID&apos;, messageText, onfinish, {width:300, modal:true});
	ColdFusion.MessageBox.show(obj + RandCount);
}
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Tue, 19 Jun 2012 02:24:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2012/6/19/Replace-Javascript-Confirm-box-with-CFMessagebox</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>CFIDE with multiple instance</title>
				<link>http://www.ppshein.net/index.cfm/2011/12/23/CFIDE-with-multiple-instance</link>
				<description>
				
				Today I got the problem that I cannot use following sentence in one of my instance.

&lt;code&gt;
&lt;cftextarea skin=&quot;silver&quot; toolbar=&quot;Basic&quot; richtext=&quot;true&quot; name=&quot;body&quot; required=&quot;true&quot;&gt; 
&lt;/code&gt;

And hit JS error and don&apos;t know why. That&apos;s why I just go viewsource and found that CFIDE is missing for one of my CF instances. I cannot convince why Adobe cannot include CFIDE for multiple instances installation. That&apos;s why I know there is two ways to solve this bug of Coldfusion multiple instance installation.
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Fri, 23 Dec 2011 23:13:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/12/23/CFIDE-with-multiple-instance</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>IncrementValue in Coldfusion is useful</title>
				<link>http://www.ppshein.net/index.cfm/2011/11/5/IncrementValue-in-Coldfusion-is-useful</link>
				<description>
				
				Today, I&apos;ve oddly found &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-6d3b.html&quot; target=&quot;_blank&quot;&gt;IncrementValue&lt;/a&gt; in Coldfusion. In my previous time, when I need to increase count in Coldfusion, I always use as follow.

&lt;code&gt;
&lt;cfset mycount = mycount + 1&gt;

&lt;!--- CFScript version ---&gt;
&lt;cfscript&gt;
	mycount++;
&lt;/cfscript&gt;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Sat, 05 Nov 2011 02:04:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/11/5/IncrementValue-in-Coldfusion-is-useful</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Coldfusion 9 exam preparation</title>
				<link>http://www.ppshein.net/index.cfm/2011/10/12/Coldfusion-9-exam-preparation</link>
				<description>
				
				&lt;p&gt;
	I&amp;#39;m now planning to take Coldfusion 9 exam for my career enhancement. Because &lt;a href=&quot;http://www.ppshein.net/index.cfm/2010/9/9/adobe-certified-expert&quot; target=&quot;_blank&quot;&gt;I&amp;#39;m Adobe Certified Expert in Coldfusion 8&lt;/a&gt; and I feel like myself to take Coldfusion 9 either. Some people will argue that certificates are not needed if you really know of it but for new career, it&amp;#39;s needed. When I want to apply for new job, I&amp;#39;m not sure whether the new employer know I really know Coldfusion or not without having certificate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
	&lt;strong&gt;Coldfusion 9 Exam Structure&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
		Programming fundamentals&lt;/li&gt;
	&lt;li&gt;
		Working with the Application framework&lt;/li&gt;
	&lt;li&gt;
		Interacting with databases&lt;/li&gt;
	&lt;li&gt;
		Working with components&lt;/li&gt;
	&lt;li&gt;
		Interacting with persistent components&lt;/li&gt;
	&lt;li&gt;
		Working with XML&lt;/li&gt;
	&lt;li&gt;
		Reusing code&lt;/li&gt;
	&lt;li&gt;
		Interacting with remote systems&lt;/li&gt;
	&lt;li&gt;
		Managing files&lt;/li&gt;
	&lt;li&gt;
		Tuning application performance&lt;/li&gt;
	&lt;li&gt;
		Building advanced user interfaces&lt;/li&gt;
	&lt;li&gt;
		Reporting&lt;/li&gt;
&lt;/ul&gt;
				 [More]
				</description>
				
				
				<category>Exam</category>
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>Review</category>
				
				<category>CF Tag</category>
				
				<pubDate>Wed, 12 Oct 2011 03:46:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/10/12/Coldfusion-9-exam-preparation</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>ListToArray and Looping in Array</title>
				<link>http://www.ppshein.net/index.cfm/2011/9/29/ListToArray-and-Looping-in-Array</link>
				<description>
				
				Today I need to fetch data from *.csv &lt;i&gt;(which has nearly 15,000 records)&lt;/i&gt; file and insert such data into our database. At that time, I need to consider how to retrieve data from this file and how to insert into our database. So, I need to consider which method I need to use between &quot;&lt;b&gt;looping in array&lt;/b&gt;&quot; and &quot;&lt;b&gt;ListToArray&lt;/b&gt;&quot;. That&apos;s why I&apos;ve wrote with &quot;&lt;b&gt;looping in array&lt;/b&gt;&quot; first.

Here is simple list data including in CSV file.
&lt;code&gt;
007|PPSHEIN|MALE|COLDFUSION DEVELOPER
008|MIKE|MALE|ANDROID DEVELOPER
009|RAYMON|MALE|APPLE DEVELOPER
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Thu, 29 Sep 2011 17:25:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/9/29/ListToArray-and-Looping-in-Array</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Merge Area Chart and Bar Chart in Coldfusion</title>
				<link>http://www.ppshein.net/index.cfm/2011/9/20/Merge-Area-Chart-and-Bar-Chart-in-Coldfusion</link>
				<description>
				
				These days I&apos;m about to develop growth chart module for my current project enhancement. In this growth chart, I need to merge two chart series called area chart and bar chart to display patient percentile. In Coldfusion Chart, if we&apos;re trying to merge two chartseries, x-axis of both must be same records. If not, our chart might be displayed wrong data. 

Here is my sample coding of CFChart.
&lt;code&gt;
&lt;cfchart
    format=&quot;png&quot;
	xaxistitle=&quot;Age (mth)&quot; 
	yaxistitle=&quot;HEAD&quot;
	chartwidth=&quot;500&quot; 
	chartheight=&quot;500&quot; 
    gridlines=&quot;6&quot;
    showborder=&quot;no&quot;&gt;
		&lt;cfchartseries
			type=&quot;bar&quot;
			paintstyle = &quot;light&quot;
			seriescolor=&quot;000000&quot;
			seriesLabel=&quot;Patient&apos;s Information&quot;&gt;
			&lt;cfchartdata item=&quot;3&quot; value=&quot;10&quot;&gt;
		&lt;/cfchartseries&gt;				
		&lt;cfoutput query=&quot;Getgrowth&quot; group=&quot;PERCENTILE&quot;&gt;
			&lt;cfset i = i + 1&gt;
			&lt;cfset serColor = ListGetAt(ListCOLOR, i)&gt;
			&lt;cfchartseries
				type=&quot;area&quot;
				markerStyle=&quot;diamond&quot;
				seriescolor=&quot;#serColor#&quot;
				seriesLabel=&quot;#convertOrdinal(PERCENTILE)#&quot;&gt;
				&lt;cfoutput&gt;&lt;cfchartdata item=&quot;#AGE#&quot; value=&quot;#GETDATA#&quot;&gt;&lt;/cfoutput&gt;
			&lt;/cfchartseries&gt;
		&lt;/cfoutput&gt;
&lt;/cfchart&gt;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Tue, 20 Sep 2011 21:32:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/9/20/Merge-Area-Chart-and-Bar-Chart-in-Coldfusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Playing with CFThrow</title>
				<link>http://www.ppshein.net/index.cfm/2011/7/19/Playing-with-CFThrow</link>
				<description>
				
				Today, I found that &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e25.html&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;cfthrow&lt;/strong&gt;&lt;/a&gt; is very useful to me for error handling in my project. Because prior programmer of my current wrote some funny code for error handling without using &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e25.html&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;cfthrow&lt;/strong&gt;&lt;/a&gt;. I&apos;m not sure whether they don&apos;t know &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7e25.html&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;cfthrow&lt;/strong&gt;&lt;/a&gt; or not. Honestly, I didn&apos;t know most of Coldfusion Tags and functions before I took CF8 exam. When preparing for CF8 exam, I know most of tags and functions of CF8. Thanks, CF8 exam.

Ok, let&apos;s continue. Here is funny coding our prior programmer wrote.
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Tue, 19 Jul 2011 18:24:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/7/19/Playing-with-CFThrow</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Type in cflock is very important</title>
				<link>http://www.ppshein.net/index.cfm/2011/7/4/type-in-cflock-is-very-important</link>
				<description>
				
				Today, I realized that &quot;&lt;b&gt;type&lt;/b&gt;&quot; in cflock is very important and essential for shared data manipulation. In Adobe Coldfusion documentation, which said &quot;&lt;b&gt;type&lt;/b&gt;&quot; is optional in cflock but when we need to process shared data, it&apos;s not optional. IT&apos;S VERY IMPORTANT. Why I know like that is because of I&apos;m currently preventing about concurrency issues for my project. In these coding, we already used &lt;b&gt;cftransaction&lt;/b&gt; as putting the whole queries and processes within &lt;b&gt;cftransaction&lt;/b&gt; but cannot prevent at all. After that, I&apos;ve put &lt;b&gt;cflock&lt;/b&gt; again outside of &lt;b&gt;cftransaction&lt;/b&gt; like that.
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Mon, 04 Jul 2011 19:42:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/7/4/type-in-cflock-is-very-important</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>ListToArray save my time</title>
				<link>http://www.ppshein.net/index.cfm/2011/5/31/listToArray-save-my-time</link>
				<description>
				
				Currently, I&apos;m on HL7 module for my current project. For HL7 project, we need to collect all of patient information and save it into text file. After that, we need to send this text file to another party. So we need to send all patient data by creating list value and separated by &quot;|&quot; as delimiters.

&lt;b&gt;Here is example of MSH segment information.&lt;/b&gt;

&lt;code&gt;
MSH|^~\&amp;|HISSAH|HISSAH|PCS||201106011138||ADT^A36|AHIS00000004|P|2.3|||AL|NE|||||
&lt;/code&gt;

For this case, we don&apos;t know how to check whether all of sequences are correct or not. If we check manually, it will take so long and not efficient for our testers and system analyst. That&apos;s why I need to write simple Coldfusion program for that. That&apos;s why I wrote the following coding.

&lt;code&gt;
&lt;cfset MyList = &quot;^~\&amp;|HISSAH|HISSAH|PCS||201106011138||ADT^A36|AHIS00000004|P|2.3|||AL|NE|||||&quot;&gt;

&lt;cfloop index=&quot;i&quot; list=&quot;#MyList#&quot; delimiters=&quot;|&quot;&gt;
	&lt;cfoutput&gt;#i#&lt;/cfoutput&gt;&lt;br&gt;	
&lt;/cfloop&gt;
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Tue, 31 May 2011 23:48:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/5/31/listToArray-save-my-time</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>FileExists vs IsImage in Coldfusion</title>
				<link>http://www.ppshein.net/index.cfm/2011/5/29/FileExists-vs-IsImage-in-Coldfusion</link>
				<description>
				
				&lt;p&gt;Today, I&apos;m very clear to know how to use FileExists and IsImage in coldfusion. Before time, I though these two tags working in the same boat but once I used these two, both are very different but slightly same.&lt;br /&gt;&lt;br /&gt;What&apos;s the slightly same? It&apos;s very simple that we&apos;re not using the full path of file like that.&lt;/p&gt;

&lt;code&gt;
&lt;!--- Checking image ---&gt;
&lt;cfif FileExists(&quot;image.jpg&quot;)&gt;
	Image exists.
&lt;cfelse&gt;
	Image doesn&apos;t exist.
&lt;/cfif&gt;

&lt;!--- Checking file ---&gt;
&lt;cfif FileExists(&quot;myfile.txt&quot;)&gt;
	File exists.
&lt;cfelse&gt;
	File doesn&apos;t exist.
&lt;/cfif&gt;
&lt;/code&gt;

&lt;p&gt;If we&apos;re using the full path of image/file, FileExists doesn&apos;t work at all. At that time, we need to use &lt;strong&gt;IsImage&lt;/strong&gt; for checking image exist or not.&lt;/p&gt;
&lt;code&gt;
&lt;!--- Checking Image with full path ---&gt;
&lt;cfif IsImage(&quot;http://www.ppshein.net/images/ppshein_banner.jpg&quot;)&gt;
	Image exists.
&lt;cfelse&gt;
	Image doesn&apos;t exist.
&lt;/cfif&gt;
&lt;/code&gt;

&lt;p&gt;Because, &lt;strong&gt;FileExists&lt;/strong&gt; can check &lt;strong&gt;the directory&lt;/strong&gt; of image/file and cannot &lt;strong&gt;check the full path URL&lt;/strong&gt; of image/file. In this case, we need to use &lt;strong&gt;IsImage&lt;/strong&gt; for checking image exists or valid type of image.&lt;/p&gt;

Sorry, I really missed out &lt;b&gt;IsImageFile&lt;/b&gt; function of coldfusion which can support to check whether an image file is valid. Thanks, Ray for commenting about that.
				
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Sun, 29 May 2011 19:25:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/5/29/FileExists-vs-IsImage-in-Coldfusion</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Funny usage of CFImage within CFTry/CFCatch</title>
				<link>http://www.ppshein.net/index.cfm/2011/5/28/Funny-usage-of-CFImage-within-CFTryCFCatch</link>
				<description>
				
				Last Friday, my boss told me that I need to cooperate my module into other team&apos;s huge project called HIS (Hospital Information System) about displaying patient&apos;s photograph. That&apos;s why I needed to review their existing coding and needed to know the image path (directory). In this coding, I&apos;ve found the following funny usage about cfimage within cftry/cfcatch.

&lt;code&gt;
&lt;cftry&gt;
	&lt;cfimage 
		action = &quot;info&quot; 
		source = &quot;#image_dir_path##myimage#&quot; 
		structname = &quot;my_img&quot;&gt;
	&lt;cfcatch&gt;
		&lt;cfset error_msg = &quot;#cfcatch.message#&quot;&gt;
	&lt;/cfcatch&gt;
&lt;/cftry&gt;
&lt;/code&gt;

If I&apos;m not mistaken, the purpose of above coding is the error message will be shown if no image found. As my experience, don&apos;t need to use cfimage, cftry, cfcatch tags if we need to check whether the image is existed or not. Just simple to use &lt;a href=&quot;http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7c66.html&quot; target=&quot;_blank&quot;&gt;FileExists&lt;/a&gt;. It&apos;s very useful and don&apos;t need to write that much coding like above.


Here is very simple and useful for checking file/image exists or not.

&lt;code&gt;
&lt;cfif NOT FileExists(&quot;#image_dir_path##myimage#&quot;)&gt;
	&lt;cfset error_message = &quot;Image file doesn&apos;t exist.&quot;&gt;
&lt;/cfif&gt;
&lt;/code&gt;
				
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Sat, 28 May 2011 21:46:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/5/28/Funny-usage-of-CFImage-within-CFTryCFCatch</guid>
				
				
			</item>
			
		 	
			
			
			<item>
				<title>Concurrency between CFLock and CFTransaction</title>
				<link>http://www.ppshein.net/index.cfm/2011/4/25/Concurrency-between-CFLock-and-CFTransaction</link>
				<description>
				
				In these days, our project encounter concurrency issues which mean two users can access to one item and this item cannot be correctly updated after processing. As we all, Coldfusion provide CFLock and CFTransaction for concurrency but I don&apos;t know which one is useful and suitable yet. In my existing project, they&apos;ve used CFTransaction for concurrency but those issues are still happening whatever they&apos;ve used it in. That&apos;s why I need to check which one is suitable for concurrency.

I&apos;ve created three files for testing purpose. There are index.cfm, cflock.cfm and cftransaction.cfm.

&lt;u&gt;index.cfm&lt;/u&gt;
&lt;code&gt;
[iframe src=&quot;cftransaction.cfm?getID=1&quot; width=&quot;500&quot; height=&quot;150&quot;][/iframe]
[iframe src=&quot;cftransaction.cfm?getID=2&quot; width=&quot;500&quot; height=&quot;150&quot;][/iframe]
[iframe src=&quot;cftransaction.cfm?getID=3&quot; width=&quot;500&quot; height=&quot;150&quot;][/iframe]
&lt;/code&gt;
				 [More]
				</description>
				
				
				<category>CF Function</category>
				
				<category>Coldfusion</category>
				
				<category>CF Tag</category>
				
				<pubDate>Mon, 25 Apr 2011 23:40:00 -0700</pubDate>
				<guid>http://www.ppshein.net/index.cfm/2011/4/25/Concurrency-between-CFLock-and-CFTransaction</guid>
				
				
			</item>
			
		 	
			</channel></rss>