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

<channel>
	<title>FORTH GO</title>
	<atom:link href="http://www.forthgo.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.forthgo.com/blog</link>
	<description>Code and Recreations of Xan Gregg</description>
	<lastBuildDate>Wed, 14 Jul 2010 01:20:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Minute of Zen: Gravel on Spider&#8217;s Thread</title>
		<link>http://www.forthgo.com/blog/2010/07/13/gravel-on-spiders-thread/</link>
		<comments>http://www.forthgo.com/blog/2010/07/13/gravel-on-spiders-thread/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 01:15:49 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Nature]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=377</guid>
		<description><![CDATA[I saw this piece of pea gravel magically spinning in the air behind my house [YouTube].

It was about a foot off the ground then. When I returned later after forgetting about it, my head bumped into the gravel piece. A spider on the roof must have been trying to pull in the thread. I bet [...]]]></description>
			<content:encoded><![CDATA[<p>I saw this piece of pea gravel magically spinning in the air behind my house <a href="http://www.youtube.com/watch?v=utnx82HcsSs">[YouTube]</a>.</p>
<p><object width="425" height="268"><param name="movie" value="http://www.youtube.com/v/utnx82HcsSs&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/utnx82HcsSs&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="268"></embed></object></p>
<p>It was about a foot off the ground then. When I returned later after forgetting about it, my head bumped into the gravel piece. A spider on the roof must have been trying to pull in the thread. I bet he was getting tired.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2010/07/13/gravel-on-spiders-thread/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Science Online 2010</title>
		<link>http://www.forthgo.com/blog/2010/01/18/science-online-2010/</link>
		<comments>http://www.forthgo.com/blog/2010/01/18/science-online-2010/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 22:20:07 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Local]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=375</guid>
		<description><![CDATA[The fourth Science Online conference just wrapped up, and it was as lively as ever. Unfortunately, my attendance was limited since I was coming down with a cold. I attended only a couple of sessions and tried to keep interactions to a minimum, which was hard to do at such an interactive conference with many [...]]]></description>
			<content:encoded><![CDATA[<p>The fourth <a href="http://www.scienceonline2010.com/">Science Online</a> conference just wrapped up, and it was as lively as ever. Unfortunately, my attendance was limited since I was coming down with a cold. I attended only a couple of sessions and tried to keep interactions to a minimum, which was hard to do at such an interactive conference with many friendly and familiar faces from previous years. Good thing I&#8217;ve been practicing most of my life at keeping to myself.</p>
<p>It was nice to see <a href="http://www.jmp.com/software/jmp8/8ways.shtml">JMP 8</a>, the product I help develop, on the desktop of one of the presentation machines, though I didn&#8217;t find out whose machine it was. </p>
<p>I did make it to <a href="http://whatitslikeontheinside.com/">Tara Richerson</a>&#8217;s session on Scientific <a href="http://infovisualization.pbworks.com/FrontPage">Visualization</a>, even though it was in a small conference room at about 3x capacity. (The facilities at <a href="http://sigmaxi.org/">Sigma Xi</a> RTP were otherwise excellent.) She did a good job leading the discussion, especially considering the broadness of the topic and of the diversity of the audience. Given the amount of interest, visualization could be a separate track onto itself in the future. Tara posited that a good (online) visualization has: Story + Interactivity + Glanceability.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2010/01/18/science-online-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stella at One</title>
		<link>http://www.forthgo.com/blog/2009/12/01/stella-at-one/</link>
		<comments>http://www.forthgo.com/blog/2009/12/01/stella-at-one/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 02:21:27 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Local]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=368</guid>
		<description><![CDATA[Our new puppy, Stella, turned one year old this week-end. She&#8217;s a very light coated golden retriever, a cross between the American and British types in hopes of reducing inbred genetic faults. So far she&#8217;s been quite healthy and full of puppy energy. I&#8217;m sure any day now she&#8217;ll realize she&#8217;s grown up and settle [...]]]></description>
			<content:encoded><![CDATA[<p>Our new puppy, Stella, turned one year old this week-end. She&#8217;s a very light coated golden retriever, a cross between the <a href="http://www.hoffmangoldenretrievers.com/golden_retriever_mix.htm">American and British types</a> in hopes of reducing inbred genetic faults. So far she&#8217;s been quite healthy and full of puppy energy. I&#8217;m sure any day now she&#8217;ll realize she&#8217;s grown up and settle down, but for now she still plays hard:</p>
<p><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/12/stellaat11.jpg" alt="stellaat11" title="stellaat11" width="400" height="262" class="aligncenter size-full wp-image-370" /></p>
<p>and sleeps hard:</p>
<p><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/12/stellaat12.jpg" alt="stellaat12" title="stellaat12" width="400" height="286" class="aligncenter size-full wp-image-371" /></p>
<p>and chews holes in rugs when not entertained:</p>
<p><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/12/stelarug1.jpg" alt="stelarug1" title="stelarug1" width="250" height="172" class="aligncenter size-full wp-image-369" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2009/12/01/stella-at-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chapel Hill Election Clustering Revised</title>
		<link>http://www.forthgo.com/blog/2009/11/17/chapel-hill-election-clustering-revised/</link>
		<comments>http://www.forthgo.com/blog/2009/11/17/chapel-hill-election-clustering-revised/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 01:28:32 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Local]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=360</guid>
		<description><![CDATA[I&#8217;ve updated the cluster analysis based on comments received. Thanks to Ed Harrison, I have included data from the Durham County precincts. And since other commenters explained away the apparent under-voting in some precincts, I recalculated the percentages to be based on the number of people voting in that race instead of the total ballots [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the cluster analysis based on comments received. Thanks to Ed Harrison, I have included data from the Durham County precincts. And since other commenters explained away the apparent under-voting in some precincts, I recalculated the percentages to be based on the number of people voting in that race instead of the total ballots cast for the precinct. For town council, I approximated 4 votes per person which is necessarily on the high side, but makes the town council percentages comparable to the mayor percentages.</p>
<div id="attachment_361" class="wp-caption aligncenter" style="width: 491px"><a href="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Cluster2.png"><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Cluster2.png" alt="Two-way cluster of precincts and candidates" title="CH2009Cluster2" width="481" height="563" class="size-full wp-image-361" /></a><p class="wp-caption-text">Two cluster of precincts and candidates</p></div>
<p>I also figured out how to color the clusters by absolute values rather than relative values, which helps to differentiate the candidates. They still fall into two large groups, but now it&#8217;s easier to see subgroups. Mayor-council alignments are highly sensitive to the council multiplication factor (4 here), so ignore Kleinschmidt and Czajkowski for candidate clustering.</p>
<p>For the record, low scoring candidates have been eliminated (otherwise they make all precincts look more similar), and absentee and provisional votes have been combined with One Stop precincts.</p>
<p>The precincts present a similar clustering as before, except the under-voters are now distributed into other clusters. The yellow group is fairly neutral. The green group is left leaning. The purple group is left-leaning with a focus on Harrison/Rich/Easthom. The blue group is left-leaning with a focus on Merritt/Kleinschmidt. The red group is right-leaning and includes two of the Durham precincts.</p>
<p>As a bonus, I thought this visual was attractive. It shows a smoothed trend line of the vote percentages (times four for town council candidates) by precinct, where the precincts are ordered by support for Kleinschmidt, the winner of the race for mayor. (Click graph for a larger version.)</p>
<p><a href="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Performance.png"><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Performance-317x250.png" alt="CH2009Performance" title="CH2009Performance" width="317" height="250" class="aligncenter size-thumbnail wp-image-362" /></a></p>
<p>The &#8220;left-leaning&#8221; candidates generally rise with Kleinschmidt while the &#8220;right-leaning&#8221; candidates (dotted lines) fall. Merritt&#8217;s strong showing at Lincoln and Northside is also evident. Unfortunately for him, those precincts had very low turn-out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2009/11/17/chapel-hill-election-clustering-revised/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Chapel Hill Election Clustering</title>
		<link>http://www.forthgo.com/blog/2009/11/16/chapel-hill-election-clustering/</link>
		<comments>http://www.forthgo.com/blog/2009/11/16/chapel-hill-election-clustering/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 02:22:31 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Local]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=356</guid>
		<description><![CDATA[Damon Seils provided some great maps of the precinct results from this month&#8217;s local elections. I played around with the data, and found the results of a two-cluster analysis to be interesting. The ballots don&#8217;t include party affiliation, but candidates fell into two clusters, anyway, and the precincts fit several different profiles in support of [...]]]></description>
			<content:encoded><![CDATA[<p>Damon Seils provided some great <a href="http://www.orangepolitics.org/node%252F5207">maps of the precinct results</a> from this month&#8217;s local elections. I played around with the data, and found the results of a two-cluster analysis to be interesting. The ballots don&#8217;t include party affiliation, but candidates fell into two clusters, anyway, and the precincts fit several different profiles in support of those two candidate groups.</p>
<div id="attachment_357" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Cluster.png"><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/11/CH2009Cluster.png" alt="Two-way clustering of candidates and precincts" title="CH2009Cluster" width="500" height="545" class="size-full wp-image-357" /></a><p class="wp-caption-text">Two-way clustering of candidates and precincts</p></div>
<p>I&#8217;ll agree the diagram looks a bit complicated, but if you put in a little work, there&#8217;s a few gems to be found. Precincts are listed down the left side, and candidates across the bottom. The square at each precinct-candidate intersection is colored according to the candidate&#8217;s relative support at that precinct, red being strong, gray medium and blue weak. That part&#8217;s called a <em>cell plot</em> or <em>heat map</em>. </p>
<p>The tree-like parts are <em>dendrograms</em>, which show the results of the hierarchical cluster analyses. Similar items (precincts or candidates) are grouped together in the tree. </p>
<p>For the candidates, along the bottom, there&#8217;s a clear pair of clusters, which I&#8217;ll call <em>left-leaning</em> and <em>right-leaning</em> candidates. Coincidently, the left-leaning are on the left and the right-leaning are on the right.</p>
<p>The precincts are more interesting, though I have even less knowledge of their actual political orientations. I&#8217;ve colored the precincts into five groups. The first (red) and to a greater extent the second (yellow) cluster generally voted in favor of the right-leaning candidates. That is, the left six columns of the heat map are bluish and the right four columns are reddish. The opposite is true for the green and purple clusters; they&#8217;re more left-leaning, especially the purple precincts.</p>
<p>What puzzles me is the middle (blue) cluster. Those precincts don&#8217;t seem to like anyone. The numbers I used for clustering were percent of ballots cast, and apparently there were more voters in those precincts with incomplete ballots, voting in some but not all races. For instance, the two major mayoral candidates, Kleinschmidt and Czajkowski, only received votes on 28% and 21%, respectively, of the ballots at the Kings Mill precinct.</p>
<p>That leads to looking at votes per ballot for each race by precinct. Here&#8217;s a bar chart with the precincts ordered by town council votes per ballot.</p>
<p><a href="http://www.forthgo.com/blog/wp-content/uploads/2009/11/VotesPerBallot.png"><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/11/VotesPerBallot-327x250.png" alt="VotesPerBallot" title="VotesPerBallot" width="327" height="250" class="aligncenter size-thumbnail wp-image-358" /></a></p>
<p>Most precincts had near 100% participation in the mayoral race (exactly 100% for Booker Creek and Coker Hills), and most precincts averaged over three (of four available) votes in the town council race. So only the already-identified cluster of three (plus Dogwood Acres to a lesser degree) stand out regarding participation.</p>
<p>I imagine the One Stop (early voting for all precincts) totals reflect a lot of Carrboro voters. What makes the others different? Were people there to vote for a different race, like the school board? Or just voting for a favorite son/daughter candidate?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2009/11/16/chapel-hill-election-clustering/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Unsophisticated Art Review: Ravi Shankar</title>
		<link>http://www.forthgo.com/blog/2009/10/08/unsophisticated-art-review-ravi-shankar/</link>
		<comments>http://www.forthgo.com/blog/2009/10/08/unsophisticated-art-review-ravi-shankar/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 01:37:34 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Art]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=350</guid>
		<description><![CDATA[Ravi Shankar, his daugher Anoushka Shankar and a few supporting musicians performed at Memorial Hall on Tuesday night. There&#8217;s a decent review at IndyWeek for anyone wanting more sophistication. A local professor made introductions and explained the music as being romantic and added, &#8220;India is a very romantic country, as you can tell by the [...]]]></description>
			<content:encoded><![CDATA[<p>Ravi Shankar, his daugher Anoushka Shankar and a few supporting musicians performed at <a href="http://www.carolinaperformingarts.org/aboutus/memorial.aspx">Memorial Hall</a> on Tuesday night. There&#8217;s a decent <a href="http://www.indyweekblogs.com/scan/2009/10/live-ravi-shankar-captivates-in-chapel-hill/">review at IndyWeek</a> for anyone wanting more sophistication. A local professor made introductions and explained the music as being romantic and added, &#8220;India is a very romantic country, as you can tell by the population.&#8221; The eight-year-old sitting next to me pondered that for a moment and then declared to her mother, &#8220;Oh, India is romantic so more people want to move there.&#8221;</p>
<p><div class="wp-caption alignleft" style="width: 166px"><a href="http://en.wikipedia.org/wiki/Sitar"><img alt="Sitar" src="http://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Sitar_full.jpg/302px-Sitar_full.jpg" title="Sitar" width="156" height="300" /></a><p class="wp-caption-text">Sitar</p></div>The opening act was composed of four performers, with most of the action coming from a flutist and a drummer. I couldn&#8217;t see much movement from the other two, but they were apparently playing some kind of slow bass sitars. The wooden flute sounded a bit coarse at first as if resisting, but with lots of energy the flutist eventually won the battle and produced many flowing sequences of pure sounds. The most impressive thing about the drummer was the ability to produce so many sounds from a single drum. His hands each played at opposite ends of the drum simultaneously and with different beats.</p>
<p>Just like in this <a href="http://www.nytimes.com/2001/11/24/arts/music-review-saying-farewell-in-a-rush-of-witty-ragas.html">tame New York Times review</a> from eight years ago, Ravi Shankar looked very frail coming out on stage and needed help getting set up, but after that he played energetically for the rest of the evening with his daughter playing at his side. Shankar was smiling, laughing, and playing very quickly toward the end. Both played sitars, with occasionally accompaniment from other musicians. They played only two long, continuous pieces. Though I wasn&#8217;t familiar with the music, I could recognize many sequences that are now embedded in Western guitar music. So maybe it&#8217;s true that Shankar is the &#8220;the godfather of world music,&#8221; as George Harrison called him.</p>
<p>For myself and others I talked to, the performance felt like it went by fast, but on checking the time afterwards, over two hours had elapsed. I wonder if the music had induced some kind of trance state that impaired our perception of time.</p>
<p>Memorial Hall did a great job at relaying the music to the audience. It was, however, annoying that they still haven&#8217;t convinced the audience not to keep checking cell phones or taking photos. I mean, how good a photo can you get anyway?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2009/10/08/unsophisticated-art-review-ravi-shankar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running with Thieves?</title>
		<link>http://www.forthgo.com/blog/2009/09/27/running-with-thieves/</link>
		<comments>http://www.forthgo.com/blog/2009/09/27/running-with-thieves/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 18:35:04 +0000</pubDate>
		<dc:creator>xan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.forthgo.com/blog/?p=342</guid>
		<description><![CDATA[After owning an iPhone for only two weeks, I&#8217;ve already lost my earphones. Searching for replacements, Google led me to bestofferbuy.com, which I know nothing about. At $3.50 and free shipping, I figured it was too good to be true and went elsewhere. 
The interesting part was the &#8220;customers also purchased&#8221; list:

Four of the items [...]]]></description>
			<content:encoded><![CDATA[<p>After owning an iPhone for only two weeks, I&#8217;ve already lost my earphones. Searching for replacements, Google led me to <a href="http://www.bestofferbuy.com/replacement-earphones-for-iphone-35mm-jack-12m-cable-with-mic-p-10158.html">bestofferbuy.com</a>, which I know nothing about. At $3.50 and free shipping, I figured it was too good to be true and went elsewhere. </p>
<p>The interesting part was the &#8220;customers also purchased&#8221; list:</p>
<p><a href="http://www.forthgo.com/blog/wp-content/uploads/2009/09/lockpicks1.png"><img src="http://www.forthgo.com/blog/wp-content/uploads/2009/09/lockpicks1-351x250.png" alt="lockpicks1" title="lockpicks1" width="351" height="250" class="aligncenter size-thumbnail wp-image-344" /></a></p>
<p>Four of the items are related to breaking locks. I wonder if these earphones are popular with people that steal iPhones and iPods.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forthgo.com/blog/2009/09/27/running-with-thieves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
