<?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>The Simple Logic &#187; fun</title>
	<atom:link href="http://www.thesimplelogic.com/category/fun/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesimplelogic.com</link>
	<description></description>
	<lastBuildDate>Tue, 20 Dec 2011 14:21:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Jeopardy! Categories Word Cloud</title>
		<link>http://www.thesimplelogic.com/2011/04/10/jeopardy-categories-word-cloud/</link>
		<comments>http://www.thesimplelogic.com/2011/04/10/jeopardy-categories-word-cloud/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 20:22:16 +0000</pubDate>
		<dc:creator>Adam Fletcher</dc:creator>
				<category><![CDATA[cloud]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[Jeopardy!]]></category>
		<category><![CDATA[word cloud]]></category>

		<guid isPermaLink="false">http://www.thesimplelogic.com/?p=361</guid>
		<description><![CDATA[&#160; During the Watson-related madness earlier this year I wrote a script to put all of the Jeopardy! game data from J! Archive into a SQL database (they have no API so I parsed the very-broken HTML for each game). I never ended up doing anything with the data, but there&#8217;s been renewed interest around [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2011/04/j_cat_word_cloud_big.png"><img class="size-full wp-image-370 aligncenter" title="new_j_cats" src="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2011/04/new_j_cats.png" alt="" width="680" height="361" /></a></p>
<p style="text-align: center;">&nbsp;</p>
<p>During the Watson-related madness earlier this year I wrote a script to put all of the Jeopardy! game data from <a href="http://www.j-archive.com/">J! Archive</a> into a SQL database (they have no API so I parsed the very-broken HTML for each game). I never ended up doing anything with the data, but there&#8217;s been renewed interest around the house in this data so I took some time to <a href="http://www.wordle.net/">make a word cloud</a> of the Jeopardy! categories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesimplelogic.com/2011/04/10/jeopardy-categories-word-cloud/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nerd Pub Trivia @ ITA</title>
		<link>http://www.thesimplelogic.com/2010/08/06/nerd-pub-trivia-ita/</link>
		<comments>http://www.thesimplelogic.com/2010/08/06/nerd-pub-trivia-ita/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 13:53:21 +0000</pubDate>
		<dc:creator>Adam Fletcher</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[hiring]]></category>
		<category><![CDATA[ITA]]></category>
		<category><![CDATA[booze cruise]]></category>
		<category><![CDATA[nerds]]></category>
		<category><![CDATA[trivia]]></category>

		<guid isPermaLink="false">http://www.thesimplelogic.com/?p=318</guid>
		<description><![CDATA[Every year ITA Software sends us all out on a boat to eat, drink and make merry, and this year I thought it would be fun to host a Nerd Pub Trivia. The idea came when, while playing regular pub trivia, the picture round category was &#8220;Famous Nerds&#8221;. My friends and I thought we were [...]]]></description>
			<content:encoded><![CDATA[<p>Every year <a href="http://www.itasoftware.com/">ITA Software</a> sends us all out on a boat to eat, drink and make merry, and this year I thought it would be fun to host a Nerd Pub Trivia. The idea came when, while playing regular pub trivia, the picture round category was &#8220;Famous Nerds&#8221;. My friends and I thought we were a lock for a perfect picture round score, but instead of pictures of Turing Award winners we got pictures of movie and TV nerds. We joked about how awesome it would be if there was real nerd pub trivia, so that&#8217;s what I made happen on ITA&#8217;s booze cruise.</p>
<p>The format was a shortened pub trivia, with songs played after reading each question:</p>
<ul>
<li>1 round of 4 questions with each question being worth either 1, 3, 5 or 7 points (you decide, you can only use each value once)</li>
<li>1 special picture round (2 points for each item correctly identified)</li>
<li>1 round of 4 questions with each question being worth 2, 4, 6 or 8 points (akin to the first round)</li>
<li>2 final questions on which you wager up to 10 points each (win or lose what you wager)</li>
</ul>
<p>Without further ado, here are the questions:</p>
<p><strong>Famous Nerds:</strong> Who wrote in a famous RFC, &#8220;be conservative in what you do, be liberal in what you accept from others&#8221;?</p>
<p><strong>Databases: </strong>What does ACID stand for?</p>
<p><strong>Networking:</strong> How many bytes are there in an Ethernet address?</p>
<p><strong>Systems Programming:</strong> What is the only UNIX syscall that returns twice?</p>
<p><strong>Data Structures:</strong> This colorful binary tree is self-balancing and contains no data in the tree&#8217;s leaf nodes &#8211; what is it?</p>
<p><strong>Operating Systems:</strong> Which process typically has the PID of 1 on a UNIX system?</p>
<p><strong>Computing History:</strong> Which of these technologies was not invented at XEROX PARC: Ethernet, The Mouse, The Windowing GUI, laser printer?</p>
<p><strong>SciFi/Fantasy:</strong> Who is the Kwistaz Haderach?</p>
<p><strong>Video Games:</strong> What item must you retrieve from the Dungeons Of Doom in Nethack?</p>
<p><strong>Role Playing Games:</strong> What does THAC0 stand for?</p>
<p>And of course, we had a <strong>picture round</strong>: <a href="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2010/08/ID-The-Programming-Language.pdf">ID The Programming Language &amp; ID Carrier/GDS By IATA Code</a> (hey, we&#8217;re an airline software company, I have to have some airline trivia).</p>
<p>I won&#8217;t post the answers here but feel free to post your answers in the comments (and be aware there&#8217;s a few correct answers to some of these questions).</p>
<p>Also, if you&#8217;re a nerd looking for a job at a cool place to work, check out <a href="http://itasoftware.com/careers/index.html">ITA&#8217;s current job offerings</a>. Not to spam my readers but it really is fun to work at a place where you can host a nerd pub trivia and 10 teams join the fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesimplelogic.com/2010/08/06/nerd-pub-trivia-ita/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Music For Beer</title>
		<link>http://www.thesimplelogic.com/2010/06/20/music-for-beer/</link>
		<comments>http://www.thesimplelogic.com/2010/06/20/music-for-beer/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 23:31:48 +0000</pubDate>
		<dc:creator>Adam Fletcher</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[minor seventh]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[iron blogger]]></category>

		<guid isPermaLink="false">http://www.thesimplelogic.com/?p=285</guid>
		<description><![CDATA[One of the reasons I post regularly on this blog is avoidance of beer-oriented debt. That&#8217;s because I&#8217;m part of Iron Blogger, an effort to encourage people to blog at least once a week. Nelson Elhage organizes Iron Blogger, and the concept is simple: post a once a week or put $5 in the beer [...]]]></description>
			<content:encoded><![CDATA[<p>One of the reasons I post regularly on this blog is avoidance of beer-oriented debt. That&#8217;s because I&#8217;m part of <a href="http://iron-blogger.mit.edu/">Iron Blogger</a>, an effort to encourage people to blog at least once a week. <a href="http://blog.nelhage.com/">Nelson Elhage</a> organizes <a href="http://iron-blogger.mit.edu/">Iron Blogger</a>, and the concept is simple: post a once a week or put $5 in the beer pool.</p>
<p>When I&#8217;m not being a computer nerd I&#8217;m often studying music (I&#8217;ve even <a href="http://www.minorseventh.com/">created website which helps me study</a>), and in an effort to keep me and my friends making music I&#8217;ve started <a href="http://ironmusician.wordpress.com/">Iron Musician</a>, where my friends and I must create at least a minute of music once week or owe $5 to the beer pool.</p>
<p>Take a listen to some of the entries and feel to free to provide some constructive criticism.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesimplelogic.com/2010/06/20/music-for-beer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ear Training</title>
		<link>http://www.thesimplelogic.com/2010/05/09/ear-training/</link>
		<comments>http://www.thesimplelogic.com/2010/05/09/ear-training/#comments</comments>
		<pubDate>Mon, 10 May 2010 00:35:51 +0000</pubDate>
		<dc:creator>Adam Fletcher</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[minor seventh]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[ear training]]></category>
		<category><![CDATA[guitar]]></category>

		<guid isPermaLink="false">http://www.thesimplelogic.com/?p=263</guid>
		<description><![CDATA[When I&#8217;m not playing with computers I spend a lot of time trying to play guitar, and one aspect of my musical education I have struggled with is training my ear. My guitar teacher suggested practicing with Ear Trainer, a free site that is very complete but has a terrible user interface. In what was [...]]]></description>
			<content:encoded><![CDATA[<p>When I&#8217;m not playing with computers I spend a lot of time trying to play guitar, and one aspect of my musical education I have struggled with is training my ear. My guitar teacher suggested practicing with <a href="http://www.good-ear.com/servlet/EarTrainer">Ear Trainer</a>, a free site that is very complete but has a terrible user interface.</p>
<p>In what was a very productive session of procrastinating on doing my guitar homework I ended up making my own ear training site. So, if you&#8217;re in need of some ear training, please take a look at <a href="http://www.minorseventh.com/">Minor Seventh</a>.</p>
<p>I built the site on <a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager 2</a> (which regrettably requires Adobe Flash, because JavaScript has no native way  to play sound), <a href="http://jquery.com/">jQuery</a> and <a href="http://jqueryui.com/">jQuery UI</a>. I&#8217;ll work on an HTML 5 version once someone sends me a free iPad.</p>
<p>I&#8217;d love some feedback on the site if you end up using it. Upcoming features include:</p>
<ul>
<li>Listening mode, where pressing the interval buttons plays the interval</li>
<li>Chord sound training</li>
<li>The option to change the root note to a random note</li>
<li>The option to play only the arpeggio, not the chord</li>
<li>New samples</li>
<li>Progression training (identify a set of chords by location in the key)</li>
</ul>
<p>Big thanks to <a href="http://blog.ksplice.com/author/jesstess/">Jessica McKellar</a>, Mike Fisher, Greg Price, Todd MacGarvey, Giles Hall, and the others who helped work out all the bugs. Would you like a new feature or a change? Post a comment here or send some feedback from the &#8216;Submit Feedback&#8217; link on <a href="http://minorseventh.com">Minor Seventh</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesimplelogic.com/2010/05/09/ear-training/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wandering Wikipedia: Datamining My Firefox History</title>
		<link>http://www.thesimplelogic.com/2010/04/17/wandering-wikipedia-datamining-my-firefox-history/</link>
		<comments>http://www.thesimplelogic.com/2010/04/17/wandering-wikipedia-datamining-my-firefox-history/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 04:24:54 +0000</pubDate>
		<dc:creator>Adam Fletcher</dc:creator>
				<category><![CDATA[fun]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[dirtnap]]></category>
		<category><![CDATA[foxygraph]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[jesstess]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tanning addiction]]></category>
		<category><![CDATA[wikipedia]]></category>

		<guid isPermaLink="false">http://www.thesimplelogic.com/?p=197</guid>
		<description><![CDATA[My friends and I frequently get lost in Wikipedia. I&#8217;ll start out searching for something innocuous, like neutrino, and then suddenly I&#8217;m learning all about tanning addiction. This happens so often that my girlfriend suggested that it would be fascinating to plot the various trips through Wikipedia by datamining the Firefox history database, and since [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2010/04/foxygraph_example1.png"><img class="aligncenter size-full wp-image-196" title="Wikipedia Hypertree" src="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2010/04/foxygraph_example1.png" alt="" width="630" height="392" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">My friends and I frequently get lost in <a href="http://www.wikipedia.org">Wikipedia</a>. I&#8217;ll start out searching for something innocuous, like <a href="http://en.wikipedia.org/wiki/Neutrino">neutrino</a>, and then suddenly I&#8217;m learning all about <a href="http://en.wikipedia.org/wiki/Tanning_addiction">tanning addiction</a>. This happens so often that <a href="http://blog.ksplice.com/author/jesstess/">my girlfriend</a> suggested that it would be fascinating to plot the various trips through Wikipedia by datamining the Firefox history database, and since she is busy with her thesis I stole the idea and spent a few hours writing a Python script to visually display my Wikipedia wanderings.</p>
<p style="text-align: left;"><a href="http://www.mozilla.com/en-US/firefox/personal.html?from=getfirefox">Firefox 3</a> stores its history in a <a href="http://sqlite.org/">SQLite 3</a> database file in your profile directory; on OS X that database lives in <code>~/Library/Application Support/Firefox/Profiles/cn3x93q2.default,</code> and the database file we&#8217;re interested in is <code>places.sqlite.</code></p>
<p>The history database schema is described <a href="http://www.forensicswiki.org/wiki/Mozilla_Firefox_3_History_File_Format">here</a>, but the two tables we&#8217;re interested in are <code>moz_places</code> and <code>moz_historyvisits</code>. The first, <code>moz_places</code>, has the URL, title and other data related to the links we&#8217;ve visited. What it doesn&#8217;t have is information on the paths we have a traversed to get to the URLs in <code>moz_places</code> &#8211; that information is in <code>moz_historyvisits</code>. <code>moz_historyvisists</code> has internal references which let us find out where we&#8217;ve been (the column <code>from_visit</code>) and a reference to the <code>moz_places</code> table via the <code>place_id</code> column.</p>
<div id="attachment_200" class="wp-caption alignright" style="width: 413px"><a href="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2010/04/foxygraph_exampledot.png"><img class="size-full wp-image-200 " style="border: 1px solid black; margin: 2px;" title="foxygraph_exampledot" src="http://www.thesimplelogic.com/wordpress/wp-content/uploads/2010/04/foxygraph_exampledot.png" alt="" width="403" height="596" /></a><p class="wp-caption-text">How I got from neutrino to tanning addiction. </p></div>
<p>A very talented data architect I know helped write (entirely wrote is maybe more accurate), this query:</p>
<p><code>SELECT<br />
curr.id, curr.url, curr.title,<br />
prev.id, prev.url, prev.title,<br />
1, t.visit_date<br />
FROM<br />
moz_places curr, moz_places prev,<br />
moz_historyvisits frm,<br />
moz_historyvisits t<br />
WHERE<br />
t.place_id = curr.id AND<br />
frm.place_id = prev.id AND<br />
frm.id = t.from_visit AND<br />
curr.url LIKE 'http://en.wikipedia.org/%' AND<br />
prev.url NOT LIKE 'http://en.wikipedia.org/%'<br />
</code><br />
This query returns all Wikipedia URLs that are the starting points of my journeys through Wikipedia by finding all of the Wikipedia links I&#8217;ve visited whose referrer is not Wikipedia itself. With a few changes to the last clauses we can find all the URLs whose referrers are Wikipedia links (ie, the waypoints in my travels through Wikipedia). Finally, by asking for a <code>curr.url</code> which is not part of Wikipedia but which has a <code>prev.url</code> that is Wikipedia, we know when we&#8217;ve left Wikipedia.</p>
<p>My script outputs graphs in <a href="http://www.graphviz.org/">Dot</a> format and JSON. The JSON output is in a representation that is compatible with <a href="http://thejit.org/">JIT</a>, a web 2.0 AJAXy graphing library, the output of which you can see in the title graphic of this post.</p>
<p>I&#8217;ve put the script up on <a href="https://github.com/">github</a> and called it <a href="http://github.com/adamf/FoxyGraph">FoxyGraph</a> (be kind; it was written in a few hours for a specific purpose and is probably full of bugs). I&#8217;ll be updating FoxyGraph later with more interesting visualizations of my Firefox history, but for now you can see the<a href="http://www.thesimplelogic.com/foxygraph/"> immense clickable web 2.0 hypertree of my Wikipedia wanderings.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesimplelogic.com/2010/04/17/wandering-wikipedia-datamining-my-firefox-history/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

