<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site Blog of Dave</title><link>http://daveshuck.instantspot.com</link><description>Dave Shuck&apos;s ramblings on - Software Development, Outdoors, and Life</description><language>en-us</language><copyright>This work is Copyright &#xA9; 2010 by Blog of Dave</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Tue, 07 Sep 2010 08:49:06 GMT</pubDate><item><title>UDF: pcase() - Captilize first letter of each word in a string</title><link>http://daveshuck.instantspot.com/blog/2010/02/25/UDF-pcase--Captilize-first-letter-of-each-word-in-a-string/</link><description>This is a UDF that I keep on hand for converting strings to &quot;proper case&quot;, such as a person&apos;s name.&amp;nbsp; For instance, in a database we might have a name stored like &lt;b&gt;DAVID B. SHUCK&lt;/b&gt;, but when they log into our site and we welcome them, we don&apos;t necessarily want to shout it at them!&amp;nbsp;&amp;nbsp; Saying &quot;Hello David B. Shuck...&quot; would hopefully be a bit less abrasive.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;Enter the user-defined function pcase().&amp;nbsp; Through the use of regular expressions we are doing a search for word patterns and capitalizing the first letter in each word.&amp;nbsp; Enjoy!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;cffunction name=&quot;pcase&quot; access=&quot;public&quot; output=&quot;false&quot;  returntype=&quot;string&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfargument name=&quot;string&quot;  type=&quot;string&quot; required=&quot;true&quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfreturn  REReplaceNoCase(LCase(arguments.string),&quot;(^[a-z*]|[ *][a-z*])&quot;,&quot;\U\1\E&quot;,&quot;all&quot;)  /&amp;gt;&lt;br /&gt;&amp;lt;/cffunction&amp;gt;&lt;br /&gt;&lt;/code&gt;</description><pubDate>Thu, 25 Feb 2010 16:34:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2010/02/25/UDF-pcase--Captilize-first-letter-of-each-word-in-a-string/</guid><category>ColdFusion,Tips and Tricks,Technology,CFML,UDF</category></item><item><title>Grand Canyon... It&apos;s on!</title><link>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on/</link><description>My father and I decided that this was the year that we would hike the North Rim to the South Rim of the Grand Canyon.   I know this seems crazy, but it is actually a paperwork challenge to be able to hike the Grand Canyon.  There is an application process in which you have to fax your request in the 1st day of the month 6 months before the intended date of your trip with a detailed itinerary, including where you will be sleeping and when.  We sent faxed our paperwork in and held our breath on the 1st of April, 6 months before we hoped to go in September.  After no word for a month we finally contacted them, only to find out that we had been rejected.  Discouraged, but not beaten, we laid out the calendar to see if there was another time that would work.  We decided that November would be acceptable, albeit a little colder.  It should be in the 60s in the bottom of the canyon though where we will spend the majority of our time.  Once again, we laid out our itinerary and faxed in on July 1.  My dad received a letter today dated July 6, 2005 telling him that they were sorry, but they were unable to accept out application.  He spent a good hour walking around the house cussing and feeling terribly disappointed.  A bit later my mom noticed there was another letter from the Grand Canyon dated July 7, 2005.  &lt;br /&gt;  &lt;br /&gt;  &lt;div class=&quot;note&quot;&gt;  Dear Mr. Shuck, we have accepted your request to hike the Grand Canyon on the dates of November 1, 2 and 3, 2005.  Enlcosed are your passes, which you will need to affix to your backpack and carry with you in the canyon.  There is no need to stop by the back country headquarters before departing on the trail.  &lt;/div&gt;  So in 3.5 months, I will be taking this in....&lt;br /&gt;  &lt;div style=&quot;text-align: center&quot;&gt;  &lt;img src=&quot;/images/GrandCanyon.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;  &lt;/div&gt;      </description><pubDate>Mon, 11 Jul 2005 05:00:00 GMT</pubDate><guid>http://daveshuck.instantspot.com/blog/2005/07/11/Grand-Canyon-Its-on/</guid><category>Outdoors</category></item></channel></rss>