<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><!-- generator="wordpress/2.1.1" --><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Jeff Sargent ~ Inspired Design and Development</title>
	<link>http://www.jeffsargent.com</link>
	<description>Jeff Sargent is a web UI designer, standards advocate, and markup junkie operating out of Gainesville, Florida.</description>
	<pubDate>Sun, 14 Sep 2008 16:23:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.1</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/jeffsargent" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Can social websites save a life?</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/aKKL2JNpcBU/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/#comments</comments>
		<pubDate>Sun, 14 Sep 2008 16:23:55 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

	<!-- AutoMeta Start -->
	<category>fark</category>
	<category>brain</category>
	<category>cancer</category>
	<category>joe8122</category>
	<category>digg</category>
	<category>reddit</category>
	<category>social</category>
	<category>websites</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/</guid>
		<description><![CDATA[Fark.com and other social websites are coming together to raise funds for one of their own.  Can social websites save this man's son?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a href="http://www.fark.com/">Fark.com</a>, a dysfunctional family of users who submit news from around the web with their own headlines.  If you&#8217;re a fan of irreverant humor, clever Photoshop contests, LOLcats and flame wars akin to a Friars Club Roast, this is your new home.</p>
<p>Like any dysfunctional family the Fark.com members are sufficiently evil to each other; but, when the chips are down, they come together and take care of their own.  This is the case with Farker joe8122, who&#8217;s son has been diagnosed with neurocutaneous melanosis, i.e. a rare form of brain cancer.  Long story short (<a href="http://www.tuscaloosanews.com/article/20080913/NEWS/809120261/1007&#038;title=Family_turns_to_Web_for_help_with_sick_child">longer story here</a>), his son can undergo some experimental but promising treatment, but needs $100,000 to do so.  Insurance won&#8217;t cover it, and the hospital won&#8217;t treat him without payment.  </p>
<p>To try and raise money to get his son treatment, Joe turned to his online family at Fark and <a href="http://forums.fark.com/cgi/fark/comments.pl?IDLink=3851390">asked for help</a>.  Within a week the total donated has breached $33,000, and the story has spread to <a href="http://digg.com/health/Please_help_save_a_boy_s_life">Digg</a>, Reddit, and news website local to Alabama, where Joe and his family live.  Several emails have been written to the Governor of Alabama asking for his help, and Fark members continue to put the story in front of media outlets, hoping to spread the news and raise the rest of the money Joe needs.  Joe has a website set up to <a href="http://www.freewebs.com/windowshopping/howyoucanhelp.htm">accept donations towards his son&#8217;s treatment</a>.</p>
<p>This leaves me feeling very proud of the Fark community, and impressed with the potential power of social websites to directly impact the life of a reader.  The power of the internet is in the voices of the people, who can make their story known in forums, comment threads, and their own websites.  This power isn&#8217;t just limited to opinion and commentary; in the case of Joe8122 and his son, the power of the internet can bring hope for treatment of a terrible affliction.</p>
<p>These interwebs are so cool.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/&amp;title=Can+social+websites+save+a+life%3F" title="Add 'Can social websites save a life?' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Can social websites save a life?' to Del.icio.us" alt="Add 'Can social websites save a life?' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/&amp;title=Can+social+websites+save+a+life%3F" title="Add 'Can social websites save a life?' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Can social websites save a life?' to digg" alt="Add 'Can social websites save a life?' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Can+social+websites+save+a+life%3F&amp;u=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/" title="Add 'Can social websites save a life?' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Can social websites save a life?' to FURL" alt="Add 'Can social websites save a life?' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/&amp;title=Can+social+websites+save+a+life%3F" title="Add 'Can social websites save a life?' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Can social websites save a life?' to reddit" alt="Add 'Can social websites save a life?' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/" title="Add 'Can social websites save a life?' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Can social websites save a life?' to Technorati" alt="Add 'Can social websites save a life?' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/&amp;title=Can+social+websites+save+a+life%3F&amp;description=Can+social+websites+save+a+life%3F" title="Add 'Can social websites save a life?' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Can social websites save a life?' to Ma.gnolia" alt="Add 'Can social websites save a life?' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/&amp;title=Can+social+websites+save+a+life%3F" title="Add 'Can social websites save a life?' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Can social websites save a life?' to Stumble Upon" alt="Add 'Can social websites save a life?' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/" title="Add 'Can social websites save a life?' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Can social websites save a life?' to Bloglines" alt="Add 'Can social websites save a life?' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=aKKL2JNpcBU:-CxJrscYsYI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=aKKL2JNpcBU:-CxJrscYsYI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=aKKL2JNpcBU:-CxJrscYsYI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=aKKL2JNpcBU:-CxJrscYsYI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=aKKL2JNpcBU:-CxJrscYsYI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=aKKL2JNpcBU:-CxJrscYsYI:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/09/14/can-social-websites-save-a-life/</feedburner:origLink></item>
		<item>
		<title>Dude, Where’s my Warranty?</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/uylXhgRkKuA/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 17:09:13 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Personal]]></category>

	<!-- AutoMeta Start -->
	<category>car</category>
	<category>check</category>
	<category>engine</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/</guid>
		<description><![CDATA[I recently moved to Texas, and drove my car there from Florida.  That&#8217;s not a really remarkable achievement on it&#8217;s own, until you consider the vehicle I used to make that trip.  My car is 15 years old and sporting over 150K miles on it, and has a laundry list of problems.  [...]]]></description>
			<content:encoded><![CDATA[<p><img src='http://www.jeffsargent.com/wp/wp-content/uploads/2008/08/check_engine_light.jpg' alt='Check Engine light' align='right' style='margin:right:8px;margin-bottom:8px;' />I recently moved to Texas, and drove my car there from Florida.  That&#8217;s not a really remarkable achievement on it&#8217;s own, until you consider the vehicle I used to make that trip.  My car is 15 years old and sporting over 150K miles on it, and has a laundry list of problems.  It&#8217;s bad enough that when I told friends how I was getting to Texas, the reactions ranged from astonished concern to questions about their particular place in my will.  </p>
<p>Because so many people have enjoyed retellings of the car&#8217;s woes, I decided to finally write down all the problems and share the list here.  Enjoy.  </p>
<ol>
<li>The <strong>tint on the windows has melted</strong>, so you can&#8217;t really see out the windows, especially the back window.</li>
<li>The <strong>side-view mirror</strong> on the driver&#8217;s side shakes enough that you have to steady it with your hand to get a clear view.</li>
<li>The <strong>air conditioner</strong> hasn&#8217;t worked in a couple years.</li>
<li>The <strong>washer-fluid reservoir has a hole</strong>, at the bottom, so you can&#8217;t ever wash the windows while driving.  I tried to fix this once, but you have to pretty much tear the hood apart to get to it.</li>
<li>The <strong>tachometer</strong> (tells you your RPMs) only works reliably when the &#8220;Check Engine&#8221; light is on.  No, I don&#8217;t know how these could be related, but the behavior is consistent.  </li>
<li>The <strong>passenger-front power window</strong> moves veeerrryyyy ssllllooowwwlllyyyy if any other non-essential electricity is being used (e.g., rolling up another window at the same time).  </li>
<li>The <strong>plate covering the cas cap is jammed</strong> in a bit, so you have to use your key to pry it out whenever you want to fill the tank.</li>
<li>The <strong>fuel guage is unreliable</strong> between 1/4 full and Empty.  Turn the car off at 1/4 full, start it again to see just above empty, turn it off and restart to see somewhere in between.</li>
<li>Here&#8217;s a big one - the <strong>transmission (automatic) frequently decides it doesn&#8217;t like to be in gear</strong>.  The first gear shift of the trip is a gift, usually Reverse, to get out of a spot; after that, no drive.  You can force the car into gear by revving the engine a good bit; I&#8217;ve sort of perfected the art of revving for <em>just</em> the right amount of time so that the car engages at the end of the rev, and I&#8217;m not lurched about <em>too</em> much.  Once you get going the transmission mostly behaves, unless you make sharp turns, or you rapidly decelerate.  On occasion, however, the car will decide that it really really likes 2nd gear, and no other gear, and you can only change it&#8217;s mind by turning the car off and then on again.</li>
<li>Sometimes at a stop light the car will <strong>idle very low</strong> and shake a bit like it&#8217;s about to stall - but, it never actually stalls. </li>
<li>After driving a bit the car will make <strong>horrible sounds</strong> when, at low speed, you turn the wheel slightly left or right of center.  </li>
<li>The <strong>trunk release button</strong> up by the driver&#8217;s seat doesn&#8217;t work.  This is relatively easy to fix, but it fails frequently enough that I no longer bother.</li>
<li>Checking the codes for the frequent <strong>check engine light always returns 12 and 21</strong> - one is a power failure notice (i.e. the battery was disconnected in the past 15 starts) that should have long ago expired, and the other tells me I have a problem with an oxygen sensor.</li>
</ol>
<p>That&#8217;s quite a list, and I&#8217;m not actually sure it&#8217;s complete.  That said, the car still gets me from A to B, and despite its flaws, I love it.  </p>
<p>If you&#8217;re familiar with my ride and notice that I&#8217;ve missed anything, let me know.  If you&#8217;re impressed that I&#8217;m still alive after driving this, and frightened that I still drive in traffic in Texas, let me know that, too.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/&amp;title=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F" title="Add 'Dude, Where&#8217;s my Warranty?' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to Del.icio.us" alt="Add 'Dude, Where&#8217;s my Warranty?' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/&amp;title=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F" title="Add 'Dude, Where&#8217;s my Warranty?' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to digg" alt="Add 'Dude, Where&#8217;s my Warranty?' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F&amp;u=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/" title="Add 'Dude, Where&#8217;s my Warranty?' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to FURL" alt="Add 'Dude, Where&#8217;s my Warranty?' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/&amp;title=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F" title="Add 'Dude, Where&#8217;s my Warranty?' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to reddit" alt="Add 'Dude, Where&#8217;s my Warranty?' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/" title="Add 'Dude, Where&#8217;s my Warranty?' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to Technorati" alt="Add 'Dude, Where&#8217;s my Warranty?' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/&amp;title=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F&amp;description=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F" title="Add 'Dude, Where&#8217;s my Warranty?' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to Ma.gnolia" alt="Add 'Dude, Where&#8217;s my Warranty?' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/&amp;title=Dude%2C+Where%26%238217%3Bs+my+Warranty%3F" title="Add 'Dude, Where&#8217;s my Warranty?' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to Stumble Upon" alt="Add 'Dude, Where&#8217;s my Warranty?' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/" title="Add 'Dude, Where&#8217;s my Warranty?' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Dude, Where&#8217;s my Warranty?' to Bloglines" alt="Add 'Dude, Where&#8217;s my Warranty?' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=uylXhgRkKuA:4kgC3xb23LE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=uylXhgRkKuA:4kgC3xb23LE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=uylXhgRkKuA:4kgC3xb23LE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=uylXhgRkKuA:4kgC3xb23LE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=uylXhgRkKuA:4kgC3xb23LE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=uylXhgRkKuA:4kgC3xb23LE:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/08/06/dude-wheres-my-warranty/</feedburner:origLink></item>
		<item>
		<title>Project Euler #30: Feel the Power</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/5OHl6mIcN1k/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 23:28:42 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Euler]]></category>

	<!-- AutoMeta Start -->
	<category>project</category>
	<category>euler</category>
	<category>mathematics</category>
	<category>programming</category>
	<category>LINQ</category>
	<category>lambda</category>
	<category>C</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/</guid>
		<description><![CDATA[Taking on problem #30 on Project Euler today, revealing numbers that are more than the sum of their very powerful parts.]]></description>
			<content:encoded><![CDATA[<p>Continuing with the <a href="http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/">new series on Project Euler</a> I&#8217;m tackling <a href="http://projecteuler.net/index.php?section=problems&#038;id=30">problem #30</a>:</p>
<blockquote><p>
Surprisingly there are only three numbers that can be written as the sum of fourth powers of their digits:</p>
<p>    1634 = 1<sup>4</sup> + 6<sup>4</sup> + 3<sup>4</sup> + 4<sup>4</sup><br />
    8208 = 8<sup>4</sup> + 2<sup>4</sup> + 0<sup>4</sup> + 8<sup>4</sup><br />
    9474 = 9<sup>4</sup> + 4<sup>4</sup> + 7<sup>4</sup> + 4<sup>4</sup></p>
<p>As 1 = 1<sup>4</sup> is not a sum it is not included.</p>
<p>The sum of these numbers is 1634 + 8208 + 9474 = 19316.</p>
<p>Find the sum of all the numbers that can be written as the sum of fifth powers of their digits.
</p></blockquote>
<h3>Let&#8217;s break it down</h3>
<p>Here&#8217;s what we need:</p>
<ul>
<li>A function to break an input number into its digits and find the sum of those digits each raised to a given power</li>
<li>A loop to go through a reasonable set of numbers and test each one (reasonable in that we don&#8217;t expect numbers higher than the end of our limit will exhibit the features we&#8217;re testing for)</li>
<li>A means to compare a number against the sum of its digits (trivial)</li>
</ul>
<h3>Digitize and Powerify</h3>
<p>Here&#8217;s our function taking a number and power as inputs; passing in the power that we&#8217;re raising digits to lets us solve the question with 6th powers, 10th powers, etc.<br />
<code>
<pre>
    private int FindSumOfPowers(double inputNumber, double power)
    {
        int returnValue = 0;
        int tempValue = 0;
        foreach (char c in inputNumber.ToString())
        {
            tempValue = (int)Math.Pow(Convert.ToDouble(c.ToString()), power);
            returnValue += tempValue;

        }
        return returnValue;
    }
</pre>
<p></code></p>
<h3>Feeding our function</h3>
<p>Yep, that&#8217;s all there is to it; let&#8217;s put pieces together and pull out numbers matching our criteria into a collection:</p>
<p><code>
<pre>
    protected void Page_Load(object sender, EventArgs e)
    {
        double power = 5;
        var results = from p in Enumerable.Range(2, 10000000)
                      let sumofPowers = FindSumOfPowers(p, power)
                      where p == sumofPowers
                      select new { p, sumofPowers };

        foreach (var result in results)
        {
            Response.Write(result.p.ToString() + "&lt;br/&gt;");
        }
        Response.Write("===========================&lt;br/&gt;");
        Response.Write(results.Sum(result => { return result.p;}));
    }
</pre>
<p></code></p>
<p>I chose to run this code until the number 10,000,000, at which I felt confident I had run through all the possible numbers.    We skip 1 because as the problem stated that number doesn&#8217;t count.  We&#8217;re using some simple LINQ to loop through the numbers in our range and pull out the values that are equal to the return value of <em>FindSumOfPowers(&#8230;)</em>.  The anonymous variable <em>results</em> will be an Inumerable<> holding our matching numbers (technicalliy, the number and the calculated sum, which by the where clause are the same).  Finally, we&#8217;ll use the <em>Sum()</em> extension method with a lambda expression telling it to use the &#8220;p&#8221; property when summing the collection.  </p>
<h3>Your turn</h3>
<p>This certainly can&#8217;t be the most efficient or elegant solution; anyone have some pointers on speeding this up or making it better? Does your language run circles around C# on this problem?</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/&amp;title=Project+Euler+%2330%3A+Feel+the+Power" title="Add 'Project Euler #30: Feel the Power' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Project Euler #30: Feel the Power' to Del.icio.us" alt="Add 'Project Euler #30: Feel the Power' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/&amp;title=Project+Euler+%2330%3A+Feel+the+Power" title="Add 'Project Euler #30: Feel the Power' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Project Euler #30: Feel the Power' to digg" alt="Add 'Project Euler #30: Feel the Power' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Project+Euler+%2330%3A+Feel+the+Power&amp;u=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/" title="Add 'Project Euler #30: Feel the Power' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Project Euler #30: Feel the Power' to FURL" alt="Add 'Project Euler #30: Feel the Power' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/&amp;title=Project+Euler+%2330%3A+Feel+the+Power" title="Add 'Project Euler #30: Feel the Power' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Project Euler #30: Feel the Power' to reddit" alt="Add 'Project Euler #30: Feel the Power' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/" title="Add 'Project Euler #30: Feel the Power' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Project Euler #30: Feel the Power' to Technorati" alt="Add 'Project Euler #30: Feel the Power' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/&amp;title=Project+Euler+%2330%3A+Feel+the+Power&amp;description=Project+Euler+%2330%3A+Feel+the+Power" title="Add 'Project Euler #30: Feel the Power' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Project Euler #30: Feel the Power' to Ma.gnolia" alt="Add 'Project Euler #30: Feel the Power' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/&amp;title=Project+Euler+%2330%3A+Feel+the+Power" title="Add 'Project Euler #30: Feel the Power' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Project Euler #30: Feel the Power' to Stumble Upon" alt="Add 'Project Euler #30: Feel the Power' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/" title="Add 'Project Euler #30: Feel the Power' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Project Euler #30: Feel the Power' to Bloglines" alt="Add 'Project Euler #30: Feel the Power' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=5OHl6mIcN1k:0_Pgirb99CU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=5OHl6mIcN1k:0_Pgirb99CU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=5OHl6mIcN1k:0_Pgirb99CU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=5OHl6mIcN1k:0_Pgirb99CU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=5OHl6mIcN1k:0_Pgirb99CU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=5OHl6mIcN1k:0_Pgirb99CU:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/07/09/project-euler-30-feel-the-power/</feedburner:origLink></item>
		<item>
		<title>On not giving up when you think you suck</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/qUbc0rFVpwE/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 02:15:54 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Inspiration]]></category>

	<!-- AutoMeta Start -->
	<category>Ira</category>
	<category>Glass</category>
	<category>43</category>
	<category>folders</category>
	<category>creative</category>
	<category>not</category>
	<category>giving</category>
	<category>up</category>
	<category>Inspiration</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/</guid>
		<description><![CDATA[Ira Glass, an accomplished radio and television personality, shares some thoughts on closing the gap between how good you are now and what you know "good" really is.]]></description>
			<content:encoded><![CDATA[<blockquote><p>
&#8220;If you&#8217;re not failing all the time, you&#8217;re not putting yourself in a situation to get super lucky.&#8221; - Ira Glass
</p></blockquote>
<p>I saw <a href="http://www.43folders.com/2008/07/07/ira-glass-working-through-suck">this</a> on <a href="http://www.43folders.com/">43 Folders</a> today, and felt it a good thing to share.  <a href="http://en.wikipedia.org/wiki/Ira_Glass">Ira Glass</a> is the host and producer of <a href="http://www.thisamericanlife.com"><em>This American Life</em></a> and is a fixture in television and radio.  In the video below he talks about not giving up when what you produce doesn&#8217;t come close to what you know is good, specifically if you&#8217;re in the creative fields and working with stories, drawings, comics, etc..  Per Ira, the <strong>trick is to just keep producing</strong>, and eventually you&#8217;ll close the cap between where you are and where you want to be.  Watch the whole clip (5 minutes), it&#8217;s worth it.  </p>
<div style="text-align:center">
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/-hidvElQ0xE&#038;hl=en&#038;fs=1"></param>
<param name="allowFullScreen" value="true"></param>
<p><embed src="http://www.youtube.com/v/-hidvElQ0xE&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
</div>
<p>This clip is part of a series on storytelling; take a look at the others are YouTube for some more good stuff, like the quote at the top of the page.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/&amp;title=On+not+giving+up+when+you+think+you+suck" title="Add 'On not giving up when you think you suck' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'On not giving up when you think you suck' to Del.icio.us" alt="Add 'On not giving up when you think you suck' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/&amp;title=On+not+giving+up+when+you+think+you+suck" title="Add 'On not giving up when you think you suck' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'On not giving up when you think you suck' to digg" alt="Add 'On not giving up when you think you suck' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=On+not+giving+up+when+you+think+you+suck&amp;u=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/" title="Add 'On not giving up when you think you suck' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'On not giving up when you think you suck' to FURL" alt="Add 'On not giving up when you think you suck' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/&amp;title=On+not+giving+up+when+you+think+you+suck" title="Add 'On not giving up when you think you suck' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'On not giving up when you think you suck' to reddit" alt="Add 'On not giving up when you think you suck' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/" title="Add 'On not giving up when you think you suck' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'On not giving up when you think you suck' to Technorati" alt="Add 'On not giving up when you think you suck' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/&amp;title=On+not+giving+up+when+you+think+you+suck&amp;description=On+not+giving+up+when+you+think+you+suck" title="Add 'On not giving up when you think you suck' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'On not giving up when you think you suck' to Ma.gnolia" alt="Add 'On not giving up when you think you suck' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/&amp;title=On+not+giving+up+when+you+think+you+suck" title="Add 'On not giving up when you think you suck' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'On not giving up when you think you suck' to Stumble Upon" alt="Add 'On not giving up when you think you suck' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/" title="Add 'On not giving up when you think you suck' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'On not giving up when you think you suck' to Bloglines" alt="Add 'On not giving up when you think you suck' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=qUbc0rFVpwE:hYYkqvVKNNs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=qUbc0rFVpwE:hYYkqvVKNNs:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=qUbc0rFVpwE:hYYkqvVKNNs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=qUbc0rFVpwE:hYYkqvVKNNs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=qUbc0rFVpwE:hYYkqvVKNNs:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=qUbc0rFVpwE:hYYkqvVKNNs:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/07/07/on-not-giving-up-when-you-think-you-suck/</feedburner:origLink></item>
		<item>
		<title>Print out ordinal indicator (e.g. “th”, “nd”) for any number in C#</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/eR-zqPqB2Io/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 00:36:43 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[.NET]]></category>

	<!-- AutoMeta Start -->
	<category>NET</category>
	<category>utility</category>
	<category>function</category>
	<category>ordinal</category>
	<category>indicator</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/</guid>
		<description><![CDATA[A simple utility function for printing out the ordinal indicator for any number. ]]></description>
			<content:encoded><![CDATA[<p>This is a simple utility function for printing the ordinal indicator for any integer.  As with other utility posts, this isn&#8217;t rocket science, but handy to have in specific situations.  The only thing to notice here is that 11, 12 and 13 are special cases that always have &#8220;th&#8221; as their ordinal indicator.  There are other mathematical ways to handle 11-13, but I think it&#8217;s more clear to see it explicitly handled.</p>
<p><code>
<pre>
static private string NumberEnding(int number)
    {
        string numberAsString = number.ToString();

        //handle everything ending in 11, 12, and 13
        if ((numberAsString.EndsWith("11")) ||
           (numberAsString.EndsWith("12")) ||
           (numberAsString.EndsWith("13")))
        {
            return "th";
        }
        else
        {
            switch (number % 10)
            {
                case 1: return "st";
                case 2: return "nd";
                case 3: return "rd";
                default: return "th";
            }
        }
    }
</pre>
<p></code></p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/&amp;title=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Del.icio.us" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/&amp;title=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to digg" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23&amp;u=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to FURL" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/&amp;title=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to reddit" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Technorati" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/&amp;title=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23&amp;description=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Ma.gnolia" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/&amp;title=Print+out+ordinal+indicator+%28e.g.+%26%238220%3Bth%26%238221%3B%2C+%26%238220%3Bnd%26%238221%3B%29+for+any+number+in+C%23" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Stumble Upon" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Bloglines" alt="Add 'Print out ordinal indicator (e.g. &#8220;th&#8221;, &#8220;nd&#8221;) for any number in C#' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=eR-zqPqB2Io:2IDREH-gNIw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=eR-zqPqB2Io:2IDREH-gNIw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=eR-zqPqB2Io:2IDREH-gNIw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=eR-zqPqB2Io:2IDREH-gNIw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=eR-zqPqB2Io:2IDREH-gNIw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=eR-zqPqB2Io:2IDREH-gNIw:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/07/06/print-out-ordinal-indicator-eg-th-nd-for-any-number-in-c/</feedburner:origLink></item>
		<item>
		<title>New Series on Project Euler</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/tdBL4Zl_6Nk/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 18:43:04 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[.NET]]></category>

		<category><![CDATA[Euler]]></category>

		<category><![CDATA[LINQ]]></category>

	<!-- AutoMeta Start -->
	<category>Project</category>
	<category>Euler</category>
	<category>LINQ</category>
	<category>anonymous</category>
	<category>type</category>
	<category>NET</category>
	<category>C</category>
	<category>Bill</category>
	<category>Wagner</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/</guid>
		<description><![CDATA[Starting a new set of posts on <a href="http://www.projecteuler.net">Project Euler</a> to showcase some fun C# code, and to satisfy my math-geek needs.]]></description>
			<content:encoded><![CDATA[<p>A few months ago I found <a href="http://srtsolutions.com/blogs/billwagner/">Bill Wagner&#8217;s website</a> and was interested in his series on Project Euler. In short <a href="http://www.projecteuler.net/">Project Euler</a> provides a way to learn more about mathematics and have some fun doing it; Bill was using the problems to showcase interesting .NET features, primarily LINQ, starting with the first Euler problem and going in order.  I love this idea so going to do the same, but without going in order, with respect to Bill.  </p>
<p>First off is <a href="http://projecteuler.net/index.php?section=problems&#038;id=8">Problem #8</a>:</p>
<blockquote><p>Find the greatest product of five consecutive digits in the 1000-digit number. </p></blockquote>
<p>The huge number is:</p>
<p><span style="font-family:Courier New;"><br />
7316717653133062491922511967442657474235534919434969835203127745063262395783180169848018694788<br />
5184858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522<br />
7443043557668966489504452445231617318564030987111217223831136222989342338030813533627661428280<br />
6444486645238749303589072962904915604407723907138105158593079608667017242712188399879790879227<br />
4921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360<br />
4839586446706324415722155397536978179778461740649551492908625693219784686224828397224137565705<br />
6057490261407972968652414535100474821663704844031998900088952434506585412275886668811642717147<br />
9924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421<br />
9022671055626321111109370544217506941658960408071984038509624554443629812309878799272442849091<br />
8884580156166097919133875499200524063689912560717606058861164671094050775410022569831552000559<br />
3572972571636269561882670428252483600823257530420752963450<br />
</span></p>
<p>I think the cleanest way to handle this is to get a collection of all X-digit sequences and the product of their digits, and then sort the collection according to what you want.  We&#8217;re going to need a few helper functions, so let&#8217;s get started.</p>
<h3>Finding the product of an X-digit sequence</h3>
<p>First, let&#8217;s make a function that takes a string as input and returns the product of each digit in the string.  I&#8217;m going to assume the string contains only numeric characters for this example, but in the field you&#8217;d of course want to check that.  Also this function shouldn&#8217;t care how long the sequence is, allowing us to later find 3-digit, 10-digit, or 15-digit sequence products if we choose.</p>
<p><code></p>
<pre>
    private double MultiplySequence(string sequence)
    {
        double finalValue = 1; 

        foreach (char c in sequence)
        {
            finalValue *= Convert.ToDouble(c.ToString());
        }
        return finalValue;
    }
</pre>
<p></code></p>
<p>The function above simply loops through all the characters in a string, converts the character to a double, and then multiples it against the other digits, with <em>finalValue</em> holding the resulting product of all the digits in the string.</p>
<h3>Running through the sequences</h3>
<p>We&#8217;re going to want to work with a collection of all the sequences, so we need some code to generate them for us.</p>
<p><code>
<pre>
    private IEnumerable<string> GetSequences(string originalSequence, int subsequenceLength)
    {
        int originalLength = originalSequence.Length;
        int index = 0;

        while (index + subsequenceLength <= originalLength)
        {
            yield return originalSequence.Substring(index, subsequenceLength);
            index++;
        }
    }
}</pre>
<p></code></p>
<p>We&#8217;re passing in a string for the original sequence (our 1000-digit number) and an integer specify the length of sequence we want.  We simply loop through our input sequence stopping at the last full subsequence (of length subsequenceLength).  Note the <em>yield return</em> syntax here; we&#8217;re making use of a custom iterator to return the values we want.  Using this is the same as creating a IEnumerable<string> collection and then adding the substrings we want to it during each pass of the <em>for</em> loop and returning the collection.  There&#8217;s a lot of other cool stuff you can do with them that we&#8217;ll hopefully cover in later Euler problems.</p>
<h3>Fetching our sequences and results</h3>
<p>Now that we have our pieces in place, let&#8217;s toss in our inputs and use some LINQ to pull out the meaningful data:</p>
<p><code>
<pre>

    protected void Page_Load(object sender, EventArgs e)
    {
        string hugeNumber = "731671765313306249192251196744....(removed for brevity)...";

        var final = from sequence in GetSequences(hugeNumber, 5)
                    where !sequence.Contains('0')
                    let multipliedResult = MultiplySequence(sequence)
                    orderby multipliedResult descending
                    select new { sequence, multipliedResult };

        Response.Write("Winner: " + final.First().multipliedResult);

        Response.Write("&lt;br/&gt;&lt;br/&gt;Full Results:&lt;br/&gt;=========================&lt;br/&gt;");
        foreach (var tempSequence in final)
        {
            Response.Write(tempSequence.sequence + " => " + tempSequence.multipliedResult + "&lt;br/&gt;");
        }
    }
</pre>
<p></code></p>
<p>In the code above we&#8217;re using LINQ to loop through the IEnumerable returned by the <em>GetSequence</em> function we defined.  We ignore any sequences that contain a zero (as the product will be 0).  For each sequence we&#8217;re defining a variable called <em>multipliedResult</em> and setting it&#8217;s valued to the product obtained through out <em>MultiplySequence</em> function.  We then order all the results by the multipledResult, and finally fill out <em>final</em> variable with anonymous types containing each sequence and its product.  The <em>Response.Write</em>s show the answer we&#8217;re looking for, and then show all the ordered results.  Because one of our parameters to <em>GetSequences</em> is the length of sequence to use, we can easily run our code to find the greatest product of 10, 15, 31, etc. consequence digits in our huge number.  </p>
<h3>Final Thoughts</h3>
<p>I had a lot of fun with this, and am looking forward to working through other Euler problems.  The <a href="http://www.projecteuler.net">Project Euler website</a> has a place for you to sign up and submit your own answers; if you enjoyed this, go ahead and give one of the other problems a shot on your own.  It&#8217;s geeky, but fun.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/&amp;title=New+Series+on+Project+Euler" title="Add 'New Series on Project Euler' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'New Series on Project Euler' to Del.icio.us" alt="Add 'New Series on Project Euler' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/&amp;title=New+Series+on+Project+Euler" title="Add 'New Series on Project Euler' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'New Series on Project Euler' to digg" alt="Add 'New Series on Project Euler' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=New+Series+on+Project+Euler&amp;u=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/" title="Add 'New Series on Project Euler' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'New Series on Project Euler' to FURL" alt="Add 'New Series on Project Euler' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/&amp;title=New+Series+on+Project+Euler" title="Add 'New Series on Project Euler' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'New Series on Project Euler' to reddit" alt="Add 'New Series on Project Euler' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/" title="Add 'New Series on Project Euler' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'New Series on Project Euler' to Technorati" alt="Add 'New Series on Project Euler' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/&amp;title=New+Series+on+Project+Euler&amp;description=New+Series+on+Project+Euler" title="Add 'New Series on Project Euler' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'New Series on Project Euler' to Ma.gnolia" alt="Add 'New Series on Project Euler' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/&amp;title=New+Series+on+Project+Euler" title="Add 'New Series on Project Euler' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'New Series on Project Euler' to Stumble Upon" alt="Add 'New Series on Project Euler' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/" title="Add 'New Series on Project Euler' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'New Series on Project Euler' to Bloglines" alt="Add 'New Series on Project Euler' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=tdBL4Zl_6Nk:VabXvk7tm3Y:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=tdBL4Zl_6Nk:VabXvk7tm3Y:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=tdBL4Zl_6Nk:VabXvk7tm3Y:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=tdBL4Zl_6Nk:VabXvk7tm3Y:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=tdBL4Zl_6Nk:VabXvk7tm3Y:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=tdBL4Zl_6Nk:VabXvk7tm3Y:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/07/05/new-series-on-project-euler/</feedburner:origLink></item>
		<item>
		<title>Document your To-dos in Visual Studio’s Task List</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/vBRWKLt7O0s/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 03:34:46 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Visual Studio]]></category>

		<category><![CDATA[.NET]]></category>

	<!-- AutoMeta Start -->
	<category>visual</category>
	<category>studio</category>
	<category>task</category>
	<category>list</category>
	<category>todo</category>
	<category>comment    you</category>
	<category>noticed</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/</guid>
		<description><![CDATA[Visual Studio provides a neat way to see all the to-dos you've left for yourself as comments inside your code.  This was handy today as I was documenting a project that will be shelved for a little while.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jeffsargent.com/wp/wp-content/uploads/2008/06/todo-sc.jpg" title="todo-sc.jpg" alt="todo-sc.jpg" align="right" border="1" hspace="2" />As a result of some reprioritization of projects in the office today, I&#8217;m tabling the project I&#8217;ve been working on and will be devoting my time to one of the higher priority projects.  This gives me a day to wrap up any loose ends and put the project in a state where it can be picked up again a few weeks or months later by myself or other members of the team.  It gives me a good chance to share a little tip that you may or may not know.</p>
<h3>Todo or Not Todo</h3>
<p>You may have noticed that when Visual Studio automatically generates some code for you, there sometimes is a comment in the generated code akin to &#8220;//TODO: Implement logic here&#8221;.  If you go to View -&gt; Task List and select &#8220;Comments&#8221; from the dropdown, you&#8217;ll see that &#8220;TODO&#8221; comment in the list.  Anywhere in your code that you start a comment with &#8220;TODO&#8221; you&#8217;ll find a corresponding entry in the Task List.  Cool, huh?</p>
<p><img src="http://www.jeffsargent.com/wp/wp-content/uploads/2008/06/tasklist-sc.jpg" title="tasklist-sc.jpg" alt="tasklist-sc.jpg" align="left" border="1" hspace="2" />This was handy for me today as I went through a project in the midstream of development and documented all the things I knew I was planning to do but hadn&#8217;t finished yet.   Weeks, or even months from now, if I were to pick up the project without these comments, I&#8217;d need to review each portion of code to see where I had left off.  Worse, if another developer new to the project had to pick up the project and run with it, they&#8217;d have a longer learning curve getting a feel for what the project was doing.  Now of course there is hopefully other documentation in the form of use cases and such to provide some direction, but a little commentary at the implementation level comes in really handy.</p>
<p>As usual, it&#8217;s not rocket science, but pretty handy when you need it.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/&amp;title=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Del.icio.us" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/&amp;title=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to digg" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List&amp;u=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to FURL" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/&amp;title=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to reddit" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Technorati" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/&amp;title=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List&amp;description=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Ma.gnolia" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/&amp;title=Document+your+To-dos+in+Visual+Studio%26%238217%3Bs+Task+List" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Stumble Upon" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Bloglines" alt="Add 'Document your To-dos in Visual Studio&#8217;s Task List' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=vBRWKLt7O0s:qc-0GMbZl8g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=vBRWKLt7O0s:qc-0GMbZl8g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=vBRWKLt7O0s:qc-0GMbZl8g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=vBRWKLt7O0s:qc-0GMbZl8g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=vBRWKLt7O0s:qc-0GMbZl8g:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=vBRWKLt7O0s:qc-0GMbZl8g:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/06/23/document-your-to-dos-in-visual-studios-task-list/</feedburner:origLink></item>
		<item>
		<title>Utility for Painless Month Dropdowns in .NET</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/L6_bQp_PZNA/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 18:50:02 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[.NET]]></category>

	<!-- AutoMeta Start -->
	<category>utility</category>
	<category>net</category>
	<category>class</category>
	<category>month</category>
	<category>dropdown</category>
	<category>enumeration</category>
	<category>enumerable</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/</guid>
		<description><![CDATA[I wrote a little utility function for returning a range of months in different formats for quickly databinding a dropdown.  As a bonus, there's a quick trick for binding day and year dropdowns painlessly.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a fan of having a utility class in my .NET solutionsto handle the bits of repeated functionality present throughout the projects.   Today I found myself needing several day/month/year dropdowns in different controls, and decided I&#8217;d throw together a utility to return the months for me as numeric values, full month names, or abbreviated month names.  It&#8217;s not rocket science, but someone may find this handy.</p>
<p><strong>Note</strong>: the code below is assumed to be contained in a static class called Utilities, that I&#8217;ll call later from the .ASPX page.</p>
<p><strong>Note part deux:</strong> please forgive the lack of indentation and carriage returns, Wordpress is not playing nicely, and I don&#8217;t have an opportunity right now to trick it in to doing what I want.  Will fix soon.</p>
<h3>Creating the utility function</h3>
<p>Because I want to toggle between numeric, full and abbreviated month values, I first need an Enumeration:<br />
<code><br />
public enum MonthListType : int {<br />
MonthNumbers,<br />
FullMonthNames,<br />
AbbreviatedMonthNames<br />
}</code></p>
<p>Now for a function that will return the months in the format I want:<code></code></p>
<p><code>public static Dictionary&lt;string, string&gt; GetMonthList(MonthListType type)<br />
{<br />
Dictionary&lt;string, string&gt; monthList = new Dictionary&lt;string, string&gt;()<br />
{<br />
{ "01", "January"},<br />
{ "02", "February"},<br />
{ "03", "March"},<br />
{ "04", "April"},<br />
{ "05", "May"},<br />
{ "06", "Jun"},<br />
{ "07", "July"},<br />
{ "08", "August"},<br />
{ "09", "September"},<br />
{ "10", "October"},<br />
{ "11", "November"},<br />
{ "12", "Dec"}<br />
}<br />
switch (type)<br />
{<br />
case MonthListType.MonthNumbers:<br />
return monthList.ToDictionary(m =&gt; m.Key, m =&gt; m.Key);<br />
break;<br />
case MonthListType.FullMonthNames:<br />
return monthList.ToDictionary(m =&gt; m.Key, m =&gt; m.Value);<br />
break;<br />
case MonthListType.AbbreviatedMonthNames:<br />
return monthList.ToDictionary(m =&gt; m.Key, m =&gt; m.Value.Substring(0, 3));<br />
break;<br />
default:<br />
return monthList;<br />
break;<br />
}<br />
}<br />
</code></p>
<h3>Putting our new code to use</h3>
<p>Now in a .ASPX page we&#8217;ll add a dropdown :<code></code></p>
<p><code>&lt;asp:DropDownList ID="MonthDropdown" runat="server"&gt;&lt;/asp:DropDownList&gt;</code></p>
<p>And in the backend wire it up with our months, with the text values being abbreviated month names:<br />
<code><br />
MonthDropdown.DataSource = Utilities.GetMonthList(Utilities.MonthListType.AbbreviatedMonthNames);<br />
MonthDropdown.DataValueField = "key";<br />
MonthDropdown.DataTextField = "value";<br />
MonthDropdown.DataBind();</code></p>
<h3>Bonus - Painless Day and Year Dropdowns</h3>
<p>To quickly generate values 1-31 for our day dropdowns and some reasonable values for our year dropdowns, we can use the handy function Enumerable.Range(start, count) which returns an enumerable list of consecutive integers starting at the integer you specify, and continuing until you have the amount of integers you want.  This is easy to apply for the dropdowns:<br />
<code><br />
DayDropdown.DataSource = Enumerable.Range(1, 31);<br />
DayDropdown.DataBind();<br />
YearDropdown.DataSource = Enumerable.Range(DateTime.Now.Year, 10);<br />
YearDropdown.DataBind();</code></p>
<p>Piece of cake! Leave me a note if you find this useful or have any suggestions to improve it.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/&amp;title=Utility+for+Painless+Month+Dropdowns+in+.NET" title="Add 'Utility for Painless Month Dropdowns in .NET' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to Del.icio.us" alt="Add 'Utility for Painless Month Dropdowns in .NET' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/&amp;title=Utility+for+Painless+Month+Dropdowns+in+.NET" title="Add 'Utility for Painless Month Dropdowns in .NET' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to digg" alt="Add 'Utility for Painless Month Dropdowns in .NET' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Utility+for+Painless+Month+Dropdowns+in+.NET&amp;u=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/" title="Add 'Utility for Painless Month Dropdowns in .NET' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to FURL" alt="Add 'Utility for Painless Month Dropdowns in .NET' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/&amp;title=Utility+for+Painless+Month+Dropdowns+in+.NET" title="Add 'Utility for Painless Month Dropdowns in .NET' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to reddit" alt="Add 'Utility for Painless Month Dropdowns in .NET' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/" title="Add 'Utility for Painless Month Dropdowns in .NET' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to Technorati" alt="Add 'Utility for Painless Month Dropdowns in .NET' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/&amp;title=Utility+for+Painless+Month+Dropdowns+in+.NET&amp;description=Utility+for+Painless+Month+Dropdowns+in+.NET" title="Add 'Utility for Painless Month Dropdowns in .NET' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to Ma.gnolia" alt="Add 'Utility for Painless Month Dropdowns in .NET' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/&amp;title=Utility+for+Painless+Month+Dropdowns+in+.NET" title="Add 'Utility for Painless Month Dropdowns in .NET' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to Stumble Upon" alt="Add 'Utility for Painless Month Dropdowns in .NET' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/" title="Add 'Utility for Painless Month Dropdowns in .NET' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Utility for Painless Month Dropdowns in .NET' to Bloglines" alt="Add 'Utility for Painless Month Dropdowns in .NET' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=L6_bQp_PZNA:X5CP7FgmBwE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=L6_bQp_PZNA:X5CP7FgmBwE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=L6_bQp_PZNA:X5CP7FgmBwE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=L6_bQp_PZNA:X5CP7FgmBwE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=L6_bQp_PZNA:X5CP7FgmBwE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=L6_bQp_PZNA:X5CP7FgmBwE:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/06/20/utility-for-painless-month-dropdowns-in-net/</feedburner:origLink></item>
		<item>
		<title>Improve website forms in .NET with Labels</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/QJ9JCANquyU/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 16:51:13 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Accessibility]]></category>

		<category><![CDATA[.NET]]></category>

	<!-- AutoMeta Start -->
	<category>NET</category>
	<category>label</category>
	<category>control</category>
	<category>form</category>
	<category>web</category>
	<category>accessibility</category>
	<category>Fitt s</category>
	<category>Law</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/</guid>
		<description><![CDATA[Adding a specific parameter to your <asp:Label>s in .NET can quickly make your form more accessible to screen readers, and more usable to sighted users.]]></description>
			<content:encoded><![CDATA[<p>The &lt;label&gt; element in HTML lets you wrap text that when clicked will provide focus to another control specified in the &lt;label&gt;&#8217;s &#8220;for&#8221; attribute:</p>
<p><code>&lt;label for="ctlFirstName"&gt;First Name&lt;/label&gt;<br />
&lt;input id="ctlFirstName" type="text" /&gt;<br />
</code><br />
Clicking on &#8220;First Name&#8221; focuses the cursor inside the ctlFirstName &lt;input /&gt; element;  Were the &lt;input /&gt; a checkbox, clicking the &lt;label&gt; would mark the box as checked.  This improves the accessibility of the form for users browsing with screen readers.  Sighted users have more area to click on to achieve a task, e.g. selecting a checkbox; they can click the words instead of the smaller box, a small application of <a href="http://en.wikipedia.org/wiki/Fitts's_law" title="in short, it is easier for users to click closer, larger areas">Fitt&#8217;s Law</a>.</p>
<p>Unfortunately, this functionality is lost when using a &lt;label&gt; to point to a .NET control, because .NET will rename all the controls at runtime, and the association with the label is lost (e.g. for=&#8221;ctlFirstName&#8221;, but the input is renamed to &#8220;ctl00_ctlFirstName&#8221;).  To prevent this, you can substitute the &lt;label&gt; element with the .NET Label control.  Usually, &lt;asp:label&gt; outputs a &lt;span&gt;;  to make it behave instead as a &lt;label&gt;, use the &#8220;AssociatedControlID&#8221; parameter to specify the associated control:</p>
<p><code>&lt;asp:label runat="server" id="lblFirstname" associatedcontrolid="ctlFirstName"&gt;First Name&lt;/asp:label&gt;<br />
&lt;asp:textbox runat="server" id="ctlFirstName"&gt;&lt;/asp:textbox&gt;<br />
</code><br />
will produce something similar to:<br />
<code><br />
&lt;label for="ctl00_ctlFirstName"&gt;First Name&lt;/label&gt;<br />
&lt;input id="ctl00_ctlFirstName" type="text" /&gt;<br />
</code></p>
<p>And now the &lt;label&gt; and the &lt;input /&gt; stay associated after .NET does its control renaming - woot! All this time and I had  never noticed the &#8220;AssociatedControlID&#8221; attribute.  Now I know, and being a markup junkie, it makes me pretty happy.</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/&amp;title=Improve+website+forms+in+.NET+with+Labels" title="Add 'Improve website forms in .NET with Labels' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Improve website forms in .NET with Labels' to Del.icio.us" alt="Add 'Improve website forms in .NET with Labels' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/&amp;title=Improve+website+forms+in+.NET+with+Labels" title="Add 'Improve website forms in .NET with Labels' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Improve website forms in .NET with Labels' to digg" alt="Add 'Improve website forms in .NET with Labels' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Improve+website+forms+in+.NET+with+Labels&amp;u=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/" title="Add 'Improve website forms in .NET with Labels' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Improve website forms in .NET with Labels' to FURL" alt="Add 'Improve website forms in .NET with Labels' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/&amp;title=Improve+website+forms+in+.NET+with+Labels" title="Add 'Improve website forms in .NET with Labels' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Improve website forms in .NET with Labels' to reddit" alt="Add 'Improve website forms in .NET with Labels' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/" title="Add 'Improve website forms in .NET with Labels' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Improve website forms in .NET with Labels' to Technorati" alt="Add 'Improve website forms in .NET with Labels' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/&amp;title=Improve+website+forms+in+.NET+with+Labels&amp;description=Improve+website+forms+in+.NET+with+Labels" title="Add 'Improve website forms in .NET with Labels' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Improve website forms in .NET with Labels' to Ma.gnolia" alt="Add 'Improve website forms in .NET with Labels' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/&amp;title=Improve+website+forms+in+.NET+with+Labels" title="Add 'Improve website forms in .NET with Labels' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Improve website forms in .NET with Labels' to Stumble Upon" alt="Add 'Improve website forms in .NET with Labels' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/" title="Add 'Improve website forms in .NET with Labels' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Improve website forms in .NET with Labels' to Bloglines" alt="Add 'Improve website forms in .NET with Labels' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=QJ9JCANquyU:9CcFxBFLjeA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=QJ9JCANquyU:9CcFxBFLjeA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=QJ9JCANquyU:9CcFxBFLjeA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=QJ9JCANquyU:9CcFxBFLjeA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=QJ9JCANquyU:9CcFxBFLjeA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=QJ9JCANquyU:9CcFxBFLjeA:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/06/18/improve-website-forms-in-net-with-labels/</feedburner:origLink></item>
		<item>
		<title>Lego Recreations of Famous Photographs</title>
		<link>http://feedproxy.google.com/~r/jeffsargent/~3/VxZxP2YQa7Y/</link>
		<comments>http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 17:08:25 +0000</pubDate>
		<dc:creator>Jeff Sargent</dc:creator>
		
		<category><![CDATA[Neat Stuff]]></category>

	<!-- AutoMeta Start -->
	<category>famous</category>
	<category>photograph</category>
	<category>lego</category>
	<category>recreations</category>
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/</guid>
		<description><![CDATA[Recreations of famous photographs with legos.  A good example to support my firm belief that legos are the coolest toy ever.  The awesome overfloweth.]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jeffsargent.com/wp/wp-content/uploads/2008/06/lego-iwo-jima.jpg" title="lego-iwo-jima.jpg" alt="lego-iwo-jima.jpg" style="float: right" border="1" height="200" hspace="4" width="250" /><br />
This is too cool not to share.  <a href="http://www.flickr.com/people/balakov/">Balakov</a> has been recreating <a href="http://www.flickr.com/photos/balakov/sets/72157602602191858/detail/">famous photographs with lego pieces</a>.  My favorites are the WWII photographs.  Very cool.  Each recreation also has a link to the original photo for comparisons of awesomeness.</p>
<p>This is further proof to support my long standing assertion that legos are the greatest toy ever created.</p>
<p>Prints are available on RedBubble - I think I may have to get 1-2 of these.</p>
<p>(via <a href="http://wilwheaton.typepad.com/wwdnbackup/2008/06/classic-photos.html" title="Yes, that Wil Wheaton.">wil wheaton</a>)</p>
<!-- Social Bookmarks BEGIN --><div class="social_bookmark"><em>Bookmark to:</em><br /><a class="social_img" href="http://del.icio.us/post?url=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/&amp;title=Lego+Recreations+of+Famous+Photographs" title="Add 'Lego Recreations of Famous Photographs' to Del.icio.us"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/delicious.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to Del.icio.us" alt="Add 'Lego Recreations of Famous Photographs' to Del.icio.us" /> Del.icio.us</a> <a class="social_img" href="http://digg.com/submit?phase=2&amp;url=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/&amp;title=Lego+Recreations+of+Famous+Photographs" title="Add 'Lego Recreations of Famous Photographs' to digg"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/digg.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to digg" alt="Add 'Lego Recreations of Famous Photographs' to digg" /> digg</a> <a class="social_img" href="http://furl.net/storeIt.jsp?t=Lego+Recreations+of+Famous+Photographs&amp;u=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/" title="Add 'Lego Recreations of Famous Photographs' to FURL"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/furl.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to FURL" alt="Add 'Lego Recreations of Famous Photographs' to FURL" /> FURL</a> <a class="social_img" href="http://reddit.com/submit?url=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/&amp;title=Lego+Recreations+of+Famous+Photographs" title="Add 'Lego Recreations of Famous Photographs' to reddit"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/reddit.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to reddit" alt="Add 'Lego Recreations of Famous Photographs' to reddit" /> reddit</a> <a class="social_img" href="http://www.technorati.com/faves?add=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/" title="Add 'Lego Recreations of Famous Photographs' to Technorati"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/technorati.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to Technorati" alt="Add 'Lego Recreations of Famous Photographs' to Technorati" /> Technorati</a> <a class="social_img" href="http://ma.gnolia.com/bookmarklet/add?url=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/&amp;title=Lego+Recreations+of+Famous+Photographs&amp;description=Lego+Recreations+of+Famous+Photographs" title="Add 'Lego Recreations of Famous Photographs' to Ma.gnolia"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/magnolia.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to Ma.gnolia" alt="Add 'Lego Recreations of Famous Photographs' to Ma.gnolia" /> Ma.gnolia</a> <a class="social_img" href="http://www.stumbleupon.com/refer.php?url=http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/&amp;title=Lego+Recreations+of+Famous+Photographs" title="Add 'Lego Recreations of Famous Photographs' to Stumble Upon"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/stumbleupon.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to Stumble Upon" alt="Add 'Lego Recreations of Famous Photographs' to Stumble Upon" /> Stumble Upon</a> <a class="social_img" href="http://www.bloglines.com/sub/http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/" title="Add 'Lego Recreations of Famous Photographs' to Bloglines"><img src="http://www.jeffsargent.com/wp/wp-content/plugins/social_bookmarks/bloglines.png" border="0" title="Add 'Lego Recreations of Famous Photographs' to Bloglines" alt="Add 'Lego Recreations of Famous Photographs' to Bloglines" /> Bloglines</a> </div>
<!-- Social Bookmarks END --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/jeffsargent?a=VxZxP2YQa7Y:inwdJo1nMUg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=VxZxP2YQa7Y:inwdJo1nMUg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=VxZxP2YQa7Y:inwdJo1nMUg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=VxZxP2YQa7Y:inwdJo1nMUg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/jeffsargent?a=VxZxP2YQa7Y:inwdJo1nMUg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/jeffsargent?i=VxZxP2YQa7Y:inwdJo1nMUg:D7DqB2pKExk" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.jeffsargent.com/blog/archives/2008/06/17/lego-recreations-of-famous-photographs/</feedburner:origLink></item>
	</channel>
</rss>
