<?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; Programming</title>
	<atom:link href="http://jdowdle.com/wp/category/code/programming/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.1</generator>
		<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>Format your SQL</title>
		<link>http://jdowdle.com/wp/2009/02/format-your-sql/</link>
		<comments>http://jdowdle.com/wp/2009/02/format-your-sql/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 18:30:26 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=171</guid>
		<description><![CDATA[The other day I was complaining on twitter about a almost 2000 character wide SQL Insert statement that I had to debug. Enough with the complaining, I'd like to show how I format SQL statments in my code. In the &#8230; <a href="http://jdowdle.com/wp/2009/02/format-your-sql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The other day I was complaining <a href="http://twitter.com/jdowdle/statuses/1181231761">on twitter</a> about a almost<a href="http://twitter.com/jdowdle/statuses/1181247581"> 2000 character wide SQL</a> <code>Insert</code> statement that I had to debug. Enough with the complaining, I'd like to show how I format SQL statments in my code. In the comments area I'd like to see how you format your SQL.</p>
<h2>Break up <code>Select</code>, <code>Insert </code>and <code>Update</code></h2>
<p>Nothing is harder to read and debug than:</p>
<blockquote><p><code><br />
Insert Into NotNormalizedTbl (firstname, lastname, address1, address2, is_dog_lover, has_dog, dog_breed) Values ( 'Jon', 'Dowdle', '4000 Central Florida Blvd', true, true, 'mutt');</code></p></blockquote>
<p>Even though this is a simple statement I find it takes a while to identify which column is missing.<br />
Here is the same example but with each column and value on its own line.</p>
<blockquote><p><code><br />
Insert Into NotNormalizedTbl<br />
(<br />
firstname,<br />
lastname,<br />
address1,<br />
address2,<br />
is_dog_lover,<br />
has_dog,<br />
dog_breed<br />
) Values (<br />
'Jon',                       /* firstname */<br />
'Dowdle',                    /* lastname */<br />
'4000 Central Florida Blvd', /* address1 */<br />
true,                        /* is_dog_lover */<br />
true,                        /* has_dog */<br />
'mutt'                       /* dog_breed */<br />
);</code></p></blockquote>
<p>Also, separate your <code>Where</code> conditions. <code>Where a = 1 And b = 2 And c = 3 And..</code> isn't very easy to read. For the <code>Where</code> clause I like to keep each condition on its own line and indent each rule within the clause. This brings me to my next rule.</p>
<h2>Indent</h2>
<p>Indentation is next to Godliness, or so they say. My personal style is to indent as often as possible.</p>
<p>Consider:</p>
<blockquote><p><code>Select * From table1 Inner Join table2 ON table2.id = table1.two_id</code></p></blockquote>
<p>vs</p>
<blockquote><p><code>Select *<br />
From table1<br />
Inner Join table2</code><br />
<code style="margin-left:10px;">On table2.id = table1.two_id</code><br />
<code style="margin-left:10px;">And table2.name = table1.name</code></p></blockquote>
<h2>Capitalize keywords</h2>
<p>I know this sounds counter intuitive but let me explain the logic behind only capitalizing the first letter of keywords.</p>
<p>The reason for this is that the human eye picks up on the Capitalized Keywords while the ALL UPPERCASE WORDS are skimmed over (Proctor, R. &amp; Vu, K. <a href="http://books.google.com/books?id=qSk7ytVDvWgC&amp;pg=PA253&amp;lpg=PA253&amp;dq=human+eye+words+capitalized+uppercase&amp;source=web&amp;ots=ln18NEbbeG&amp;sig=RKVdXODbBckGgz_IdwlSk8ru9MY">Handbook of Human Factors in Web Design</a>. New Jersey: Lawrence Erlbaum Inc.).</p>
<p>Consider:</p>
<pre>SELECT vs Select</pre>
<h2>Separate each clause</h2>
<p>Don't leave items on the same line if they are from a different clause.  While this provides better readability it also has a bonus benefit: commenting out a rule is a snap. This is best shown in an example.</p>
<pre><code>Select * From table1 Where c1 &lt;&gt; "" and c2 is not null
</code></pre>
<p><code>vs </code></p>
<pre><code>Select *
From table1
Where c1 &lt;&gt; ""
  and c2 is not null

</code></pre>
<h2>Comment</h2>
<p>Just as with any code, the next guy/gal to read it might not be you. So when you're making the world's longest and most convoluted SQL statement, please comment what each part is doing and why.</p>
<h2>Wrap up</h2>
<p>To format existing queries I recommend using SQLInform (<a href="http://www.sqlinform.com/">http://www.sqlinform.com/</a>). It has a ton of options and has worked very well for me in the past.</p>
<p>Using these styles doesn't take very long to get used to, so give them a shot.  The next time you debug a SQL script you will thank yourself. Once again, leave any tips or practices that you find helpful to keeping your SQL clean and maintainable in the comments area.</p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2009/02/format-your-sql/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Assigning Business Value to Features</title>
		<link>http://jdowdle.com/wp/2008/12/assigning-business-value-to-features/</link>
		<comments>http://jdowdle.com/wp/2008/12/assigning-business-value-to-features/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 17:30:00 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=124</guid>
		<description><![CDATA[While we at work are not "agile" I still find that some of the techniques used are very helpful. Today, I read an article on how to use "Planning Poker" to assign business value to features in a release. This &#8230; <a href="http://jdowdle.com/wp/2008/12/assigning-business-value-to-features/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While we at work are not "agile" I still find that some of the techniques used are very helpful. Today, I read an article on how to use "Planning Poker" to assign business value to features in a release.</p>
<p>This article's value can be seen if you've ever been in a meeting where 10 new "awesome"/"cool"/"really important" features have been introduced 3 months after the requirements have been completed. To a developer these changes can be frustrating (if we aren't the ones proposing) or exciting (if we propose). Either way leads to either a rejection of the idea or an over commitment of our time.</p>
<p>The best thing taken from this article is the questions to ask of each feature before it is decided to be in the next release. They are:</p>
<blockquote>
<ul>
<li> What does the 	feature mean to its user?</li>
<li> What does the user 	mean to the product?  Potential purchaser, marketing partner, simple 	user, influential user, investor…</li>
<li> What does the 	feature mean to the company or companies developing it?</li>
<li> How would you rate 	feature on the Kano scale (Pre-Requisite, Positioner, Exciter or 	Deterrent)?</li>
<li> What is the 	consequence of not implementing the feature?</li>
<li> What is the 	consequence of delaying implementation of the feature?</li>
</ul>
</blockquote>
<p><a href="http://agilesoftwaredevelopment.com/blog/peterstev/figuring-out-business-value-planning-poker">Original article (AgileSoftwareDevelopment.com)</a>, <a href="http://en.wikipedia.org/wiki/Planning_poker">Planning Poker (Wikipedia)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2008/12/assigning-business-value-to-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design Patterns in Coldfusion (Iterator Pattern)</title>
		<link>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-iterator-pattern/</link>
		<comments>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-iterator-pattern/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 03:00:18 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[design pattern]]></category>
		<category><![CDATA[iterator]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/code/design-patterns-in-coldfusion-iterator-pattern</guid>
		<description><![CDATA[This is the second article on design patterns in Coldfusion. Part one can be viewed here. Quick Description The iterator provides a single way to loop over a collection of elements without having to worry which type of collection (list, &#8230; <a href="http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-iterator-pattern/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is the second article on design patterns in Coldfusion. Part one can be viewed <a href="http://jdowdle.com/wp/code/design-patterns-in-coldfusion-decorator-pattern">here</a>.</p>
<p><strong>Quick Description</strong><br />
The iterator  provides a single way to loop over a collection of elements without having to  worry which type of collection (list, struct, array, query) it is. The interface for an iterator is quite simple with the main methods being hasNext() and next(). hasNext() returns true or false depending on if there are additional elements, while next() returns the next elements.</p>
<p>Speaking of collections, there is a collection class included with the source files. Using a class to contain the collection is preferable because it abstracts the data storage method for groups of objects, which lets us use the iterator class seamlessly. I find being ignorant of the underlying data type gives much more flexibility. I plan on going to more detail with the AbstractCollection and the implementation more in a future post.</p>
<p>Most of the code is taken from Brendan O'Hara's article, with the largest exception being the addAll() method in my PersonCollection.cfc. So again, many thanks to him for his wonderful post on CFDJ.</p>
<p><strong>Included  Examples:</strong></p>
<ul>
<li>AbstractIterator.cfc
<ul>
<li>Abstract class (with CF8 this could be replaced  with &lt;cfinterface&gt;)</li>
</ul>
</li>
<li>ArrayIterator.cfc
<ul>
<li>Class to handle iterating over Arrays</li>
</ul>
</li>
<li>PersonCollection.cfc
<ul>
<li>Maintains a collection of  Persons</li>
</ul>
</li>
<li>Person.cfc
<ul>
<li>Basic  class</li>
</ul>
</li>
<li>Test.cfm
<ul>
<li>Instantiates  and displays output for all these CFCs</li>
</ul>
</li>
</ul>
<p><strong>Links:</strong><br />
<a href="http://jdowdle.com/wp/wp-content/uploads/2008/07/iterator.zip">Iterator Source Files</a></p>
<p><a href="http://coldfusion.sys-con.com/read/41587.htm">Brendan O'Hara's Iterator Article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-iterator-pattern/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Design Patterns in Coldfusion (Decorator Pattern)</title>
		<link>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-decorator-pattern/</link>
		<comments>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-decorator-pattern/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 03:15:11 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[decorator]]></category>
		<category><![CDATA[design pattern]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/code/design-patterns-in-coldfusion-decorator-pattern</guid>
		<description><![CDATA[Implementing the decorator pattern from the GoF in Coldfusion. <a href="http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-decorator-pattern/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently, I have become <span style="text-decoration: line-through;">interested</span> obsessed with design patterns.  What caused the spark of excitement was that I was working on an algorithm similar to one of the patterns (I can't remember which) when I read Head First Design Patterns and realized it had already been created for me! By the way, I'd recommend Head First, it's a great learning series.</p>
<p>Also, I use the term "class" for "component" and "method" for "function". So without further ado,  my first article on implementing design patterns in Coldfusion.</p>
<p><strong> Decorator Pattern</strong></p>
<p>A decorator more or less wraps a base class and well...decorates it. This can be useful when you have a scenario that would need a lot of classes to cover all of the possible combinations of objects.</p>
<p><strong> My Implementation</strong><a title="Source Files" href="http://jdowdle.com/wp/wp-content/uploads/2008/07/decorator.zip"></a></p>
<p>I followed the example by Hal Helms as far as the class organization is concerned.  Some of the decorators are me being funny (piglatin and mirror), but I can see some value in the TableDecorator, JsonDecorator and XmlDecorator.</p>
<p>Let me explain each file a bit more.</p>
<ul>
<li>Test.cfm
<ul>
<li>Instantiates the components and outputs results</li>
</ul>
</li>
<li>Person.cfc
<ul>
<li>Base class (whose methods will be overridden by the decorators)</li>
</ul>
</li>
<li>PersonDecorator.cfc
<ul>
<li>Base decorator class (all decorators for Person will inherit from this class)</li>
</ul>
</li>
<li>PersonJsonDecorator.cfc
<ul>
<li>Creates a JSON representation of a Person.</li>
</ul>
</li>
<li>PersonXmlDecorator.cfc
<ul>
<li>Creates a XML representation of a Person by wrapping the elements with nodes that represent each element</li>
</ul>
</li>
<li>PersonTableDecorator.cfc
<ul>
<li>Creates a table representation of a Person by wrapping elements with &lt;td&gt;'s and the entire Person with &lt;tr&gt;</li>
</ul>
</li>
</ul>
<p><strong>Links</strong></p>
<p><a title="Source Files" href="http://jdowdle.com/wp/wp-content/uploads/2008/07/decorator.zip">Source Files</a></p>
<p><a href="http://en.wikipedia.org/wiki/Decorator_pattern" target="_blank">Wikipedia's Page on Decorators</a></p>
<p><a href="http://coldfusion.sys-con.com/read/47450.htm" target="_blank">Hal Helm's Decorator Article</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2008/07/design-patterns-in-coldfusion-decorator-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Project: Infection Control</title>
		<link>http://jdowdle.com/wp/2008/02/new-project-infection-control/</link>
		<comments>http://jdowdle.com/wp/2008/02/new-project-infection-control/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 12:23:15 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[infection control]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/uncategorized/new-project-infection-control</guid>
		<description><![CDATA[Right now I'm refering to the project as 'Infection Control'. It is not catchy, I agree, but it does sum up the intentions quite well. So for a lack of a better name, it will continue to be called that &#8230; <a href="http://jdowdle.com/wp/2008/02/new-project-infection-control/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Right now I'm refering to the project as 'Infection Control'.  It is not catchy, I agree, but it does sum up the intentions quite well.  So for a lack of a better name, it will continue to be called that for the time being.</p>
<p>In the past few days I've accomplished quite a bit.  The core functionality is not done, but some of the outlying features have come quite a way.</p>
<p>Below I've broken down the project into the most elementary functional units.</p>
<h3>History</h3>
<p>This last week  I came down with one of those 'everyone is going to get it' colds.  Luckily this roaming strain only kept most people out of work for 2 days at most.   In the height of the sickness, I had a thought.  Why hasn't someone created a warning system for these epidemic like colds?  I, for one, would have appreciated knowing that everyone was contagious.</p>
<p>So this is where the idea came from.</p>
<h3>Abstract</h3>
<p>The project's goal is to allow users to watch for flares of ailments and to take precautions so that they may not miss work or pass diseases on to loved ones.  What I believe sets this project apart is the speed of updates and diseases covered.</p>
<p>The CDC has a similar application but with the shortcomings that I plan to address. Their system is not directly user reported and only covers the Flu.</p>
<h3>Input</h3>
<p>To keep submission easy, I'd like to keep the input process as simple as possible.  Data will be entered through a standard HTML form.</p>
<p>Five elements of information is the most that I want users to have to enter.  In the K.I.S. mindset, so far I have:</p>
<ul>
<li>Zip code</li>
<li>Symptoms displayed</li>
<li>Household size</li>
</ul>
<p>Future data elements might include:</p>
<ul>
<li>Taking any corrective medications, i.e. antibiotics?</li>
<li>Seen provider yet?</li>
<li>Length since symptoms began?</li>
</ul>
<h3>Output</h3>
<p>I'd like to make the output as graphical as possible.  The main reason being to keep this simple and intuitive.</p>
<p>The main element of output will be a map of the user's surrounding areas.  The map will be a <a href="http://en.wikipedia.org/wiki/Thematic_map" title="Thematic Map on Wikipedia">thematic map</a> showing the degree of symptoms reported.</p>
<p>The above map is all that is planned for the first iteration.  Ideas for future iterations include:</p>
<ul>
<li>Showing the velocity of symptoms</li>
<li>Emailing alerts based on user criteria</li>
</ul>
<h3>Progress So Far</h3>
<ul>
<li> Input
<ul>
<li>None so far</li>
</ul>
</li>
<li>Output
<ul>
<li>Chosen Google Maps to display output map</li>
<li>Generated county boundaries based on US Census GPS data</li>
<li>Dynamically displayed Counties in varying colors within Google Maps</li>
</ul>
</li>
</ul>
<h3>Outside Links</h3>
<p>Project hosting: <a href="http://code.google.com/p/infection-control/" title="Infection Control on Google Code">Infection Control @ Google Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2008/02/new-project-infection-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun with C#</title>
		<link>http://jdowdle.com/wp/2007/04/11/</link>
		<comments>http://jdowdle.com/wp/2007/04/11/#comments</comments>
		<pubDate>Wed, 04 Apr 2007 01:31:58 +0000</pubDate>
		<dc:creator>Jon Dowdle</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=11</guid>
		<description><![CDATA[This demo is of a quick and dirty C# application from work. We are trying to do all these functions (returning a DataSet and returning the appropriate image stream) via web service so we can utilize any language we please. &#8230; <a href="http://jdowdle.com/wp/2007/04/11/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This demo is of a quick and dirty C# application from work.  We are trying to do all these functions (returning a DataSet and returning the appropriate image stream) via web service so we can utilize any language we please.  The application queries an API which returns a DataSet.  One a row in the DataGrid is clicked the appropriate image is looked up in the database and the resulting stream is then displayed in the PictureBox on the right hand side.  Demo done with <a href="http://www.debugmode.com/wink/">Wink</a> (<a href="http://www.freeware4u.com/index.php?option=com_remository&amp;Itemid=26&amp;func=startdown&amp;id=101">direct download link to Wink</a> -or- <a href="http://www.debugmode.com/wink/download.php">mirror list</a>)</p>
<p><a href="http://jdowdle.com/demos/c_Sharp_DocumentViewer.htm">Link to demo video</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2007/04/11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim: Seven habits of effective text editing</title>
		<link>http://jdowdle.com/wp/2007/03/vim-seven-habits-of-effective-text-editing/</link>
		<comments>http://jdowdle.com/wp/2007/03/vim-seven-habits-of-effective-text-editing/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 02:43:21 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=10</guid>
		<description><![CDATA[Woot. Found 2 great links for Vim and optimizing your text editing. I can't wait to use this at work! ...sigh.. I'm a nerd. =) Link to article... Vim: Seven habits of effective text editing Link to Google video]]></description>
			<content:encoded><![CDATA[<p>Woot. Found 2 great links for Vim and optimizing your text editing.  I can't wait to use this at work! ...sigh.. I'm a nerd. =)<br />
Link to article...<br />
<a href="http://www.moolenaar.net/habits.html">Vim: Seven habits of effective text editing</a></p>
<p><a href="http://video.google.com/videoplay?docid=2538831956647446078&q=engEDU">Link to Google video</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2007/03/vim-seven-habits-of-effective-text-editing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Integrating freeform &lt;select&gt; with JavaScript and CSS</title>
		<link>http://jdowdle.com/wp/2007/03/integrating-freeform-select-with-javascript-and-css/</link>
		<comments>http://jdowdle.com/wp/2007/03/integrating-freeform-select-with-javascript-and-css/#comments</comments>
		<pubDate>Mon, 12 Mar 2007 19:14:36 +0000</pubDate>
		<dc:creator>Jon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jdowdle.com/wp/?p=8</guid>
		<description><![CDATA[At work I have an application that requires a user to select a choice from a drop down box or a &#60;select&#62; control for the HTML savvy. As far as I know (or could find) there is no such control &#8230; <a href="http://jdowdle.com/wp/2007/03/integrating-freeform-select-with-javascript-and-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>At work I have an application that requires a user to select a choice from a drop down box or a &lt;select&gt; control for the HTML savvy.  As far as I know (or could find) there is no such control in HTML 4.01 that allows both a select box with the added bonus of taking free form user input.  So to meet the needs of this project I crafted one up using CSS and JavaScript.  This is my first dive into CSS/JS in a while so be gentle.<br />
<span id="more-8"></span><br />
I accomplished this by creating two elements (SELECT & INPUT) and then switching the elements visibility properties.<br />
<code><br />
&lt;script type="text/javascript" &gt;<br />
function showOther(id, id2){<br />
&nbsp;&nbsp;if(id.options[id.selectedIndex].label == "Other"){<br />
&nbsp;&nbsp;&nbsp;id.style.visibility = "hidden";<br />
&nbsp;&nbsp;&nbsp;id2.style.visibility = "visible";<br />
&nbsp;&nbsp;}<br />
}<br />
&lt;/script&gt;<br />
&lt;select id="sel1" onChange="showOther(sel1, inp1)"<br />
 style="position:absolute; left:10; top:10;" &gt;<br />
&nbsp;   &lt;option value="0" label=""&gt;&lt;/option&gt;<br />
&nbsp;   &lt;option value="1" label="Choice1"&gt;Choice1&lt;/option&gt;<br />
&nbsp;   &lt;option value="2" label="Choice2"&gt;Choice2&lt;/option&gt;<br />
&nbsp; &lt;option value="3" label="Other"&gt;Other&lt;/option&gt;<br />
&lt;/select&gt;<br />
&lt;input&nbsp;type="text"&nbsp;id="inp1"&nbsp;style="visibility='hidden'"<br />
style="position:absolute; left:10; top:10;" /&gt;<br />
</code></p>
<p>To see it in action go <a href="http://www.jdowdle.com/code/selectInputJs.html">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jdowdle.com/wp/2007/03/integrating-freeform-select-with-javascript-and-css/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
