<?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>Tongfamily Website &#187; Linkage</title>
	<atom:link href="http://www.tongfamily.com/archives/tag/linkage/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tongfamily.com</link>
	<description>Tips, Tricks and Traps from the Tong's</description>
	<lastBuildDate>Fri, 30 Jul 2010 04:33:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPhone stuck at spinning wheel</title>
		<link>http://www.tongfamily.com/archives/2008/04/iphone-stuck-at-spinning-wheel/</link>
		<comments>http://www.tongfamily.com/archives/2008/04/iphone-stuck-at-spinning-wheel/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 09:12:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Canonical Form]]></category>
		<category><![CDATA[Chir]]></category>
		<category><![CDATA[First Command]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Home Button]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Linkage]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Os X]]></category>
		<category><![CDATA[Rockefeller]]></category>
		<category><![CDATA[Showthread]]></category>
		<category><![CDATA[Sorts]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Spinning Wheel]]></category>
		<category><![CDATA[Sync]]></category>
		<category><![CDATA[Three Times]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Unix Dictionary]]></category>
		<category><![CDATA[Unix V7]]></category>
		<category><![CDATA[Wheel]]></category>
		<category><![CDATA[Word Dictionary]]></category>

		<guid isPermaLink="false">http://www.tongfamily.com/archive/2008/04/11/iphone-stuck-at-spinning-wheel/</guid>
		<description><![CDATA[Sigh, I&#8217;ve had this happen three times now, when I install a bunch of applications and press the HOME button to get back, the iPhone comes up with a spinning wheel and won&#8217;t stop. When I turn it on, the apple logo comes up and the spinning wheel is under it. &#8220;mazbarz&#8221;:http://forums.macrumors.com/showthread.php?t=439928 had exctly the [...]]]></description>
			<content:encoded><![CDATA[<p>Sigh, I&#8217;ve had this happen three times now, when I install a bunch of applications and press the HOME button to get back, the iPhone comes up with a spinning wheel and won&#8217;t stop. When I turn it on, the apple logo comes up and the spinning wheel is under it. &#8220;mazbarz&#8221;:http://forums.macrumors.com/showthread.php?t=439928 had exctly the same problem. Also you can&#8217;t turn it off when you press the Home button and the off button simultaneiously and can&#8217;t sync it with itunes. Arrgh!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tongfamily.com/archives/2008/04/iphone-stuck-at-spinning-wheel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anagram Solver</title>
		<link>http://www.tongfamily.com/archives/2008/04/anagram-solver/</link>
		<comments>http://www.tongfamily.com/archives/2008/04/anagram-solver/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 00:09:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Calvin]]></category>
		<category><![CDATA[Canonical Form]]></category>
		<category><![CDATA[Chir]]></category>
		<category><![CDATA[First Command]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Search]]></category>
		<category><![CDATA[Linkage]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Os X]]></category>
		<category><![CDATA[Prime Number]]></category>
		<category><![CDATA[Primes]]></category>
		<category><![CDATA[Program Search]]></category>
		<category><![CDATA[Rockefeller]]></category>
		<category><![CDATA[Sorts]]></category>
		<category><![CDATA[Source Code]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Unix Dictionary]]></category>
		<category><![CDATA[Unix V7]]></category>
		<category><![CDATA[Word Dictionary]]></category>

		<guid isPermaLink="false">http://www.tongfamily.com/archive/2008/04/10/anagram-solver/</guid>
		<description><![CDATA[Calvin wants to solve anagrams. There are lots of great programs out there, but not much source. &#8220;Gtoal.com&#8221;:http://www.gtoal.com/wordgames/anagrams.html has a good list of source code that is out there, but its hard to find a simple program. 
&#8220;Gtanag.mai&#8221;:http://www.gtoal.com/wordgames/anagrams/gtanag.mai is perhaps the simplest program that is a C program. I&#8217;m sure you could use it in [...]]]></description>
			<content:encoded><![CDATA[<p>Calvin wants to solve anagrams. There are lots of great programs out there, but not much source. &#8220;Gtoal.com&#8221;:http://www.gtoal.com/wordgames/anagrams.html has a good list of source code that is out there, but its hard to find a simple program. </p>
<p>&#8220;Gtanag.mai&#8221;:http://www.gtoal.com/wordgames/anagrams/gtanag.mai is perhaps the simplest program that is a C program. I&#8217;m sure you could use it in any language. What it does is pretty brute force. It takes any dictionary like say a Google search for &#8220;unix dictionary list&#8221;:google which gets you to &#8220;words.txt&#8221;:http://linkage.rockefeller.edu/chaynes/words.txt that has a 25,000 word dictionary or the Unix V7 &#8220;/usr/dict/words&#8221;:http://unix-tree.huihoo.org/V7/usr/dict/words.html and finds all anagrams by first making each entry canonical that is, it takes all the letters and alpha sorts them, so &#8220;rich&#8221; becomes &#8220;chir&#8221; and &#8220;calvin&#8221; becomes &#8220;acilnv&#8221; and then it can compare them by sorting all the words. If &#8220;acilnv&#8221; matches, then you have all the words that are anagrams. That is, use the same letters. Quite clever really.</p>
<p>Then there is one that is quite elegant using primes. Basically instead of the canonical form being the sorted order, it assigns a prime number to each letter. Then when you multiply, that number will be unique since it is a product of primes, if the numbers are the same then the word has to be the same. Wow, people like &#8220;falbdablet&#8221;:http://www.gtoal.com/wordgames/anagrams/flabdablet/anagram.c are sure smart!</p>
<p>So the usage if you like Unix (or Mac OS X which is the same is):</p>
<p>bq. canonize < dictionary | sort | gather</p>
<p>The first command, takes an entire text file and turns into the canonical form that looks like &#8220;rich=chir&#8221; and then sort sorts the canonical alphabetically. Then gather just finds all the identical words. You could also use fgrep to find for instance all the canonical matches.</p>
<p>We worked on a new program &#8220;search.c&#8221; that opens a dictionary that is canonical and sorted and looks for all anagrams. The Unix V7 English list is 24,000 words, but to find some really great word lists, &#8220;net-comber.com&#8221;:http://www.net-comber.com/wordurls.html has a good word list. The main problem is that we really just want an uncluttered list. So &#8220;outpost9.com&#8221;:http://www.outpost9.com/files/WordLists.html has a dictionary and also things that include proper names and abbreviations. The &#8220;crosswordman.com&#8221;:http://www.crosswordman.com/wordlist.html is what is allowed by Scrabble or simple &#8220;zip&#8221;:http://personal.riverusers.com/~thegrendel/ format.</p>
<p>The only small problem is that this is a DOS file format, so you need a small tool like &#8220;tofrodos&#8221;:http://www.thefreecountry.com/tofrodos/ to get rid of the CRLF that is in DOS files vs. just the CR that is Unix files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tongfamily.com/archives/2008/04/anagram-solver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
