<?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 14:56:03 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>Moving Jobs</title><link>http://samfarmer.instantspot.com/blog/2009/10/23/Moving-Jobs</link><description>&lt;p&gt;Today is my last day at Interfolio and ends an overall very happy chapter in my career.&amp;nbsp; I have become a better programmer, learnt an awlful lot and had many great experiences.&amp;nbsp; I leave behind a very talented technical team (&lt;a href=&quot;http://domoconnor.com/&quot;&gt;Dominic O&apos;Connor&lt;/a&gt;, &lt;a href=&quot;http://jdowdle.com/wp/&quot;&gt;Jon Dowdle&lt;/a&gt; and &lt;a href=&quot;http://www.interfolio.com/portfolio/rachellehman/&quot;&gt;Rachel Lehman&lt;/a&gt;) who I&apos;m confident will continue to turn out cool new product enhancements.&lt;/p&gt; &lt;p&gt;I am moving on to become a consultant at &lt;a href=&quot;http://webfirst.com/&quot;&gt;WebFirst&lt;/a&gt; working at the &lt;a href=&quot;http://www.flra.gov/&quot;&gt;Federal Labor Relations Authority&lt;/a&gt;.&amp;nbsp; Its an exciting opportunity working with ColdFusion 9 and Flex.&amp;nbsp; The former I can&apos;t wait to really sink my teeth into while the later I&apos;ve been wanting to learn for years so am looking forward to getting the chance.&amp;nbsp;&lt;/p&gt;</description><pubDate>Fri, 23 Oct 2009 12:35:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/10/23/Moving-Jobs</guid><category>Me,Interfolio</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>Speaking at CF in NC...Come Along and Enter to Win a Flip CF Dude Camera</title><link>http://samfarmer.instantspot.com/blog/2009/09/09/Speaking-at-CF-in-NCCome-Along-and-Enter-to-Win-a-Flip-CF-Dude-Camera</link><description>&lt;p&gt;I am delighted to have been chosen to present at the &lt;a href=&quot;http://cfinnc.com/&quot;&gt;CF in NC conference&lt;/a&gt; in October on the topic of &amp;quot;One Liners in ColdFusion&amp;quot;.&amp;nbsp; Its a topic I enjoy, one that I&apos;ve blogged about and one that &lt;a href=&quot;http://www.firemoss.com/&quot;&gt;Joe Rinehart&lt;/a&gt; mentioned in his excellent keynote on day two of CFUnited.&lt;/p&gt; &lt;p&gt;The session line up at &lt;a href=&quot;http://cfinnc.com/page.cfm/presenters&quot;&gt;CF in NC conference&lt;/a&gt; is very exciting and if you can make it I suggest coming along.&amp;nbsp; There is even a chance to win a &lt;a href=&quot;http://www.winacfdudecamera.com/&quot;&gt;CF Dude Flip Video Camera&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Thu, 10 Sep 2009 01:36:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/09/09/Speaking-at-CF-in-NCCome-Along-and-Enter-to-Win-a-Flip-CF-Dude-Camera</guid><category>ColdFusion,CFinNC</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>Adding CVS to ColdFusion Builder Standalone</title><link>http://samfarmer.instantspot.com/blog/2009/07/16/Adding-CVS-to-ColdFusion-Builder-Standalone</link><description>&lt;p&gt;Here&apos;s how to add the Eclipse CVS client to the &lt;a href=&quot;http://labs.adobe.com/technologies/coldfusionbuilder/&quot;&gt;ColdFusion Builder&lt;/a&gt; standalone version:&lt;/p&gt; &lt;p&gt;1. From the menu click on &apos;Help&apos; then &apos;Software Updates&apos; and select &apos;Find &amp;amp; Install...&apos;&lt;/p&gt; &lt;p&gt;2. Select &apos;Search for New Features to Install&apos; and click &apos;Next&apos;&lt;/p&gt; &lt;p&gt;3. Click on &apos;New Remote Site&apos;&lt;/p&gt; &lt;p&gt;4. Enter a Name and the following URL &apos;http://download.eclipse.org/eclipse/updates/3.4&apos; and click &apos;Next&apos;&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;500&quot; height=&quot;519&quot; alt=&quot;&quot; src=&quot;/userfiles/040107/117/Picture 5.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;5. If prompted select a mirror and wait till the next screen shows up:&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;500&quot; height=&quot;331&quot; alt=&quot;&quot; src=&quot;/userfiles/040107/117/Picture 7.png&quot; /&gt;&lt;/p&gt; &lt;p&gt;Make sure to select the CVS options as selected above.&lt;/p&gt; &lt;p&gt;6. Click &apos;Next&apos;, agree to any licenses and &apos;Feature Verification&apos;&lt;/p&gt; &lt;p&gt;7. When complete you will be prompted to Restart the CF Builder.&lt;/p&gt; &lt;p&gt;When using beta software I generally like to have it run in its own install. This has worked great for ColdFusion Builder especially once I got the CVS client installed.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><pubDate>Thu, 16 Jul 2009 12:28:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/07/16/Adding-CVS-to-ColdFusion-Builder-Standalone</guid><category>ColdFusion Builder</category></item><item><title>Submitting a cfform inside a cfdiv to a new page</title><link>http://samfarmer.instantspot.com/blog/2009/06/14/Submitting-a-cfform-inside-a-cfdiv-to-a-new-page</link><description>&lt;p&gt;A form created with cfform inside a cfdiv will submit via AJAX and have the response placed in the div created by the cfdiv.&lt;/p&gt; &lt;p&gt;Its possible, with a little JavaScript and HTML, to have the form submit to a new page and to use the cfform validation if needed.  First lets look at the main page:&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfajaximport tags=&amp;quot;cfform&amp;quot;&amp;gt; &amp;lt;h2&amp;gt;My Page&amp;lt;/h2&amp;gt; &amp;lt;cfdiv bind=&amp;quot;url:theForm.cfm&amp;quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;Not doing much here other than setting up a very basic page with a cfdiv that will get the source from theForm.cfm.&amp;nbsp; Lets now look at that page:&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfform method=&amp;quot;post&amp;quot; action=&amp;quot;theDestination.cfm&amp;quot; id=&amp;quot;divForm&amp;quot; name=&amp;quot;divForm&amp;quot;&amp;gt;  Team: &amp;lt;cfinput type=&amp;quot;date&amp;quot; name=&amp;quot;team&amp;quot; id=&amp;quot;team&amp;quot; required=&amp;quot;true&amp;quot; message=&amp;quot;Please enter your team&amp;quot;&amp;gt;  &amp;lt;br&amp;gt;  &amp;lt;cfinput type=&amp;quot;submit&amp;quot; name=&amp;quot;sub&amp;quot; id=&amp;quot;sub&amp;quot; value=&amp;quot;Submit Via AJAX&amp;quot;&amp;gt;&amp;lt;br&amp;gt;  &amp;lt;input type=&amp;quot;button&amp;quot;    onclick=&amp;quot;if (_CF_checkdivForm(this.form)) {document.divForm.submit();}&amp;quot;    value=&amp;quot;Submit the to a New Page&amp;quot;&amp;gt; &amp;lt;/cfform&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;A standard cfform example that uses some validation (I researched this topic because the form I was using had extensive use of the datefield type of cfinput).&amp;nbsp; Clicking on the Submit button will submit the form via AJAX and display the results (I&apos;ve listed theDestination.cfm below).&lt;/p&gt; &lt;p&gt;Clicking on &apos;Submit to a New Page&apos; button (and its a standard html button) will, if the form passes validation, submit to a new page.&amp;nbsp; If it fails validation and the user had not entered a team that message via an alert will be displayed.&amp;nbsp; Lets take a look at the JavaScript inside the onClick:&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;font face=&quot;Courier New&quot;&gt;if (_CF_checkdivForm(this.form)) {document.divForm.submit();}&lt;/font&gt;&lt;/p&gt; &lt;p&gt;The function inside the if statement is written by ColdFusion and is there for all cfform produced forms.&amp;nbsp; The name of this function is simply _CF_check and the value placed in the id attribute for cfform.&amp;nbsp; That function will return true or false and if true we tell the browser to submit the form.&lt;/p&gt; &lt;p&gt;For reference here is the coe for theDestination.cfm:&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfdump var=&amp;quot;#form#&amp;quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;</description><pubDate>Sun, 14 Jun 2009 20:02:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/06/14/Submitting-a-cfform-inside-a-cfdiv-to-a-new-page</guid><category>ColdFusion 8</category></item><item><title>Should Ben Forta Twitter?  What the Stats Say Plus my Quick Review of Twitter</title><link>http://samfarmer.instantspot.com/blog/2009/02/20/Should-Ben-Forta-Twitter--What-the-Stats-Say-Plus-my-Quick-Review-of-Twitter</link><description>&lt;p&gt;[UPDATE] Ben Forta now has a &lt;a href=&quot;http://twitter.com/benforta&quot;&gt;Twitter account&lt;/a&gt; [/UPDATE]&lt;/p&gt; &lt;p&gt;The other day Ben Forta posted an &lt;a href=&quot;http://www.forta.com/blog/index.cfm/2009/2/18/Serges-Adobe-Twitter-Roundup&quot;&gt;entry about Twitter&lt;/a&gt; and mentioned that he was not a user as he &amp;quot;didn&apos;t get the whole Twitter thing&amp;quot;.&amp;nbsp; Fair enough.&lt;/p&gt; &lt;p&gt;I found this interesting because Twitter is essentially &amp;quot;micro-blogging&amp;quot; and Ben&apos;s blog is a mixture of short &amp;quot;micro-blogging&amp;quot; posts generally annoucing news and longer posts that often go in to great detail.&amp;nbsp; So I decided to find out how many of Ben&apos;s entries would qualify for the 140 character twitter maximum.&amp;nbsp; This proved to be rather easy:&lt;/p&gt; &lt;p&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cffeed action=&amp;quot;read&amp;quot; query=&amp;quot;getBen&amp;quot; source=&amp;quot;http://feeds2.feedburner.com/BenForta&amp;quot;&amp;gt;  &amp;lt;cfset twitterOk = 0&amp;gt;   &amp;lt;cfloop query=&amp;quot;getBen&amp;quot;&amp;gt;  &amp;lt;cfset body = ReReplaceNoCase( getBen.content, &amp;quot;&amp;lt;(.|\n)*?&amp;gt;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;all&amp;quot; )&amp;gt;  &amp;lt;cfif len(body) lte 140&amp;gt;   &amp;lt;cfset twitterOk++&amp;gt;  &amp;lt;/cfif&amp;gt; &amp;lt;/cfloop&amp;gt;  &amp;lt;cfoutput&amp;gt;&amp;lt;h2&amp;gt;#twitterOk# of #getBen.recordCount#&amp;lt;/h2&amp;gt;&amp;lt;/cfoutput&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;3 of Ben&apos;s last 15 entries, stripped of html, would have been ok for Twitter.&amp;nbsp; Maybe its time for Twitter, Ben?&lt;/p&gt; &lt;p&gt;&lt;strong&gt;My Thoughts on Twitter&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;I joined Twitter last summer and have found it to be at times fun, a useful way to find interesteing articles and a good way to do some online networking.&amp;nbsp; I generally follow other technology people and overall have a positive experience of it.&amp;nbsp; &lt;a href=&quot;http://twitter.com/sam_farmer&quot;&gt;Check out my Twitter profile&lt;/a&gt;.&lt;/p&gt;</description><pubDate>Fri, 20 Feb 2009 16:50:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/02/20/Should-Ben-Forta-Twitter--What-the-Stats-Say-Plus-my-Quick-Review-of-Twitter</guid><category>ColdFusion 8</category></item><item><title>Kill That Thread!</title><link>http://samfarmer.instantspot.com/blog/2009/02/03/Kill-That-Thread</link><description>&lt;p&gt;Every six months or so we have a thread that will not quit and consumes a lot of resources causing general slowness all round. &amp;nbsp;&amp;nbsp;&lt;/p&gt; &lt;p&gt;Its possible to kill the thread with the following code.&amp;nbsp; Put in your ColdFusion Administrator and the thread name which can be found from Server Monitor.&lt;/p&gt; &lt;p&gt;&lt;br /&gt; &lt;div class=&quot;code&quot; &gt;&lt;pre&gt;adminObj = createObject(&amp;quot;component&amp;quot;,&amp;quot;cfide.adminapi.administrator&amp;quot;); adminObj.login([password]);  sMonObj = createObject(&amp;quot;component&amp;quot;,&amp;quot;cfide.adminapi.servermonitoring&amp;quot;); sMonObj.abortRequest(&amp;quot;jrpp-100&amp;quot;);&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;</description><pubDate>Wed, 04 Feb 2009 03:50:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2009/02/03/Kill-That-Thread</guid><category>ColdFusion 8</category></item><item><title>CFUnited 09 Venue Mini Review and Vote for My Sessions</title><link>http://samfarmer.instantspot.com/blog/2008/12/10/CFUnited-09-Venue-Mini-Review-and-Vote-for-My-Sessions</link><description>&lt;p&gt;Earlier this year I wrote a &lt;a href=&quot;http://samfarmer.instantspot.com/blog/2008/01/31/New-CFUnited-Location-is-Great-News-Plus-Review-of-Area&quot;&gt;detailed&lt;/a&gt; venue review for CFUnited 2008 helped by the fact I live two blocks from the Washington convention center.&amp;nbsp; CFUnited 09 will take place at the Lansdowne Resort which is a little over 30 miles from my house, and I&apos;ve been there only once so I can&apos;t give as detailed a review.&lt;br /&gt; &lt;br /&gt; I can tell you a few things about it though; its a very nice resort, its isolated so the networking will be great, and the room rate prices are great value (and use a CF powered registration system).&amp;nbsp; Also, if you fly into Dulles its very easy to get to.&amp;nbsp; If you liked the North Bethesda location (home of CFUnited 05-07) then you should like the Landsdowne Resort since its a bigger and slightly fancier version.&lt;/p&gt; &lt;p&gt;I submitted two topics for CFUnited 09:&lt;br /&gt; &lt;br /&gt; &lt;strong&gt;From Eight to Centaur: New Programming Tips and Techniques&amp;nbsp;&lt;/strong&gt; &lt;br /&gt; Centaur promises new ways to code ColdFusion applications that represent the biggest changes to the core language since CFMX 6.1.&amp;nbsp; Ideas floated at the CFUNITED 08 Keynote included creating UDFs and CFCs with cfscript, a New keyword, cffinally and cfcontinue, implicit getters and setters. This session will walk through specific examples of new ways of coding and discuss the pros and cons.&lt;br /&gt; &lt;strong&gt;&lt;br /&gt; If a scheduled task fails in the woods, does it make a noise? &lt;/strong&gt;&lt;br /&gt; Scheduled Tasks and Event Gateways can provide a vital cog of applications but what happens when they fail?&amp;nbsp; This session will look at the monitoring system in place at Interfolio to keep our systems running smoothly.&amp;nbsp; Previously we used a collection of log file checking and sending emails.&amp;nbsp; The new system wraps tasks around a monitoring register, has a front end dashboard that shows the current status of each task and will has mechanisms to control the frequency of how many text messages or emails to send when problems occur.&lt;br /&gt; &lt;br /&gt; Vote for them to be included:&lt;br /&gt; &lt;a href=&quot;http://cfunited.com/go/survey/166&quot;&gt;http://cfunited.com/go/survey/166&lt;/a&gt;&lt;/p&gt;</description><pubDate>Thu, 11 Dec 2008 03:48:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/12/10/CFUnited-09-Venue-Mini-Review-and-Vote-for-My-Sessions</guid><category>CFUnited</category></item><item><title>Come Work With Me!</title><link>http://samfarmer.instantspot.com/blog/2008/11/20/Come-Work-With-Me</link><description>&lt;p&gt;If you are looking for a new job or know someone who is then here is your chance to come work with me at Interfolio.&amp;nbsp; Here is the full job description:&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Junior to Mid Level Web Developer&lt;/strong&gt; &lt;br /&gt; &lt;a href=&quot;http://www.interfolio.com&quot;&gt;Interfolio&lt;/a&gt; is a fast growing company looking for a passionate web developer with strong quality assurance skills.  Interfolio helps people collect, deliver &amp;amp; showcase their life&apos;s work. Our services are built on powerful, elegant software that enables individuals to pursue their academic and professional goals.   &lt;br /&gt; &lt;br /&gt; We are looking for a developer who is smart and gets things done.  We have a great development team who have won awards and spoken at conferences.  This is a position with a lot of growth potential and the environment to help you succeed. Our applications are object-oriented and use industry standard frameworks. The software we build plays a vital role in the lives of tens of thousands of users, impacting crucial life decisions.  You would be working on an application that uses code generation and talks to other systems via API&apos;s. &lt;br /&gt; &lt;br /&gt; Interfolio will celebrate its tenth anniversary next year and is growing at a fast pace.  Our main office is in downtown DC and we have a very casual work environment -- most of us wear jeans (and shorts in the summer).  We are a mixed office in that we use both Macs and Windows machines based on individuals preference.  Our applications are built with Adobe ColdFusion 8 with a MySQL database. &lt;br /&gt; &lt;br /&gt; &lt;strong&gt;Requirements:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;2 years experience with one of ColdFusion (preferred), php, perl, ruby, .NET or Java&lt;/li&gt;     &lt;li&gt;Understanding of Object-Oriented (OO) development&lt;/li&gt;     &lt;li&gt;Good knowledge of SQL with MySQL (preferred), SQLServer or ORACLE&lt;/li&gt;     &lt;li&gt;Great command of verbal and written English&lt;/li&gt;     &lt;li&gt;Permanent legal right to work in the United States&lt;/li&gt;     &lt;li&gt;May require some after business hours work (for deployments, etc)&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Benefits:&lt;/strong&gt;&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;Work in downtown Washington, DC.  Our office scores a 100 on walkscore.com&lt;/li&gt;     &lt;li&gt;Competitive salary&lt;/li&gt;     &lt;li&gt;Generous health insurance plan&lt;/li&gt;     &lt;li&gt;401(k) retirement plan&lt;/li&gt;     &lt;li&gt;Work on your choice of OS: Mac or Windows&lt;/li&gt;     &lt;li&gt;Training and Conference budget&lt;/li&gt;     &lt;li&gt;Paid time off&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;To apply please send a resume and cover letter to &lt;a href=&quot;mailto:sam%20AT%20interfolio.com?subject=Developer&quot;&gt;sam@interfolio.com&lt;/a&gt; with a subject line of &amp;quot;Developer&amp;quot;&lt;/p&gt;</description><pubDate>Thu, 20 Nov 2008 19:22:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/11/20/Come-Work-With-Me</guid><category>Interfolio</category></item><item><title>Dualing Monitors</title><link>http://samfarmer.instantspot.com/blog/2008/08/20/Dualing-Monitors</link><description>&lt;p&gt;I have been using dual monitors for coming on eighteen months and love it.&amp;nbsp; &lt;br /&gt; &lt;br /&gt; One problem with dual monitors when using OS X is the quality of the second monitor has to be very high for real Mac feel.&amp;nbsp; My primary monitor is the built in iMac monitor, and my original second monitor, which displays Windows just fine, looked like viewing a the Mac OS through a dirty window despite all my efforts to adjust settings and calibrations.&amp;nbsp; With the Apple Cinema Displays ridiculously over priced this was one of those small annoyances.&lt;br /&gt; &lt;br /&gt; Recently I upgraded my second monitor to a &lt;a href=&quot;http://accessories.us.dell.com/sna/products/Displays/productdetail.aspx?c=us&amp;amp;l=en&amp;amp;s=bsd&amp;amp;cs=04&amp;amp;sku=320-6964&quot;&gt;Dell SP2009W&lt;/a&gt; (yeah, I&apos;ve no idea how they picked such a cool name either).&amp;nbsp; This monitor is awesome.&amp;nbsp; Within about 10 minutes of messing with the settings, including one that put it in Mac mode, and calibrations I have two monitors that show off the beauty of the Mac OS to an equal degree.&amp;nbsp; I can now truly swap back and forth applications that I would n&lt;br /&gt; &lt;br /&gt; I also got a &lt;a href=&quot;http://solutions.3m.com/wps/portal/3M/en_US/ergonomics/home/products/DisplayMountingSolutions/MA100MB/&quot;&gt;3M adjustable monitor&lt;/a&gt; arm that, apart from making the monitor look like it is suspended,&amp;nbsp; can flip the monitor between portrait and landscape modes.&amp;nbsp; And anything in between if you wish to code on angles.&amp;nbsp; I was excited to try coding in portrait mode as it seemed like it would show more code.&amp;nbsp; This is great for browsing a folder structure and working on one file but when a 20&amp;quot; widescreen monitor is turned to portrait it becomes very narrow.&amp;nbsp; The IDE features become very far apart from each other so for now I have gone back&amp;nbsp; to landscape mode.&amp;nbsp; Below are two photos with this setup.&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;500&quot; height=&quot;375&quot; src=&quot;http://www.instantspot.com/userfiles/040107/117/portrait.jpg&quot; alt=&quot;Portrait&quot; /&gt;&lt;/p&gt; &lt;p&gt;Portrait view...look at all that code!&lt;/p&gt; &lt;p&gt;&lt;img width=&quot;500&quot; height=&quot;375&quot; src=&quot;http://www.instantspot.com/userfiles/040107/117/landscape.jpg&quot; alt=&quot;Landscape&quot; /&gt;&lt;/p&gt; &lt;p&gt;More &amp;quot;traditional&amp;quot; landscape.&lt;/p&gt;</description><pubDate>Thu, 21 Aug 2008 00:35:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/08/20/Dualing-Monitors</guid><category>Editor,Apple</category></item><item><title>CFUnited Evaluations</title><link>http://samfarmer.instantspot.com/blog/2008/08/01/CFUnited-Evaluations</link><description>&lt;p&gt;CFUnited was the first conference that I spoke at so I was eagerly awaiting the evaluations of my &amp;quot;&lt;a href=&quot;http://samfarmer.instantspot.com/blog/2008/06/20/CFUnited-Presentations-Posted-Intro-to-CFML-plus-Creating-Manipulating-and-Printing-PDFs&quot;&gt;Creating, Manipulating and Printing&lt;/a&gt;&amp;quot; session to see what other people thought.&amp;nbsp; &lt;br /&gt; &lt;br /&gt; Fifty-six people returned evaluations, about half the room I believe, and fifty-five of them gave me a score.&amp;nbsp; CFUnited evaluations have four categories (Quality of materials presented, Knowledge of the topic, Amount of materials presented, Presenter&apos;s instructional ability) each ranked out of 5 for a total possible score of 20.&amp;nbsp; I got a 17.9 average which I am quite pleased with.&lt;br /&gt; &lt;br /&gt; &lt;strong&gt; Some of the positive comments:&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt; &lt;em&gt; &amp;quot;smoothest flow of all the presentations&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;sequence of doc creation &amp;gt; review code &amp;gt; show result made the process very clean&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;very good succinct examples/code samples&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;simple real world examples&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;clear, organized, covered what was described&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;quick enough to allow for lots of questions&amp;quot;&lt;br /&gt; &lt;br /&gt; &amp;quot;question time&amp;quot;&amp;nbsp;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;I finished about 15 minutes early and used the extra time to show off one more example that was not in the slides and then had an extended question and answer time.&amp;nbsp; Lots of good questions and some that I could not answer but that others in the room could.&lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;everything&amp;quot;&amp;nbsp;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;this person then gave me 17/20!&lt;br /&gt; &lt;strong&gt;&lt;br /&gt; The negative comments/stuff to work on:&lt;/strong&gt;&lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;presenter was a little monotone&amp;quot;&lt;/em&gt;&lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;needs humor&amp;quot;&amp;nbsp;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;I would agree with both these comments.&amp;nbsp;&amp;nbsp; I had not been sleeping well that week so was a little tired which resulted in a more monotone delivery.&amp;nbsp;&amp;nbsp; I would like to bring more humor into my presentations but did not want to try and do too much the first time out.&amp;nbsp; Definitely something to work on for next time. Have you heard the one about the pdf file, text file and image?&amp;nbsp; No, well come to my next talk...&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;more complex examples showing the advanced features&amp;quot;&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;br /&gt; &lt;em&gt; &amp;quot;would like real world examples&amp;quot;&lt;/em&gt;&lt;br /&gt; &lt;br /&gt; This session was in the bootcamp level so I did not want to go to advanced but perhaps this is something to add towards the end of the presentation.&amp;nbsp; As for real world examples I created a fake application (the Dundler-Mifflin proposal maker) to try and make the examples as life like as possible.&amp;nbsp; Others commented that they felt the examples where real world so this might just vary from person to person.&lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;the room temperature&amp;quot;&lt;/em&gt;&lt;br /&gt; Most conferences have ridiculously cold rooms.&amp;nbsp; The rooms at CFUnited just seemed cold!&lt;br /&gt; &lt;br /&gt; &lt;em&gt; &amp;quot;a bit too fast&amp;quot;&lt;/em&gt;&lt;br /&gt; Definitely something to take in mind for next time and especially when giving bootcamp sessions though others seemed to like it.&lt;br /&gt; &lt;em&gt;&lt;br /&gt; &amp;quot;please repeat questions for all to hear&amp;quot;&lt;/em&gt;&lt;br /&gt; Yes.&amp;nbsp; Will do, I did for some questions but know I dropped the ball on others.&lt;br /&gt; &lt;br /&gt; Overall I am quite happy with how it turned out and will be thinking of topics to apply to speak on at next years conferences.&amp;nbsp; Is there anything you would like to hear?&lt;/p&gt;</description><pubDate>Fri, 01 Aug 2008 05:30:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/08/01/CFUnited-Evaluations</guid><category>CFUnited</category></item><item><title>Its a Wrap, CFUnited 08</title><link>http://samfarmer.instantspot.com/blog/2008/06/23/Its-a-Wrap-CFUnited-08</link><description>&lt;p&gt;CFUnited this year was a fantastic conference, here are some of my thoughts in random order:&lt;/p&gt; &lt;ul&gt;     &lt;li&gt;Adobe Keynote.&amp;nbsp; Considering this was a non release year the keynote was very exciting from the educational license to the language enhancements to the AIR integration.&amp;nbsp; (In comparison the 06 keynote about Connect integration left many flat.) Others have provided way better summaries, the main thing I took away was the commitment of Adobe to making CF better.&lt;/li&gt;     &lt;li&gt;It was great to meet and talk to so many other developers.&amp;nbsp; Both those in the blogsphere, where putting a face to a blog was great, and those without blogs.&amp;nbsp; I had many interesting conversations about programming and other topics as well!&amp;nbsp; It was also a real treat to talk to members of the Adobe CF team (even if my attempts to get them to spill the beans on other new features consistantly failed -- Rupesh you are&amp;nbsp; too sharp for me ;))&lt;/li&gt;     &lt;li&gt;Great sessions.&amp;nbsp; I took something out of every session I went to and many where excellent.&lt;/li&gt;     &lt;li&gt;The location.&amp;nbsp; The wireless was great, there was enough room in each session that there was no need to reserve spaces ahead of time and enough room to get around.&amp;nbsp; I like the airiness of the convention center.&amp;nbsp; Lunch was good on Wednesday, poor on Thursday and excellent on Friday.&lt;/li&gt;     &lt;li&gt;Speaking for the first time.&amp;nbsp; I found this a little more nerve racking in the build up than I was expecting (take the advice and speak to a user group or two first) , still once I got going I really enjoyed it and hopefully those attending my sessions got something out of it.&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Many thanks to Liz, Elliott and Nafisa and everyone else at Teratech for all their hard work on CFUnited and I&apos;ll see you next year!&lt;/p&gt;</description><pubDate>Mon, 23 Jun 2008 05:45:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/06/23/Its-a-Wrap-CFUnited-08</guid><category>CFUnited</category></item><item><title>CFUnited Presentations Posted: Intro to CFML plus Creating, Manipulating and Printing PDFs</title><link>http://samfarmer.instantspot.com/blog/2008/06/20/CFUnited-Presentations-Posted-Intro-to-CFML-plus-Creating-Manipulating-and-Printing-PDFs</link><description>&lt;p&gt;Here are the presentations and code from my two CFUnited talks.&amp;nbsp; I enjoyed giving the sessions and if you have any questions please let me know.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Creating, Manipulating and Printing PDFs&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://mvsna.org/samfarmer/download/CFB108%20Create%20Manipulte%20Print%20PDFs.pdf&quot;&gt;Presentation (PDF)&lt;/a&gt; and &lt;a href=&quot;http://mvsna.org/samfarmer/download/CFUnitedPDFCode.zip&quot;&gt;Code&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Intro to CFML as a language&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://mvsna.org/samfarmer/download/GCF101%20Intro%20to%20CFML%20as%20a%20language.pdf&quot;&gt;Presentation (PDF)&lt;/a&gt; and &lt;a href=&quot;http://mvsna.org/samfarmer/download/CFUnitedIntroCode.zip&quot;&gt;Code&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;</description><pubDate>Fri, 20 Jun 2008 13:39:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/06/20/CFUnited-Presentations-Posted-Intro-to-CFML-plus-Creating-Manipulating-and-Printing-PDFs</guid><category>ColdFusion 8,CFUnited</category></item><item><title>cfAjaxProxy and Mach-II</title><link>http://samfarmer.instantspot.com/blog/2008/06/08/cfAjaxProxy-and-MachII</link><description>&lt;p&gt;Here&apos;s an easy way to use cfAjaxProxy with a Mach-II application.&lt;/p&gt; &lt;p&gt;First I created a new cfc that extends Application.cfc to gain access to all of the Mach-II features.&lt;/p&gt; &lt;p&gt;Then add a function with access=&amp;quot;remote&amp;quot; and list all of the arguments (cfajaxproxy requires all arguments be defined).  Next set all the arguments to the form or url scope so that Mach-II can read them.  Finally call handleRequest().&lt;/p&gt; &lt;p&gt;&lt;div class=&quot;code&quot; &gt;&lt;pre&gt;&amp;lt;cfcomponent output=&amp;quot;false&amp;quot; extends=&amp;quot;Application&amp;quot;&amp;gt; &amp;lt;cffunction name=&amp;quot;getData&amp;quot; access=&amp;quot;remote&amp;quot; output=&amp;quot;true&amp;quot; hint=&amp;quot;&amp;quot;&amp;gt;  &amp;lt;cfargument name=&amp;quot;artistID&amp;quot; default=&amp;quot;&amp;quot;&amp;gt;  &amp;lt;cfargument name=&amp;quot;artistName&amp;quot; default=&amp;quot;&amp;quot;&amp;gt;  &amp;lt;cfset url.event = &amp;quot;user.edit&amp;quot;&amp;gt;  &amp;lt;cfset url.artistID = arguments.artistID&amp;gt;  &amp;lt;cfset url.artistName = arguments.artistName&amp;gt;  &amp;lt;cfset handleRequest()&amp;gt; &amp;lt;/cffunction&amp;gt; &amp;lt;/cfcomponent&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt; &lt;p&gt;I&apos;m sure there are cleaner ways but this works and allows easy use of the great cfAjaxProxy tag in a Mach-II application.&lt;/p&gt;</description><pubDate>Sun, 08 Jun 2008 22:22:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/06/08/cfAjaxProxy-and-MachII</guid><category>ColdFusion 8,Mach-II</category></item><item><title>Saving my Eyes (Cool Mac Trick)</title><link>http://samfarmer.instantspot.com/blog/2008/05/14/Saving-my-Eyes-Cool-Mac-Trick</link><description>&lt;p&gt;I have pretty good vision and even as I approach my mid-30&apos;s do not need glasses or contact lenses.&amp;nbsp; All is not peachy though -- reading light text on dark backgrounds causes me pain about a paragraph or two into reading an article.&lt;/p&gt; &lt;p&gt;A solution, which a friend recently pointed out to me, is to &apos;Reverse black and white&apos; as Apple calls it by holding down crtl+option+command+8.&amp;nbsp; As you have probably worked out this switches the black and white and allows me to read entries without my eyes hurting.&lt;/p&gt; &lt;p&gt;I tried taking a screenshot but Apple takes a screenshot of the orginal settings not the reversed.&lt;/p&gt;</description><pubDate>Wed, 14 May 2008 12:47:00 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2008/05/14/Saving-my-Eyes-Cool-Mac-Trick</guid><category>Me,Apple</category></item></channel></rss>