<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Computerist&#039;s Blog</title>
	<atom:link href="http://computerist29.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://computerist29.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 08 Jan 2012 23:05:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='computerist29.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Computerist&#039;s Blog</title>
		<link>http://computerist29.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://computerist29.wordpress.com/osd.xml" title="Computerist&#039;s Blog" />
	<atom:link rel='hub' href='http://computerist29.wordpress.com/?pushpress=hub'/>
		<item>
		<title></title>
		<link>http://computerist29.wordpress.com/2012/01/08/145/</link>
		<comments>http://computerist29.wordpress.com/2012/01/08/145/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 23:05:41 +0000</pubDate>
		<dc:creator>computerist29</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://computerist29.wordpress.com/?p=145</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=145&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<a href="http://polldaddy.com/poll/5733310/">View This Poll</a>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/computerist29.wordpress.com/145/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/computerist29.wordpress.com/145/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/computerist29.wordpress.com/145/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=145&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://computerist29.wordpress.com/2012/01/08/145/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86e55c9f13323397567cf5d53b7f320d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">computerist29</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing PIL for Google App Engine Windows 7</title>
		<link>http://computerist29.wordpress.com/2011/11/24/installing-pil-for-google-app-engine-windows-7/</link>
		<comments>http://computerist29.wordpress.com/2011/11/24/installing-pil-for-google-app-engine-windows-7/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 05:49:11 +0000</pubDate>
		<dc:creator>computerist29</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://computerist29.wordpress.com/?p=118</guid>
		<description><![CDATA[NotImplementedError: Unable to find the Python PIL library. 1) There problem is that you have not installed PIL into Python25/Lib/site-packages/ Download it here 2) If error still comes up, make sure to explicitly tell the development server (Google App Engine Launcher) which Python distribution you are using as you may have multiple installations of Python [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=118&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>NotImplementedError: Unable to find the Python PIL library.

1)</pre>
<p>There problem is that you have not installed PIL into Python25/Lib/site-packages/</p>
<p>Download it <a href="http://www.pythonware.com/products/pil/">her</a>e</p>
<p>2)</p>
<p>If error still comes up, make sure to explicitly tell the development server (Google App Engine Launcher) which Python distribution you are using as you may have multiple installations of Python (2.5, 2.7 etc..) and it registered by default with a different distribution.</p>
<p>Go into Edit -&gt; Preferences</p>
<p>In &#8220;Python Path&#8221;, specify path to Python exe : C:\Python25\<strong>pythonw.exe</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/computerist29.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/computerist29.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/computerist29.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=118&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://computerist29.wordpress.com/2011/11/24/installing-pil-for-google-app-engine-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86e55c9f13323397567cf5d53b7f320d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">computerist29</media:title>
		</media:content>
	</item>
		<item>
		<title>Dawkins the weasel, and a program</title>
		<link>http://computerist29.wordpress.com/2009/11/12/dawkins-the-weasel-and-a-program/</link>
		<comments>http://computerist29.wordpress.com/2009/11/12/dawkins-the-weasel-and-a-program/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 03:45:23 +0000</pubDate>
		<dc:creator>computerist29</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://computerist29.wordpress.com/?p=45</guid>
		<description><![CDATA[Darwinian Evolution does not work, period. Below I have written (in about 1 hours time) Dawkins Weasel Evolutionary Algorithm. I will explain more thoroughly why Darwinian Evolution is speculation coupled with wishful thinking. Example output on string METHINKS DAWKINS IS A WEASEL T SEAASMENQKAIWLSW IIS HDNE T SEAASMENQKAIWLSW  IS HDNE T SEAASMENQKJIWLSW  IS HDNE K [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=45&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="background-color:#ffffff;color:#990000;">Darwinian Evolution does not work, period. Below I have written (in about 1 hours time) Dawkins Weasel Evolutionary Algorithm.</p>
<p style="background-color:#ffffff;color:#990000;">I will explain more thoroughly why Darwinian Evolution is speculation coupled with wishful thinking.</p>
<p><pre class="brush: cpp;">

#include
#include
#include
#include

#define ALPHABET &quot;ABCDEFGHIJKLMNOPQRSTUVWXYZ &quot;
#define ALPHA_LENGTH 27

typedef enum { FALSE = 0, TRUE = 1 } boolean;

void upString(char *);
void mutate(char *, char *, int);
void shuffle(char *);
int randInt(int, int);
int fitness(char *);
boolean isLocked(char *);

char TARGET_STRING[100];
int TARGET_LENGTH;

int main(int argc, char **argv) {

 float rate = 0.0;
 FILE* file = (argv[1] == NULL) ? fopen(&quot;output.txt&quot;, &quot;w&quot;) : fopen(argv[1], &quot;w&quot;);

 if(file == NULL) {
    return 1;
 }

 fprintf(stdout,&quot;\nEnter a target string:\t&quot;);gets(TARGET_STRING);

 fprintf(stdout,&quot;\nEnter a mutation rate:\t&quot;);fscanf(stdin,&quot;%f&quot;, &amp;rate);

 TARGET_LENGTH = strlen(&amp;TARGET_STRING[0]);

 float mutation_rate = ceil((rate / 100) * TARGET_LENGTH);int m_rate = (int)mutation_rate;

 upString(&amp;TARGET_STRING[0]);

 char *current_ptr;
 char current[TARGET_LENGTH];

 current_ptr = &amp;current[0];

 strcpy(&amp;current_ptr[0], &amp;TARGET_STRING[0]);

 shuffle(&amp;current_ptr[0]);

 char *buffer_ptr;
 char buffer[TARGET_LENGTH];

 buffer_ptr = &amp;buffer[0];

 int gen_count = 0;    char str_gc[100];
 int i;

 while(!isLocked(buffer_ptr)) {

 if (system(&quot;cls&quot;)) system(&quot;clear&quot;);

 mutate(current_ptr, buffer_ptr, m_rate);

 if(fitness(&amp;buffer_ptr[0]) &gt;= fitness(&amp;current_ptr[0])) {
    strcpy(&amp;current_ptr[0], &amp;buffer_ptr[0]);
 }

 puts(current_ptr);
 fputs(current_ptr, file);
 fputs(&quot;\n&quot;, file);
 gen_count++;
 }

 fprintf(stdout,&quot;\nNumber of trials to reach target: %d&quot;, gen_count);

 fputs(&quot;\n&quot;, file);
 fputs(&quot;\nNumber of trials to reach target: &quot;, file);
 fputs(itoa(gen_count, str_gc, 10), file);

 fclose(file);

return 0;
}

void upString(char *string) {
 int i;
 for(i=0;i    string[i] = toupper(string[i]);
}

void mutate(char* cPtr, char* bPtr, int m_rate) {
 strcpy(&amp;bPtr[0], &amp;cPtr[0]);
 int i;
 for(i=0;i    bPtr[randInt(0, (TARGET_LENGTH - 1))] = ALPHABET[randInt(0,(ALPHA_LENGTH - 1))];
 }
}

void shuffle(char *string) {
 int j, k;
 for(j=0; j for(k=0; k   int r = randInt(0, TARGET_LENGTH - 1);
   int temp = string[k];

    string[k] = string[r];
    string[r] = temp;
 }
 }

}

int fitness(char *cString) {
 int i;int count = 0;
 for(i=0;i    if(*(cString + i) == TARGET_STRING[i]) {
    count++;
 }
 }
return count;
}

int randInt(int min, int max) {
 static int kState = 0;int i;
 if(kState == 0) {
   srand(time(NULL));
    kState = 1;
 }
 i = (rand() % (max - min + 1) + min);

return i;
}

boolean isLocked(char *curPtr) {
 boolean state = FALSE;
 if(strcmp(&amp;curPtr[0], &amp;TARGET_STRING[0]) == 0) {
   state = TRUE;
 }
return state;
}

</pre></p>
<p style="background-color:#ffffff;color:#990000;">Example output on string <strong>METHINKS DAWKINS IS A WEASEL</strong></p>
<p style="background-color:#ffffff;color:#990000;"><em>T SEAASMENQKAIWLSW IIS HDNE<br />
T SEAASMENQKAIWLSW  IS HDNE<br />
T SEAASMENQKJIWLSW  IS HDNE<br />
K SEAASMENQKJIWLSW  IS HDNE<br />
S SEAASMENQKJIWLSW  IS HDNE<br />
S SEAASMENQKJIWLSW IIS HDNE<br />
S SEAASMENQKJIWLSW IISRHDNE<br />
G SEAASMENQKJIWLSW IISRHDNE<br />
&#8230;&#8230;&#8230;<br />
METHINKS DASKINS IS A WEASEL<br />
METHINKS DAJKINS IS A WEASEL<br />
METHINKS DAJKINS IS A WEASEL<br />
METHINKS DAJKINS IS A WEASEL<br />
METHINKS DAWKINS IS A WEASEL</em></p>
<p style="background-color:#ffffff;color:#990000;">Number of trials to reach target: 3703</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/computerist29.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/computerist29.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/computerist29.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=computerist29.wordpress.com&amp;blog=9225499&amp;post=45&amp;subd=computerist29&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://computerist29.wordpress.com/2009/11/12/dawkins-the-weasel-and-a-program/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/86e55c9f13323397567cf5d53b7f320d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">computerist29</media:title>
		</media:content>
	</item>
	</channel>
</rss>
