<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site Sam Farmer&apos;s ColdFusion Blog</title><link>http://samfarmer.instantspot.com</link><description>Tips and thoughs on ColdFusion and other technologies that make the web go...</description><language>en-us</language><copyright>This work is Copyright &#xA9; 2009 by Sam Farmer&apos;s ColdFusion Blog</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Sat, 21 Nov 2009 17:26:46 GMT</pubDate><item><title>Cool New cfGrid Tricks</title><link>http://samfarmer.instantspot.com/blog/2009/11/11/Cool-New-cfGrid-Tricks</link><description>&lt;p&gt;The html format of cfgrid has some cool new tricks in ColdFusion 9.&amp;nbsp; First the placement of a column can be moved by dragging it elsewhere in the grid.&amp;nbsp; In the example below the &apos;aDate&apos; column is moved:&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;417&quot; height=&quot;232&quot; src=&quot;/userfiles/040107/117/gridMoveColumn.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt; &lt;p&gt;Second, when you hover over a column and click on the menu drop down the following options appear which allow for sorting or removing a column (that can then be added back).&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;419&quot; height=&quot;243&quot; src=&quot;/userfiles/040107/117/gridColumnOptions.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt; &lt;p&gt;You may notice in this example that the sort options are greyed out.&amp;nbsp; This is because, for some reason, sort is disabled by default on Boolean type columns.&amp;nbsp; CF Mitrah found a simple solution for enabling sort posted in the &lt;a href=&quot;http://samfarmer.instantspot.com/blog/2009/11/08/Exploring-ColdFusion-9-The-Four-New-Data-Types-in-CFGrid&quot;&gt;comments of an entry on the four new data types&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;I&apos;ve rarely used cfgrid over the years but in ColdFusion 9 it starts to feel like its ready for the big leagues in part thanks to the new data types, the addition of grouping and inserting (&lt;a href=&quot;http://www.akbarsait.com/blog/index.cfm/2009/10/16/ColdFusion-9-New-Attributes-in-CFGrid&quot;&gt;see Akbarsait&apos;s blog entry for more&lt;/a&gt;) and being based on the impressive &lt;a href=&quot;http://www.extjs.com/products/extjs/&quot;&gt;Ext JS 3.0&lt;/a&gt; release.&lt;/p&gt;</description><pubDate>Thu, 12 Nov 2009 02:59:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/11/11/Cool-New-cfGrid-Tricks</guid><category>ColdFusion 9</category></item><item><title>Exploring ColdFusion 9: The Four New Data Types in CFGrid</title><link>http://samfarmer.instantspot.com/blog/2009/11/08/Exploring-ColdFusion-9-The-Four-New-Data-Types-in-CFGrid</link><description>&lt;p&gt;ColdFusion 9 brings four new data types to the html cfgrid.&amp;nbsp; As the docs state:&lt;/p&gt; &lt;pre&gt;ColdFusion 9: Added boolean, date, numeric, and string_noCase to the&lt;br /&gt; type attribute values supported in HTML grids&lt;/pre&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Lets take a look at these new types.&amp;nbsp; Here&apos;s a sample query from the art table that I added a date to and called it, well, aDate:&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;441&quot; height=&quot;241&quot; src=&quot;/userfiles/040107/117/gce_queryDump.png&quot; alt=&quot;Query Dump&quot; /&gt;&lt;/p&gt; &lt;p&gt;I&apos;ll display these using the following cfgridcolumn tags:&lt;/p&gt; &lt;p&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfgridcolumn name=&amp;quot;artname&amp;quot; type=&amp;quot;string_noCase&amp;quot;&amp;gt; &amp;lt;cfgridcolumn name=&amp;quot;isSold&amp;quot; type=&amp;quot;boolean&amp;quot;&amp;gt; &amp;lt;cfgridcolumn name=&amp;quot;price&amp;quot; type=&amp;quot;numeric&amp;quot;&amp;gt; &amp;lt;cfgridcolumn name=&amp;quot;aDate&amp;quot; type=&amp;quot;date&amp;quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;Whats cool is that ColdFusion or ExtJS (I&apos;m not sure which) is going to automatically try and convert these types from the data where possible.&amp;nbsp; The grid looks like this:&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;412&quot; height=&quot;226&quot; src=&quot;/userfiles/040107/117/gce_grid.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt; &lt;p&gt;A quick run through of the various types;&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;&lt;strong&gt;string_noCase&lt;/strong&gt; specifies that the column will be sorted without regards to case.&amp;nbsp;&lt;/li&gt;     &lt;li&gt;The &lt;strong&gt;boolean&lt;/strong&gt; type will show a checkbox, checked if the boolean is true.&amp;nbsp; From this example you can see that it is smart enough to convert 0 and 1&apos;s into Boolean as well as true and false.&amp;nbsp;&lt;/li&gt;     &lt;li&gt;The price column is set to &lt;strong&gt;numeric&lt;/strong&gt; which limits the editing of the column to just numbers.&amp;nbsp;&lt;/li&gt;     &lt;li&gt;Leaving the best for last is the &lt;strong&gt;date&lt;/strong&gt; type which when editing displays a nice calendar option.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;img width=&quot;467&quot; height=&quot;267&quot; src=&quot;/userfiles/040107/117/gce_date.png&quot; alt=&quot;&quot; /&gt;&lt;/p&gt; &lt;p&gt;Overall some pretty cool additions that make the cfgrid tag more useful.&lt;/p&gt; &lt;p&gt;Here&apos;s the full code to generate the above:&lt;/p&gt; &lt;p&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfquery name=&amp;quot;getArt&amp;quot; datasource=&amp;quot;cfartgallery&amp;quot;&amp;gt; select ARTID, ARTNAME, DESCRIPTION, ISSOLD, PRICE, CURRENT_DATE aDate  from ART  &amp;lt;/cfquery&amp;gt; &amp;lt;cfdump var=&amp;quot;#getArt#&amp;quot; top=&amp;quot;10&amp;quot;&amp;gt;  &amp;lt;cfform&amp;gt; &amp;lt;cfgrid format=&amp;quot;html&amp;quot; name=&amp;quot;art&amp;quot; query=&amp;quot;getArt&amp;quot; align=&amp;quot;left&amp;quot; selectmode=&amp;quot;edit&amp;quot;&amp;gt;  &amp;lt;cfgridcolumn name=&amp;quot;artname&amp;quot; type=&amp;quot;string_noCase&amp;quot;&amp;gt;  &amp;lt;cfgridcolumn name=&amp;quot;isSold&amp;quot; type=&amp;quot;boolean&amp;quot;&amp;gt;  &amp;lt;cfgridcolumn name=&amp;quot;price&amp;quot; type=&amp;quot;numeric&amp;quot;&amp;gt;  &amp;lt;cfgridcolumn name=&amp;quot;aDate&amp;quot; type=&amp;quot;date&amp;quot;&amp;gt; &amp;lt;/cfgrid&amp;gt; &amp;lt;/cfform&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;</description><pubDate>Sun, 08 Nov 2009 21:44:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/11/08/Exploring-ColdFusion-9-The-Four-New-Data-Types-in-CFGrid</guid><category>ColdFusion 9</category></item><item><title>ColdFusion One Liners Presentation at CFinNC Slides Posted</title><link>http://samfarmer.instantspot.com/blog/2009/10/17/ColdFusion-One-Liners-Presentation-at-CFinNC-Slides-Posted</link><description>&lt;p&gt;The slides and code from my ColdFusion One Liners presentation at CFinNC are now up on SlideSix.&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://slidesix.com/view/ColdFusion-One-Liners&quot;&gt;View the presentation on SlideSix&lt;/a&gt;&lt;/p&gt; &lt;p&gt;I enjoyed giving the presentation and if you have any questions let me know.&lt;/p&gt;</description><pubDate>Sat, 17 Oct 2009 19:24:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/10/17/ColdFusion-One-Liners-Presentation-at-CFinNC-Slides-Posted</guid><category>ColdFusion 8,ColdFusion 9,CFinNC</category></item><item><title>Adobe Listens: Feedback Shows up in ColdFusion 9</title><link>http://samfarmer.instantspot.com/blog/2009/10/08/Adobe-Listens-Feedback-Shows-up-in-ColdFusion-9</link><description>&lt;p&gt;Around two years, just after the successful launch of ColdFusion 8, I emailed some of the top dogs on the Adobe ColdFusion team about features for ColdFusion 9.&amp;nbsp; These where my suggestions and whether they made CF9:&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;&lt;strong&gt;An IDE&lt;/strong&gt;.&amp;nbsp; ColdFusion Builder is here and one I&apos;ve been happily using exclusively since its release.&amp;nbsp;&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;Shorter Syntax/Full cfscript Support&lt;/strong&gt;.&amp;nbsp; The shorter syntax was an idea of mine to merge scripting in a tagging syntax. Looking back I&apos;m not sure exactly how it would have worked but I am happy to see much improved support for cfscript.&amp;nbsp; Writing a cfc in script syntax feels good and should help those picking up ColdFusion.&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;cfspreadsheet&lt;/strong&gt;.&amp;nbsp; Adobe nailed this one with the new tag and numerous Spreadsheet* functions.&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;cfaudio/cfvideo&lt;/strong&gt;.&amp;nbsp; My request was for recording and editing Flash movies and possibly other formats. A little disapointed although these features are availible with other tools in the Adobe arsenal.&amp;nbsp; cfmediaplayer is a useful addition to ease the playing of Flash movies.&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;Built in ORM support&lt;/strong&gt;.&amp;nbsp; The hibernate integration appears to be awesome so far.&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;Stronger support for {} and []&lt;/strong&gt;: Happy to see more uses for these useful short cuts.&lt;/li&gt;     &lt;li&gt;&lt;strong&gt;Optomize PDFs&lt;/strong&gt;: Actually asked for this one later on but am delighted to see its inclusion.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;The ColdFusion team did not listen just to me of course, from conversations I&apos;ve had with them they listen to just about every blog post, review all ERs sent in and go out and talk to customers about their vision.&amp;nbsp; I&apos;ve participated in the latter and they are very good sessions.&lt;/p&gt; &lt;p&gt;Overall I&apos;m excited with the new features in ColdFusion 9 and pleased that my feedback was listened to (and mostly showed up in the final release) but I&apos;m actually more excited about the features I did not suggest such as:&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;Advanced Caching&lt;/li&gt;     &lt;li&gt;SharePoint Integration&lt;/li&gt;     &lt;li&gt;Office Integration (including document to pdf conversion)&lt;/li&gt;     &lt;li&gt;Java Portal Integration&lt;/li&gt;     &lt;li&gt;Enhancements to Components&lt;/li&gt;     &lt;li&gt;Integration with the Solr search engine&lt;/li&gt;     &lt;li&gt;Faster Flash Remoting&lt;/li&gt;     &lt;li&gt;ColdFusion as a Service&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Congratulations to the whole ColdFusion team and all of those who have worked on the release of 9!&lt;/p&gt;</description><pubDate>Thu, 08 Oct 2009 15:50:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/10/08/Adobe-Listens-Feedback-Shows-up-in-ColdFusion-9</guid><category>ColdFusion Builder,ColdFusion 9</category></item><item><title>Use cfajaximport to help with CF8 to CF9 migration</title><link>http://samfarmer.instantspot.com/blog/2009/08/14/Use-cfajaximport-to-help-with-CF8-to-CF9-migration</link><description>&lt;p&gt;This came up in &lt;a href=&quot;http://coldfusionjedi.com/&quot;&gt;Raymond Camden&apos;s&lt;/a&gt; CFUnited presentation this morning and he suggested I blog it so here it is.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;You have extended the cfajax tags by calling the extJS functionality directly.&amp;nbsp; CF8 uses extJS 1.1 whereas CF9 is going to use extJS 3.0.&amp;nbsp; There will be cases it appears where this will break your code as some features have changed from the 1.1 to 3.0 release.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt;&lt;/p&gt; &lt;ol&gt;     &lt;li&gt;Copy the needed JavaScript files (from /cfide/scripts/ajax/*) to another folder in the webroot (say /cfExtJS11/ajax/) and make sure you keep the folder structure.&lt;/li&gt;     &lt;li&gt;On the top of any pages where you the cfajax tags use the cfajaximport tag:&lt;br /&gt;     &lt;br /&gt;     &amp;lt;cfajaximport scriptSrc=&amp;quot;/cfExtJS11&amp;quot;&amp;gt;&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;(Edit 10/14: I made a minor change to item 1 for clarification)&lt;/p&gt;</description><pubDate>Fri, 14 Aug 2009 05:14:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/08/14/Use-cfajaximport-to-help-with-CF8-to-CF9-migration</guid><category>ColdFusion 8,ColdFusion 9</category></item><item><title>Ten ColdFusion 9 One-Liners</title><link>http://samfarmer.instantspot.com/blog/2009/07/23/Ten-ColdFusion-9-OneLiners</link><description>&lt;p&gt;All great performers have repertoire of one-liners.  ColdFusion is no different and here are some cool new ColdFusion 9 one-liners:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;1. Take a Word document and convert it to PDF&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfdocument&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;format&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;pdf&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;srcfile&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;/mydoc.docx&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;filename&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;mydoc.pdf&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;2. Take a PDF and optimize it&lt;/strong&gt; (remove extra images, bookmarks, etc that are not needed)&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfpdf&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;optimize&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;bigpdf.pdf&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;algo&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;Bicubic&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;destination&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;smallpdf.pdf&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;3. Get an object/record of an artist based on the key&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfset&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; artist &lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt; &lt;strong&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;entityLoad&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&apos;artists&apos;&lt;/span&gt;,&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;1&lt;/span&gt;,&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;(Change it &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfset&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; artist.setLastName&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&apos;McCoy&apos;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;)&lt;/p&gt; &lt;p&gt;&lt;strong&gt;4. Save the object back to the database&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfset&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;strong&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;entitySave&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;artist&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;5. Add a map to a page&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfmap&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;centeraddress&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;275 Grove Street Newton, MA 02466&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;zoomlevel&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;8&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;hybrid&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&lt;img width=&quot;398&quot; height=&quot;399&quot; src=&quot;/userfiles/040107/117/map.png&quot; alt=&quot;Map&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;6. Connect to an imap server&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfimap&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;open&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;server&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;imap.googlemail.com&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;username&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;secure&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;port&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;993&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;password&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;connection&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;gmail&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;7. Add a message box&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfmessagebox&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;prompt&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;mes&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;message&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;Enter Message&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;labelok&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;Send&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;multiline&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;400&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&lt;img width=&quot;395&quot; height=&quot;166&quot; src=&quot;/userfiles/040107/117/promptcf9.png&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;8. Add a media player to a Flash video file&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfmediaplayer&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;/phone.flv&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&lt;img width=&quot;478&quot; height=&quot;359&quot; src=&quot;/userfiles/040107/117/mediaplayer.png&quot; alt=&quot;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;9. Put a query into a spreadsheet&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cfspreadsheet&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;write&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;filename&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;test.xls&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;getArtists&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;10. Create a multiple file upload UI&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cffileupload&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;multiUploadProcess.cfm&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Ah, what the heck, here&apos;s a bonus one:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;11. Process those files and save to the file system&lt;/strong&gt;&lt;br /&gt; &lt;span style=&quot;font-family: Monaco; color: rgb(154, 41, 10);&quot;&gt;&amp;lt;cffile&lt;/span&gt;&lt;span style=&quot;font-family: Monaco;&quot;&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;action&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;uploadall&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;destination&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: rgb(45, 45, 247);&quot;&gt;&amp;quot;#getTempDirectory()#&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(154, 41, 10);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Pretty cool stuff.  All of these new features have a lot of other attributes and possibilities for customization.&lt;/p&gt; &lt;p&gt;There are even a few (creating a progress bar, converting a PowerPoint presentation) that I left off.&lt;/p&gt;</description><pubDate>Thu, 23 Jul 2009 05:50:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/07/23/Ten-ColdFusion-9-OneLiners</guid><category>ColdFusion 9</category></item><item><title>The First Post</title><link>http://samfarmer.instantspot.com/blog/2007/04/01/The-First-Post</link><description>&lt;p&gt;  The first post.  I&amp;#39;ve decided to start a blog primarily because I like writing.  And having been a programmer for the last 10 years I haven&amp;#39;t written much during that time.  I also realize I like writing about technical issues and have a fair amount on my mind at the moment so it seems like a good time to start a blog.  Note, I did not say I was a grammatically correct writer.  So, expect the odd typo and grammatically incorrect sentence from time to time.  This is a blog and I&amp;#39;m not going to use the grammar corrector in Word before posting.    &lt;/p&gt;  &lt;p&gt;  I am also intrigued by social networking so InstantSpot seemed a good spot (pun intended) to start my blog.  &lt;/p&gt;  &lt;p&gt;  I aim to cover a bunch of topics, some tutorials and explanations of basic ColdFusion functionality, thoughts on the future of the web and ColdFusion, conferences, and anything else that comes up.  I will mostly be focusing on ColdFusion (and will probably start using cf as an abbreviation real soon) though I do hope to post on other non-cf topics like JavaScript, MySQL and databases in general and who knows what else in the future.  &lt;/p&gt;  &lt;p&gt;  I am not going to aim to publish on a regular basis and have pledged to keep this blog a purely non-work time activity.  I&amp;#39;m busy enough there anyway.  Good busy.  I also don&amp;#39;t believe blogs die.  So if I have nothing good or interesting to say I will say nothing.  I also don&amp;#39;t think this will turn into a news blog with short entries and links to the latest news.  There are enough of those, and, I rely on them for my tech-news as much as anywhere else.  In short, if you like what you are reading I suggest using the RSS feeds or subscribing over email.  &lt;/p&gt;  &lt;p&gt;  More to come...  &lt;/p&gt;  </description><pubDate>Sun, 01 Apr 2007 18:59:53 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2007/04/01/The-First-Post</guid><category>Me</category></item></channel></rss>