<rss version="2.0"><channel><title>RSS feed for InstantSpot site Sam Farmer&apos;s 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; 2008 by Sam Farmer&apos;s Blog</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Fri, 16 May 2008 19:58:02 GMT</pubDate><item><title>In 30: Yahoo Pipes in ColdFusion</title><link>http://samfarmer.instantspot.com/blog/2007/04/04/In-30-Yahoo-Pipes-in-ColdFusion</link><description>&lt;p&gt;
I like to spend some time writing proof of concept (POC) code.  If such an experiment works I will often use it in an application and write it properly.  Like many I have been impressed with the Yahoo Pipes.  At a basic level Yahoo Pipes puts together two or more RSS feeds. Here I&amp;#39;ll show how to do the backend in CF.
&lt;/p&gt;
&lt;p&gt;
Ok first I made a pipe for myself of &lt;a href=&quot;http://forta.com/blog/&quot; target=&quot;_blank&quot;&gt;Ben Forta&lt;/a&gt;  and &lt;a href=&quot;http://ray.camdenfamily.com/&quot; target=&quot;_blank&quot;&gt;Ray Camden&amp;#39;s&lt;/a&gt; blog feeds which you can see &lt;a href=&quot;http://pipes.yahoo.com/pipes/pipe.info?_id=IB_hpJjd2xGRKYf3nkartA&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
So, CF 7 does not handle RSS feeds natively but fortunately Ray Camden (does the man ever sleep? :)) has written a &lt;a href=&quot;http://cfrss.riaforge.org/index.cfm?event=action.download&quot; target=&quot;_blank&quot;&gt;RSS.cfc&lt;/a&gt; that will read and write feeds.  So with that downloaded I created an array of feeds.
&lt;/p&gt;
&lt;p&gt;
 [codeshare apr72e6a] &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
Next lets create an object of RSS and then loop over that array and put the results of the feed in an array.
&lt;/p&gt;
&lt;div class=&quot;note&quot;&gt;
&lt;/div&gt;
&lt;p&gt;
 [codeshare apr8ec33] &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
So now we have an array with a query of feeds but we really want to make one query.  Time to step up Query-of-Queries!  And the UNION operator.&amp;nbsp; Though one limitation is that Q-o-Q&amp;#39;s need to refer to a query that does not have a dot in it.  D&amp;#39;oh.  However, the code below will get around that by setting a variable to the array with the query.  Not fully sustainable but this is a POC.
&lt;/p&gt;
&lt;p&gt;
 [codeshare apr816a3]
&lt;/p&gt;
&lt;p&gt;
Not the qry1.[date] notation to get around reserved words in Query-of-Queries. 
&lt;/p&gt;
&lt;p&gt;
Now a little outputting:
&lt;/p&gt;
&lt;p&gt;
 [codeshare aprac2b4]
&lt;/p&gt;
&lt;p&gt;
And the concept has been proved!
&lt;/p&gt;
&lt;p&gt;
Full code:
&lt;/p&gt;
&lt;p&gt;
 [codeshare apr4fbac]
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;
&lt;/p&gt;
</description><pubDate>Wed, 04 Apr 2007 21:51:23 GMT</pubDate><guid>http://samfarmer.instantspot.com/blog/2007/04/04/In-30-Yahoo-Pipes-in-ColdFusion</guid><category>In 30</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>