<?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>I AM MY OWN ORG &#187; philosophy</title>
	<atom:link href="http://iammyownorg.org/tag/philosophy/feed/" rel="self" type="application/rss+xml" />
	<link>http://iammyownorg.org</link>
	<description>Syndicated code and ideas of Michael Wade</description>
	<lastBuildDate>Thu, 24 Nov 2011 07:15:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pattern Recgonition</title>
		<link>http://iammyownorg.org/pattern-recgonition/</link>
		<comments>http://iammyownorg.org/pattern-recgonition/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 05:22:09 +0000</pubDate>
		<dc:creator>MikeWade</dc:creator>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Whatever Whatever.]]></category>
		<category><![CDATA[patterns]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[vision]]></category>

		<guid isPermaLink="false">http://iammyownorg.org/?p=102</guid>
		<description><![CDATA[In Pragmatic Thinking &#38; Learning: Refactor Your Wetware, Andy Hunt gives several great examples of situations in which the brain takes input from one source and repackages the information into a context that we understand.  My favorite example is the following sentence: &#8220;Cna yuo raed tihs?&#8221; (p. 102) No problem, right? That&#8217;s because your brain is [...]]]></description>
			<content:encoded><![CDATA[<p>In <em><a href="http://www.amazon.com/Pragmatic-Thinking-Learning-Refactor-Programmers/dp/1934356050/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1246411025&amp;sr=8-1">Pragmatic Thinking &amp; Learning: Refactor Your Wetware</a><span style="font-style: normal;">, Andy Hunt gives several great examples of situations in which the brain takes input from one source and repackages the information into a context that we understand.  My favorite example is the following sentence:</span></em></p>
<p><em><span style="font-style: normal;">&#8220;Cna yuo raed tihs?&#8221; (p. 102)</span></em></p>
<p>No problem, right?  That&#8217;s because your brain is processing the words individually and repackaging the characters into an order that would make sense given the context.  Fascinating.  Oru abiltiy to ientrerpt centoxt at all is faaicnnstig, btu to go boeynd taht by re-irpretninetg rdnaom inupt into snesbile inupt is slpimy a ctaunmopiotal mlcarie.  Just imnaige teh moremy adn caompuaotnitl poewr nedeed to mcath ecah grnpiuog of lreetts to a pirmutaoeun taht hsa mnnieag in a gevin context&#8230;  It wuold be iimpssbole to srtoe teh wrod contbimniaos into memroy on most merdon coputerms, even if we liietmd wodrs to a mmiaxum of 10 leterts.</p>
<div>What&#8217;s more interesting is how this type of peripheral and contextual synthesis is not limited to a singular sense, but rather applies to all of our senses.  Stare directly into the face of someone you love (or a complete stranger) and you&#8217;ll eventually come to the conclusion that you recgonize every wrinkle.  Allow me to ruin that moment forever with a simple demonstration.  Sit back in your chair, close your left eye, and stare at the smily face with your right.  Ever so carefully, move forward while staring at the smily and eventually the frowny face will disappear.  Should happen when you&#8217;re about a foot from the screen.  It reappears as you move closer so don&#8217;t get too excited..</div>
<table border="0" width="50%" align="center">
<tbody>
<tr>
<td> <img src='http://iammyownorg.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </td>
<td align="right"> <img src='http://iammyownorg.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </td>
</tr>
</tbody>
</table>
<p>Cna yuo bilevee that just haepnped!!??!  All these years your brain has filled in the blind spots with interpretations of what <em>it</em> thinks should be.  Words, sight, hearing, taste, feelings; everything is interpreted.  With that being the case, I&#8217;m not the least bit surprised that our world is constantly at war with itself when the first event we are given to interpret is a painful eviction followed by a stern smack on the ass.</p>
<p>As a tribute to Andy Hunt&#8217;s example, I baked up some fresh python code to create this effect from a text file.  It&#8217;s also what I used to create parts of this blog.  Enojy!</p>
<pre class="brush:py"># file: scramble.py
# poet: Michael Wade
# idea: Mix up the characters of words, but keep the first and last the same.
# The effect should be something along the lines of:
# Cna yuo raed tihs?  -- Andy Hunt, Pragmatic Thinking &amp; Learning
import sys, getopt, random;

# scramble()
# Post: Randomizes the ordering of characters between the first
#       and last letter of a given input word.
def scramble(word):
    if len(word) &lt;= 2:
        return word;
    elif len(word) == 3:
        word = word[0] + word[2] + word[1];
    else:
        # Need to leave any punctuation in place..
        last = len(word);
        end = word[len(word)-1];
        if end in "!?.,;":
            last = len(word)-1;
        else:
            last = len(word);
            end = '';

        # Hyphens are a special case..
        if "-" in word:
            splitWord = word.split("-");
            return scramble(splitWord[0]) + "-" + scramble(splitWord[1]);

        # Randomize the middle part
        middlePart = str(word[1:(last-1)]);
        middlePart = ''.join(random.sample(middlePart, len(middlePart)));

        # Bring it all back together.
        word = word[0] + middlePart + word[last-1] + end;

    return word;

if __name__ == "__main__":

    # First arguement MUST be a filename.
    if len(sys.argv) &lt; 2:
        print "Please specify a text file like so:"
        print "python scramble.py myFile.txt"
    else:
        inputFile = ""; # Default to a blank filename
        try:
            inputFile = open(sys.argv[1],"r")
        except IOError:
            print "Error opening file:", sys.argv[1]
            sys.exit(2)

        # Each line in the file needs to be broken into words.
        for line in inputFile:
            scrambledLine = "";
            words = line.split(" ");

            # Each word needs to be scrambled.
            for word in words:
                scrambledLine += scramble(word) + " "

            # Each line needs to be reprinted
            print scrambledLine

        # Close the file
        inputFile.close();</pre>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F&amp;title=Pattern+Recgonition" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F&amp;title=Pattern+Recgonition" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F&amp;title=Pattern+Recgonition" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F&amp;headline=Pattern+Recgonition" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Pattern+Recgonition&amp;url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Pattern+Recgonition&amp;u=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Pattern+Recgonition&amp;url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Pattern+Recgonition&amp;url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Pattern+Recgonition&amp;url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F&amp;title=Pattern+Recgonition&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fiammyownorg.org%2Fpattern-recgonition%2F" ><img class="lightsocial_img" src="http://iammyownorg.org/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://iammyownorg.org/pattern-recgonition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

