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

<channel>
	<title>sqrt(-1): Jim Carson</title>
	<atom:link href="http://www.jimcarson.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jimcarson.com</link>
	<description>This one goes to eleven.</description>
	<pubDate>Thu, 03 Apr 2008 21:19:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Tape art</title>
		<link>http://www.jimcarson.com/2008/tape-art2/</link>
		<comments>http://www.jimcarson.com/2008/tape-art2/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 03:18:47 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[home improvement]]></category>

		<category><![CDATA[humor]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/?p=774</guid>
		<description><![CDATA[Monday&#8217;s project&#8217;s aftermath:

More in the photo gallery.
]]></description>
			<content:encoded><![CDATA[<p>Monday&#8217;s <a href="http://www.jimcarson.com/2008/tape-art/" target="_blank">project</a>&#8217;s aftermath:</p>
<p><img class="alignnone" src="http://farm4.static.flickr.com/3125/2384664713_798f0d3ce6.jpg" alt="Tape art in the yard" /></p>
<p>More in the <a href="http://flickr.com/photos/carson/sets/72157604269647088/" target="_blank">photo gallery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/tape-art2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tape Art</title>
		<link>http://www.jimcarson.com/2008/tape-art/</link>
		<comments>http://www.jimcarson.com/2008/tape-art/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 04:49:35 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[geekery]]></category>

		<category><![CDATA[humor]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/?p=773</guid>
		<description><![CDATA[Step 1: Find the vacuum cleaner.  (It&#8217;s in the bedroom.  No, the other bedroom.  Maybe the study?  Oh, wait, that&#8217;s right, I was vacuuming the garage carpets out - look there.)

Step 2: Buy plastic film (not shown) and packing tape in Costco quantities.  (1 CEU = five miles.)

Step 3: Wrap vacuum in [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Step 1:</strong> Find the vacuum cleaner.  (<em>It&#8217;s in the bedroom.  No, the other bedroom.  Maybe the study?  Oh, wait, that&#8217;s right, I was vacuuming the garage carpets out - look there.</em>)</p>
<p><a href="http://flickr.com/photos/carson/2365880947/in/set-72157604269647088/" target="_blank"><img src="http://farm3.static.flickr.com/2055/2365880947_28989f37a3_s.jpg" alt="Step 1: Find the vacuum cleaner" width="75" height="75" /></a></p>
<p><strong>Step 2:</strong> Buy plastic film (not shown) and packing tape in Costco quantities.  (1 <acronym title="Costco Equivalent Unit">CEU</acronym> = five miles.)</p>
<p><a href="http://flickr.com/photos/carson/2366715600/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2010/2366715600_6c7a29e189_s.jpg" alt="Lots o' Tape" width="75" height="75" /></a></p>
<p><strong>Step 3:</strong> Wrap vacuum in plastic film so it doesn&#8217;t spoil.</p>
<p><a href="http://flickr.com/photos/carson/2366715714/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2385/2366715714_30c41ce923_s.jpg" alt="Wrap vacuum in plastic" width="75" height="75" /></a></p>
<p><strong>Step 4:</strong> Wrap plastic film with packing tape.  Men: try not to get tape on your hairy forearms!</p>
<p><a href="http://flickr.com/photos/carson/2365881441/in/set-72157604269647088/"><img src="http://farm4.static.flickr.com/3043/2365881441_43692ee966_s.jpg" alt="Wrap plastic film with packing tape" width="75" height="75" /></a></p>
<p><strong>Step 5:</strong> Mold the edges for authentic look.</p>
<p><a href="http://flickr.com/photos/carson/2365881643/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2361/2365881643_fd5ed8d80b_s.jpg" alt="Step 5: Mold the edges" width="75" height="75" /></a></p>
<p><strong>Step 6:</strong> Take &#8220;before&#8221; photo for future blog entry.</p>
<p><a href="http://flickr.com/photos/carson/2366716342/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2398/2366716342_8f72a63bfb_s.jpg" alt="Step 6a: take photo" width="75" height="75" /></a></p>
<p><strong>Step 7:</strong> <em>Gently</em> cut the cast.</p>
<p><a href="http://flickr.com/photos/carson/2366716588/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2180/2366716588_fa688a097b_s.jpg" alt="Step 7: Cut the cast" width="75" height="75" /></a></p>
<p><strong>Step 8:</strong> Tape seam, admire handiwork.  <em>Lightest&#8230; vacuum&#8230; ever&#8230; </em>and unencumbered by the need for disposable bags.  Or electricity.  Or breakable belts.</p>
<p><a href="http://flickr.com/photos/carson/2365882393/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2022/2365882393_579d305fe0_s.jpg" alt="Step 8: Admire handiwork" width="75" height="75" /></a></p>
<p><strong>Step 9:</strong> Sell faux vacuum on eBay for a million, jillion dollars.   <acronym title="A very tempting after an afternoon of being raked over coals by the executive team..."><strong>Quit day job.</strong></acronym></p>
<p><a href="http://flickr.com/photos/carson/2365882735/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2241/2365882735_1055ca9dd4_m.jpg" alt="Step 9: Profit!" width="180" height="240" /></a></p>
<p><strong>Step 10:</strong> Find other things to wrap!  (<em>Besides </em>the girl!)</p>
<p><a href="http://flickr.com/photos/carson/2365882895/in/set-72157604269647088/"><img src="http://farm3.static.flickr.com/2096/2365882895_f950231952_s.jpg" alt="Step 10: Find other things to wrap" width="75" height="75" /></a></p>
<p>Since tomorrow is April Fools&#8217; Day, the vacuum will mysteriously appear in the middle of my front lawn, underneath the banana tree.  Tropical weather is a state of mind!  (<a href="http://flickr.com/photos/carson/sets/72157604269647088/" target="_self">Flickr gallery</a>.)</p>
<hr /><strong>Inspiration: </strong></p>
<dt>
<ul>
<li>[1] <a title="Mark Jenkins" href="http://www.xmarkjenkinsx.com/outside.html" target="_self">Mark Jenkins</a>.</li>
</ul>
</dt>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/tape-art/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP-vil</title>
		<link>http://www.jimcarson.com/2008/php-vil/</link>
		<comments>http://www.jimcarson.com/2008/php-vil/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 12:32:49 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[Computers]]></category>

		<category><![CDATA[Cool Geek Tricks]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/php-vil/</guid>
		<description><![CDATA[All I wanted to do was migrate my work-related forum to a new host.  Here&#8217;s how it should have worked:

Copy stuff over
Edit configuration files
Populate database
rock on

Here&#8217;s how it actually worked:

Copy stuff over
Edit configuration files
Populate database
Software was unable to connect to a database because php5&#8217;s developers do not enable mysql by default.  Their claim, &#8220;This won&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>All I wanted to do was migrate my work-related <a href="http://www.tecplottalk.com" target="_blank">forum</a> to a new host.  Here&#8217;s how it should have worked:</p>
<ol>
<li>Copy stuff over</li>
<li>Edit configuration files</li>
<li>Populate database</li>
<li>rock on</li>
</ol>
<p>Here&#8217;s how it actually worked:</p>
<ol>
<li>Copy stuff over</li>
<li>Edit configuration files</li>
<li>Populate database</li>
<li>Software was unable to connect to a database <a href="http://us.php.net/manual/en/faq.databases.php#faq.databases.mysql.php5" target="_blank">because php5&#8217;s developers do not enable mysql by default</a>.  Their claim, <em>&#8220;This won&#8217;t actually affect that many people.&#8221;  </em>Ex-squeeze me?  <strong>This is like saying you&#8217;re not going to include a fuel system in an automobile, customers can install their own. </strong>  Yes, that wouldn&#8217;t affect many people, if your definition of &#8220;many&#8221; is &#8220;everyone plus one more.&#8221;</li>
<li>For most software, I would expect I could just plop in a runtime library, twiddle a config file, and move on.  Nope.  PHP&#8217;s philosophy is you need to rebuild it from scratch.   They don&#8217;t make this easy, either.  Just replicating the set of options my runtime non-MySQL-aware version had took several hours over a weekend of iteratively downloading, configuring, installing, cursing, updating, reconfiguring, and recursing.  Thirty packages, much of the time guessing the magic name to feed to &#8220;yast&#8221; or resolving dependencies when manually compiling from source.</li>
</ol>
<p><a href="http://www.apachefriends.org/en/team.html" title="Apache Team is awesome" target="_blank"><img src="http://www.jimcarson.com/i/xampp.jpg" alt="XAMPP rules" align="left" height="261" width="130" /></a>A few weeks after recovery, I was talking with someone else about the wiki site I host and he mentioned using <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> on his windows box to test site changes.  Turns out they&#8217;ve done all the heavy lifting by pre-packaging all of the open source runtimes into a clean installation.  It&#8217;s a pretty complete set for Linux, Windows, Mac and even Solaris.</p>
<p>So, there is apparently no need to struggle <strong>with the insanely stupid decision the PHP team made with PHP5</strong> because the <a href="http://www.apachefriends.org" target="_blank">ApacheFriends</a> have taken care of this.</p>
<p>Props to them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/php-vil/feed/</wfw:commentRss>
		</item>
		<item>
		<title>RFID 101</title>
		<link>http://www.jimcarson.com/2008/rfid-101/</link>
		<comments>http://www.jimcarson.com/2008/rfid-101/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 13:20:57 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[learndorphins]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/rfid-101/</guid>
		<description><![CDATA[I don&#8217;t watch much television , but when I do, it&#8217;s because my Tivo&#8217;s found something cool.  Like: last night&#8217;s introduction to RFIDs by Dr. Chris Diorio, chairman and CEO of Impinj[5].  His presentation is available online[1], so I will just summarize some of the things I learned.
Who wants them?
Business!  Among the benefits:

For [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jimcarson.com/i/rfid_image.jpg" alt="rfid" align="right" height="148" width="150" />I don&#8217;t watch much television , but when I do, it&#8217;s because my Tivo&#8217;s found something cool.  Like: last night&#8217;s introduction to RFIDs by Dr. Chris Diorio, chairman and CEO of Impinj[5].  His presentation is available online[1], so I will just summarize some of the things I learned.</p>
<p><strong>Who wants them?</strong><br />
Business!  Among the benefits:</p>
<ul>
<li>For the supplier, RFIDs provide a way to track a product through its complete lifecycle.</li>
<li>For the retailer, it offers quick counting.  UPC codes often require you turn over the object to find the code. (This is one of the annoying aspects of <a href="http://www.jimcarson.com/2004/02/home-depots-selfcheckout-doesn/" target="_blank">self-checkout</a>.)  RFIDs do not require a line of sight to communicate.</li>
<li>For both, there&#8217;s better inventory control.
<ul>
<li>RFIDs are rewritable, allowing the supplier to update information as the product passes through the chain.</li>
<li>By having an RFID reader on the shelf, periodically interrogating the items around it, a retailer can determine when products are running out.  (For high-churn things, this may not make sense.)</li>
<li>It would be possible to triangulate mis-shelved items in a store.</li>
<li>Anti-shoplifting.  For example, if you go into Barnes and Noble, the tags are placed in random books.  The reader is at the door.  The RFID is deactivated at the register.</li>
<li>A supplier can isolate where &#8220;shrinkage&#8221; occurs. (Shrinkage is also known as &#8220;the object fell off the truck.&#8221;)</li>
</ul>
</li>
<li>A broader catalog.  Whereas UPC codes are limited to 100k manufacturers with up to 100k items each (which is more restrictive than it sounds because products can be phased out), RFIDs&#8217; Electronic Product Code fields offer enough items for individual serial numbers, a marketer&#8217;s wet dream.  The 12 bytes break out into[3]:
<ul>
<li>8 bits for a header</li>
<li>28 bits for the company (268,435,455 companies)</li>
<li>24 bits for the object class (16,777,215 groups)</li>
<li>36 bits for the serial number (68,719,476,735 items)</li>
</ul>
<p>The 96-bits could be extended pretty easily, apparently, accommodating the number of Big Macs sold if necessary.</li>
<li>Harder to spoof.  There are apparently scams where people print UPC codes on stick-on labels to fool scanners.  (I suppose this is a variant of the black marker scheme.  I don&#8217;t know if this is as common as <a href="http://seattletimes.nwsource.com/html/localnews/2004302237_webhoax24m.html" target="_blank">people believing what they read on CraigsList</a>.)</li>
</ul>
<p>The potential market for RFIDs was described in the Trillions (Texas &#8220;T&#8221;).</p>
<p><strong>Passive tags are of most commercial interest.</strong></p>
<p>An active tag has a battery: it&#8217;s essentially a radio.   They&#8217;re larger (120 x 100 x 50mm), operate at higher power, considered more reliable and better suited for water-based environments like people[2] or large objects that would be interrogated from far away (think: shipping containers).  Battery life is 5-10 years.</p>
<p>Because passive tags do not have batteries, they&#8217;re smaller, cheaper, and have a potentially unlimited lifespan.  Their power comes from induction in the antenna occurring in certain frequency ranges.   Interrogation ranges vary from a few meters up to 100+ meters[2] on the newer chips.   The tag is a tiny chip about 0.75 mm attached to a piece of paper.  The antenna is silk-screened on with conductive ink.</p>
<p>Wikipedia[2] mentions semi-passive tags that use a battery to power the chip, but inductance to send information back.</p>
<p><strong>Size matters</strong></p>
<p><a href="http://www.technovelgy.com/ct/Science-Fiction-News.asp?NewsNum=939"><img src="http://www.technovelgy.com/graphics/content07/hitachi-mu-chip.jpg" alt="RFID powder" align="right" height="203" width="243" /></a>The grain-sized Impinj ZumaRFID chip field-writable, with an 25&#8242; read/18&#8242; write range.  (The protocols limit the reader to identifying 500 tags per second.) They get about 40,000 of these chips in one 8&#8243; semiconductor wafer.  The sample wafer shown had a lot of empty space on it, presumably for testing chips.</p>
<p>The chip has 41,798 transistors (compared to 29,000 on the original Intel 8086).  Power consumption is 8 <em>microwatts</em>, or 1/500,000th the original 8086.  Subsequent chips[5] have 50% more transistors in 30% less area, but with similar power consumption.</p>
<p>The antennas are the largest part of the package[7].  The reader can process up to 500 RFIDs per second[1].  However, success rates in the field are still in the 80th percentile[2], slowing the adoption by large agencies like Wal-Mart and the Department of Defense[6].</p>
<p><strong>Tag, you&#8217;re it!</strong></p>
<p>The communication protocol was described as being analogous to the reader having a flashlight and tag having a mirror.  To send information to the tag, the reader modulates the &#8220;light&#8221; sent to the tag.  To receive information, it holds the light constant while the tag uses the &#8220;mirror&#8221; to reflect or not reflect.  (The tag returns its electronic product code by reflecting incident RF.)</p>
<p>Then there are the logistic problems&#8230;  The reader must be able to identify all the tags present in the room.  The tags are essentially blindfolded, nearly deaf, talk by whispering, and cannot hear each other.  The reader is blindfolded, doesn&#8217;t know who&#8217;s in the room (because the tags, if present, are all powered off), can&#8217;t listen to more than one tag at a time, and needs to yell a million times louder than the tags can respond.   Furthermore, since the reader broadcasts  with enough power to be observed outside the retailer&#8217;s premises, it cannot say the tags&#8217; names, lest the retailer&#8217;s competitor learn what she&#8217;s selling.</p>
<p>The example algorithm he presented was showed how the set of numbers was exchanged without the reader calling the chip by name.  Once identified, a chip is asked to go to sleep so it doesn&#8217;t cause collisions.  (He didn&#8217;t elaborate on the mechanism to handle multiple responses, though it sounded like it was a variant of the Ethernet CSMA/CD scheme: if there are collisions, both parties wait for a random, exponentially increasing period before trying again.)</p>
<p>There were additional tricks needed to deal with the physical issues with the silicon.  For example, very cold conditions can make the RFID chips stay &#8220;asleep.&#8221;  If something was scanned before being loaded in a truck in a typical Minnesota winter, it might take half an hour for it to warm up enough to turn on.</p>
<p>Many of the passive RFID examples assume they&#8217;re on a non-metallic and/or dry surface.  RFIDs being <a href="http://www.slate.com/id/2109477/" target="_blank">implanted</a> (!)</p>
<p><strong>Miscellany: </strong></p>
<p>From a pure technology and future, benevolent application perspective, it&#8217;s pretty cool.</p>
<p>There are <strong>a lot</strong> of privacy[9,10] and security[8,11] concerns.  I haven&#8217;t read through this literature; however, I have the urge to cough *bullshit* whenever I hear &#8220;uncrackable&#8221; mentioned.  Such as [8].   I don&#8217;t know how much to make of the problem, though, as people apparently put highly personal stuff on Facebook because they <a href="http://news.sky.com/skynews/xml/article/tech/0,,91221-13602,00.html" target="_blank">believe it&#8217;s secure</a>.</p>
<p>And health concerns.  RFID reader transmission power is in the 900MHz band, and of the power of 2 cell phones, but is not held against your head.  Diorio asserted that this background radiation &#8220;acceptable health limits.&#8221;</p>
<p>There needs to be a critical mass for these to work. Some retailers have run into slow adoption. For example, Wal-Mart[6] has only 600 suppliers out of 20,000 using RFID technology.  Sam&#8217;s has recently imposed a fee for suppliers not using them.</p>
<hr /> <strong>Sources and further reading:</strong></p>
<ul>
<li>[1] Chris Diorio, UW Television, &#8220;<a href="http://www.uwtv.org/programs/displayevent.aspx?rid=2509" target="_blank">RFID: The Next Big Little Thing</a>,&#8221;April 28, 2005.</li>
<li>[2] <a href="http://en.wikipedia.org/wiki/RFID" target="_blank">Radio-frequency identification</a>, Wikipedia</li>
<li>[3] <a href="http://books.google.com/books?id=UQYjJaSk2EcC&amp;pg=PA18&amp;lpg=PA18&amp;dq=rfid+electronic+product+codes+%22gid+96%22&amp;source=web&amp;ots=tkw_1X_hM9&amp;sig=p5iExSAYL-Aojaz6_JuBqOvwRKc&amp;hl=en" target="_blank">RFID Security</a>,  Frank Thornton, ISBN 1597490474.</li>
<li>[4] &#8220;<a href="http://www.gsb.stanford.edu/library/articles/hottopics/rfid.html" target="_blank">Hot Topics: RFID</a>,&#8221; Stanford Graduate School of Business, Jackson Library.</li>
<li>[5] &#8220;<a href="http://www.impinj.com/rfid/about-rfid.aspx?ekmensel=c580fa7b_8_24_btnlink" target="_blank">About RFID</a>,&#8221; Impinj.com</li>
<li>[6] &#8220;<a href="http://www.informationweek.com/news/showArticle.jhtml?articleID=198700170" target="_blank">Wal-Mart Rethinks RFID</a>,&#8221; Information Week, March 26, 2007.</li>
<li>[7] <a href="http://www.technovelgy.com/ct/Science-Fiction-News.asp?NewsNum=939" target="_blank">Technovelgy.com</a></li>
<li>[8] &#8220;<a href="http://blog.wired.com/sterling/2006/11/arphid_watch_fi.html" target="_blank">Arphid Watch: Find Own Foot, Aim Hastily, Pull Trigger</a>,&#8221; Bruce Sterling, wired.com</li>
<li>[9] <a href="http://epic.org/privacy/rfid/" target="_blank">Electronic Privacy Information Center</a>.</li>
<li>[10] <a href="http://www.spychips.com/" target="_blank">Spychips.com</a></li>
<li>[11] Gildas Avione, list of papers on <a href="http://www.avoine.net/rfid/" target="_blank">RFID security and privacy</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/rfid-101/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Minty Boost</title>
		<link>http://www.jimcarson.com/2008/minty-boost/</link>
		<comments>http://www.jimcarson.com/2008/minty-boost/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 01:07:37 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[Cool Geek Tricks]]></category>

		<category><![CDATA[learndorphins]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/minty-boost/</guid>
		<description><![CDATA[




During last week&#8217;s ride, I hit the limits of my GPS&#8216; ten to eleven hours of internal battery capacity. So, with it officially being spring, when young minds turn to thoughts of riding more, it seemed to be a good time to build the Minty Boost kit I received for Christmas.
The Minty Boost is a [...]]]></description>
			<content:encoded><![CDATA[<table valign="top" align="right">
<tr>
<td><a href="http://flickr.com/photos/carson/2352369711/in/set-72157604206566197/"><img src="http://farm3.static.flickr.com/2142/2352369711_f2186cbda2_m.jpg" title="Minty Boost charger" border="0" /></a></td>
</tr>
</table>
<p>During <a href="http://www.jimcarson.com/2008/close-but-no-cigar/" target="_blank">last week&#8217;s ride</a>, I hit the limits of my <a href="https://buy.garmin.com/shop/shop.do?pID=331&amp;tab=edge305" target="_blank">GPS</a>&#8216; ten to eleven hours of internal battery capacity. So, with it officially being spring, when young minds turn to thoughts of <acronym title="double entendre for Claire's and John's benefit :-)">riding more</acronym>, it seemed to be a good time to build the Minty Boost kit I received for Christmas.</p>
<p>The Minty Boost is a DC/DC converter that lets one power (or, in this case, charge) an USB-powered devices with a pair of AA batteries.  On iPods, it&#8217;s equivalent to 1 1/2 full recharges.  Just doing the back-of-the-envelope, on the GPS this could mean another 18 hours of power.   (If I&#8217;m doing the back-of-the-envelope correctly, an 80% conversion efficiency should power the GPS&#8217; 3.7V, 910mAh[5] battery for 17 hours on a fresh pair of 2000 mAh batteries.)</p>
<p>As with Mitch Altman&#8217;s[4] <a href="http://www.tvbgone.com/cfe_mfaire.php" target="_blank">brain machine</a> [2] (based on Limor&#8217;s <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=5&amp;products_id=20&amp;zenid=16f3bff2f2fdf784128ff24f1dc600ff" target="_blank">MiniPOV</a> [3] kit &#8212; POV = Persistence of Vision) and <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=20&amp;products_id=73&amp;zenid=16f3bff2f2fdf784128ff24f1dc600ff" target="_blank">TV-b-Gone</a> (for serene visits to [redacted]), the first task is to <a href="http://flickr.com/photos/carson/2352368215/in/set-72157604206566197/" target="_blank">inventory</a>.  This inevitably brings a wave of nostalgia, for when I was a youngin&#8217;, Radio Shack actually sold electronic kits.  (Ah, <a href="http://www.jimcarson.com/2006/02/personal-meme/" target="_blank">120-in-1 kit</a>!)  Fortunately, in the land of the Internets, there are companies like Mouser and DigiKey that will sell small quantities of parts.</p>
<p>This is always a good opportunity to spool up the soldering iron.  When I want it to heat, it takes <em>forever</em>, when it&#8217;s accidentally dropped onto the carpet, it heats <em>very quickly</em>.</p>
<table valign="top" align="left">
<tr>
<td><a href="http://www.flickr.com/photos/carson/2353197844/" title="Capacitors and diode"><img src="http://farm3.static.flickr.com/2040/2353197844_eee1523138_t.jpg" alt="Capacitors and diode" border="0" height="68" width="100" /></a></td>
</tr>
</table>
<p>Since doing the previous kits, I&#8217;ve been convinced that a vice or third-hand tool would be a nifty addition. I spent a birthday gift card on a <a href="http://flickr.com/photos/carson/2353197844/in/set-72157604206566197/" target="_blank">small one</a>.  <strong>No more holding the board with my feet as I solder!</strong></p>
<p>The board&#8217;s markings help ensure one doesn&#8217;t mess up the polarity on the capacitors or the diode, but I still feel compelled to quadruple check before trimming the leads.  Next, came the two other capacitors and the inductor.  The inductor made me appreciate having the vice.</p>
<p>Before I could admire my <a href="http://flickr.com/photos/carson/2353197964/in/set-72157604206566197/" target="_blank">soldering handiwork</a> too much, I came to the part where the USB port was added.  The instructions recommended adding a couple of extra blobs of solder on the side of the plub to better hold it on the board.  This got a little messy, leaving browned resin on the back.  Ugly, but mostly harmless.</p>
<table valign="top" align="right">
<tr>
<td><a href="http://www.flickr.com/photos/carson/2353198424/" title="Completed soldering, now to test! by Jim Carson, on Flickr"><img src="http://farm4.static.flickr.com/3241/2353198424_94fe7bf3f8_t.jpg" alt="Completed soldering, now to test!" border="0" height="75" width="100" /></a></td>
</tr>
</table>
<p>The chip socket came next, and was trickiest component. Its legs were too short to bend to hold it into place, but it was also shorter than the surrounding components.  I had to prop the board up cockeyed on a roll of tape to solder one of the eight legs, then move the board to the vice to do the rest.</p>
<p>With the board all soldered, I <em>wanted</em> to plug it into my GPS, but felt that it would be wise to test my work with a voltmeter.  I noticed the battery pack read 3.45 volts, which seemed too high.  The output, as measured from pins 1 and 4 of the USB port, was 7.7V, <em>waaaaay</em> higher than expected.  I checked again, then looked for cold joints.  Nothin&#8217;.  The forums had a few examples where people encountered unexpected output.  All of the responses began with &#8220;check your voltmeter.&#8221;</p>
<table valign="top" align="left">
<tr>
<td><a href="http://www.flickr.com/photos/carson/2353198754/" title="Output is correct"><img src="http://farm4.static.flickr.com/3283/2353198754_4be183143b_m.jpg" alt="Output is correct" border="0" height="240" width="226" /></a></td>
</tr>
</table>
<p>I tried an individual battery: 2.45V.  <em>That&#8217;s wrong</em>.  Next, the household current: 197 VAC.  Okay, my voltmeter was definitely wonky.  It&#8217;s been a while since I&#8217;ve used it, so I popped a fresh 9V battery, and lo!  It was now reading correct values for the individual battery and the household current.  Once again, I tried the circuit&#8217;s output: 4.99V.  Whew!</p>
<p>Now, the fun part: putting this in a case.  I have, literally, a dozen gently-used Altoids gum boxes in a desk drawer.  The little metal containers amuse me, especially for projects like this, and I remain optimistic that the Peppermint Gum Fairy will refill them.  Thus, I cannot be compelled to throw them out.</p>
<p>I first tried cutting a notch out of the side with snips then bending the metal until it fatigued itself off.  This was very awkward, and I could never get the cuts parallel.  I tossed out the box and started over, this time with a dremel tool to grind out a hole on the side.  <em>Much better</em>.  I smoothed out the edges with a pointy, conical bit.   Batteries disconnected (for <em>obvious</em> reasons), I tested the fit.  Pretty darned close.</p>
<p>I fiddled with which direction to mount the battery pack, finally deciding that I&#8217;d just route the wires along the inside, between the holder and the wall of the mint case.  I needed a little extra loop around the capacitor to keep it snug, but here&#8217;s the final result:</p>
<p><a href="http://www.flickr.com/photos/carson/2352369525/" title="Internal packaging"><img src="http://farm3.static.flickr.com/2093/2352369525_5be8a7ae6d_m.jpg" alt="Internal packaging" height="157" width="240" /></a></p>
<p>Any bets on how often this will get me selected for a &#8220;totally random&#8221; TSA-style search?</p>
<p><strong>Update:  </strong>As <a href="http://susandennis.livejournal.com/" target="_blank">Susan</a> rightly pointed out, the case needed <em>a little something</em>:</p>
<p><a href="http://www.flickr.com/photos/carson/2355730946/" title="Tricked out Minty Boost tin"><img src="http://farm3.static.flickr.com/2252/2355730946_5d8e4baa7d_m.jpg" alt="Tricked out Tin" height="107" width="240" /></a></p>
<p>For more background info, see [6]. </p>
<hr /> <strong>Sources:</strong>
<dt>
<ul>
<li>[1] Limor discusses the <a href="http://ladyada.net/make/mintyboost/process.html" target="_blank">process</a> in designing the kit.</li>
<li>[2] &#8220;<a href="http://downloads.oreilly.com/make/wp_brainmachine.pdf" target="_blank">Make a Brain Machine</a>,&#8221; Make Magazine #10.</li>
<li>[3] &#8220;<a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=5&amp;products_id=20&amp;zenid=16f3bff2f2fdf784128ff24f1dc600ff" target="_blank">Mini-POV</a>&#8221; kit, Adafruit Industries, used as a basis for the Brain Machine above.</li>
<li>[4] &#8220;<a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=20&amp;products_id=73&amp;zenid=16f3bff2f2fdf784128ff24f1dc600ff" target="_blank">TV-b-Gone</a>&#8221; kit, Adafruit Industries.   An assembled version is available from Mitch Altman&#8217;s site, <a href="http://www.tvbgone.com">tvbgone.com</a></li>
<li>[5]  <a href="http://www.garmin.com/manuals/967_OwnersManual.pdf" target="_blank">Garmin Edge 305 Owner&#8217;s Manual</a>, Garmin</li>
<li>[6] <a href="http://www.jimcarson.com/2007/04/mixers-done/" target="_blank">Tricking out my KitchenAid</a>.</li>
</ul>
</dt>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/minty-boost/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Close, but no cigar</title>
		<link>http://www.jimcarson.com/2008/close-but-no-cigar/</link>
		<comments>http://www.jimcarson.com/2008/close-but-no-cigar/#comments</comments>
		<pubDate>Sun, 16 Mar 2008 19:24:14 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[biking]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/close-but-no-cigar/</guid>
		<description><![CDATA[
I felt great when I rolled into Greenwater, the point geographically farthest from the start of Saturday&#8217;s 200k brevet.    I got my card stamped inside the store, reloaded my water bottles with the unnatural blue sports drink, and chomped away on a slab of vanilla ice cream surrounded by two, chewy chocolate [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jimcarson.com/i/02_200k_roadahead.jpg" height="122" width="500" /></p>
<p>I felt <em>great</em> when I rolled into Greenwater, the point geographically farthest from the start of Saturday&#8217;s <a href="http://www.bikely.com/maps/bike-path/SIR08-200K-Cox-Chili-Feed" target="_blank">200k brevet</a>.    I got my card stamped inside the store, reloaded my water bottles with the unnatural blue sports drink, and chomped away on a slab of vanilla ice cream surrounded by two, chewy chocolate chip cookies.  I reckoned the remaining forty, mostly downhill miles would be easily doable within the five hours of time remaining.  All the steady winter riding had finally paid off.  I&#8217;d complete my first ever brevet.</p>
<p><em>buuuut&#8230;.</em></p>
<p>As I was pushing the bike back towards the road, I heard a <em>pssht pssht</em> noise coming from the rear wheel.  Given how &#8230; seasonal the weather had been all morning, I attributed this to road sludge.  Squirts of blue from the water bottle didn&#8217;t help.  Loosening the brake actually <em>made it sound worse</em>.  Strange.  With the bike seat held up, I gave the pedal a spin.  The tire was <em>waaaay</em> out of true: a spoke bolt had sheared off.</p>
<p>I seriously considered riding it some more on the theory that it couldn&#8217;t get that much more broken, and if it didn&#8217;t, I&#8217;d be that much closer to finishing.   However, I didn&#8217;t want <a href="http://www.jimcarson.com/2007/spokesongs/" target="_blank">déjà vu</a>.   Also, Greenwater&#8217;s general store was the last facility for about 20 miles, and the &#8220;town&#8221; itself well within the cell phone dead zone.  Thus began a conversation like this:</p>
<blockquote><p><strong>Janet</strong>: <em>[no doubt seeing the Caller ID as "pay phone" or "idiot"]</em> Hello?</p>
<p><strong>Me</strong>: Can I ask for a huuuuuuge favor?</p></blockquote>
<p>So as part of the agreement, I profess my idiocy:</p>
<ul>
<li>When I noticed the <a href="http://www.jimcarson.com/2008/spring-cleaning/">rim was worn</a> on my beefy wheels, I put my <a href="http://www.jimcarson.com/2007/spokesongs/">spare wheel</a> on so I could ride to and from work while the replacement was being built.</li>
<li>The replacement was delivered Thursday.  <em>I should have put the replacement on  then.  </em>However, after a rough week at work, it was easy to rationalize &#8220;I&#8217;ll do it Sunday, while I&#8217;m cleaning the bike up anyway.&#8221;</li>
<li>As <a href="http://www.roadbikerider.com/ldb_page.htm" target="_blank">this book</a> notes, 24-spoke rear wheels (such as the spare) are unsuitable for randonneuring, especially if the rider is over 120.5 pounds, and/or over the age of 30, and/or riding on imperfect roadways (uphill, in the rain), and/or of questionable sanity.</li>
<li>I wasn&#8217;t carrying any spare spokes.   (I just invested in a pair of <a href="http://www.peterwhitecycles.com/fiberfix.htm">FiberFix</a> emergency spokes like <a href="http://www.calnan-web.com/weblog/2007/06/16/i-spoke-too-soon/" target="_blank">John</a> told me to <a href="http://www.flickr.com/photos/jcalnan/558210638/in/set-72157594586296304/" target="_blank">months ago</a>.)</li>
</ul>
<p>While I waited, I listened to some other drama that put my situation into perspective:</p>
<blockquote><p> Clayton and his friend Vince spent Saturday snowmobiling.   Clayton, possibly under the influential goading of Bud Weiser, got a little too wild with his sled, flipping it over and disabling the vehicle.  Vince went back to get the pickup.  While backing it up, he broke its steering column.</p>
<p>Vince abandoned the truck in the middle of the forest road, then towed Clayton&#8217;s sled to wherever they initially started.  They enlisted the help of &#8220;some dude&#8221; who gave them a ride to the general store where they could call a tow truck&#8230; only, there was some miscommunication and &#8220;Some Dude&#8221; didn&#8217;t wait for them.  They were agitated at the prospect of their snowmobiles being parted out on eBay.</p>
<p>Their calls to the towing company were complicated by them:</p></blockquote>
<ul>
<li> not having enough spare change.   (They declined my offer of my phone card.)</li>
<li>not asking about local geography, as in &#8220;We&#8217;re in Greenwater, the closest city is Enumclaw.   E-N-U-M-C-L-A-W.&#8221;</li>
<li>Vince trying to haggle price with the tow truck dispatcher.  &#8220;<em>How much credit do I get with an AAA card?  If the meter&#8217;s running, then just meet us at the truck.  It&#8217;s on Forest Road 70.</em>&#8221;  (Personally, for the extra $3, I&#8217;d just have them meet me at the store where there are toilets, food and drinks.)</li>
</ul>
<hr />
Other thoughts:<img src="http://www.jimcarson.com/i/01_200k_cold.jpg" align="right" />I have a lot of fun checking out the other randonneurs&#8217; bikes as they&#8217;re very pragmatic: fenders <em>with mud flaps</em>, a handlebar or seat bag for sundries, and frequently a hub-based generator system.</p>
<p>The weather was manageable: rainy, but not as cold as some thought.   (Maybe low 40s?)  I wore a long sleeve wool jersey underneath my rain jacket, wool socks, beefy windproof spandex pants (over bike shorts), full-fingered gloves, and rain booties.  The only thing I was kind of missing was the head beanie, if only to keep my ears warm.  After the first half hour, I reached a nice equilibrium.</p>
<p>I liked the route, especially the parts to the far west (Dash Point, with its occasional views of the billowing plumes from the Port of Tacoma) and far east (Kanasket/Cumberland farmlands).  There was a pleasant dearth of chip seal!</p>
<p>Janet was very nice about this whole thing.  <strong>I owe her big time.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/close-but-no-cigar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pasta puzzle</title>
		<link>http://www.jimcarson.com/2008/pasta-puzzle/</link>
		<comments>http://www.jimcarson.com/2008/pasta-puzzle/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 07:21:51 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[Reviews]]></category>

		<category><![CDATA[learndorphins]]></category>

		<category><![CDATA[science]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/pasta-puzzle/</guid>
		<description><![CDATA[I&#8217;ve been having a lot of fun reading &#8220;How to Fossilize Your Hamster&#8220;[1], an entertaining and enlightening collection of quirky science questions and experiments one can do to observe the the principles.   It&#8217;s very conversationally written with abundant humor.  For example, in answering the best way to get ketchup out of the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having a lot of fun reading &#8220;<a href="http://www.amazon.com/How-Fossilize-Your-Hamster-Experiments/dp/0805087702/cleanlivingcom" target="_blank">How to Fossilize Your Hamster</a>&#8220;[1], an entertaining and enlightening collection of quirky science questions and experiments one can do to observe the the principles.   It&#8217;s very conversationally written with abundant humor.  For example, in answering the best way to get ketchup out of the bottle, where they detail seven methods to &#8220;exploit the <a href="http://www.worsleyschool.net/science/files/thixotropic/materials.html" target="_blank">thixotropic</a> nature of ketchup,&#8221; they begin with:</p>
<blockquote><p>&#8220;WHAT DO I NEED?</p>
<ul>
<li>A meal requiring tomato ketchup (it&#8217;s not essential, as you can do this experiment using an empty plate, but there&#8217;s no doubt that French fries enhance the experience)</li>
<li>a glass bottle of tomato ketchup&#8221; [1, page 48]</li>
</ul>
</blockquote>
<p><em>What&#8217;s not to like about that?</em></p>
<p><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/10/Organic_Heinz_Tomato_Ketchup.jpg/200px-Organic_Heinz_Tomato_Ketchup.jpg" alt="Ketchup" align="right" height="267" width="200" />My favorite question was &#8220;Pasta Puzzle:&#8221; if you hold a strand of spaghetti at both ends and bend it, why will it nearly always break into three or more pieces?  Audoly and Neukirch[2]  made some fun-to-watch <a href="http://www.lmm.jussieu.fr/spaghetti/index.html" target="_blank">videos</a> of their experiments.  In the first phase, they did high-speed filming of spaghetti breaking.  To add control to their experiments, they then held bent spaghetti while inducing a break with a pair of scissors.  They eventually reduced the problem to a <a href="http://www.lmm.jussieu.fr/spaghetti/movies-3-exp.html" target="_blank">catapult experiment</a>, in which they demonstrated that spaghetti can be broken by <em>merely releasing one of its ends</em>[2].  In their paper, they also come up with an &#8220;analytical prediction of breaking events&#8221; in &#8220;perfect spaghetti.&#8221; It should come as no surprise they earned an <a href="http://www.ignobel.com" target="_blank">igNobel</a> award.</p>
<p>Their conclusion:</p>
<blockquote><p>&#8220;[T]he sudden relaxation of the curvature at the newly freed end leads to a burst of flexural waves [that] locally increase the curvature in the rod and [...] is responsible for the fragmentation of brittle rods under bending.&#8221;</p></blockquote>
<p>Runner up would be the entire &#8220;<em>In the bathroom</em>&#8221; chapter.  I find a lot of humor value in offering a formula quantifying the effects of fiber as observed in human, uh, &#8220;<em>output</em>.&#8221;   One better suited for public conversation is why orange juice (and many things) taste awful after you brush your teeth.  Reason: sodium lauryl sulfate is added to many toothpastes as a foaming agent to disperse the paste.  It temporarily disrupts sensitivity of sweet taste buds while increasing the bitter ones.[3]  (It&#8217;s unpleasant, but does not cause cancer.[4])</p>
<hr /> <strong>Sources:</strong></p>
<ul>
<li>[1] How to Fossilize Your Hamster (and other amazing experiments for the armchair scientist), Mick O&#8217;Hare.  ISBN 9780805087703</li>
<li>[2]  &#8220;<a href="http://www.lmm.jussieu.fr/spaghetti/audoly_neukirch_fragmentation.pdf" target="_blank">Fragmentation of rods by cascading cracks: why spaghetti does not break in half</a>,&#8221; Basile Audoly and Sebastien Neukirch.  Physical Review Letters 95, 095505 (2005).  Movies available <a href="http://www.lmm.jussieu.fr/spaghetti/index.html" target="_blank">here</a>.</li>
<li>[3] &#8220;Surface active taste modifiers: a comparison of the physical and psychophysical properties of gynemic acid and sodium lauryl sulfate,&#8221; John DeSimone, Gerard Heck, Linda Bartoshuk, Chemical Senses 5:317-330, 1980.</li>
<li>[4] &#8220;<a href="http://www.snopes.com/inboxer/household/shampoo.asp" target="_blank">Sodium Lauryl Sulfate and Shampoo</a>,&#8221; Snopes.com</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/pasta-puzzle/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inattentional blindness demo modernized</title>
		<link>http://www.jimcarson.com/2008/inattentional-blindness-modernized/</link>
		<comments>http://www.jimcarson.com/2008/inattentional-blindness-modernized/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 14:04:32 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[biking]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/inattentional-blindness-modernized/</guid>
		<description><![CDATA[Cyclists will especially appreciate this public service ad.   (It&#8217;s an update of a topic I enjoyed at Vis 2006.)
]]></description>
			<content:encoded><![CDATA[<p>Cyclists will especially appreciate this <a href="http://www.dothetest.co.uk/" target="_blank">public service ad</a>.   (It&#8217;s an update of a topic I <a href="http://www.jimcarson.com/2006/11/inattentional-blindness/" target="_blank">enjoyed</a> at Vis 2006.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/inattentional-blindness-modernized/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Benford&#8217;s Law</title>
		<link>http://www.jimcarson.com/2008/benfords-law/</link>
		<comments>http://www.jimcarson.com/2008/benfords-law/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 19:11:48 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[learndorphins]]></category>

		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/benfords-law/</guid>
		<description><![CDATA[I was going through Statistics Hacks and came across Benford&#8217;s Law, which states that in naturally occurring numerical data, the distribution of the first, non-zero significant digit follows a logarithmic probability distribution described as:
P(D1 = d) = log10 (1 + 1/d)
In other words, first number is much more likely going to be a 1 than [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.jimcarson.com/i/benford_distribution.jpg" alt="Benford's Law" align="right" height="259" hspace="2" vspace="2" width="267" />I was going through <a href="http://www.oreilly.com/catalog/statisticshks/" target="_blank">Statistics Hacks</a> and came across Benford&#8217;s Law, which states that in <em>naturally occurring</em> numerical data, the distribution of the first, non-zero significant digit follows a logarithmic probability distribution described as:</p>
<blockquote><p><code><font size="+1">P(D<sub>1</sub> = d) = log<sub>10</sub> (1 + <sup>1</sup>/<sub>d</sub>)</font></code></p></blockquote>
<p>In other words, first number is much more likely going to be a <strong>1</strong> than it is a <strong>9</strong>.  The pretty graph to the right shows the likely occurrence of the first digit.  It&#8217;s counter-intuitive, as one would assume the digits would be uniformly distributed.  However, it&#8217;s been observed in a variety of areas like multiples of numbers[2], blackbody radiation, physical constants, area of rivers, population and New York Times front pages[9].</p>
<p>Bassam Hasan[3] notes data must meet the following criteria:</p>
<ul type="square">
<li>The data must be numeric.</li>
<li>There must be an underlying cause for the numbers to occur.  For example, business invoice numbers would not work because the numbers are merely labels.  (See the lottery question below.)</li>
<li>The numbers are not restricted by maximum or minimum values.  For example, human heights fall within a limited range that would skew the leading digits.</li>
<li>The numbers must occur naturally, and they are not invented or assigned[7], such as telephone numbers (based on a phone switch), postal codes (a postal facility) or social security numbers (state your card was issued in).</li>
<li>There must be a large sample size.</li>
</ul>
<p>And no, lottery numbers would <em>not</em> be a good candidate.   As Dr. Nigrini[5] explains:</p>
<blockquote><p>&#8220;[Lottery] balls are not really numbers; they are labeled with numbers, but they could just as easily be labeled with the names of animals. The numbers they represent are uniformly distributed, every number has an equal chance&#8221;[4]</p></blockquote>
<p>As an experiment, I did an analysis of the size of my multimedia files (mp3, wmv, mov) on another hard drive.   I expected this to fail one or two tests above.  Here&#8217;s the distribution:</p>
<p><img src="http://www.jimcarson.com/i/mp3_file_digit_distribution.jpg" alt="File size distribution" /></p>
<p>There are three major categories of multimedia files&#8211; songs, podcasts and lectures &#8212; whose file sizes are clustered.  Songs tend to be 2 - 6 minutes (<em>Freebird</em>, notwithstanding) since I delete stuff that&#8217;s shorter. At an average encoding of 128kb/s, this results in a lot of 4Mb - 6Mb sized fies. An informal sample of my favorite podcasts(&#8221;<a href="http://www.npr.org/programs/waitwait/" target="_blank">Wait Wait, Don&#8217;t Tell Me!</a>&#8220;, &#8220;<a href="http://www.thislife.org/" target="_blank">This American Life</a>&#8220;, and &#8220;<a href="http://lis.epfl.ch/resources/podcast/" target="_blank">Talking Robots</a>&#8220;), suggests it&#8217;s common these span 10 minutes up to an hour. At the top end of the size graph are lectures. (I admire Kiri&#8217;s stamina in going the <a href="http://www.wkiri.com/today/?p=59" target="_blank">full four(!) hours</a>.)</p>
<p>Next, I looked at the set of files on my computer&#8217;s primary (OS) hard disk.  With a sample size of 119,708 files, this is how the first digit was distributed:<br />
<img src="http://www.jimcarson.com/i/file_digit_distribution.jpg" alt="First digit of file size" /><br />
The curve is &#8220;pretty close!&#8221;</p>
<p>Because I had already collected the data, here&#8217;s the distribution of file sizes:</p>
<p><img src="http://www.jimcarson.com/i/file_size_distribution.jpg" alt="File size distribution" /><br />
At the far right, there are two 2Gb files used by the system (pagefile.sys, hiberfile.sys).  Zero-length files were ignored, obviously.</p>
<p>Since Benford&#8217;s law applies to the first few digits in each place, we can use it to look further at the file sizes.  Here&#8217;s a table of the percentages of occurrences of the digit in each place[10]:</p>
<p><img src="http://www.jimcarson.com/i/benford_law_table.jpg" title="Benford Law % occurrences of digits, first four places" /></p>
<blockquote><p><em>[I will send ten dollars to the first person who can tell me why the hell WordPress arbitrarily deletes rows and columns in tables -- and what I can do to prevent this, short of "don't use wordpress".]</em></p></blockquote>
<p>Let&#8217;s apply this to the first two digits of the file sizes on my computer. The red lines are the distribution of files. The blue line is are the factors multiplied, and the green line is a logarithmic trend line of the Benford numbers, because I may have done something wrong just multiplying out.</p>
<p>Still, we see an interesting result:<br />
<img src="http://www.jimcarson.com/i/first_two_digits.jpg" /></p>
<p>There are a lot of files whose size is 8192 bytes!  [<strong>Edit</strong>: over 1,800 of these are reg<em>xxxxx</em> files related to Internet Explorer 7 or Patch installs.]</p>
<p>Benford&#8217;s law has had a lot of traction in accounting[1,3,4,7,8,10], where it&#8217;s used as a technique to detect fraud.  For example, the Department of Justice has been using this in counter-terrorism operations[7], identifying shell corporations used to funnel money.  From their &#8220;Fiscal Forensics I&#8221; article, they note:</p>
<blockquote><p>A classic example is the organization that has a disproportionate number of transactions in the eight and nine thousand dollar range since they may be structuring transactions (designed to fall below SAR and CTR levels).  This fact would likely be revealed during a Benford&#8217;s Law analysis as the amount of numbers beginning with the digits 8 or 9 would exceed their expected probability of occurrence.</p></blockquote>
<p>Georgia Tech Professor Ted Hill proved Benford&#8217;s law applies to numbers in other bases[11]. An amusing trick he applies to his classes is asking his students to either (1) flip a coin 200 times, recording the pattern of heads or tails, or (2) make the data up.  The next day, he points out most of the made-up data. [4]   He notes that a sequence of 200 flips will have a high likelihood of six of the same side in a row.  People faking their data rarely apply this.[11]</p>
<p>Benford&#8217;s law does have some limitations.  For example, on tax forms rounding occurs.  Also, it&#8217;s a very common, annoying, and effective marketing strategy to price things ending in &#8220;95&#8243; or &#8220;99.&#8221;  Finally, sales people have tendency to shave expenses.  As Dr. Mark J. Nigrini[5] explains:</p>
<blockquote><p>&#8221;People who travel on business often have to submit receipts for any meal costing $25 or more, so they put in lots of claims for $24.90, just under the limit. That&#8217;s why we see so many 24&#8217;s.&#8221;[4]</p></blockquote>
<hr /> <strong>Sources</strong></p>
<ul>
<li>[0] &#8220;<a href="http://www.oreilly.com/catalog/statisticshks/">Statistics Hacks</a>,&#8221; Bruce Frey</li>
<li>[1] &#8220;<a href="http://plus.maths.org/issue9/features/benford/index-gifd.html" target="_blank">Looking Out For Number One</a>,&#8221; Jon Walthoe, Robert Hunt and Mike Pearson.</li>
<li>[2] <a href="http://williamfawcett.com/flash/SigFigDistbGen.htm" target="_blank">Significant Figure Generator</a>, William Fawcett</li>
<li dragover="true">[3]  Bassam Hasan, Ph.D., &#8220;<a href="http://www.isaca.org/Template.cfm?Section=Home&amp;CONTENTID=16172&amp;TEMPLATE=/ContentManagement/ContentDisplay.cfm" dragover="true" target="_blank">Assessing Data Authenticity with Benford&#8217;s Law</a>.&#8221;</li>
<li dragover="true">[4] Malcolm Browne, &#8220;<a href="http://query.nytimes.com/gst/fullpage.html?res=9406E4D61F38F937A3575BC0A96E958260" dragover="true" target="_blank">Following Benford&#8217;s Law, Or Looking out for No. 1</a>,&#8221; New York Times, August 4, 1998.</li>
<li>[5] <a href="http://www.nigrini.com/Benford's_law.htm">Mark J. Nigrini, Ph.D.</a></li>
<li dragover="true">[6] Steven W. Smith, Ph.D.  &#8220;<a href="http://www.dspguide.com/ch34.htm" dragover="true" target="_blank">Chapter 34: Explaining Bedford&#8217;s Law</a>,&#8221; The Scientist and Engineer&#8217;s Guide to Digital Signal Processing</li>
<li>[7] &#8220;<a href="http://www.usdoj.gov/usao/eousa/foia_reading_room/foiamanuals.html">Financial Forensics</a>&#8221; Part <a href="http://www.usdoj.gov/usao/eousa/foia_reading_room/usab5302.pdf" target="_blank">1</a>, <a href="http://www.usdoj.gov/usao/eousa/foia_reading_room/usab5303.pdf" target="_blank">2</a>; US Attorney&#8217;s Bulletin, Volume 53, Number 2 (March 2005), Number 3 (May 2005)</li>
<li>[8] Charlie Kyd, &#8220;<a href="http://www.exceluser.com/tools/benford_xl12.htm" target="_blank">Use Benford&#8217;s Law with Excel to Improve Business Planning</a>&#8220;</li>
<li>[9] <a href="http://mathworld.wolfram.com/BenfordsLaw.html" target="_blank">Benford&#8217;s Law</a>, Wolfram.</li>
<li dragover="true">[10] Durtschi, Hillison and Pacini, &#8220;<a href="http://www.auditnet.org/articles/JFA-V-1-17-34.pdf" target="_blank">Effective Use of Benford&#8217;s Law to Assist in Detecting Fraud in Accounting Data</a>,&#8221; Journal of Forensic Accounting, 2004.</li>
<li dragover="true">[11] &#8220;S<a href="http://gtresearchnews.gatech.edu/reshor/rh-f00/math.html" target="_blank">orry, Wrong Number</a>,&#8221; Georgia Tech Research Horizons, September 2000.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/benfords-law/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Physical</title>
		<link>http://www.jimcarson.com/2008/physical/</link>
		<comments>http://www.jimcarson.com/2008/physical/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 06:43:32 +0000</pubDate>
		<dc:creator>jim</dc:creator>
		
		<category><![CDATA[The Body]]></category>

		<category><![CDATA[learndorphins]]></category>

		<guid isPermaLink="false">http://www.jimcarson.com/2008/physical/</guid>
		<description><![CDATA[In anticipation of my physical, and partly to assuage fears that the post-big four-oh one would entail uncomfortable things, I sleuthed around for things on what to expect, thinking.   Clearly I&#8217;ve been watching too many episodes of House.
The American Academy of Family Physicians[1] has six classifications for their recommendations of common &#8220;clinical preventive [...]]]></description>
			<content:encoded><![CDATA[<p>In anticipation of my physical, and partly to assuage fears that the post-big four-oh one would entail <em>uncomfortable things</em>, I sleuthed around for things on what to expect, thinking.   Clearly I&#8217;ve been watching too many episodes of <a href="http://www.fox.com/house/" target="_blank"><em>House</em></a>.</p>
<p>The American Academy of Family Physicians[1] has six classifications for their recommendations of common &#8220;clinical preventive services:&#8221;</p>
<ul>
<li><strong>SR </strong>- <em>Strongly recommended: </em>there&#8217;s a net gain, it&#8217;s cost effective.  Vaccines top the list:  <a href="http://www.cdc.gov/od/science/iso/concerns/mmr_autism_factsheet.htm" target="_blank"><acronym title="Measles, Mumps, Rubella">MMR</acronym></a>[4] (despite the <a href="http://scienceblogs.com/insolence/medicine/antivaccination_lunacy/" target="_blank">anti-vaccination lunacy</a>), tetanus booster, and diptheria/pertussis.   Blood pressure is always/easily checked. Since I&#8217;m over 35, they want to check lipids (cholesterol and triglycerides).  Anticipating this, I fasted prior to the appointment.  It&#8217;s logistically unfortunate they don&#8217;t do the tests and process the results <em>before</em> the doctor visit, because I would like the option of asking what the numbers mean.</li>
<li><strong>R </strong><em>- Recommended</em>: moderate benefit or moderate evidence. There were a lot of these.   Rather than sifting through the conditionals (e.g., &#8220;for women over 65 years of age&#8221;), it was easier to consult the male[2]- or female[2]-specific charts.</li>
<li><strong>NR </strong>- <em>No recommendation: </em>there are only four of these in the 15 page list.  The only one I&#8217;d heard of was screening for chlamydia in pregnant women over 26 years old.</li>
<li><strong>RA </strong>-<em> Recommended against.  </em>I wasn&#8217;t entirely surprised they recommend against taking beta-carotene supplements.  However, one that did turn my head was the <a href="http://www.ahrq.gov/clinic/uspstf/uspstest.htm" target="_blank">recommendation against routine screening for testicular cancer</a>[6], especially with the Lance Armstrong awareness campaigns[5].</li>
<li><strong>I </strong>- Insufficient evidence to make a recommendation either way.   This was one area I was surprised: prostate[7] and skin cancer[8] screening fall into this category.</li>
<li><strong>HB</strong> - Healthy behavior that&#8217;s desirable, but a physician&#8217;s advice and counseling might not effective.  For example, physical activity is recognized as beneficial.</li>
</ul>
<p>Like the physical I had a few years go, this was easy:</p>
<ol>
<li>Multiple verification of my name and <a href="http://www.jimcarson.com/2005/10/why-do-they-keep-asking-for-my/" target="_blank">birth date</a>, despite electronification of medical records for the last three years.</li>
<li>Nurse measures my height, weight and blood pressure.  The only amusing part was the wall-mounted ruler was done incorrectly.  Or I shrunk 2 1/2 inches since last year and <em>just didn&#8217;t notice.</em></li>
<li>Doctor (re)introduces himself and went through the scant electronic record as  I watched over his shoulder, attempting to offer helpful commentary.   Then he scanned the form and asked some ice-breaker questions.  I had him laughing pretty hard.   (And I still had my clothes on!)</li>
<li>The doctor looked in my ears, mouth.  Yay, no <a href="http://www.entnet.org/healthinfo/ears/earwax.cfm" target="_blank">ear wax</a> buildup!</li>
<li>He listened to internals.   This was probably not a good time to get him laughing again.</li>
<li>Turn my head and cough.  (I maintain this is <em>far preferable</em> to the stirrups.)</li>
<li><strong>Quiz time!</strong>  (My favorite part.)  I think he remembered me from last time when he spotted my list of questions.   (I have his attention, I&#8217;m going to ask.)   At the top of the list was the one about <a href="http://www.jimcarson.com/2008/snap-crackle-and-pop/" target="_blank">snapping, crackling and popping</a>.  Answer: &#8220;There really hasn&#8217;t been much research done.  As long as it doesn&#8217;t cause pain, you probably shouldn&#8217;t need to worry about it.&#8221; Second question about general random achiness.  Answer: &#8220;It&#8217;s normal for your age.  You&#8217;ll get used to it.&#8221;</li>
</ol>
<p><strike>Pending normal results of the various standard blood tests,</strike> I&#8217;m hale.  <strong>I do sense a market opportunity for minty, chewable aspirin.</strong></p>
<hr /> <strong>Sources:</strong></p>
<ul>
<li> [1] <em><a href="http://www.aafp.org/online/en/home/clinical/exam.html" target="_blank">Summary of Recommendations for Clinical Preventive Services</a>, revision 6.4.</em>  American Academy of Family Physicians.</li>
<li>[2] AAFP Age Chart for <a href="http://www.aafp.org/online/etc/medialib/aafp_org/documents/clinical/CPS/Men_Age_Chart.Par.0001.File.tmp/agechart_men.pdf" target="_blank">men</a>, <a href="http://www.aafp.org/online/etc/medialib/aafp_org/documents/clinical/CPS/Women_Age_Chart.Par.0001.File.tmp/agechart_women.pdf">women</a></li>
<li>[3] <a href="http://www.aafp.org/online/etc/medialib/aafp_org/documents/clinical/immunization/adultsched07-08.Par.0001.File.tmp/adultschedule.pdf" target="_blank">Recommended Adult Immunization Schedule</a>, American Academy of Family Physicians.</li>
<li>[4] <a href="http://www.cdc.gov/od/science/iso/concerns/mmr_autism_factsheet.htm" target="_blank">Vaccines and Autism</a>, Center for Disease Control</li>
<li>[5] <a href="http://www.tc-cancer.com/" target="_blank">Testicular Cancer Information and Support</a></li>
<li>[6] <a href="http://www.ahrq.gov/clinic/3rduspstf/testicular/testiculrs.htm" target="_blank">Screening Testicular Cancer</a>, Agency for Healthcare and Research Quality (AHRQ), Department of Health and Human Services (DHS)</li>
<li>[7] <a href="http://www.ahrq.gov/clinic/3rduspstf/prostatescr/prostaterr.htm#clinical" target="_blank">Prostate Cancer</a> Screening, AHRQ.</li>
<li>[8] <a href="http://www.ahrq.gov/clinic/ajpmsuppl/skcarr.htm" target="_blank">Skin Cancer</a> Screening, AHRQ.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jimcarson.com/2008/physical/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
