<?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>Ranok&#039;s Ramblings &#187; LOTD</title>
	<atom:link href="http://www.r4n0k.com/tag/lotd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.r4n0k.com</link>
	<description>A peek into my life, and the projects I never complete</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:36:19 +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>Lulz of the Day: Ark</title>
		<link>http://www.r4n0k.com/2008/11/16/lotd-ark/</link>
		<comments>http://www.r4n0k.com/2008/11/16/lotd-ark/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 01:19:59 +0000</pubDate>
		<dc:creator>ranok</dc:creator>
				<category><![CDATA[For Fun]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[LOTD]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.r4n0k.com/?p=117</guid>
		<description><![CDATA[Well, it&#8217;s about time for there to be another Lulz of the Day! Today we&#8217;ll be lulzing about Ark, my IRC anti-floodbot script. As an IRCop on a network, I am constantly figthing floodbots who join, /msg everyone on the network some spam and then disconnect. I figured that there must be a way to [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s about time for there to be another Lulz of the Day! Today we&#8217;ll be lulzing about Ark, my IRC anti-floodbot script. As an IRCop on a network, I am constantly figthing floodbots who join, /msg everyone on the network some spam and then disconnect. I figured that there must be a way to stop them, and so I diligently started working on Ark. Ark is a perlscript that connects to an IRC server as an IRCop and joins the most popular channels (which you specify). It then waits quietly, bidding its time until it gets /msg&#8217;d. Once it receives a message, it springs into action, checking the received message against a list of regexs. If any of them match, it will /kill the bot and resume its slumber.</p>
<p>This very simple, yet oddly helpful script can be downloaded from <a href="http://code.jitunleashed.com/ark.tar">my code site</a></p>
<p>Peace and chow,</p>
<p>Ranok</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r4n0k.com/2008/11/16/lotd-ark/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lulz of the Day: Cesspool</title>
		<link>http://www.r4n0k.com/2008/11/14/lulz-of-the-day-cesspool/</link>
		<comments>http://www.r4n0k.com/2008/11/14/lulz-of-the-day-cesspool/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 17:09:47 +0000</pubDate>
		<dc:creator>ranok</dc:creator>
				<category><![CDATA[For Fun]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[LOTD]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.r4n0k.com/?p=113</guid>
		<description><![CDATA[While cleaning up my hard drive, I&#8217;ve come across many old projects that are pretty interesting, and I thought I&#8217;d start a mini-series of these little pearls (perls?) I come across as I find them. Without further ado, lets start with our first Lulz of the Day (LOTD)! Cesspool As many of you know, I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>While cleaning up my hard drive, I&#8217;ve come across many old projects that are pretty interesting, and I thought I&#8217;d start a mini-series of these little pearls (perls?) I come across as I find them. Without further ado, lets start with our first Lulz of the Day (LOTD)!</p>
<p><strong>Cesspool</strong></p>
<p>As many of you know, I&#8217;m in the systems biology class this semester, and recently we spent a week or so looking at the genetic algorithm and its applications. I immediately began hacking on a genetic algorithm to &#8216;breed&#8217; a <a href="http://www.corewars.org/">Corewars</a> warrior. The code for this is pretty simple, and still needs much revision, but it&#8217;s bred some programs that are pretty good. I&#8217;m going to run it a few times and try to put together some statistics in the next few days, but for now, you can <a href="http://code.jitunleashed.com/cesspool.txt">download the source</a> and play around with it as you wish. Basically what it does is:</p>
<ol>
<li>Generates some initial warriors with random commands and arguments</li>
<li>Pits the warriors against themselves in battle using the corewars-cmd command</li>
<li>Ranks them by their scores</li>
<li>Cross breeds the best 20% of the population, and mutate the rest (with 5% chance of mutation)</li>
<li>Repeat from step 2 for the number of generations.</li>
</ol>
<p>Todo:</p>
<ul>
<li>Modify the cross-breeding algorithm so it doesn&#8217;t just append one program to the other, but mixes up the commands of both</li>
<li>Small bug fixes with the scraper for the corewars-cmd results</li>
<li>Run a number of times, and then pit the best generated warriors against some made by humans</li>
</ul>
<p>Peace and lulz,</p>
<p>Ranok</p>
]]></content:encoded>
			<wfw:commentRss>http://www.r4n0k.com/2008/11/14/lulz-of-the-day-cesspool/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

