<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chris Downey</title>
	<atom:link href="http://chrisdowney.name/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisdowney.name</link>
	<description></description>
	<lastBuildDate>Tue, 06 Dec 2011 21:27:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chrisdowney.name' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0cb4b192497b97d920cc51d4cd2c3e1b?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Chris Downey</title>
		<link>http://chrisdowney.name</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chrisdowney.name/osd.xml" title="Chris Downey" />
	<atom:link rel='hub' href='http://chrisdowney.name/?pushpress=hub'/>
		<item>
		<title>Master-Xwalk-Duplicate SQL Pattern</title>
		<link>http://chrisdowney.name/2011/12/06/master-xwalk-duplicate/</link>
		<comments>http://chrisdowney.name/2011/12/06/master-xwalk-duplicate/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 21:27:55 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=663</guid>
		<description><![CDATA[This concise and powerful SQL statement returns out-of-sync duplicated data.  On one hand, we could say that the tables should be normalized and therefore the data would never be out-of-sync.  In this case, if it was normalized, 1425 records would contain unfixable errors.   I was fortunate to have some duplication.  The errors were introduced over [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=663&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This concise and powerful SQL statement returns out-of-sync duplicated data.  On one hand, we could say that the tables should be normalized and therefore the data would never be out-of-sync.  In this case, if it was normalized, 1425 records would contain unfixable errors.   I was fortunate to have some duplication.  The errors were introduced over 3 years using a correct business rule that we discovered (during an audit review) should now be different.</p>
<p><pre class="brush: sql;">
select x.inventory_id, p.caci_po,
(select acq_doc_num from inventory where inventory_id = x.inventory_id )
from inventory_po_xwalk x inner join purchase_orders p
on x.po_id = p.id
and p.caci_po != (select acq_doc_num from inventory where inventory_id = x.inventory_id)
</pre></p>
<p>There is a better way to obtain protection against business rules that change data: using a trigger that records each change in an audit table.  However, its much harder to extract the desired changes from an audit table than it is to use a set of 3 tables with the master-xwalk-duplicate pattern.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/663/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/663/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/663/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=663&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/12/06/master-xwalk-duplicate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>
	</item>
		<item>
		<title>Rails: A Spotlight on Design Flaws</title>
		<link>http://chrisdowney.name/2011/08/09/learning-rails-2/</link>
		<comments>http://chrisdowney.name/2011/08/09/learning-rails-2/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 21:15:09 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=647</guid>
		<description><![CDATA[From RailsGuides: Active Record and Referential Integrity The Active Record way claims that intelligence belongs in your models, not in the database. As such, features such as triggers or foreign key constraints, which push some of that intelligence back into the database, are not heavily used. That is a very different way of designing systems [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=647&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From RailsGuides: <a href="http://guides.rubyonrails.org/migrations.html#active-record-and-referential-integrity" target="_blank">Active Record and Referential Integrity</a></p>
<blockquote><p>The Active Record way claims that intelligence belongs in your models, not in the database. As such, features such as triggers or foreign key constraints, which push some of that intelligence back into the database, are not heavily used.</p></blockquote>
<p>That is a very different way of designing systems than I&#8217;m used to doing and is interesting to think about: have I been pushing too much intelligence into the database?  I think so.  My current (at work) system has many stored procedures that contain most of the business logic and, at best, can be tested only indirectly.  In the July 2011 Thoughtworks <a href="http://www.thoughtworks.com/radar" target="_blank">Technology Radar</a> (p.10), they point out that:</p>
<blockquote><p>Programming languages commonly used to implement stored procedures lack expressiveness, are difficult to test, and discourage clean modular design.</p></blockquote>
<p>I like how Rails is forcing me to think of physical structure and logical design at the very start of a new system; for legacy systems, thinking about how to integrate Rails is bringing clarity to some fundamental design flaws.  The trick will be: how to gracefully move into an improved architecture by bringing in Rails and pushing out a thin Java DAO layer that really doesn&#8217;t do much except transfer data between the Flex client and the database?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/647/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/647/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/647/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=647&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/08/09/learning-rails-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>
	</item>
		<item>
		<title>Learning Rails</title>
		<link>http://chrisdowney.name/2011/08/08/learning-rails/</link>
		<comments>http://chrisdowney.name/2011/08/08/learning-rails/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 23:48:51 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=644</guid>
		<description><![CDATA[To learn Rails, I&#8217;ve started working on integrating it with a production system.  Getting connected to SQL Server 2005 was a bit tricky &#8211; this guide helped move things along.  Getting the ODBC connection string correct was a pain. Everything I&#8217;ve seen so far on learning Rails focuses on building new apps.  Its not clear [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=644&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To learn Rails, I&#8217;ve started working on integrating it with a production system.  Getting connected to SQL Server 2005 was a bit tricky &#8211; this <a href="http://rails2ms-sql.heroku.com/" target="_blank">guide</a> helped move things along.  Getting the ODBC connection string correct was a pain.</p>
<p>Everything I&#8217;ve seen so far on learning Rails focuses on building new apps.  Its not clear to me how to integrate rails into an existing production system.  The first problem is how to handle migrations? If I skip a migration because the table exists, what is the impact of not having the Rails-created fields id, created_at, updated_at in the table?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/644/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/644/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/644/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=644&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/08/08/learning-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 3 to Flex 4 Migration &#8211; 2</title>
		<link>http://chrisdowney.name/2011/04/28/flex-3-to-flex-4-migration-2/</link>
		<comments>http://chrisdowney.name/2011/04/28/flex-3-to-flex-4-migration-2/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 14:06:34 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[Flex 3 to Flex 4 migration]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=630</guid>
		<description><![CDATA[Uh-oh.  Big problem with charts going from Flex 3 to Flex 4: ColumnSeries displayName is not showing up. Using the Flex 4.1 SDK, the labels don&#8217;t show: I spent hours upon hours trying to see if something in my code was working differently, looking at the API documentation&#8230; maybe some small change was made and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=630&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Uh-oh.  Big problem with charts going from Flex 3 to Flex 4: ColumnSeries displayName is not showing up.</p>
<div id="attachment_634" class="wp-caption aligncenter" style="width: 460px"><a href="http://cdowney68.files.wordpress.com/2011/04/flex3-chart.png"><img class="size-full wp-image-634" title="flex3-chart" src="http://cdowney68.files.wordpress.com/2011/04/flex3-chart.png?w=450&#038;h=574" alt="" width="450" height="574" /></a><p class="wp-caption-text">Flex 3 (displayName showing)</p></div>
<p>Using the Flex 4.1 SDK, the labels don&#8217;t show:</p>
<div id="attachment_635" class="wp-caption aligncenter" style="width: 460px"><a href="http://cdowney68.files.wordpress.com/2011/04/flex4-chart.png"><img class="size-full wp-image-635" title="flex4-chart" src="http://cdowney68.files.wordpress.com/2011/04/flex4-chart.png?w=450&#038;h=578" alt="" width="450" height="578" /></a><p class="wp-caption-text">Flex 4.1 - displayName doesn&#039;t show</p></div>
<p>I spent hours upon hours trying to see if something in my code was working differently, looking at the API documentation&#8230; maybe some small change was made and my code needs to work a bit differently?</p>
<p>In the shower this morning, an idea appeared, like a nagging little itch: what if the problem is a bug in the Flex SDK?  So, I installed Flex 4.5.0.19786, re-compiled and &#8211; problem solved!  Whew.  I&#8217;m relieved.  Not being able to show labels on the stacked columns would be a deal-killer and we&#8217;d have to move back to Flex 3.5.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/630/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/630/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/630/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=630&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/04/28/flex-3-to-flex-4-migration-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/flex3-chart.png" medium="image">
			<media:title type="html">flex3-chart</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/flex4-chart.png" medium="image">
			<media:title type="html">flex4-chart</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex 3 to Flex 4 Migration &#8211; 1</title>
		<link>http://chrisdowney.name/2011/04/21/flex-3-to-flex-4-migration-1/</link>
		<comments>http://chrisdowney.name/2011/04/21/flex-3-to-flex-4-migration-1/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 23:51:20 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[Flex 3 to Flex 4 migration]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=621</guid>
		<description><![CDATA[This is a technical diary, short entries tracking the migration of the Vaccine Ingredients Calculator from Flex 3 to Flex 4: a non-trivial effort that I&#8217;m approaching with both excitement and trepidation. I&#8217;ve been meaning to start this project for the past 6 months, but there has been too many enhancements that I&#8217;ve wanted to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=621&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a technical diary, short entries tracking the migration of the Vaccine Ingredients Calculator from Flex 3 to Flex 4: a non-trivial effort that I&#8217;m approaching with both excitement and trepidation.</p>
<p>I&#8217;ve been meaning to start this project for the past 6 months, but there has been too many enhancements that I&#8217;ve wanted to roll into the VIC.  Then, a few days ago, I found a good article on <a href="http://www.adobe.com/devnet/flex/articles/migrating-dashboard-part1.html" target="_blank">migrating flex apps</a> and, after deploying a new version of the VIC today, figured that the time was right to begin.</p>
<p>The VIC is hosted on Google Code and stored in svn.  So the first thing I did was to create a new branch called flex4 from within subclipse.  Next, I changed the VIC&#8217;s Flex SDK version to 4.1 (in Flex compiler properties).  The change generated 28 errors and 14 warnings.  The errors were all related to style attributes:</p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/style-errors.png"><img class="aligncenter size-full wp-image-622" title="style-errors" src="http://cdowney68.files.wordpress.com/2011/04/style-errors.png?w=450&#038;h=383" alt="" width="450" height="383" /></a>Initially, this made my stomach turn; I didn&#8217;t understand what it meant.  Its a result of a big change made in the Spark component architecture pertaining to how styling and skinning is done (see video tutorial &#8220;Introducing Flex components and controls&#8221; on <a href="http://www.adobe.com/devnet/flex/videotraining.html#day1" target="_blank">this page</a> for a good overview.)  Fortunately, these errors can be fixed with no coding changes by choosing the Halo theme:</p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/halo-theme.png"><img class="aligncenter size-full wp-image-624" title="halo-theme" src="http://cdowney68.files.wordpress.com/2011/04/halo-theme.png?w=450&#038;h=278" alt="" width="450" height="278" /></a></p>
<p>All compile errors are gone, but I&#8217;m left with 66 warnings to work through.  I did a quick check: the VIC runs but there are some problems; however, all 459 of our FlexUnit tests run successfully.  This is enough for today.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=621&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/04/21/flex-3-to-flex-4-migration-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/style-errors.png" medium="image">
			<media:title type="html">style-errors</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/halo-theme.png" medium="image">
			<media:title type="html">halo-theme</media:title>
		</media:content>
	</item>
		<item>
		<title>New VIC version (2.2) released</title>
		<link>http://chrisdowney.name/2011/04/01/new-vic-version-2-2-released/</link>
		<comments>http://chrisdowney.name/2011/04/01/new-vic-version-2-2-released/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 23:30:07 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[Vaccine Ingredients Calculator]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=605</guid>
		<description><![CDATA[A big improvement is that the Vaccine Ingredients Calculator (VIC) can now handle ingredients with both known and unknown amounts. For example, one vaccine may include the amount of Polysorbate 80 while another will not provide the amount. In previous VIC versions, we could not show this. However, we now show it in the Ingredient [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=605&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A big improvement is that the Vaccine Ingredients Calculator (VIC) can now handle ingredients with  both known and unknown amounts.  For example, one vaccine may include  the amount of Polysorbate 80 while another will not provide the amount.  In previous VIC versions, we could not show this. However, we now show  it in the Ingredient Chart and in the Vaccination Plan.  Coding this was a big effort because the original design assumed that if vaccine A&#8217;s package insert specified an amount for Polysorbate 80, all vaccine package inserts would do the same; however, this was an inaccurate assumption that had to be rooted out.  It is important  to know when a manufacturer is including an ingredient but not letting  us know how much.  This is a graphical example of known and unknown amounts:</p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/known-unknown.png"><img class="aligncenter size-full wp-image-607" title="known-unknown" src="http://cdowney68.files.wordpress.com/2011/04/known-unknown.png?w=450&#038;h=572" alt="" width="450" height="572" /></a></p>
<p>Ooooooops &#8211; still have some alignment work to do!</p>
<p>The Ingredient Chart is showing that, based upon the chosen vaccines, 100 mcg from Infanrix + an unknown amount of Polysorbate 80 from RotaTeq will be injected into the patient.  The Vaccination Plan also shows this combination as 100 mcg + 1 exposure:</p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/vaxplan.png"><img class="aligncenter size-full wp-image-610" title="vaxplan" src="http://cdowney68.files.wordpress.com/2011/04/vaxplan.png?w=450&#038;h=271" alt="" width="450" height="271" /></a></p>
<p>We&#8217;ve also included a new (incomplete) beta  feature called Chart Explain.  There is a great deal of information  packed into the ingredient charts (as well as important research into what is NOT known), some of which is not obvious.  Chart  Explain attempts to expose all assumptions and to lay out the entire  meaning of the chart.  For example, here is Chart Explain for aluminum:</p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/chartexplain-1.png"><img class="aligncenter size-full wp-image-612" title="ChartExplain-1" src="http://cdowney68.files.wordpress.com/2011/04/chartexplain-1.png?w=450&#038;h=387" alt="" width="450" height="387" /></a></p>
<p><a href="http://cdowney68.files.wordpress.com/2011/04/chartexplain-2.png"><img class="aligncenter size-full wp-image-613" title="ChartExplain-2" src="http://cdowney68.files.wordpress.com/2011/04/chartexplain-2.png?w=450&#038;h=387" alt="" width="450" height="387" /></a></p>
<p>The next steps for the VIC include adding more ingredients, continuing to improve Chart Explain and migrating from Adobe Flex 3 to 4.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/605/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/605/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/605/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=605&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/04/01/new-vic-version-2-2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/known-unknown.png" medium="image">
			<media:title type="html">known-unknown</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/vaxplan.png" medium="image">
			<media:title type="html">vaxplan</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/chartexplain-1.png" medium="image">
			<media:title type="html">ChartExplain-1</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2011/04/chartexplain-2.png" medium="image">
			<media:title type="html">ChartExplain-2</media:title>
		</media:content>
	</item>
		<item>
		<title>Recover Lost SQL Server Product Key</title>
		<link>http://chrisdowney.name/2011/01/07/recover-lost-sql-server-product-key/</link>
		<comments>http://chrisdowney.name/2011/01/07/recover-lost-sql-server-product-key/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 16:24:41 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[reviews]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=591</guid>
		<description><![CDATA[I&#8217;ve been in an uncomfortable fix for months. I need to create a stand-by server but can&#8217;t find our SQL Server product key. Desperate to move this important project forward (I&#8217;ve been having dreams of hard disk crashes), I dug online for hours.  Most of what I found was tantalizingly promising, but would fail &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=591&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been in an uncomfortable fix for months.  I need to create a stand-by server but can&#8217;t find our SQL Server product key.  Desperate to move this important project forward (I&#8217;ve been having dreams of hard disk crashes), I dug online for hours.  Most of what I found was tantalizingly promising, but would fail &#8211; leaving me increasingly frustrated.   Finally, I found a small utility called <a href="http://www.nirsoft.net/utils/product_cd_key_viewer.html">ProduKey</a>.  Skeptical, but willing to try almost anything, I scanned it for threats then, with some trepidation, ran it on our server.</p>
<p>It worked beautifully.  Microsoft product keys are stored in the registry in a format that you cannot use.  ProduKey found <em>all </em>of our Microsoft product keys (including for Windows server 2003) and translated them correctly.</p>
<p>I highly recommend this wonderful little utility and tip my hat to it&#8217;s skilled author, <a href="http://www.nirsoft.net/about_nirsoft_freeware.html" target="_blank">Nir Sofer</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/591/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/591/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/591/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=591&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2011/01/07/recover-lost-sql-server-product-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>
	</item>
		<item>
		<title>Are highly educated parents a threat to public health?</title>
		<link>http://chrisdowney.name/2010/12/29/highly-educated-parents-are-dangerous/</link>
		<comments>http://chrisdowney.name/2010/12/29/highly-educated-parents-are-dangerous/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 21:14:19 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[observations]]></category>
		<category><![CDATA[vaccines]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=551</guid>
		<description><![CDATA[Paul Offit believes that they are. In Philadelphia for example, the Hispanic population get vaccinated. This is because they trust their doctors and they trust doctors’ expertise. Not so with some within the upper class population. It is graduate school-educated, college-educated people who tend not to vaccinate, and that seems to be universally true. Now [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=551&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Paul Offit <a href="http://autismsciencefoundation.wordpress.com/2010/12/29/behind-the-vaccine-science-an-interview-with-dr-paul-offit-author-of-deadly-choices-how-the-anti-vaccine-movement-threatens-us-all/" target="_blank">believes that they are</a>.</p>
<blockquote><p>In Philadelphia for example, the Hispanic population get vaccinated. This  is because they trust their doctors and they trust doctors’ expertise.  Not so with some within the upper class population. It is graduate  school-educated, college-educated people who tend not to vaccinate, and  that seems to be universally true.</p></blockquote>
<p>Now &#8211; combine that with his view of parental health and medical decisions:</p>
<blockquote><p>In the United States we balance the sovereign right of the parent to  make a choice for the child against the right of the state to protect  children. In some respects, we are far too slanted towards the rights of  parents, and that is to the detriment of unvaccinated children and the  larger community.</p></blockquote>
<p>He isn&#8217;t saying that about <em>all </em>parents.  Its the highly educated parents who, by thinking for themselves and selectively vaccinating, have Offit deeply concerned.  He calls upon the government to compel full vaccination, by re-education if necessary:</p>
<blockquote><p>I think the government should make it very tough to gain an exemption from a vaccination. To attempt to gain an exemption, a person should go through an educational program where they hear the information and the facts about vaccines and about the diseases they prevent.</p></blockquote>
<p>Why does Paul Offit, a world-renowned expert on vaccines, believe that an unwilling public should be forced by government compulsion to vaccinate their children as directed by a faceless bureaucratic committee?  Jacques Barzun, historian of ideas and culture, wrote that &#8220;science is an all-pervasive energy, for it is at once a mode of thought, a source of  strong emotion, and a faith as fanatical as any in history.&#8221; [1]  Simply put, he believes in vaccines.  And because he is a world-renowned expert, you should trust him.</p>
<p>But we don&#8217;t think that way anymore.  An ever-growing number of people are</p>
<ul>
<li>reading ingredient labels (for foods, household cleaners, soap, shampoo, even for vaccines)</li>
<li>concerned about excessive use of pharmaceutical products (including antibiotics and vaccines)</li>
<li>worried about toxins (like formaldehyde in school trailers or <a href="http://www.vaccine-tlc.org/aluminum.html" target="_blank">aluminum in vaccines</a>)</li>
<li>doing their best to reduce overall chemical exposure at every opportunity</li>
</ul>
<p>We are taking charge of our own health and the health of our children.  Medical doctors are, at best, consultants that offer one point of view for our consideration.</p>
<p>If public health officials want better compliance, then the first thing to do is to become, along with the pharmaceutical companies, more transparent and trustworthy.  One way would be to toss out the intelligence-insulting campaigns such as <a href="http://www.cdc.gov/flu/freeresources/buttons_badges.htm" target="_blank">&#8220;The Flu Ends With You&#8221;</a> and stop recommending that everybody get the flu shot.  Back in 1986, I had a terrible case of the flu and have been fine ever since &#8211; without a single flu shot.  When the CDC tells me that I need a shot, which I clearly do not, they lose credibility.</p>
<p>[1] Barzun, Jacques (1964). <em>Science: The Glorious Entertainment</em>.   p. 3</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=551&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2010/12/29/highly-educated-parents-are-dangerous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>
	</item>
		<item>
		<title>Best Tweet I&#8217;ve Ever Seen</title>
		<link>http://chrisdowney.name/2010/12/16/best-tweet-ever/</link>
		<comments>http://chrisdowney.name/2010/12/16/best-tweet-ever/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 16:05:21 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[observations]]></category>
		<category><![CDATA[wikileaks]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=534</guid>
		<description><![CDATA[This is the visually most effective use of Twitter that I&#8217;ve ever encountered.  What else needs to be said? The tweet was created by @brunodecock BTW, I&#8217;m very disappointed in Amazon for dropping Wikileaks.  It looks like a panic decision with the intention of staying in the good graces of our gov&#8217;t.  I&#8217;d have more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=534&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the visually most effective use of Twitter that I&#8217;ve ever encountered.  What else needs to be said?</p>
<p><a href="http://cdowney68.files.wordpress.com/2010/12/wikileaks.png"><img class="aligncenter size-full wp-image-535" title="wikileaks" src="http://cdowney68.files.wordpress.com/2010/12/wikileaks.png?w=450&#038;h=115" alt="" width="450" height="115" /></a></p>
<p>The tweet was created by <a href="http://twitter.com/brunodecock">@brunodecock</a></p>
<p>BTW, I&#8217;m very disappointed in Amazon for <a href="http://aws.amazon.com/message/65348/">dropping Wikileaks</a>.  It looks like a panic decision with the intention of staying in the good graces of our gov&#8217;t.  I&#8217;d have more respect for Amazon if they exhibited some courage to wait out the storm.  We should not allow our government to tell us what we can and cannot read.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=534&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2010/12/16/best-tweet-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2010/12/wikileaks.png" medium="image">
			<media:title type="html">wikileaks</media:title>
		</media:content>
	</item>
		<item>
		<title>Comparing Vaccines, part 3</title>
		<link>http://chrisdowney.name/2010/12/01/comparing-vaccines-part-3/</link>
		<comments>http://chrisdowney.name/2010/12/01/comparing-vaccines-part-3/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 19:58:48 +0000</pubDate>
		<dc:creator>@downeycp @vaxcalc</dc:creator>
				<category><![CDATA[coding]]></category>
		<category><![CDATA[Vaccine Quick View]]></category>

		<guid isPermaLink="false">http://chrisdowney.name/?p=487</guid>
		<description><![CDATA[To alleviate the boredom and minimize data entry to just the actual ingredient amount, I figured out a fascinating way to have the circles be drawn automatically, based upon the data in the cell.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=487&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hand-coding this HTML and calculating sizes of all the red dots was becoming tedious.  Here is a small section of it:</p>
<div id="attachment_488" class="wp-caption aligncenter" style="width: 460px"><a href="http://cdowney68.files.wordpress.com/2010/12/qv-flu-01.png"><img class="size-full wp-image-488" title="qv-flu-01" src="http://cdowney68.files.wordpress.com/2010/12/qv-flu-01.png?w=450&#038;h=527" alt="" width="450" height="527" /></a><p class="wp-caption-text">Partial look at Vaccine Quick View for Seasonal/H1N1 Influenza Vaccines</p></div>
<p>To alleviate the boredom and minimize data entry to just the actual ingredient amount, I figured out a fascinating way to have the circles be drawn automatically, based upon the data in the cell.  The JavaScript code reads each row of table data (&lt;TD&gt;), figures out the largest value and uses that as the master (or scale-basis).  Then it creates a canvas and draws circles on the canvas.  Each cirlce&#8217;s area is scaled to the master.  Here is the code that calculates each circle&#8217;s area and draws it:</p>
<p><pre class="brush: jscript;">

function drawCircle(canvas, amount, scaleBasis) {
 var cxt;
 var radius;
 var area;

 /*
 * Need to plug in an image for the &quot;?&quot;
 */
 if (amount == 0 | amount == &quot;?&quot;) return;

 amount = getAmount(amount);
 radius = canvas.height / 2;
 area = Math.PI * radius * radius;

 /*
 * Amount will never be greater than scaleBasis.
 * An assertion here would be fantastic!
 */
 areaScaleAdjustor = (amount / scaleBasis);

 /*
 * Scale area; it's always the same size as original area or a reduction
 */
 area = area * areaScaleAdjustor;

 /*
 * From the adjusted area, obtain the radius
 */
 radius = Math.sqrt(area / Math.PI);

 cxt = canvas.getContext(&quot;2d&quot;);
 cxt.fillStyle = &quot;#FF0000&quot;;
 cxt.beginPath();

 try {
    cxt.arc( canvas.height / 2, canvas.height / 2,
             radius, 0, Math.PI * 2, true);
 } catch(e) {
    alert( &quot;Please email cdowney@gmail.com that there is a &quot; +
           &quot;drawCircle error on id &quot; +
           canvas.id + &quot;\n&quot; + e.message + &quot;\n&quot; + e.name );
 }

 cxt.closePath();
 cxt.fill();

}

</pre></p>
<p>I never thought that I&#8217;d code HTML by hand; but after trying a number of WYSIWYG editors, I could not get the complex table structure correct.   Its been a surprisingly positive experience.  I&#8217;ve always feared and despised web page coding, largely because it seems to unstructured, messy and chaotic.</p>
<p>Well &#8211; I&#8217;ve learned a great deal from the third edition of <a href="http://amzn.com/0321616952" target="_blank">Designing with Web Standards</a>.  I had no idea that web page coding could be so fun&#8230; and so structured, with its own version of the MVC pattern (HTML, JavaScript, CSS) that works really well when you approach it with discipline and care &#8211; and stick as close as possible to web standards.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/cdowney68.wordpress.com/487/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/cdowney68.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/cdowney68.wordpress.com/487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisdowney.name&amp;blog=13919124&amp;post=487&amp;subd=cdowney68&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisdowney.name/2010/12/01/comparing-vaccines-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/08c3e48663dddcadcddb18d4fa5e3115?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vaxcalc</media:title>
		</media:content>

		<media:content url="http://cdowney68.files.wordpress.com/2010/12/qv-flu-01.png" medium="image">
			<media:title type="html">qv-flu-01</media:title>
		</media:content>
	</item>
	</channel>
</rss>
