<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jDowdle.com &#187; Code</title>
	<atom:link href="http://jdowdle.com/wp/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdowdle.com/wp</link>
	<description></description>
	<lastBuildDate>Tue, 20 Jul 2010 20:35:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Taggable Demo Video (now with more code)</title>
		<link>http://jdowdle.com/wp/2010/07/taggable-demo-video-now-with-more-code/</link>
		<comments>http://jdowdle.com/wp/2010/07/taggable-demo-video-now-with-more-code/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 20:35:35 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=616</guid>
		<description><![CDATA[Similar to the last post but this one is just showing a little bit of the code that was sending the data to the server. If it's hard to see the code in the video, I've pasted the relevant Javascript &#8230; <a href="http://jdowdle.com/wp/2010/07/taggable-demo-video-now-with-more-code/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Similar to the last post but this one is just showing a little bit of the code that was sending the data to the server.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/3_1hfIi3p6E&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube-nocookie.com/v/3_1hfIi3p6E&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>If it's hard to see the code in the video, I've pasted the relevant Javascript below.</p>
<p><script src="http://gist.github.com/483517.js"> </script></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2010/07/taggable-demo-video-now-with-more-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taggable Demo Video</title>
		<link>http://jdowdle.com/wp/2010/07/taggable-demo-video/</link>
		<comments>http://jdowdle.com/wp/2010/07/taggable-demo-video/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 16:55:36 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[taggable]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=580</guid>
		<description><![CDATA[In the comments of my last post on Taggable, John F asked to see a video of Taggable in action. I felt like the example I created for the original post wasn't very exciting, so I created one better. This &#8230; <a href="http://jdowdle.com/wp/2010/07/taggable-demo-video/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In the comments of my last post on Taggable, John F asked to see a video of Taggable in action.</p>
<p>I felt like the example I created for the original post wasn't very exciting, so I created one better.  This demo shows how it could look if you used Taggable to save tags on the server as the users interacts with items.</p>
<p>Enjoy!</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/EBuRe2fJTqA&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="640" height="505" src="http://www.youtube-nocookie.com/v/EBuRe2fJTqA&amp;hl=en_US&amp;fs=1?rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;hd=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2010/07/taggable-demo-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New jQuery Plugin: Taggable</title>
		<link>http://jdowdle.com/wp/2010/06/new-jquery-plugin-taggable/</link>
		<comments>http://jdowdle.com/wp/2010/06/new-jquery-plugin-taggable/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 15:30:12 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[taggable]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=514</guid>
		<description><![CDATA[Summary for the busy Allows elements to become "tags" and "taggable" Easily customizable actions on tag / untag Download here (plugin only) Download here (with examples) Fork it here Motivation I've really enjoyed using jQuery over the last few years. &#8230; <a href="http://jdowdle.com/wp/2010/06/new-jquery-plugin-taggable/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><!-- cbddc89381944ed0a6e2d09be93e66dd --></p>
<h3>Summary for the busy</h3>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2010/05/jquery_white_contur1.png"><img class="alignright size-full wp-image-526" style="border: 0 none;" title="jquery_white_contur" src="http://jdowdle.com/wp/wp-content/uploads/2010/05/jquery_white_contur1.png" alt="" width="398" height="192" /></a></p>
<ul>
<li>Allows elements to become "tags" and "taggable"</li>
<li>Easily customizable actions on tag / untag</li>
<li><a href="http://github.com/jonDowdle/jqTaggable/downloads" target="_blank">Download here (plugin only)</a></li>
<li><a href="http://github.com/jonDowdle/jqTaggable/zipball/v0.1" target="_blank">Download here (with examples)</a></li>
<li><a href="http://github.com/jonDowdle/jqTaggable" target="_blank">Fork it here</a></li>
</ul>
<h3>Motivation</h3>
<p>I've really enjoyed using jQuery over the last few years. It's been quite wonderful really. Outside of the core being easy to use and very solid, the plugins available really make jQuery sizzle.</p>
<p>So I thought I'd take a crack at writing my very own plugin. My main goal was to imitate the tagging interface you've seen in some desktop UIs, with Evernote being my main inspiration.</p>
<h3>Lessons Learned</h3>
<p>A few things I learned while writing the plugin:</p>
<ol>
<li>Writing a jQuery plugin is not that hard</li>
<li>Developing jQuery plugins is  really really fun (no really, it is)</li>
</ol>
<h3>Details</h3>
<p>The plugin requires jQuery and jQuery UI. Once you have the jQuery requirements and the plugin file, using the plugin is simple. Just call <code>.taggable()</code> on the element that you want to have tags attached to. There are various ways to customize it beyond this of course. For those details, check out the <a href="http://github.com/jonDowdle/jqTaggable/blob/master/README.markdown">README</a>.</p>
<h3>Other Tag-ish Plugins Out There</h3>
<p>I fought the urge to look at existing work, mainly so that I could learn as much from tripping over my own two feet as possible. Upon writing this post, I decided 'why not' and Googled around for "jquery plugins tag" and other permutations. I was thrilled to <a title="Tag based plugins for jQuery" href="http://plugins.jquery.com/taxonomy/term/113" target="_blank">see</a> that it doesn't look like there are any other plugins that do quite this. All of the other options turn input into tags or create tag clouds.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2010/06/new-jquery-plugin-taggable/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WikiText &amp; Eclipse: Making Documentation Easier</title>
		<link>http://jdowdle.com/wp/2010/04/wikitext-eclipse-creating-documentation/</link>
		<comments>http://jdowdle.com/wp/2010/04/wikitext-eclipse-creating-documentation/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 15:30:18 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Markup languages]]></category>
		<category><![CDATA[Wiki]]></category>
		<category><![CDATA[Wikitext]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=438</guid>
		<description><![CDATA[Writing documentation can be a serious pain. So the oft taken path is to not write anything. Recently, I was exploring menu options in Eclipse and noticed the WikiText option. I must have been hiding under a rock because I &#8230; <a href="http://jdowdle.com/wp/2010/04/wikitext-eclipse-creating-documentation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a title="Aloe  polyphylla Schönland ex Pillans" href="http://flickr.com/photos/93452909@N00/184343329"><img class="alignright" src="http://farm1.static.flickr.com/58/184343329_3cb642233b_m.jpg" alt="" width="240" height="180" /></a>Writing documentation can be a serious pain. So the oft taken path is to not write anything. Recently, I was exploring menu options in Eclipse and noticed the WikiText option. I must have been hiding under a rock because I haven't noticed how nice WikiText is nor where it is applicable.</p>
<h3>About WikiText</h3>
<p>WikText is a structured language that is easily readable by humans and is pretty easy to parse. As an example this is how you write a h1:</p>
<pre>h1. Main heading
</pre>
<h3>Examples</h3>
<p>It really couldn't be any more simple than that. Similar markup exists for a larger part of HTML as well. Here are a few more examples:</p>
<pre style="padding-left: 30px;">*this creates bold text*
__italic text__
#Numbered list item 1
#Numbered list item 2
*Bulleted list item
bc. Block Code in here
</pre>
<p>An easy to use markup language isn't that interesting on it's own IMO, but when it's natively supported by your tooling things get a lot more useful.</p>
<h3></h3>
<p>So typing something like this in Eclipse:</p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2010/04/source_view.png"><img class="aligncenter size-full wp-image-498" title="WikiText Source View" src="http://jdowdle.com/wp/wp-content/uploads/2010/04/source_view.png" alt="" width="577" height="217" /></a></p>
<p>Generates something like this:</p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2010/04/preview_view1.png"><img class="aligncenter size-full wp-image-500" title="WikiText Preview" src="http://jdowdle.com/wp/wp-content/uploads/2010/04/preview_view1.png" alt="" width="667" height="328" /></a>Eclipse is very happy to convert your WikiText to HTML, DocBook and Eclipse help files.</p>
<p>Even outside of Eclipse, I find this useful as many sites will parse your .textile files. Outside of wiki sites, I think the most notable would be git hub. If you have a README.textile they will parse it and generate the HTML for your project page based off of it.</p>
<p>The Eclipse documentation <a href="http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.mylyn.wikitext.help.ui/help/Markup-Conversion.html">here</a> talks more about the capabilities but I think the above are the most important (especially if your like me and didn't know about it).</p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2010/04/wikitext-eclipse-creating-documentation/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>cfCalais – A Coldfusion tag to easily create semantic data</title>
		<link>http://jdowdle.com/wp/2010/02/explore-the-semantic-web-with-coldfusion-cf_calais/</link>
		<comments>http://jdowdle.com/wp/2010/02/explore-the-semantic-web-with-coldfusion-cf_calais/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 16:33:23 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[calais]]></category>
		<category><![CDATA[custom tag]]></category>
		<category><![CDATA[Semantic Web]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=392</guid>
		<description><![CDATA[Something that I've been interested in for a while now is the semantic web. I don't claim to be any kind of expert on it and have barely scratched the surface. After finding about the Open Calais service from Thompson &#8230; <a href="http://jdowdle.com/wp/2010/02/explore-the-semantic-web-with-coldfusion-cf_calais/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Something that I've been interested in for a while now is the semantic web. I don't claim to be any kind of expert on it and have barely scratched the surface.</p>
<p>After finding about the Open Calais service from Thompson Reuters I was pretty excited. I've created a custom tag that sends data to the service which in turn returns the resulting semantic data.</p>
<p>The tag is pretty easy to use. Just surround the text you want to parse with the &lt;cf_calais&gt;  tags and off you go. The default variable returned is cfcalais. You can override this by setting the "name" attribute.</p>
<div>
<h3>Introduction to OpenCalais</h3>
<p><a title="Home" rel="home" href="http://www.opencalais.com/" target="_blank"><img id="logo-image" class="alignright" style="border: 0pt none;" src="http://www.opencalais.com/files/calais_logo.png" alt="Home" width="215" height="94" /></a><br />
If you are unfamiliar with the OpenCalais service, here  is a short description:</p>
<blockquote><p>We want to make all the world's content more accessible,  interoperable and valuable. Some call it Web 2.0, Web 3.0, the Semantic Web or the Giant Global  Graph - we call our piece of it Calais.</p>
<p>Calais is a rapidly growing toolkit of capabilities that allow you to  readily incorporate state-of-the-art semantic functionality within your blog, content  management system, website or application.</p>
<p><em>Taken from <a href="http://www.opencalais.com" target="_blank">OpenCalais website</a></em></p></blockquote>
<h3>Tag Use</h3>
<ol>
<li>Obtain a license key at <a title="Open Calais Website" href="http://www.opencalais.com/">http://www.opencalais.com/</a></li>
<li>Place in a directory where your CFML engine can find it</li>
<li>Wrap your content like this:
<pre><code>&lt;cf_calais name="myLittlePony" license='#myLicenseKey#'&gt;
Some content here
&lt;/cf_calais&gt;
</code></pre>
</li>
<li>Use the returned data</li>
</ol>
<h3>Return Variable</h3>
<p>A structure is returned which contains various keys depending on the  content that was parsed. A full list of returned metadata returned can  be found here: <a href="http://www.opencalais.com/documentation/calais-web-service-api/api-metadata/entity-index-and-definitions">http://www.opencalais.com/documentation/calais-web-service-api/api-metadata/entity-index-and-definitions</a></p>
<p>For the example content (taken from tagTest.cfm):</p>
<blockquote><p>Amazon's Kindle e-book reader is going on sale in more  than 100 countries around the world, including the UK. The reader has  been confined to the US since its launch in November 2007; Amazon  expects to have sold a million of the devices by the end of the year.  The global version will run on the 3G network, although Amazon has not  specified the networks that will provide connectivity for the devices.  The Kindle store will offer over 200,000 English-language titles.  Hundreds of publishers are signed up including Penguin, Faber and Faber,  and HarperCollins. It will also carry more than 85 US and international  newspapers and magazines. "We have millions of customers in countries  all over the world who read English-language books. Kindle enables these  customers to think of a book and download it in less than 60 seconds,"  said Amazon founder Jeff Bezos. Penguin chief executive John Makinson  hopes it will kickstart digital book sales in Europe. "The publishing  industry is experiencing explosive growth in digital book sales in the  US," he said. KINDLE IN EUROPE Amazon Kindle 0.36 inches thick with 6in  e-ink display 2GB of internal memory QWERTY keyboard to add notes to  text Battery life "weeks on a single charge" USB synching for people out  of coverage area The look and feel of the device will be the same as  the US version with the exception of network access. Following  difficulties making the Kindle's Whispernet wireless download system  work in the Europe, Amazon has decided to make downloads available via  the 3G network. This means that people wishing to download a book  outside of a 3G coverage area will have to transfer content over USB. In  May of this year, Amazon unveiled a new version of its e-reader aimed  at reading magazines, newspapers and documents. The Kindle DX is  currently available only in the US. The European version of the Kindle  will begin shipping on October 19 with a $279 (£175) price tag.</p></blockquote>
<p>Returns a structure that would have the following keys and values:</p>
<ul>
<li>Technology : 3G</li>
<li>socialTag : Technology_Internet,Printing,Ur,Mass media,E-book,Amazon  Kindle,Amazon.com,Media technology,Publishing,Linux based  devices,Electronic publishing,E Ink,3G</li>
<li>Country : United Kingdom,United States</li>
<li>Person : John Makinson,Jeff Bezos</li>
<li>Position : chief executive</li>
<li>Company : Amazon,Penguin</li>
<li>Facility : Kindle store</li>
<li>Currency : GBP,USD</li>
<li>Product : Kindle</li>
<li>Continent : Europe</li>
<li>IndustryTerm : e-reader,e-ink,e-book,wireless download system  work,3G network</li>
</ul>
</div>
<p>Download the tag and code here: <a href="http://github.com/jonDowdle/cfCalais">http://github.com/jonDowdle/cfCalais</a></p>
<p>I hope you find this tag useful and let's make Coldfusion an integral part of building Web 3.0!</p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2010/02/explore-the-semantic-web-with-coldfusion-cf_calais/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Make CF Builder and OS X Prettier</title>
		<link>http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/</link>
		<comments>http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 15:07:09 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=404</guid>
		<description><![CDATA[At CFinNC, Sam Farmer mentioned that one draw back of using CF Builder as a plugin was that you don't have the CF Builder icon displayed. While I agree this isn't a huge issue, it does take a bit away &#8230; <a href="http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At CFinNC, Sam Farmer mentioned that one draw back of using CF Builder as a plugin was that you don't have the CF Builder icon displayed. While I agree this isn't a huge issue, it does take a bit away from the 'experience' (OS X looks good and who are we to detract from that?)</p>
<p>Good news, it's an easy fix. You'll soon have a nice high-resolution icon for both your dock icons and Eclipse.app.</p>
<ol>
<li>Save the Coldfusion PNG from Wikipedia (<a href="http://en.wikipedia.org/wiki/File:ColdFusion_icon.png">http://en.wikipedia.org/wiki/File:ColdFusion_icon.png</a>) to your hard drive</li>
<li>Convert the PNG from step 1 to an ICNS and save back to your hard drive. (I used iConvert <a href="http://iconverticons.com/">http://iconverticons.com/</a>)</li>
<li>Open /Applications/eclipse (or wherever you installed Eclipse)</li>
<li>Right click on Eclipse, select Show Package Contents</li>
<li>Go to Contents &gt; Resources</li>
<li>[Optional] Rename Eclipse.icns to Eclipse_old.icns</li>
<li>Copy Eclipse.icns from step 1 into the Resources folder</li>
<li>Launch Eclipse</li>
<li>Enjoy.</li>
</ol>
<p>You should then see something like this:</p>

<a href='http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/picture-1/' title='App View'><img width="150" height="150" src="http://jdowdle.com/wp/wp-content/uploads/2009/10/Picture-1-150x150.png" class="attachment-thumbnail" alt="App View" title="App View" /></a>
<a href='http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/picture-2/' title='Dock View'><img width="81" height="150" src="http://jdowdle.com/wp/wp-content/uploads/2009/10/Picture-2-81x150.png" class="attachment-thumbnail" alt="Dock View" title="Dock View" /></a>

]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/10/cf-builder-os-x-icon/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Query the Web with a Simple Tag: YQL Custom Tag + examples</title>
		<link>http://jdowdle.com/wp/2009/09/query-the-web-with-a-simple-tag-yql-custom-tag-examples/</link>
		<comments>http://jdowdle.com/wp/2009/09/query-the-web-with-a-simple-tag-yql-custom-tag-examples/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 23:42:17 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=377</guid>
		<description><![CDATA[I've created a Coldfusion tag to make using YQL (even) easier. I was really surprised to find nothing doing this already. I'm not sure if it is just to simple in the first place or that there is a general &#8230; <a href="http://jdowdle.com/wp/2009/09/query-the-web-with-a-simple-tag-yql-custom-tag-examples/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I've created a Coldfusion tag to make using YQL (even) easier. <span style="text-decoration: line-through;">I was really surprised to find nothing doing this already</span>. <span style="text-decoration: line-through;">I'm not sure if it is just to simple in the first place or that there is a general lack of interest</span>.<span style="text-decoration: line-through;"> Feel free to shed some light on this in the comments.</span> Enough talking already, lets get some demo action going.</p>
<p>The basic usage is pretty similar to another oh-so familiar tag:</p>
<pre>&lt;cf_yql&gt;
Select * from flickr.photos.recent
&lt;/cf_yql&gt;

&lt;cfloop query="cfyql"&gt;
 &lt;!---Format of the static urls to flickr images---&gt;
 &lt;cfoutput&gt;
   &lt;img src="http://farm#farm#.static.flickr.com/#server#/#id#_#secret#_s_d.jpg" /&gt;
 &lt;/cfoutput&gt;
&lt;/cfloop&gt;</pre>
<p>Creates...</p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2009/09/2009-09-10-195536.png"><img class="alignnone size-full wp-image-383" title="Top Flickr Photos" src="http://jdowdle.com/wp/wp-content/uploads/2009/09/2009-09-10-195536.png" alt="Top Flickr Photos" width="805" height="96" /></a></p>
<p>As you can see, the format is pretty similar to cfquery. The table name "flickr.photos.recent" is table supported by the YQL (for a full listing of available tables see the footnotes).</p>
<p>Here is another example using an RSS feed:</p>
<pre>&lt;cf_yql format="query"&gt;
select * from rss where url='http://rss.news.yahoo.com/rss/topstories'
limit 5
&lt;/cf_yql&gt;

&lt;cfloop query="cfyql"&gt;
 &lt;li&gt;
 &lt;cfoutput&gt;&lt;a href="#link#"&gt;#title# &amp;mdash; #Source# &amp;mdash; #pubdate#&lt;/a&gt;
 &lt;div&gt;#description#&lt;/div&gt;
 &lt;/cfoutput&gt;
 &lt;/li&gt;
&lt;/cfloop&gt;
&lt;/ul&gt;</pre>
<p>Creates...</p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2009/09/2009-09-10-195903.png"><img class="alignnone size-full wp-image-384" title="News Feed" src="http://jdowdle.com/wp/wp-content/uploads/2009/09/2009-09-10-195903.png" alt="News Feed" width="550" height="287" /></a></p>
<p>In the future, I'd like to take this further by using YQL's newly added 'execute' functionality.</p>
<p>The project is hosted on <a title="cfYQL project on Github" href="http://github.com/jonDowdle/cfYQL/">github</a>. Feel free to fork me or download the code <a href="http://github.com/jonDowdle/cfYQL/zipball/master">here</a>.</p>
<p><em>Edit: Yes, I know this looks like Ray Camden's cf_yql example (</em><a href="http://www.coldfusionjedi.com/index.cfm/2009/9/10/Yahoo-Query-Language">http://www.coldfusionjedi.com/index.cfm/2009/9/10/Yahoo-Query-Language</a><em>) posted earlier today (9/10/09). I had written this post originally on 8/28 and just never got around to publishing it. Ray just lit a fire under my arse by posting his, so thanks Ray!<br />
</em></p>
<div style="font-size:.8em;">Items referenced while writing this post:</div>
<div style="font-size:.8em;">
<ul>
<li>YQL OpenData Tables: <a title="YQL opendata tables" href="http://github.com/spullara/yql-tables/tree/master">http://github.com/spullara/yql-tables/tree/master</a></li>
<li>YQL Execute: <a href="http://developer.yahoo.net/blog/archives/2009/04/yql_execute.html">http://developer.yahoo.net/blog/archives/2009/04/yql_execute.html</a></li>
<li><a title="Building a KML feed with YQL and Coldfusion" href="http://eatyourgreens.org.uk/archives/2009/04/building-a-kml-feed-with-yql-and-coldfusion.html" target="_blank">http://eatyourgreens.org.uk/archives/2009/04/building-a-kml-feed-with-yql-and-coldfusion.html</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/09/query-the-web-with-a-simple-tag-yql-custom-tag-examples/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Finding international characters with MySQL</title>
		<link>http://jdowdle.com/wp/2009/08/finding-international-characters-with-mysql/</link>
		<comments>http://jdowdle.com/wp/2009/08/finding-international-characters-with-mysql/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 17:10:37 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=346</guid>
		<description><![CDATA[I recently had to find the rows in a database that contained any multibyte characters. My first thought was to leverage the difference between length() and char_length(). The query would be similiar to this: Select pKey, dataCol From myTable Where &#8230; <a href="http://jdowdle.com/wp/2009/08/finding-international-characters-with-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently had to find the rows in a database that contained any multibyte characters. My first thought was to leverage the difference between length() and char_length(). The query would be similiar to this:</p>
<pre>Select pKey, dataCol
From myTable
Where length(dataCol) != char_length(dataCol)</pre>
<p>To my surprise this query didn't work. After mulling it over in my mind, I tried a few debugging statements such as:</p>
<pre>Select pKey,
  dataCol,
  length(dataCol),
  char_length(dataCol)
From myTable</pre>
<p>That only reaffirmed that all return values of the char_length() were equal to the length() results.</p>
<p>Then it hit me, I (or rather the database) was using the latin1 character set. So I quickly cast the data into utf8 and it worked! Below is the resulting query.</p>
<pre>Select pKey, dataCol
From myTable
Where length( cast(dataCol <strong>using utf8</strong>) ) !=
        char_length( cast(dataCol <strong>using utf8</strong>) )</pre>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/08/finding-international-characters-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transforming Coldfusion code with XSLT</title>
		<link>http://jdowdle.com/wp/2009/05/transforming-coldfusion-code-with-xslt/</link>
		<comments>http://jdowdle.com/wp/2009/05/transforming-coldfusion-code-with-xslt/#comments</comments>
		<pubDate>Sat, 16 May 2009 21:24:39 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=306</guid>
		<description><![CDATA[Note: For those looking for something useful, you won't find it in this post. For a little Saturday fun, I set out to transform Coldfusion code using XSLT. It didn't take long before I ran into some issues. The first &#8230; <a href="http://jdowdle.com/wp/2009/05/transforming-coldfusion-code-with-xslt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>Note: For those looking for something useful, you won't find it in this post. </em></p>
<p>For a little Saturday fun, I set out to transform Coldfusion code using XSLT. It didn't take long before I ran into some issues.</p>
<p>The first problem I ran into was that most Coldfusion code doesn't have a root element (not to mention it isn't well formed XML in any sense).  You might be thinking "Well CFCs have a root node" and you'd be right. So I tried to transform a really simple CFC and I was somewhat successful.</p>
<p>The only caveat is that the use of <span style="text-decoration: line-through;">a few</span> almost all tags won't work. For example, &lt;cfreturn foo /&gt; isn't proper XML and Saxon complains.  So at this point, this is pretty much a worthless exercise (see note above). Either way I ended up with something that did work (in the functional sense, not the useful sense). See the code below if you're interested in what the XSLT looks like.</p>
<p><em> </em><a href="http://jdowdle.com/wp/wp-content/uploads/2009/05/cf.xml">XSLT Coldfusion</a></p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2009/05/inputcf.cfc">Very Simple CFC</a></p>
<p><a href="http://jdowdle.com/wp/wp-content/uploads/2009/05/transformedcf.html">Transformed Output<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/05/transforming-coldfusion-code-with-xslt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Remove Firebug&#8217;s Console.Debug() calls in 3 lines</title>
		<link>http://jdowdle.com/wp/2009/03/remove-firebugs-consoledebug-calls-in-3-lines/</link>
		<comments>http://jdowdle.com/wp/2009/03/remove-firebugs-consoledebug-calls-in-3-lines/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:09:44 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=231</guid>
		<description><![CDATA[I love Firebug's console.debug() calls and use them often while writing &#38; debugging Javascript. I find it extremely helpful (it does dump out objects after all) and it is much faster than setting a break point and stepping through. So &#8230; <a href="http://jdowdle.com/wp/2009/03/remove-firebugs-consoledebug-calls-in-3-lines/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I love Firebug's console.debug() calls and use them often while writing &amp; debugging Javascript. I find it extremely helpful (it does dump out objects after all) and it is much faster than setting a break point and stepping through. So why would I want all of my console.debug calls not to work?</p>
<p>One of (the many) reasons IE sucks is that it doesn't have an equivalent to Firebug*. Until that glorious day arrives when it does, those calls can render the JS non-functioning. If you have ever seen "console is not defined" you're getting warmer. So to 'neutralize' these calls in any other browser not cool enough to have Firebug all you need is these 3 lines. Don't worry, it shouldn't affect Firefox w/ Firebug installed.</p>
<pre class="javascript"><span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000066; font-weight: bold;">typeof</span><span style="color: #66cc66;">&#40;</span>console<span style="color: #66cc66;">&#41;</span> == <span style="color: #3366CC;">&quot;undefined&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    console = <span style="color: #003366; font-weight: bold;">new</span> Object<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    console.<span style="color: #006600;">debug</span> = <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>str<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>str<span style="color: #66cc66;">&#41;</span>; <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre>
<p>* Note: Before anyone yells that there is Firebug Lite, I know that. It still doesn't rule nearly as much. <a href="http://getfirebug.com/lite.html">Get Firebug Lite here</a> **</p>
<p>** Note, you don't have to use alert(), actually I implore you not to (it's really annoying)</p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/03/remove-firebugs-consoledebug-calls-in-3-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
