<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5069403</id><updated>2012-01-27T06:06:53.492-08:00</updated><category term='random selection'/><category term='loop backwards'/><category term='url'/><category term='cfinvokeargument'/><category term='value'/><category term='cfset'/><category term='loop'/><category term='variable'/><category term='coldfusion'/><category term='list'/><category term='recursive function'/><category term='Westroards Mall'/><category term='shooting'/><category term='object'/><category term='powerball'/><category term='method'/><category term='instance'/><category term='cf'/><category term='Shooter'/><category term='oracle'/><category term='Omaha'/><category term='form'/><category term='array'/><category term='component'/><category term='lottery numbers'/><category term='sessions'/><category term='setting something'/><category term='values'/><category term='rowid'/><category term='parent child tree'/><category term='createObject'/><category term='object oriented'/><category term='function'/><category term='session'/><category term='Richard Hawkins'/><category term='cfinvoke'/><category term='step'/><category term='CFC'/><category term='Invoke'/><category term='variables'/><category term='recursion'/><title type='text'>Books and Coldfusion by Frank Tudor</title><subtitle type='html'>Entry level and advance level everything and other thoughts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5069403.post-5033121456187410867</id><published>2012-01-23T08:53:00.001-08:00</published><updated>2012-01-23T08:53:21.727-08:00</updated><title type='text'>Mobility addendum</title><content type='html'>&lt;a href="https://docs.google.com/open?id=0B1cK84W-8NHNOWNkZGYxMTgtMTJiNC00ODdmLTlkNTktODVkMTk1MmY5ODRj"&gt;Code base&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-5033121456187410867?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/5033121456187410867/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=5033121456187410867' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5033121456187410867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5033121456187410867'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2012/01/mobility-addendum.html' title='Mobility addendum'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-7028800023641461806</id><published>2012-01-22T07:49:00.000-08:00</published><updated>2012-01-23T07:00:23.969-08:00</updated><title type='text'>Outputting Coldfusion Parameters in cfstoredproc stored procedures</title><content type='html'>Last week I was running into an issue with a stored procedure. Passing parameters to the&amp;nbsp;procedure using cfstoredproc and cfprocparam.&lt;br /&gt;&lt;br /&gt;Here is how I solved it to trap the problem which was a HY000 error returned by Oracle.&lt;br /&gt;&lt;br /&gt;using a combination of cfoutput and pre and then clipping the &amp;lt; part of the container tags and then closing the cfoutput and pre tags I was able to determine a few things.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt; cfoutput &amp;gt;&lt;br /&gt;&amp;lt; pre &amp;gt;&lt;br /&gt;CFstoredproc procedure="schema.package.procedure" datasource="dsn"&amp;gt;cfprocparam type="inout" cfsqltype="CF_SQL_Number" dbvarname="mID" value="#trim(variables.mID)#" null="#evaluate("variables.mID is """"")#"&amp;gt;cfprocparam type="in" cfsqltype="CF_SQL_Varchar" dbvarname="pName" value="#form.pname#"&amp;gt;cfprocparam type="in" cfsqltype="CF_SQL_Number" dbvarname="pMedium" value="#trim(form.pMedium)#"&amp;gt;CFStoredproc&amp;gt;&lt;br /&gt;&amp;lt; &amp;nbsp;/pre &amp;gt;&lt;br /&gt;&amp;lt; /cfoutput &amp;gt;&lt;br /&gt;&amp;lt; cfabort &amp;gt;&lt;br /&gt;&lt;br /&gt;(where you see the actual container tags spaced out is because of blogger doing some clean-up...I forgot how frustrating this can be :) )&lt;br /&gt;&lt;br /&gt;I re-saved the code snippet and visited the page in my browser. &amp;nbsp;I was able to determine that I actually had more than one problem. &amp;nbsp;I was passing part of a form tag to my procedure parameter which was a coding error on my part, and also one of my variable data types were mismatching. &amp;nbsp;For example a string where a number was expected by the procedure. &amp;nbsp;I got my data types fixed removed the pre tag and the cfoutput surrounding it and it worked like a charm. &amp;nbsp;i hope this helps others who have got stuck on something like this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-7028800023641461806?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/7028800023641461806/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=7028800023641461806' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7028800023641461806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7028800023641461806'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2012/01/outputting-coldfusion-parameters-in.html' title='Outputting Coldfusion Parameters in cfstoredproc stored procedures'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-7237783746362998162</id><published>2012-01-22T07:40:00.000-08:00</published><updated>2012-01-22T14:45:31.053-08:00</updated><title type='text'>Crafty website and eBook marketing tips on content and keywords</title><content type='html'>This book is very meat and&amp;nbsp;potatoes&amp;nbsp;on content generation and keyword relevancy. &amp;nbsp;It is not what you say it is how you say it and on websites and eBooks that goes double. &amp;nbsp;There is more than meets the eye when it comes to search and we will get to the bottom of the problems developers and designers face in this installment.&lt;br /&gt;&lt;br /&gt;Visit:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Content-Keywords-Crafty-Tips-ebook/dp/B0070GC12C/"&gt;http://www.amazon.com/Content-Keywords-Crafty-Tips-ebook/dp/B0070GC12C/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YiJ-oLX8i8A/TxwtzGQnMcI/AAAAAAAAADg/2VbpkK9WUg4/s1600/craftyLinks2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-YiJ-oLX8i8A/TxwtzGQnMcI/AAAAAAAAADg/2VbpkK9WUg4/s320/craftyLinks2.jpg" width="238" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can locate my other blog about books I write and my author page here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Frank-Tudor/e/B005VR3DMY/"&gt;http://www.amazon.com/Frank-Tudor/e/B005VR3DMY/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://franktudor.wordpress.com/"&gt;http://franktudor.wordpress.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-7237783746362998162?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/7237783746362998162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=7237783746362998162' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7237783746362998162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7237783746362998162'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2012/01/crafty-website-and-ebook-marketing-tips.html' title='Crafty website and eBook marketing tips on content and keywords'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-YiJ-oLX8i8A/TxwtzGQnMcI/AAAAAAAAADg/2VbpkK9WUg4/s72-c/craftyLinks2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-4590597360726686943</id><published>2012-01-22T07:36:00.000-08:00</published><updated>2012-01-22T14:45:42.860-08:00</updated><title type='text'>Back link strategies for your website or eBook</title><content type='html'>Solving the problems of web is never easy, you have to think like the bots, spiders and crawlers. &amp;nbsp;You have to at the same time&amp;nbsp;maintain&amp;nbsp;useful&amp;nbsp;purposeful meaningful&amp;nbsp;information. Each sentence you right is being scrutinized in the meat grinder of search engines and how you get to the top spot is the golden ring of web developers and designer teams throughout the world. &amp;nbsp;They are better staffed then you, they have more experience creating compelling websites. &amp;nbsp;So I have created this book to give your the step by step content&amp;nbsp;requirements&amp;nbsp;and where to find trusted technology and resources to get you the rest of the way.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Strategies-Website-eBook-Crafty-ebook/dp/B0070DA00U/"&gt;http://www.amazon.com/Strategies-Website-eBook-Crafty-ebook/dp/B0070DA00U/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-muEjgyd4ELM/TxwswgoCTgI/AAAAAAAAADY/bYOxwn6HmiI/s1600/craftyLinks.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://2.bp.blogspot.com/-muEjgyd4ELM/TxwswgoCTgI/AAAAAAAAADY/bYOxwn6HmiI/s320/craftyLinks.jpg" width="238" /&gt;&lt;/a&gt;&lt;/div&gt;You can locate my other blog about books I write and my author page here:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Frank-Tudor/e/B005VR3DMY/"&gt;http://www.amazon.com/Frank-Tudor/e/B005VR3DMY/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://franktudor.wordpress.com/"&gt;http://franktudor.wordpress.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-4590597360726686943?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/4590597360726686943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=4590597360726686943' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4590597360726686943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4590597360726686943'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2012/01/back-link-strategies-for-your-website.html' title='Back link strategies for your website or eBook'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-muEjgyd4ELM/TxwswgoCTgI/AAAAAAAAADY/bYOxwn6HmiI/s72-c/craftyLinks.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-320988024472129466</id><published>2012-01-22T07:25:00.000-08:00</published><updated>2012-01-22T07:29:23.519-08:00</updated><title type='text'>Crafty eBook and Web Marketing Tips Series</title><content type='html'>I have created a series of SEO related books for helping solve some problems in eBook and web marketing. &amp;nbsp;The books are parsed into logical segments. &amp;nbsp;The material will focus on numerous ways to improve your position in search results.&lt;br /&gt;&lt;br /&gt;You can locate my two latest installments on Amazon:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Content-Keywords-Crafty-Tips-ebook/dp/B0070GC12C/"&gt;http://www.amazon.com/Content-Keywords-Crafty-Tips-ebook/dp/B0070GC12C/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Strategies-Website-eBook-Crafty-ebook/dp/B0070DA00U/"&gt;http://www.amazon.com/Strategies-Website-eBook-Crafty-ebook/dp/B0070DA00U/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As a SEO grunt on the ground and helping companies in the game of inches against very creative&amp;nbsp;competition, it never hurts to&amp;nbsp;bolster&amp;nbsp;your metal arsenal with tools and tricks to help you get the PR, relevancy and click through rate your deserve.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-320988024472129466?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/320988024472129466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=320988024472129466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/320988024472129466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/320988024472129466'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2012/01/crafty-ebook-and-web-marketing-tips.html' title='Crafty eBook and Web Marketing Tips Series'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-5658559196174311423</id><published>2008-03-25T06:40:00.000-07:00</published><updated>2008-05-01T18:20:58.811-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='powerball'/><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='lottery numbers'/><category scheme='http://www.blogger.com/atom/ns#' term='random selection'/><title type='text'>Coldfusion Powerball lottery pick tool</title><content type='html'>&lt;p style="font-weight: bold;"&gt;Ever wanted to pick lottery numbers with your own tool? This tool is setup for the powerball. and has set by step explanations.&lt;/p&gt;&lt;p&gt;&amp;lt;!---in coldfusion pick random values is a pain, because if you need five numbers changes are you will get duplicates.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---We have added some code to deal with that.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---First we are setting a parameter to create an array called randArray.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfparam&lt;br /&gt;&lt;br /&gt;name="randArray"&lt;br /&gt;&lt;br /&gt;type="any"&lt;br /&gt;&lt;br /&gt;default="#ArrayNew(1)#" /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---I am setting a loop incremental to zero because I need to work with it in my loop. I need five numbers, but first I set it to zero...stay with me.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset loopIncremental = 0&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---Now we are creating a conditional loop to check to see if the loop is less than five. It is so we are are going to loop and add 1 to the loop incremental until it hits five then stop (see we need five white balls). ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfloop condition="loopIncremental lt 5"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---The arrRandRange is the range of values to pick numbers from.  In powerball we need 1 through 54.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset arrRandRange = randrange(1, 54)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---We are now taking our array we set above int he parameter and change it to a list---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset randArrayToList = arraytolist(randArray)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---Now we are checking to see if the list has a duplicate value. and setting that to an if statement which goes like this. If the array/list has the number we just randomly picked, we do nothing.  If we have a fresh number we append the array and add that value to it.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfif listfind(randArrayToList, #arrRandRange#)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfelse&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---here is where we add the value if the 'condition' is non-duplicate.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset ArrayAppend(randArray,"#arrRandRange#")&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---we then increment the loop incremental by 1 (see if if it doesn't get added to the array we are still one number short and so we do not set the incriment. Clear as mud?---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset loopIncremental = #loopIncremental# + 1&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---then we exit the if statement---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfif&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---next we exit the loop---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfloop&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfoutput&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---I'm probably doing a usless step here but my basic effort is to sort the array's numbers from lowest to highest and then output the numbers to the screen.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset xArrayToList = ArrayToList(randArray)&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfset yListSort = listsort(xArrayToList, "numeric")&amp;gt;&lt;br /&gt;&lt;br /&gt;#yListSort#&lt;br /&gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---And for my last trick I am grabbing one red ball from a range 1 through 50---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset arrRandRange2 = randrange(1, 50)&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!---then outputting that value---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&lt;br /&gt;#arrRandRange2#&lt;br /&gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;and abracadabra I have my lottery number picks...I hope they are winners.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-5658559196174311423?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/5658559196174311423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=5658559196174311423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5658559196174311423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5658559196174311423'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2008/03/coldfusion-powerball-lottery-pick-tool.html' title='Coldfusion Powerball lottery pick tool'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-4424893031320977798</id><published>2008-03-24T14:00:00.000-07:00</published><updated>2008-03-24T14:05:17.546-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='array'/><category scheme='http://www.blogger.com/atom/ns#' term='loop'/><category scheme='http://www.blogger.com/atom/ns#' term='loop backwards'/><category scheme='http://www.blogger.com/atom/ns#' term='step'/><category scheme='http://www.blogger.com/atom/ns#' term='list'/><title type='text'>Looping backwards over a list or array</title><content type='html'>&lt;p style="font-weight: bold;"&gt;Many months back I was on a job interview and someone asked me to loop backwards over a name, essentially spelling it backwards.  What an odd request.  I fumbled around and was totally stumped.  I didn't get the job, but you can bet your ass I figured out how to loop backwards over a list/array or whatever.  Below is the proof of concept example code.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Enjoy.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;!---Loop backwards example.---&amp;gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;!---First we are going to create a list.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset myList = "F,r,a,n,k,T,u,d,o,r"&amp;gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;!---Next we are going to create an array out of it.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset myArray = listToArray(myList)&amp;gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;!---Now weare going to set up our loop with parameters.---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;br&amp;gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;!---Note that I am setting the from and to max to min and&lt;br /&gt;&lt;br /&gt; setting step to -1 so it can step backwards throught he loop.&lt;br /&gt;&lt;br /&gt; ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;cfloop from="#arrayLen(myArray)#" to="1" step="-1" index="i" &amp;gt;&lt;br /&gt;&lt;br /&gt; #myArray[i]#&amp;lt;br&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;/cfloop&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-4424893031320977798?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/4424893031320977798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=4424893031320977798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4424893031320977798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4424893031320977798'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2008/03/looping-backwards-over-list-or-array.html' title='Looping backwards over a list or array'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-5391858470318127299</id><published>2008-03-24T08:28:00.000-07:00</published><updated>2008-03-24T08:35:47.018-07:00</updated><title type='text'>Coldfusion try/catch example.</title><content type='html'>&lt;p style="font-weight: bold;"&gt;Like other languages, Coldfusion has the ability to attempt  code and then provide a custom error if it fails.  This is good if you cannot test your code and  example would be if you are waiting for other groups to get database  development done, or server environment constraints.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;So here is a simple example.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Say I have a query that adds favorites to my table first I am going to set some simple variables&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&amp;lt;cfset me = "Frank"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfset myFav = "Franklin"&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Next, I am going to set up my try/catch code Note I have a primary key made up of fvrt_src, fvrt_sel, meaning I cannot add it twice and if I refresh the screen the error will be produced.&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&amp;lt;cftry&amp;gt;&lt;/p&gt;&lt;p&gt;                &amp;lt;cfquery&lt;br /&gt;&lt;br /&gt;                                datasource="#request.dsn#"&lt;br /&gt;&lt;br /&gt;                                name="addingToFav"&amp;gt;&lt;br /&gt;&lt;br /&gt;                                                insert  into favorites (fvrt_src, fvrt_sel)&lt;br /&gt;&lt;br /&gt;                                                values  ('#me#', '#myfav#')&lt;br /&gt;&lt;br /&gt;  &amp;lt;/cfquery&amp;gt;         &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;If the error is produced the catch will sense the database error and produce a nice controlled session error instead of a screen with gibberish (client confusion screens).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfcatch type="database"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfset session.favAddError = "User has already been  added to your favorties&amp;lt;br&amp;gt;&lt;br /&gt;&lt;br /&gt;                              please check your favorites  list above."&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/cfcatch&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/cftry&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Next if the session has been created I display the error message below.&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&amp;lt;cfif isdefined(“session.favAddError”)&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&lt;br /&gt;#session.favAddError#&lt;br /&gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-5391858470318127299?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/5391858470318127299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=5391858470318127299' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5391858470318127299'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5391858470318127299'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2008/03/coldfusion-trycatch-example.html' title='Coldfusion try/catch example.'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-3559364001421106669</id><published>2008-03-06T10:01:00.000-08:00</published><updated>2008-03-09T17:43:39.813-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='cfset'/><category scheme='http://www.blogger.com/atom/ns#' term='createObject'/><category scheme='http://www.blogger.com/atom/ns#' term='cfinvoke'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='CFC'/><category scheme='http://www.blogger.com/atom/ns#' term='object oriented'/><category scheme='http://www.blogger.com/atom/ns#' term='Invoke'/><category scheme='http://www.blogger.com/atom/ns#' term='instance'/><title type='text'>Easy CFC</title><content type='html'>&lt;pre style="font-family: verdana;"&gt;&lt;span style="font-weight: bold;"&gt;This is a simple coldfusion pages and the accompanying cfc.  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;There are two functions that do different things.  It might be &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;clear as mud so don't hesitate to drop me a line if you get lost, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;but here is the idea, I am craeting two functions and invoking&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;them in differnt ways one example is through createObject and &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;the other is the cfinvoke tag.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(first our index.cfm page)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;&lt;br /&gt;Untitled Document&lt;br /&gt;&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt; &lt;br /&gt;&amp;lt;body&amp;gt;  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;!--- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Using cfset to call an object and output a value&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;In a cfc I have a component that has a function called timer.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Below I an 'instanciating' the object and  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;assigning it to a variable named 'time'   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;instead of using cfinvoke I am using the function  &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;createObject.  createObject has several parameter settings. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;For a CFC and if that CFC is in the same directory as this file. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Then I simply set the createObject to call a component named time. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;---&amp;gt;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfset time = createObject('component', 'myCfc')&amp;gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;!--- &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Below I am outputting the variable I set above.   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Notice I am using the dot notation.   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;time.timer()   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Notice the paranthesis.  If my object &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;took an argument I would place it there.   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Like this time.timer(today,tommorow,yesterday,etc)   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;But I have nothing to pass since &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;this is only a simple example. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;---&amp;gt;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#time.x("This is a argument/parameter being passed to my object")#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt; &lt;br /&gt;&amp;lt;br&amp;lt;br&amp;gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;!---Here is a quick example of a cfc that does some arithmetic.---&amp;gt;   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&amp;lt;!---  We are using the invoke method (tag)  to pull this object into play  ---&amp;gt;   &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfinvoke component="myCfc" method="z" returnvariable="goober"&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#goober#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;   &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(my next file is called myCfc.cfc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cfcomponent hint="amigo formats the date...if argument gets passed then i append it to the amigo  string"&amp;gt; &lt;br /&gt;&amp;lt;cffunction&lt;br /&gt;name="x"&lt;br /&gt;description="the function name is x"&amp;gt;&lt;br /&gt;&amp;lt;cfargument&lt;br /&gt;name="today"&lt;br /&gt;type="string"&lt;br /&gt;required="no"&amp;gt;  &lt;br /&gt;&lt;br /&gt;&amp;lt;cfset amigo = timeFormat(now(), "h:MM")&amp;gt;      &lt;br /&gt;&lt;br /&gt;&amp;lt;cfif isdefined("arguments.today")&amp;gt;  &lt;br /&gt;&amp;lt;cfset amigo = arguments.today &amp;amp; " " &amp;amp; amigo&amp;gt;  &lt;br /&gt;&amp;lt;/cfif&amp;gt;      &lt;br /&gt;&amp;lt;cfreturn amigo&amp;gt; &lt;br /&gt;&amp;lt;/cffunction&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;cffunction name="z"&amp;gt;  &lt;br /&gt;&amp;lt;cfset x = 100&amp;gt;  &lt;br /&gt;&amp;lt;cfset y = 5&amp;gt;&lt;br /&gt;&amp;lt;cfreturn x/y&amp;gt;  &lt;br /&gt;&amp;lt;/cffunction&amp;gt;&lt;br /&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-3559364001421106669?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/3559364001421106669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=3559364001421106669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3559364001421106669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3559364001421106669'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2008/03/easy-cfc.html' title='Easy CFC'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-5903062174690577687</id><published>2008-03-03T17:46:00.000-08:00</published><updated>2008-03-03T18:12:42.469-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='function'/><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='cfinvoke'/><category scheme='http://www.blogger.com/atom/ns#' term='cfinvokeargument'/><category scheme='http://www.blogger.com/atom/ns#' term='object'/><category scheme='http://www.blogger.com/atom/ns#' term='method'/><category scheme='http://www.blogger.com/atom/ns#' term='CFC'/><category scheme='http://www.blogger.com/atom/ns#' term='component'/><title type='text'>CFC Simplicity</title><content type='html'>Ok so here is my quick and dirty primer on CFCs.  CFCs are the defacto method for keeping your development nice and clean.  For this example i am using a simple query and then invoking it in a web page.  There are two files you need the CFC and the CFM calling the CFC.&lt;br /&gt;&lt;br /&gt;So here are the files assuming you have a database registered in your Coldfusion administrator.&lt;br /&gt;&lt;br /&gt;index.cfm&lt;br /&gt;qryPerson.cfc&lt;br /&gt;&lt;br /&gt;For the index page here are the contents with explanations and the cfc with explanations.&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---First   we   are   invoking   the   cfc   component,   it's   method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; which   is   the   same   name   as   the   component,   and   giveing&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; the   return   variable   the   same   name.    You   can   get&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; creative   but   you   will   atleast   have   to   have   these&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; three   items.   ---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;cfinvoke   component="qryPerson"   method="qryPerson"   returnvariable="qryPerson"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---Here   ais   the   only   argument   I   am   passing   the   first   name   is   frank.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;cfinvokeargument   name="first"   value="Frank"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---Closing   the   invoke.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;/cfinvoke&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---Now   I   am   dumping   out   the   return   query.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;cfdump   var="#qryPerson#"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---If   you   want   to   actually   present   the   return...do   this...---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;cfoutput   query="qryPerson"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;     #first_name#   #last_name#   #userID#&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;/cfoutput&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here is the qryPerson.cfc (component).&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---This   cfcomponent   can   be   modified   to   alter   combinations&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; of   first   and   last   or   even   first,   last   and   userID.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; But   your   if   statement   would   be   more   complex.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;!---Keeping   it   very   simple   here   first   cones   the   component   name.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt; &amp;lt;cfcomponent&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;         &amp;lt;!---The   function   comes   next   make   sure   it   is   sent   to   return   type   query---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;         &amp;lt;cffunction   name="qryPerson"   access="public"   returntype="query"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 &amp;lt;!---Here   is   my   arguement   I   am   calling   it   is   not   requiried---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;cfargument   name="first"   type="string"   required="yno"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 &amp;lt;!---Then   my   query   it   is   very   simple   but   notice   the   embedded&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 if   statement.    Notice   that   the   variable   says   with&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 arguments.first   ARGUMENTS   is   what   you   use   inside   the   CFC   unless&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 you   set   it   to   a   different   variable   but   for   simplicity   I   pulled&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 it   directly,   which   is   perfectly   acceptable   to   do.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;cfquery   datasource="emp"   name="qryPerson"&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 Select   *   from   emp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;cfif   isdefined("arguments.first")&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                    where   first_name   =   '#arguments.first#'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;/cfif&amp;gt;         &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;/cfquery&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 &amp;lt;!---Now   we   return   the   query   to   this   cfreturn   tag..&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;                 just   use   the   name   of   the   query.---&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;                 &amp;lt;cfreturn   qryPerson&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;         &amp;lt;/cffunction&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &amp;lt;/cfcomponent&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Any questions?  drop me a line at &lt;a href="mailto:frank_tudor@yahoo.com"&gt;frank_tudor@yahoo.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-5903062174690577687?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/5903062174690577687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=5903062174690577687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5903062174690577687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5903062174690577687'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2008/03/cfc-simplicity.html' title='CFC Simplicity'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-2912305102880149291</id><published>2007-12-21T10:22:00.000-08:00</published><updated>2007-12-21T10:37:17.338-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='url'/><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='values'/><category scheme='http://www.blogger.com/atom/ns#' term='setting something'/><category scheme='http://www.blogger.com/atom/ns#' term='variables'/><category scheme='http://www.blogger.com/atom/ns#' term='sessions'/><title type='text'>Variable Primer</title><content type='html'>&lt;p&gt;Vocab:&lt;/p&gt;&lt;p&gt;Variable: a container that holds something&lt;/p&gt;&lt;p&gt;Value: assigned to a variable&lt;/p&gt;&lt;p&gt;example = variable = value&lt;/p&gt;&lt;p&gt;In coldfusion the simple variable can be handled in a few ways.&lt;/p&gt;&lt;p&gt;For example say we have the word 'apple' and we want to take this word and pass it throughout our application.&lt;/p&gt;&lt;p&gt;In a form this is how you would do it:&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;form action="variables2.cfm" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input name="fruit" value="apple" type="text"&amp;gt;&lt;br /&gt;&amp;lt;input value="submit" name="submit" type="submit"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;/p&gt;&lt;p&gt;and on the variable2.cfm page you would need code that looked like this to display it.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&amp;lt;p&amp;gt;passed variables&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;cfif&amp;gt;&lt;br /&gt;#form.name#&lt;br /&gt;&amp;lt;/cfif&amp;gt;&lt;/p&gt;&lt;p&gt;This is a URL what we can a query string variable&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;a href="http://www.blogger.com/variables2.cfm?name=frank"&amp;gt;URL variable example&amp;lt;/a&amp;gt;&lt;/p&gt;&lt;p&gt;For a session you would set your variable like this: Session are great for storing variables that are needed throughout your website. so instead of move hidden input fields through forms, or long crazy querystring you simple set the session.whatever and assign the value.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;cfset firstname=" 'Doug'"&amp;gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#session.firstname#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;p&gt; Here is another type of variable called a 'request' variable.  This type of variable only lasts for the life of the page...Move to another page and it is gone.  request.variables are useful for database references where you would assigned the data source to something like request.dsn (datasource name).&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&amp;lt;cfset frank=" 35"&amp;gt;&lt;br /&gt;request.frank is &amp;lt;cfoutput&amp;gt;#request.frank#&amp;lt;/cfoutput&amp;gt;&lt;/p&gt;&lt;p&gt;The last variable is just the variable's variable where you would set your variable in somethign like this &amp;amp;lt;cfset fruit = 'apple'&amp;amp;gt; it only lasts for the duration of the page, move away from the page and it is gone.&lt;/p&gt;&lt;p&gt;Frank&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-2912305102880149291?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/2912305102880149291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=2912305102880149291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/2912305102880149291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/2912305102880149291'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/variable-primor.html' title='Variable Primer'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-4711089079672427750</id><published>2007-12-19T10:31:00.001-08:00</published><updated>2007-12-19T10:52:16.459-08:00</updated><title type='text'>Best and worst audiobooks</title><content type='html'>I have been listening to many audiobooks lately and here is what i have to report from the limited files I have.&lt;br /&gt;&lt;br /&gt;First, The Hitchhiker's Guide to the Galaxy read by Stephen Fry. Is possibly one of the best available.&lt;br /&gt;&lt;br /&gt;On the low end of the spectrum.  Ivanhoe read by Flo Gibson.  This audiobook book was horrid.  And I don't think it is the material so much than the voice of this woman.   Her voice is so difficult to stomach.   Ivanhoe is not easy as it is.  There is so much environment settings and character setting that it can get tedious, but Flo's voice is much more miserable.&lt;br /&gt;&lt;br /&gt;All the harry Potter books are great including the first book and the last one (Deathly Hollows) are great.&lt;br /&gt;&lt;br /&gt;The Terror is fairly good if you have never had exposure to harrowing artic tales before.&lt;br /&gt;&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-4711089079672427750?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/4711089079672427750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=4711089079672427750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4711089079672427750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4711089079672427750'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/best-and-worst-audiobooks.html' title='Best and worst audiobooks'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-6710742487955355412</id><published>2007-12-19T07:18:00.000-08:00</published><updated>2007-12-19T20:04:37.117-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='cfset'/><category scheme='http://www.blogger.com/atom/ns#' term='value'/><category scheme='http://www.blogger.com/atom/ns#' term='url'/><category scheme='http://www.blogger.com/atom/ns#' term='variable'/><category scheme='http://www.blogger.com/atom/ns#' term='form'/><category scheme='http://www.blogger.com/atom/ns#' term='session'/><category scheme='http://www.blogger.com/atom/ns#' term='cf'/><title type='text'>Simple session and setting sessions with cfset example</title><content type='html'>As part of my effort for creating simple Coldfusion examples.  I want to take about variables. As we know in a normal website we are taught to pass URL or FORM variable from page to page. This is great for a one or two things or for a form of variables/values. So there is another very useful way to pass variables and that is by sessions. I won’t explain what a session 'is' except that it works with cfset tag like normal variables.&lt;p&gt;&lt;/p&gt;Let me show you&lt;br /&gt;&lt;p&gt;URL variables look like this when you pass it from a URL query string.&lt;/p&gt;&lt;blockquote&gt;http://www.sitename.com/index.cfm?binky=boink&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;then you pull it into the the target page like this:&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#url.binky#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;You don't need the value after the equal sign because when the page resolves it will show on the screen.&lt;/p&gt;&lt;p&gt;imagine a form on a page that has a textbox input area.  The label of the this 'input' text field is called 'name'.  Then you type in the word 'frank' and hit submit.&lt;/p&gt;&lt;p&gt;It passes the value to a page called formCatch.cfm&lt;/p&gt;&lt;p&gt;You would display it like this.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#form.name#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;It would output the word frank.&lt;br /&gt;&lt;br /&gt;And now lets look at a session:&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfset session.name = 'frank'&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;#session.name#&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;It would output the name Frank, but here is the good thing about sessions, you can go to any page after setting the session variable and call it. &lt;/p&gt;&lt;p&gt;So lets go back to the FORM and URL variables.  those are great for one page justs, but after that they loose purpose.&lt;/p&gt;&lt;p&gt;sessions stay for the duration of your access to the website or until you explicitly tell it togo away.&lt;/p&gt;&lt;p&gt;Here is how you do that.&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfset StructDelete(Session, "name")&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;One other note.  Before you can use sessions in your website you have to 'tell' it that it will use sessions.&lt;/p&gt;&lt;p&gt;Here is how that works.&lt;/p&gt;&lt;p&gt;In your web application directory you can create a blank .cfm file called 'Application.cfm'.  Put this file on the directory where you will use sessions.&lt;/p&gt;&lt;p&gt;Then add this line of code:&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;/p&gt;&lt;blockquote&gt;&amp;lt;cfapplication sessionmanagement="yes"&amp;gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;So that is sesssions in a nutshell. This should get anyone by with sessions.&lt;/p&gt;&lt;p&gt;Frank&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-6710742487955355412?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/6710742487955355412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=6710742487955355412' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/6710742487955355412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/6710742487955355412'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/as-part-of-my-effort-for-creating.html' title='Simple session and setting sessions with cfset example'/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-4031698261858258859</id><published>2007-12-13T08:39:00.000-08:00</published><updated>2007-12-14T07:13:05.613-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='parent child tree'/><category scheme='http://www.blogger.com/atom/ns#' term='recursion'/><category scheme='http://www.blogger.com/atom/ns#' term='recursive function'/><title type='text'></title><content type='html'>On the subject of recursion or parent child relationships in data sources.  It is a difficult concept if you are non-traditional programmer like myself.  I think the hardest part is calling the function over and over and then move out of the loop and back up the tree.  I did a lot of searching, especially for a Coldfusion based example.  Here is what i found:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://tutorial478.easycfm.com/"&gt;EasyCFM example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.cutterscrossing.com/index.cfm/2007/2/27/ColdFusion-Recursive-Functions"&gt;CuttersCrossing example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dougboude.com/blog/1/2006/06/Recursive-Functions-in-ColdFusion.cfm"&gt;Doug Boude example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bennadel.com/blog/1069-Ask-Ben-Simple-Recursion-Example.htm"&gt;Kinky Solution : Ben Nadel example&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I asked Ben to create a recursive solution for me because the other three were too difficult for me.  The Doug Boude example shows a sudo-solution that I actually incorporated but then felt guilty about, but Ben really simplified the concepts and the example is extensible that you can actually use the code in your own solution.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-4031698261858258859?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/4031698261858258859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=4031698261858258859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4031698261858258859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/4031698261858258859'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/on-subject-of-recursion-or-parent-child.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-8291326436879906726</id><published>2007-12-06T11:46:00.000-08:00</published><updated>2007-12-06T11:54:04.744-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Shooter'/><category scheme='http://www.blogger.com/atom/ns#' term='Richard Hawkins'/><category scheme='http://www.blogger.com/atom/ns#' term='shooting'/><category scheme='http://www.blogger.com/atom/ns#' term='Westroards Mall'/><category scheme='http://www.blogger.com/atom/ns#' term='Omaha'/><title type='text'></title><content type='html'>Living in Omaha is a nice feeling.  The people are friendly, families are big, and bad things rarely happen.  So when Richard Hawkin's went on a shooting spree yesterday, it sent waves of pain through me.  This never happens around here but you can't say never now.  We are now part of a select group of victims that get to make sense out of the senseless.  People were shopping, people returning from break back to there jobs (inthe mall), people were just being people...around Christmas...I am wondering about this guy's parents.  I wonder when they will talk.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-8291326436879906726?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/8291326436879906726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=8291326436879906726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/8291326436879906726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/8291326436879906726'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/living-in-omaha-is-nice-feeling.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-3847952223382520411</id><published>2007-12-05T13:12:00.001-08:00</published><updated>2007-12-05T17:00:44.005-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coldfusion'/><category scheme='http://www.blogger.com/atom/ns#' term='loop'/><category scheme='http://www.blogger.com/atom/ns#' term='rowid'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'></title><content type='html'>Recently I had a table with no unique ID. I had to create a row then  realized I already had 238 records. Instead of touching each and typing  in the value (dumb). I came up with this snip of code. The table is in  Oracle and the Coldfusion code uses the sudo field rowid to achieve  this.&lt;br /&gt;&lt;p&gt;&amp;lt;!---Get records and rowid (oracles pecific)---&amp;gt;&lt;br /&gt;&amp;lt;cfquery datasource="#request.dsn#" name="tester"&amp;gt;&lt;br /&gt;select  req_incr_id, rowid&lt;br /&gt;from rem_apvl_dtl&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;  &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt; &amp;lt;!---loop through each individual record---&amp;gt;&lt;br /&gt;&amp;lt;cfloop query="tester"&amp;gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt; &amp;lt;!---Start the count based on one record I manually altered ad set to 1, you could do this differently---&amp;gt;&lt;br /&gt;        &amp;lt;cfif tester.req_incr_id eq 1&amp;gt;&lt;br /&gt;        &amp;lt;cfset mark = 1&amp;gt;&lt;br /&gt;&amp;lt;cfelse&amp;gt;&lt;br /&gt;&amp;lt;cfset mark = mark +1&amp;gt;&lt;br /&gt;&amp;lt;/cfif&amp;gt;&lt;/p&gt;        &lt;p&gt; &amp;lt;!---Now update your unique ID with the incremented number---&amp;gt;&lt;br /&gt;        &amp;lt;cfquery datasource="#request.dsn#" name="markit"&amp;gt;&lt;br /&gt;        UPDATE rem_apvl_dtl&lt;br /&gt;        SET req_incr_id = '#mark#'&lt;br /&gt;        where rowid = '#rowid#'&lt;br /&gt;  &amp;lt;/cfquery&amp;gt;&lt;/p&gt;  &lt;/blockquote&gt;  &lt;p&gt; &amp;lt;/cfloop&amp;gt; &lt;/p&gt;&lt;/blockquote&gt;You  can see how easy this is. Now once all of your records have been  updated you can go back and fix your queries or add a sequence to your  table to increment the id from here on out.&lt;br /&gt;&lt;br /&gt;If you inadvertently screw up on the data in the field you can always remove it and add it again.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-3847952223382520411?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/3847952223382520411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=3847952223382520411' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3847952223382520411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3847952223382520411'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/12/recently-i-had-table-with-no-unique-id.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-1193593666720865691</id><published>2007-11-27T08:33:00.000-08:00</published><updated>2007-11-27T08:35:30.793-08:00</updated><title type='text'></title><content type='html'>Today my wife had a hissy fit.  She got mad because I thought we were getting separate gifts for our kids.  So I wrote Santa an email:&lt;br /&gt;&lt;br /&gt;----&lt;br /&gt;&lt;br /&gt;Dear Santa,&lt;br /&gt;&lt;br /&gt;My wife is yelling at me. She says the 'F' word a lot and she is frowns and pouts.&lt;br /&gt;&lt;br /&gt;Can you put her on the Naughty list please?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-1193593666720865691?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/1193593666720865691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=1193593666720865691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/1193593666720865691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/1193593666720865691'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/11/today-my-wife-had-hissy-fit.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-6643571760303251588</id><published>2007-11-26T13:51:00.000-08:00</published><updated>2007-11-26T14:00:11.122-08:00</updated><title type='text'></title><content type='html'>Well, my fusebox self-retraining is coming along nicely.  But I need more.  I have ordered a new book recommended by &lt;a href="http://corfield.org/blog/index.cfm"&gt;Sean Corfield&lt;/a&gt;.  We'll see how much I can pull from it with out running out of steam.  I am much better with smaller reads, however I did get through most of the &lt;a href="http://www.amazon.com/Macromedia-ColdFusion-Web-Application-Construction/dp/0321223675/ref=sr_1_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1196114214&amp;amp;sr=8-1"&gt;WACK&lt;/a&gt; chapters (or those that were most important to me).&lt;br /&gt;&lt;br /&gt;I will be living breathing &lt;a href="http://www.fusebox.org/"&gt;FuseBox&lt;/a&gt; and &lt;a href="http://jquery.com/"&gt;jQuery&lt;/a&gt; for the next several months (possibly years).&lt;br /&gt;&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-6643571760303251588?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/6643571760303251588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=6643571760303251588' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/6643571760303251588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/6643571760303251588'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/11/well-my-fusebox-self-retraining-is.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-5140182625700121787</id><published>2007-11-22T09:42:00.000-08:00</published><updated>2007-11-22T09:51:08.587-08:00</updated><title type='text'></title><content type='html'>It is Thanksgiving today and I have a lot to be thankful for.  I real very content in my life and I am 'now' generally happy.  Working for Div-Sol and XIG really helps.  I can't emphasize how nice it is to work in my specialized field. &lt;br /&gt;&lt;br /&gt;Now my site has been neglected.  I have decided to relearn Fusebox 4 and that kind of sucks but I think it is necessary.  I started but fell short of completing my training because I am used to having page templates and the content changes based on query string variables.  I could not figure out how to do this so I posted my question to the fusebox forum and the time it took to get a response put enough time between working with fusebox forcing me to move on to something else (i forgot how to work with fusebox (sort of)) and everything came to a stand still.&lt;br /&gt;&lt;br /&gt;I will have to rework my fusebox site a little differently.  I have a concept in mind, but I have to put myself into it.&lt;br /&gt;&lt;br /&gt;Anyways, happy Thanksgiving to anyone who happens to pass by my blog.&lt;br /&gt;&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-5140182625700121787?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/5140182625700121787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=5140182625700121787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5140182625700121787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/5140182625700121787'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/11/it-is-thanksgiving-today-and-i-have-lot.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-9163125717512033760</id><published>2007-11-02T09:51:00.000-07:00</published><updated>2007-11-02T09:54:01.580-07:00</updated><title type='text'></title><content type='html'>&lt;h3 id="title"&gt;&lt;a href="http://niggytardust.com/saulwilliams/menu"&gt;Saul Williams NiggyTardust ready for download [label/DRM-free distribution]&lt;/a&gt;&lt;/h3&gt; &lt;p&gt;Saul Williams' THE INEVITABLE RISE AND LIBERATION OF NIGGYTARDUST, produced by Trent Reznor, have been distributed. The album is available for free at 192kbps bitrate or 320kps/lossless if you put forward some cash. Please support this artist and label/DRM-free distribution!&lt;/p&gt;&lt;p&gt;This album is excellent! I paid the $5 you should too!&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-9163125717512033760?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/9163125717512033760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=9163125717512033760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/9163125717512033760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/9163125717512033760'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/11/saul-williams-niggytardust-ready-for.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-7427139613970911866</id><published>2007-10-31T09:10:00.000-07:00</published><updated>2007-10-31T09:15:47.048-07:00</updated><title type='text'></title><content type='html'>&lt;p class="MsoNormal"&gt;On the subject of the &lt;a href="http://nigelwarburton.typepad.com/philosophy_bites/"&gt;Philosophy Bites Interviews&lt;/a&gt; co-produced by: David Edmunds and &lt;a href="http://www.nigelwarburton.typepad.com/"&gt;Nigel Walburton&lt;/a&gt;:&lt;/p&gt;  (available on iTunes)&lt;br /&gt; &lt;p class="MsoNormal"&gt;Interview tones:&lt;span style=""&gt;  &lt;/span&gt;Mr. Walburton opens almost all of his interviews up by thanking the interviewee for being a guest.&lt;span style=""&gt;  &lt;/span&gt;Many of the earlier interviewees seemed bemused but interested in giving the interview however towards the middle of the first 25 interviews the structure and tone of the interviews are consistent and the interviewees approach their interview in a more professional way. &lt;span style=""&gt;  &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;Questioning methods:&lt;span style=""&gt;  &lt;/span&gt;Nigel understands his field and asks pointed questions in an expert way.&lt;span style=""&gt;  &lt;/span&gt;With each interview, after introducing the topic or subject, he turns to the interviewee and in most interviews asks what the interviewee understands by the topic in question.&lt;span style=""&gt;  &lt;/span&gt;The purpose for this is to define the interviewee’s interpretations since there may be several interpretations or angles to ideas, and from there the interviewee is left to explain those ideas set the pace of the interview.&lt;span style=""&gt;  &lt;/span&gt;At the end of one interview with Quentin Skinner on Hobbes, Mr. Walburton thanks Mr. Skinner for the interview and Skinner replies, “well Nigel thank you very much…they’re such perceptive questions you’ve helped me to make it easier than it should be to answer them”. &lt;span style=""&gt; &lt;/span&gt;This clearly shows his expert knowledge on the subject of Philosophy. However there are in some Nigel’s interviews leading questions.&lt;span style=""&gt;  &lt;/span&gt;This may be to keep an interviewee from derailing the interview.&lt;span style=""&gt;  &lt;/span&gt;Also there is one interview where some friendly disagreement occurs such as the interview with Tim Crane on ‘Mind and Body’ where he ‘presses’ Mr. Crane in a particular part of the interview.&lt;span style=""&gt;  &lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;Most of the interviews are poignant and thought provoking. The interviews mostly for posterity seems to evoke what could be called a ‘revivalist Philosophy movement’ due to there modern interview structure and appeal to pop culture.&lt;span style=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-7427139613970911866?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/7427139613970911866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=7427139613970911866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7427139613970911866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/7427139613970911866'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/10/on-subject-of-philosophy-bites.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-2740151549117291930</id><published>2007-10-30T13:16:00.000-07:00</published><updated>2007-10-30T13:20:41.624-07:00</updated><title type='text'></title><content type='html'>Custody battles suck!&lt;br /&gt;&lt;br /&gt;My son is 4.5 years old.  and we have to go through hell on earth with my ex-wife.  I have full custody of my son, (temporary orders), and now the ex wants to make those into final orders.  She agreed to my custody arrangements.  That was a $5000.00 effort.  Plus taking time off work and traveling and all that other crap.&lt;br /&gt;&lt;br /&gt;Now we have to drop another $5000.00 plus a home study which I will have to pay for.  I have to drop $2000.00 on getting the lady to come up and comb through my life with a fine tooth comb. GAD!&lt;br /&gt;&lt;br /&gt;So things are suck-tacular as one of my old co-workers used to say.&lt;br /&gt;&lt;br /&gt;So as far as I know the one who wins the home study wins custody. (sigh).&lt;br /&gt;&lt;br /&gt;I am ready for custody battles to be over.&lt;br /&gt;&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-2740151549117291930?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/2740151549117291930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=2740151549117291930' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/2740151549117291930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/2740151549117291930'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/10/custody-battles-suck-my-son-is-4.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-3267306947409692206</id><published>2007-10-29T18:44:00.000-07:00</published><updated>2007-10-29T18:57:10.253-07:00</updated><title type='text'></title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;So my blog has been neglected. My website has too.  I think I am either to tired or coded out.  So I am thinking about a few things.  I am thinking about running for County Commissioner I think it would be part time and the pay would be around $500 a month plus pay for meetings $75 or so.   I have to register and win first but I think it would be fun.&lt;br /&gt;&lt;br /&gt;Anyways,  I have been doing some Coldfusion work for a real nice company.  Coldfusion is my forte so anytime I find a CF job I am super thankful.  In any case life is pretty good and I am going to focus more on my site development. Or at least I will keep telling myself that I will.&lt;br /&gt;&lt;br /&gt;Talk soon...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-3267306947409692206?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/3267306947409692206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=3267306947409692206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3267306947409692206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/3267306947409692206'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2007/10/hi-so-my-blog-has-been-neglected.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-115350733725337387</id><published>2006-07-21T10:46:00.000-07:00</published><updated>2006-07-21T11:42:17.300-07:00</updated><title type='text'></title><content type='html'>Using cfdirectory to list a files:&lt;br /&gt;&lt;br /&gt;Recently I was asked to create an upload tool that takes radio shows from a particular station and uploads then for archival purposes.&lt;br /&gt;&lt;br /&gt;The first thing i needed to do was to create a form that formatted the date and grabbed the file.  I had to break this into two parts:&lt;br /&gt;&lt;br /&gt;one part used the very hand cfform cffinput container called dateselect:  here is the code:&lt;br /&gt;&lt;br /&gt;&lt;cfparam name="Form.selectdate" default="#dateformat(now(), 'mm/dd/yyyy')#"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfform name="form1" format="Flash" skin="haloBlue" width="375" height="350"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfinput type="dateField" name="selectdate" label="Initial date" width="100" value="#Form.selectdate#" mask="YYYYMMDD"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfinput type="submit" name="submitit" value="Save" width="100"&gt; &lt;br /&gt;&lt;br /&gt;In the code above notice the mask="yyyymmdd" that formats my date and the cfparam sets the date for today. &lt;br /&gt;&lt;br /&gt;The code above is so sweet.  It controls user input so there is no mistake on date entry, additionally the reduced amount of code is applaudable. (note: the code will only work with MX 7)  I found out we were using Coldfusion 6.1 so I had to change it to something else.&lt;br /&gt;&lt;br /&gt;Next, I used a cfinput type="file" to grab the file on my computer.&lt;br /&gt;&lt;br /&gt;After that I had to check to see what files were already there incase of collisions...here is the code:&lt;br /&gt;&lt;br /&gt;&lt;cfdirectory directory="#ExpandPath('rsd/')#" action="list" name="dircheck" filter="rs-#date#*.mp3" sort="DateLastModified desc"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#dircheck.name#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now notice the above code...let me point out two really useful elements when checking for files that ar incremented and in my case I am looking for the file name that was last modified, that file will also have the highest number with oday's date.  The great thing that happens next is that if the file does exist we run a mid function on the incremented value. If that value doesn't exist it is set to 00 if it is anything else, it checks the number then increments the number...here is the code:&lt;br /&gt;&lt;br /&gt;&lt;cfif&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset ee =" mid(#dircheck.name#,"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset ee =" NumberFormat(EE"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="style1"&gt;You have submitted an Mp3 today, so we are going to add this and increment it to &lt;span class="style2"&gt;&lt;cfoutput&gt;#EE#&lt;/cfoutput&gt;&lt;/span&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfelse&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset ee = "00"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/cfif&gt;&lt;br /&gt;&lt;br /&gt;The tough part was managing the files.  The file had to be named a certain way.  There is a prefix and a dash, there is a date, then a two digit unique file number that looks like 00 or 01 or 02...etc.&lt;br /&gt;&lt;br /&gt;So here is the file name break down and each file needed to follow certain naming conventions:&lt;br /&gt;&lt;br /&gt;(prefix)-(date)(increment).mp3&lt;br /&gt;&lt;br /&gt;rs-2006072100.mp3&lt;br /&gt;&lt;br /&gt;This was not to difficult.  I managed this by doing this:&lt;br /&gt;&lt;br /&gt;&lt;cffile action="UPLOAD" destination="#ExpandPath('rsd/')#" accept="audio/*.mp3" filefield="Form.FiletoUpload" nameconflict="makeunique"&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--- Name of the uploaded file---&gt;&lt;br /&gt;&lt;cfset filename =" cffile.serverFile"&gt;&lt;br /&gt;&lt;br /&gt;&lt;cffile action = "rename" source = "#ExpandPath('rsd/')##fileName#" destination = "#ExpandPath('rsd/')#rs-#date##EE#.mp3" attributes="normal"&gt; &lt;br /&gt;&lt;br /&gt;Well maybe it was a bit difficult.&lt;br /&gt;&lt;br /&gt;Well I hopes this help someone else who has cffile and cfdirectory difficulties. This stuff is never easy when you are doing this by yourself.&lt;br /&gt;&lt;br /&gt;Talk soon,&lt;br /&gt;Frank Tudor&lt;br /&gt;&lt;a href="http://www.300site.com"&gt;www.300site.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-115350733725337387?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/115350733725337387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=115350733725337387' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/115350733725337387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/115350733725337387'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2006/07/using-cfdirectory-to-list-files.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-115194840601392222</id><published>2006-07-03T10:25:00.000-07:00</published><updated>2006-07-03T10:42:59.396-07:00</updated><title type='text'></title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;Well I am starting to fine tune 300site some more updating the site and intigrating some additional technololgy.  I have investigated a framework called &lt;a href="http://fusebox.org"&gt;fusebox&lt;/a&gt;.  This technology will create a faster more useable website and product for the masses.  As always if you are interested in &lt;a href="http://www.300site.com"&gt;300site&lt;/a&gt; for your website solutions now is the time to get it we are still offering the site for $29.95 w/free banner.&lt;br /&gt;&lt;br /&gt;But there are many things to add!&lt;br /&gt;&lt;br /&gt;Here is a small to do list for 300site:&lt;br /&gt;&lt;br /&gt;Recreate the site using Fusebox/FLiP!&lt;br /&gt;Change our data source to MySQL from Access!&lt;br /&gt;Implement some back end (and maybe front end) Flex elements!&lt;br /&gt;&lt;br /&gt;Of course at some point, we will add a shop cart solution, which will create a new level of havoc for us ;)&lt;br /&gt;&lt;br /&gt;Anyways on a personal note.  &lt;a href="http://www.adobe.com"&gt;Coldfusion&lt;/a&gt;, in which this and most of my other sites are created in, is one of the most excellent web development technologies out there.  The ease of use and implementation is top-notch.  People (of lower programming experience) can create the functionality they have always dreamed about.  Of course, with guys like &lt;a href="http://forta.com"&gt;Ben Forta&lt;/a&gt; and &lt;a href="http://www.camdenfamily.com/"&gt;Ray Camden&lt;/a&gt; on your side looking out for his development community you can go work.  Coldfusion is not just a technology...it is a spiritual way of life!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-115194840601392222?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/115194840601392222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=115194840601392222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/115194840601392222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/115194840601392222'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2006/07/hi-all-well-i-am-starting-to-fine-tune.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5069403.post-114356672125625181</id><published>2006-03-28T09:15:00.000-08:00</published><updated>2006-03-28T09:25:21.266-08:00</updated><title type='text'></title><content type='html'>300site: a breakdown of our web technology.&lt;br /&gt;&lt;br /&gt;You might be asking what is 300site.com?  300site is a template and framework for bulding search friendly webpages. I developed this technology over several years of building websites for various clients.  I would take the parts I like and build them together to enhance presentation.  So now instead of charging a client an hour rate, I give them roughly $1,000 of features and a clean design to start up a professional self-building website for under $300.&lt;br /&gt;&lt;br /&gt;More than that we help people get there web presence established.  We try to work with everyone on a close and personal level so they have somewhere to turn when they need help.&lt;br /&gt;&lt;br /&gt;If you have any questions about 300site you can always email me at &lt;a href="mailto:support@300site.com"&gt;support@300site.com&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;BTW, we also register domains and provide hosting solutions.&lt;br /&gt;&lt;br /&gt;Thanks for stopping by!&lt;br /&gt;&lt;br /&gt;Frank&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5069403-114356672125625181?l=franktudor.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://franktudor.blogspot.com/feeds/114356672125625181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5069403&amp;postID=114356672125625181' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/114356672125625181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5069403/posts/default/114356672125625181'/><link rel='alternate' type='text/html' href='http://franktudor.blogspot.com/2006/03/300site-breakdown-of-our-web.html' title=''/><author><name>Frank Tudor</name><uri>https://profiles.google.com/114697539767832683974</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-hkObSoVVrQk/AAAAAAAAAAI/AAAAAAAAAEk/-vczZKovEcg/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
