<?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"?><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:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>The Number 42</title>
	
	<link>http://www.thenumber42.net</link>
	<description>Mostly about software testing, but a little bit about life, the universe, and everything</description>
	<lastBuildDate>Thu, 03 Dec 2009 14:21:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheNumber42" /><feedburner:info uri="thenumber42" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>40.603966</geo:lat><geo:long>-80.287761</geo:long><feedburner:emailServiceId>TheNumber42</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Cool Python Tricks</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/GRPlA6pIz18/</link>
		<comments>http://www.thenumber42.net/2009/12/03/cool-python-tricks/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 14:21:30 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=203</guid>
		<description><![CDATA[This is a very good article with lots of cools things that Python can do.  Python Tips, Tricks, and Hacks
Link Summary

http://www.siafoo.net/article/52
]]></description>
			<content:encoded><![CDATA[<p>This is a very good article with lots of cools things that Python can do.  <a href="http://www.siafoo.net/article/52">Python Tips, Tricks, and Hacks</a></p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://www.siafoo.net/article/52'>http://www.siafoo.net/article/52</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=GRPlA6pIz18:HJjb3n9xiM8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/GRPlA6pIz18" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/12/03/cool-python-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/12/03/cool-python-tricks/</feedburner:origLink></item>
		<item>
		<title>Waiting on the Wave</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/CgbXmNMhHZU/</link>
		<comments>http://www.thenumber42.net/2009/10/06/waiting-on-the-wave/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 16:10:41 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Computer Stuff]]></category>
		<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[collaboration]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[requirements]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=200</guid>
		<description><![CDATA[I'm not really into social media.  I've never really found it all that useful.  However, I must say that I see a serious use case for using Google Wave.  The part that interests me is document collaboration.  For example, one thing I'd use Wave for is requirements document collaboration.  Currently, [...]]]></description>
			<content:encoded><![CDATA[<p>I'm not really into social media.  I've never really found it all that useful.  However, I must say that I see a serious use case for using Google Wave.  The part that interests me is document collaboration.  For example, one thing I'd use Wave for is requirements document collaboration.  Currently, the requirements document is posted as a Word file and then all the stakeholders grab a copy and either mark up the document or email comments.  It is painful to then take all those comments and documents and merge them back together.</p>
<p>Using Wave we would post a requirements document.  Then, since it is possible to start a conversation on any snippet of text each and every requirement could become a discussion.  When a consensus is reached with the stakeholders the document owner could make the changes.  No more random emails or marked up Word documents floating around.  The whole document history and discussion are in one place.  Nice.</p>
<p>Now, if only I could get a Google Wave invitation...</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/v_UyVmITiYQ&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&hl=en&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/v_UyVmITiYQ&rel=0&color1=0xb1b1b1&color2=0xcfcfcf&hl=en&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=CgbXmNMhHZU:ezyCmp_9blM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/CgbXmNMhHZU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/10/06/waiting-on-the-wave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/10/06/waiting-on-the-wave/</feedburner:origLink></item>
		<item>
		<title>Installing Google Gears on Arch Linux</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/Kdc6C3mb0iM/</link>
		<comments>http://www.thenumber42.net/2009/09/21/installing-google-gears-on-arch-linux/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 12:02:05 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Google Gears]]></category>
		<category><![CDATA[Shiretoko]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=197</guid>
		<description><![CDATA[Because of branding issues Arch Linux (and many other distros) must use the current Firefox code name instead of calling it Firefox.  The latest as of this writing is "Shiretoko," which corresponds to Firefox 3.5.  So, it's really the same browser, just a different name.  Anyway, Google Gears refuses to install on [...]]]></description>
			<content:encoded><![CDATA[<p>Because of branding issues <a href="http://www.archlinux.org/">Arch Linux</a> (and many other distros) must use the current Firefox code name instead of calling it Firefox.  The latest as of this writing is "Shiretoko," which corresponds to Firefox 3.5.  So, it's really the same browser, just a different name.  Anyway, <a href="http://gears.google.com">Google Gears</a> refuses to install on Shiretoko because it detects it as Shiretoko and not Firefox.  To get around this problem is very easy.</p>
<p>Open the <em>about:config</em> dialog in Shiretoko.  Then, edit the <em>general.useragent.extra.firefox</em> key to have the value of <em>Firefox/3.5.x</em> (Firefox/3.5.3 as of this writing).  Now, Gears will install just fine.</p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://www.archlinux.org/'>http://www.archlinux.org/</a></li><li><a href='http://gears.google.com'>http://gears.google.com</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=Kdc6C3mb0iM:GkAEHQy4Vgg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/Kdc6C3mb0iM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/09/21/installing-google-gears-on-arch-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/09/21/installing-google-gears-on-arch-linux/</feedburner:origLink></item>
		<item>
		<title>Turn of the Language Bar Forever</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/odLEJ_H6m7g/</link>
		<comments>http://www.thenumber42.net/2009/08/08/turn-of-the-language-bar-forever/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 12:13:28 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[language bar]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=193</guid>
		<description><![CDATA[After much frustration I finally took time to do a search and figure out how to turn off the language bar in Windows.  See this article for details: http://blogs.msdn.com/pstubbs/archive/2005/02/22/378195.aspx
Link Summary

http://blogs.msdn.com...005/02/22/378195.aspx
]]></description>
			<content:encoded><![CDATA[<p>After much frustration I finally took time to do a search and figure out how to turn off the language bar in Windows.  See this article for details: <a href="http://blogs.msdn.com/pstubbs/archive/2005/02/22/378195.aspx">http://blogs.msdn.com/pstubbs/archive/2005/02/22/378195.aspx</a></p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://blogs.msdn.com/pstubbs/archive/2005/02/22/378195.aspx'>http://blogs.msdn.com...005/02/22/378195.aspx</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=odLEJ_H6m7g:vIDmUMs2s6Q:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/odLEJ_H6m7g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/08/08/turn-of-the-language-bar-forever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/08/08/turn-of-the-language-bar-forever/</feedburner:origLink></item>
		<item>
		<title>To Bing or not to Bing</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/1DGCNwU3D6A/</link>
		<comments>http://www.thenumber42.net/2009/08/07/to-bing-or-not-to-bing/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:29:25 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bing]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=182</guid>
		<description><![CDATA[Background
For most tasks that I do Linux is by far my choice.  I am not necessarily a Microsoft basher, as I believe that they definitely have their place in the world and in large have made the computing industry a better place.  However, I was skeptical and did give an eye roll when [...]]]></description>
			<content:encoded><![CDATA[<h2>Background</h2>
<p>For most tasks that I do Linux is by far my choice.  I am not necessarily a Microsoft basher, as I believe that they definitely have their place in the world and in large have made the computing industry a better place.  However, I was skeptical and did give an eye roll when I first heard about <a href="http://www.bing.com" target="_new">Bing</a>, Microsoft's new "decision engine."  To be fair I decided to change my default search engine for one week from Google to Bing.  I changed my home page and the search provider in the Firefox search bar.  Here are my impressions:<br />
<span id="more-182"></span></p>
<h2>Home Page</h2>
<table border="0" cellpadding="5">
<tr>
<td><b>Bing</b></td>
<td>1</td>
</tr>
<tr>
<td><b>Google</b></td>
<td>0</td>
</tr>
</table>
<p>There is a certain appeal to the sparse Google home page.  I am an engineer and I love things that are straight to the point.  So, Google appeals to me on that front.  However, the Bing home page managed to be beautiful and sparse at the same time.  To me it looks as if Bing stole the Google home page layout and then rearranged it slightly and added a background picture and some useful information.  I must say that I am surprised by my decision on this one.  I have been a huge fan of the to-the-point Google home page from day one.  Sorry Google, but I really like the Bing home page.</p>
<h2>Maps</h2>
<table border="0" cellpadding="5">
<tr>
<td><b>Bing</b></td>
<td>1</td>
</tr>
<tr>
<td><b>Google</b></td>
<td>0</td>
</tr>
</table>
<p>Surprising to me this one goes to Bing.  Not only is their presentation better, but the speed is much faster.  For the last several months Google maps has been really slow in loading.  I've talked to several people who have noticed the same thing.  For what seems like forever Google Maps gets stuck on "loading..." for minutes.  OK, I'm sure it's not minutes, but it feels like it.</p>
<p>When Google maps first came out they were so far ahead of Mapquest, the then standard for maps, that it was amazing.  Unfortunatly, it seems that the maps have not continued to be the subject of much active development.</p>
<p>As far as presentation goes, I love the smooth zooming of the maps.  It just seems so fluid in comparison to Google.  Also, the "birds eye" view is a really nice touch and I just can't get by without it now.  Good job Microsoft.</p>
<h2>Shopping</h2>
<table border="0" cellpadding="5">
<tr>
<td><b>Bing</b></td>
<td>1</td>
</tr>
<tr>
<td><b>Google</b></td>
<td>0</td>
</tr>
</table>
<p>I admit that I don't use the shopping feature very often, but from the few searches I've done I like the results in Bing better.  The presentation of the results is far less confusing.  What Bing does that I think makes it shine is they seem to group results by items and then to find the list of retailers you drill down into the item.  Google presents all items from all retailers and I just get lost.</p>
<h2>Search Results</h2>
<table border="0" cellpadding="5">
<tr>
<td><b>Bing</b></td>
<td>0</td>
</tr>
<tr>
<td><b>Google</b></td>
<td>1</td>
</tr>
</table>
<p>Finally, we get to web search results.  This is the feature I consider most important.  After all, why do people visit these sites?  To find information.</p>
<p>Although I like the way the information is shown in Bing their page ranking/searching algorithm falls short of Google.  For many searches Bing shows useful results.  However, too many times this last week I've had to revert back to using Google to find something.  In the end these are portals to find information so although Google loses out in other categories this one carries far more weight.</p>
<p>Two of the searches in particular that dissapointed me are:</p>
<ul>
<li>findbugs</li>
<li>perforce</li>
</ul>
<p>I also tried variations and related searches with these and couldn't get the results I wanted.  For example, when I searched for "findbugs" in Bing I got a bunch of pages that were about FindBugs, but not the home page.  Just now I tried this search again and the home page is the top result, so their page ranking algorithm must have done some learning since I first tried.  Another search term that gave me problems was "perforce."  Now, I happen to know that the home page is perforce.com, but I wanted to see what Bing said.  To my surprise it shows everything but the home page in the search results.  There is the wikipedia article about them and a blog and even an Apache Ant task, but no link to perforce.com.  So, I try the same thing in Google and get what I expect.  Unfortunately, I didn't write down all of my failed Bing searches, but there were several where I ended up resorting to Google for help.</p>
<h2>Conclusion</h2>
<p>I don't use most of the other features of Google or Bing like news, videos, or images, so I didn't comment on them.  Overall I like many things about Bing and will probably continue to use it for many tasks and searches.  However, for the time being they still can't touch the search results from Google and until they improve their search ranking algorithm I'm going to have to stick with Google.</p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://www.bing.com' target="_new">http://www.bing.com</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=1DGCNwU3D6A:ExVDW583W4E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/1DGCNwU3D6A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/08/07/to-bing-or-not-to-bing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/08/07/to-bing-or-not-to-bing/</feedburner:origLink></item>
		<item>
		<title>Sending Email with Python</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/8Kj9eV35ToA/</link>
		<comments>http://www.thenumber42.net/2009/07/28/sending-email-with-python/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 15:04:25 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Computer Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=180</guid>
		<description><![CDATA[I feel like a proud father.  Yesterday I posted my first public Python recipe.  Go check it out: http://code.activestate.com/recipes/576858/.
Link Summary

http://code.activestate.com/recipes/576858/
]]></description>
			<content:encoded><![CDATA[<p>I feel like a proud father.  Yesterday I posted my first public Python recipe.  Go check it out: <a href="http://code.activestate.com/recipes/576858/">http://code.activestate.com/recipes/576858/</a>.</p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://code.activestate.com/recipes/576858/'>http://code.activestate.com/recipes/576858/</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=8Kj9eV35ToA:wxHsY8gBTa8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/8Kj9eV35ToA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/07/28/sending-email-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/07/28/sending-email-with-python/</feedburner:origLink></item>
		<item>
		<title>Animator vs. Animation II</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/rg71OqXgmFc/</link>
		<comments>http://www.thenumber42.net/2009/07/20/animator-vs-animation-ii/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 19:24:35 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=178</guid>
		<description><![CDATA[Very cool sequel to the original.
Animator vs. Animation II by ~alanbecker on deviantART
Link Summary

http://www.deviantart.com/deviation/50891749/http://alanbecker.deviantart.com/http://www.deviantart.com
]]></description>
			<content:encoded><![CDATA[<p>Very cool sequel to the original.<br />
<object width="450" height="342"><param name="movie" value="http://backend.deviantart.com/embed/view.swf" /><param name="flashvars" value="id=50891749&width=1337" /><param name="allowScriptAccess" value="always" /><embed src="http://backend.deviantart.com/embed/view.swf" type="application/x-shockwave-flash" width="450" flashvars="id=50891749&width=1337" height="342" allowscriptaccess="always"></embed></object><br /><a href="http://www.deviantart.com/deviation/50891749/">Animator vs. Animation II</a> by ~<a class="u" href="http://alanbecker.deviantart.com/">alanbecker</a> on <a href="http://www.deviantart.com">deviant</a><a href="http://www.deviantart.com">ART</a></p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://www.deviantart.com/deviation/50891749/'>http://www.deviantart.com/deviation/50891749/</a></li><li><a class="u" href='http://alanbecker.deviantart.com/'>http://alanbecker.deviantart.com/</a></li><li><a href='http://www.deviantart.com'>http://www.deviantart.com</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=rg71OqXgmFc:kAI9LSrLGo8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/rg71OqXgmFc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/07/20/animator-vs-animation-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/07/20/animator-vs-animation-ii/</feedburner:origLink></item>
		<item>
		<title>Animator vs. Animation</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/Cy2pzH6_uIs/</link>
		<comments>http://www.thenumber42.net/2009/07/20/animator-vs-animation/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 19:22:26 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Fun Stuff]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=176</guid>
		<description><![CDATA[This is awesome!
Animator vs. Animation by ~alanbecker on deviantART
Link Summary

http://www.deviantart.com/deviation/34244097/http://alanbecker.deviantart.com/http://www.deviantart.com
]]></description>
			<content:encoded><![CDATA[<p>This is awesome!<br />
<object width="450" height="260"><param name="movie" value="http://backend.deviantart.com/embed/view.swf" /><param name="flashvars" value="id=34244097&width=1337" /><param name="allowScriptAccess" value="always" /><embed src="http://backend.deviantart.com/embed/view.swf" type="application/x-shockwave-flash" width="450" flashvars="id=34244097&width=1337" height="260" allowscriptaccess="always"></embed></object><br /><a href="http://www.deviantart.com/deviation/34244097/">Animator vs. Animation</a> by ~<a class="u" href="http://alanbecker.deviantart.com/">alanbecker</a> on <a href="http://www.deviantart.com">deviant</a><a href="http://www.deviantart.com">ART</a></p>
<div class="link-summarizer">Link Summary
<ul>
<li><a href='http://www.deviantart.com/deviation/34244097/'>http://www.deviantart.com/deviation/34244097/</a></li><li><a class="u" href='http://alanbecker.deviantart.com/'>http://alanbecker.deviantart.com/</a></li><li><a href='http://www.deviantart.com'>http://www.deviantart.com</a></li>
</ul></div><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=Cy2pzH6_uIs:pvzq3F0Iljg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/Cy2pzH6_uIs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/07/20/animator-vs-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/07/20/animator-vs-animation/</feedburner:origLink></item>
		<item>
		<title>Long Sleeps In Python</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/0YZjEk1D_v0/</link>
		<comments>http://www.thenumber42.net/2009/07/15/long-sleeps-in-python/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 19:45:03 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=169</guid>
		<description><![CDATA[There is a portion of my test infrastructure that requires long sleep periods for stability soak testing purposes.  So far the longest stability test run was 9 days.  Originally, I simply used the time.sleep() method from the Python library.  However, and I attribute this to VMware, I found that extremely inaccurate for [...]]]></description>
			<content:encoded><![CDATA[<p>There is a portion of my test infrastructure that requires long sleep periods for stability soak testing purposes.  So far the longest stability test run was 9 days.  Originally, I simply used the time.sleep() method from the Python library.  However, and I attribute this to VMware, I found that extremely inaccurate for long sleep durations.  My test controller is running in a VM and although I have nothing to confirm this I suspect that VMware is doing funny stuff under the covers with the OS timer and that is throwing off the accuracy of time.sleep().  Anyway, here is my solution to the problem.</p>
<pre class="python"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">time</span>
<span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">datetime</span>, timedelta
&nbsp;
<span style="color: #ff7700;font-weight:bold;">def</span> longsleep<span style="color: black;">&#40;</span>minutes<span style="color: black;">&#41;</span>:
    <span style="color: #483d8b;">&quot;&quot;</span><span style="color: #483d8b;">&quot;
    The normal time.sleep() method is not very accurate from inside
    VMware when sleeping for long periods of time.  This method is
    accurate to within +/- 5 seconds of the desired sleep time period.
    For long periods on the order of hours or days this small inaccuracy
    is acceptable.
    &quot;</span><span style="color: #483d8b;">&quot;&quot;</span>
    sleepTimeSec = <span style="color: #ff4500;">60</span> * minutes
    now = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">utcnow</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    td = timedelta<span style="color: black;">&#40;</span>seconds=sleepTimeSec<span style="color: black;">&#41;</span>
    endTime = now + td
    <span style="color: #ff7700;font-weight:bold;">while</span> now &lt;= endTime:
        <span style="color: #dc143c;">time</span>.<span style="color: black;">sleep</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">5</span><span style="color: black;">&#41;</span>
        now = <span style="color: #dc143c;">datetime</span>.<span style="color: black;">utcnow</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre>
<p>The method is accurate to around +/- 5 seconds, but for really long sleep durations 5 seconds is no big deal.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=0YZjEk1D_v0:aVR-I0S-kjU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/0YZjEk1D_v0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/07/15/long-sleeps-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/07/15/long-sleeps-in-python/</feedburner:origLink></item>
		<item>
		<title>Break Even Point for Fuel Efficiency Enhancements</title>
		<link>http://feedproxy.google.com/~r/TheNumber42/~3/gUzsF0K8f5Q/</link>
		<comments>http://www.thenumber42.net/2009/07/01/break-even-point-for-fuel-efficiency-enhancements/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 18:12:03 +0000</pubDate>
		<dc:creator>Isaac</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[MPG]]></category>

		<guid isPermaLink="false">http://www.thenumber42.net/?p=155</guid>
		<description><![CDATA[On my way home from work yesterday I was pondering the question, "if I do modification foo to my car for a cost of bar dollars and it improves my fuel efficiency, then after how many miles is the break even point where that modification becomes cost effective?"  OK, I know that is a somewhat [...]]]></description>
			<content:encoded><![CDATA[<p>On my way home from work yesterday I was pondering the question, "if I do modification foo to my car for a cost of bar dollars and it improves my fuel efficiency, then after how many miles is the break even point where that modification becomes cost effective?"  OK, I know that is a somewhat random question, but those are the types of questions my brain likes to solve.  So, I pulled out a pencil and some paper and after some thought derived the needed equation:</p>
<p><img src='http://s.wordpress.com/latex.php?latex=x%20%3D%20%5Cfrac%7BU_c%20E_1%20E_2%7D%7BP%20%28E_2%20-%20E_1%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x = \frac{U_c E_1 E_2}{P (E_2 - E_1)}' title='x = \frac{U_c E_1 E_2}{P (E_2 - E_1)}' class='latex' /><br />
Where:<br />
x = Miles to break even<br />
Uc = Upgrade cost in dollars<br />
E1 = Fuel economy prior to upgrade (miles/gallon)<br />
E2 = Fuel economy after upgrade (miles/gallon)<br />
P = Price of fuel in dollars/gallon</p>
<p>So, for example, lets say that I put $75 into a modification to my car.  Prior to the modification I got 18MPG and afterwards I get 20MPG.  Let's also say that fuel costs an average of $2.99/gallon.  The calculation would be:<br />
<img src='http://s.wordpress.com/latex.php?latex=x%20%3D%20%5Cfrac%7B75%20%5Ccdot%2018%20%5Ccdot%2020%7D%7B2.99%20%5Ccdot%20%2820%20-%2018%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='x = \frac{75 \cdot 18 \cdot 20}{2.99 \cdot (20 - 18)}' title='x = \frac{75 \cdot 18 \cdot 20}{2.99 \cdot (20 - 18)}' class='latex' /></p>
<p>Which works out to 4515 miles.  So, if my car got 18MPG and I put $75 into a modification that brought the economy up to 20MPG it would take 4515 miles of driving to recover my costs.  Anything after that would be saving me money.</p>
<p>There are a lot of scams out there for fuel saving devices.  <b><em>IF</em></b> you can actually find something that works then you can use the above formula to calculate whether or not it would actually be worth the purchase.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/TheNumber42?a=gUzsF0K8f5Q:_r5UDKIJPUE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/TheNumber42?d=yIl2AUoC8zA" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/TheNumber42/~4/gUzsF0K8f5Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.thenumber42.net/2009/07/01/break-even-point-for-fuel-efficiency-enhancements/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.thenumber42.net/2009/07/01/break-even-point-for-fuel-efficiency-enhancements/</feedburner:origLink></item>
	</channel>
</rss>
