<?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>esmithy.net &#187; Uncategorized</title>
	<atom:link href="http://esmithy.net/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://esmithy.net</link>
	<description>Stuff Hammered Out by Eric Smith</description>
	<lastBuildDate>Fri, 02 Jul 2010 20:35:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress</title>
		<link>http://esmithy.net/2007/04/28/wordpress/</link>
		<comments>http://esmithy.net/2007/04/28/wordpress/#comments</comments>
		<pubDate>Sat, 28 Apr 2007 18:06:20 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://esmithy.net/2007/04/28/wordpress/</guid>
		<description><![CDATA[After years of building this site with my own custom software, I&#8217;ve decided to switch to WordPress. My previous system started with XHTML content transformed through various XSLT style sheets thatproduced summaries, an RSS feed, a Google sitemap, and a common appearance across all the pages. The whole process was driven by an Ant script, [...]]]></description>
			<content:encoded><![CDATA[<p>After years of building this site with my own custom software, I&#8217;ve decided to switch to <a title="WordPress" href="http://wordpress.org">WordPress</a>.<span id="more-91"></span><br />
My previous system started with XHTML content transformed through various XSLT style sheets thatproduced summaries, an RSS feed, a Google sitemap, and a common appearance across all the pages. The whole process was driven by an Ant script, and required no server-side code except for a comments form. It worked pretty well except for a few things:</p>
<ul>
<li>Running the scripts (which included FTP to the server) to publish a new article took a while, so it wasn&#8217;t something you could just quickly do.</li>
<li>The scripts were only available on one machine, so publishing could only happen from there.</li>
<li>When my comments form was turned on, it got a bunch of comment spam.</li>
<li>If I wanted any new features, I had to do them all myself.</li>
</ul>
<p>I thought I&#8217;d take a look at some actual blogging software to see what was available. I ran across an extensive comparison (though I can&#8217;t remember where that was now) where the person doing the comparison decided on using WordPress. I had thought about trying to use a .NET application, since I&#8217;m trying hard to learn .NET deeply right now, but there was a telling comment about .Text (the only .NET blogging tool considered) in the comparison. The reviewer said something like, &#8220;.NET programmers are more excited about .NET than actual working software.&#8221; While a sweeping generalization, I sense a bit of truth in there. Also, as a programmer, it is good to be exposed to lots of things, so a PHP application seemed good for technical diversification.</p>
<p>I created my own WordPress theme, both in order to preserve my site&#8217;s look as well as to learn more about WordPress. Then I needed a way to migrate my content. I don&#8217;t have a ton of articles, but certainly more than a manual approach would work for. I tried adding a couple of articles by hand, and quickly discovered that the WordPress editor treats all whitespace as significant, unlike HTML&#8217;s text flowing regardless of line breaks.</p>
<p>My first attempt at an automatic import was to transform my content to WordPress&#8217; native export/import format. I abandoned that after a little while because it was based on RSS, but added a bunch of stuff that wasn&#8217;t really relevant for my content. I realized that I might as well just do an RSS import, which was easier.</p>
<p>The significant whitespace characteristics I noticed in the editor carried over to imports as well, so my conversion program had to strip out all the non-significant linefeeds out. I also discovered that if there were XML namespace declarations where the importer didn&#8217;t expect them, then it would think that there weren&#8217;t any posts to import. It would just say, &#8220;All done! Have Fun!&#8221;, which was kind of infuriating until I figured it out. I think I&#8217;ve heard someone say that blogging software is only as good as its import and export functions, and I almost gave up on WordPress at this point.</p>
<p>Once I got my content imported, I was happier about WordPress when I discovered Ryan McGeary&#8217;s <a title="WP-Syntax Plugin" href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax Plugin</a>. I had thought about doing something like that myself at some point. I did make one small tweak to the plugin, though. GeSHi&#8217;s default syntax colorings were a bit too much for me, so I switched the GeSHi option over to use CSS styles for the highlighting, and chose fewer and more subtle colorings. I&#8217;m sure there are lots of other interesting plugins that I&#8217;ve yet to discover.</p>
<p>There have been some glitches (bug-like behavior), some manual work required even after my automatic import, and still some things to figure out, but I&#8217;m optimistic that WordPress will work out.</p>
]]></content:encoded>
			<wfw:commentRss>http://esmithy.net/2007/04/28/wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>By Chance</title>
		<link>http://esmithy.net/2005/10/20/by-chance/</link>
		<comments>http://esmithy.net/2005/10/20/by-chance/#comments</comments>
		<pubDate>Fri, 21 Oct 2005 00:00:00 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://esmithy.net/wp/?p=61</guid>
		<description><![CDATA[A few years ago I was reading some books about biological evolution. At some point, probably reading something by Richard Dawkins, I was thinking about randomness and its ability to produce apparently non-random things. All you need is a little pressure that selects one random thing over another. So I wrote a little program that [...]]]></description>
			<content:encoded><![CDATA[<p>A few years ago I was reading some books about biological evolution. At some point, probably reading something by Richard Dawkins, I was thinking about randomness and its ability to produce apparently non-random things. All you need is a little pressure that selects one random thing over another. So I wrote a little program that demonstrates the idea by transforming a black box into a picture through entirely random steps.<span id="more-61"></span></p>
<p>My program, ByChance, works like this. You supply an image that represents the ideal in survivability. Once you&#8217;ve done that, you click the &#8220;Start&#8221; button. The program starts with a black image with the same dimensions as the &#8220;fitness&#8221; image you picked. It then proceeds to pick a pixel in the image at random (around 200,000 possibilities, depending on the shape of the image). Then it picks a random color (24 bits, so there are around 16.8 million possibilities) for the random pixel and tests the survivability of the new picture. If the new picture is more like the &#8220;fitness&#8221; picture than what was there previously, the new picture, with its single different pixel wins. If not, what was there before wins. The program displays the winning picture, and also keeps a running total of the number of generations that have happened. A generation is every time a pixel changes and the fitness test is done.</p>
<p class="photo"> </p>
<p><span class="caption"><img class="aligncenter size-full wp-image-209" title="ByChance Screen Shot (Early)" src="http://esmithy.net/content/by-chance1.jpg" alt="" width="500" height="475" /></span></p>
<p><span class="caption">Early Screen Shot</span></p>
<p><span class="caption"><img class="aligncenter size-full wp-image-205" title="ByChance Screen Shot" src="http://esmithy.net/content/by-chance2.jpg" alt="" width="500" height="475" /></span></p>
<p><span class="caption">Later Screen Shot</span></p>
<p>I&#8217;m certainly not an expert in evolutionary theory, but it seems like the program serves as an interesting analogy. I should point out that evolution doesn&#8217;t have a perfectly ideal goal that it is shooting for like the fitness image. Given the forces of nature around us and all the aspects of our environment, there is pressure toward a survivable form.</p>
<p>Some of the choices I made in writing the program were arbitrary:</p>
<ul>
<li>Why not make the image size random too?</li>
<li>Why start with black? Why not start with white or a completely random starting image?</li>
</ul>
<p>Maybe something a little different would be a better analogy of our best understanding of what really happens. This experiment is kind of related to the <a href="http://en.wikipedia.org/wiki/Infinite_monkey_theorem">infinite monkey theorem</a>, but with not so many permutations and with pressure toward correctness.</p>
<p>After running the program several times, I&#8217;ve noticed a couple of things. The image becomes recognizable really fast. The image becomes perfect some time later than my patience allows for, but I expect it would take a really,<em>really</em> long time.</p>
<p>If you would like to run ByChance, you can <a href="http://esmithy.net/software/bychance-an-experiment-with-randomness/">download it from here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://esmithy.net/2005/10/20/by-chance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
