<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for brainwagon</title>
	
	<link>http://brainwagon.org</link>
	<description>"There is much pleasure in useless knowledge." — Bertrand Russell</description>
	<lastBuildDate>Sat, 31 Jul 2010 10:12:49 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/brainwagoncomments" /><feedburner:info uri="brainwagoncomments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on Hydra Console Game Dev. Kit by drupal developer</title>
		<link>http://brainwagon.org/2007/06/26/hydra-console-game-dev-kit/comment-page-1/#comment-274747</link>
		<dc:creator>drupal developer</dc:creator>
		<pubDate>Sat, 31 Jul 2010 10:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/archives/2007/06/26/2456/#comment-274747</guid>
		<description>Have to adore your energy you add into your blog :)</description>
		<content:encoded><![CDATA[<p>Have to adore your energy you add into your blog <img src='http://brainwagon.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basics-Picavet – Kite Aerial Photography Electronic Resources by Gus</title>
		<link>http://brainwagon.org/2010/07/29/basics-picavet-kite-aerial-photography-electronic-resources/comment-page-1/#comment-274738</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Sat, 31 Jul 2010 08:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6034#comment-274738</guid>
		<description>Interesting stuff, reminds me of my 110 camera rocket (remember those), got a few pictures but never really worked that good..</description>
		<content:encoded><![CDATA[<p>Interesting stuff, reminds me of my 110 camera rocket (remember those), got a few pictures but never really worked that good..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basics-Picavet – Kite Aerial Photography Electronic Resources by W4BSD</title>
		<link>http://brainwagon.org/2010/07/29/basics-picavet-kite-aerial-photography-electronic-resources/comment-page-1/#comment-274411</link>
		<dc:creator>W4BSD</dc:creator>
		<pubDate>Fri, 30 Jul 2010 11:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6034#comment-274411</guid>
		<description>Dang Mark! (x2)

I started following your RSS feed because of one of the python scripts you pulled out. I'm a python beginner, and I like looking at other folks' methods.  Then I realized your were an amateur operator, so those feeds were interesting, and THEN you pull out stuff like this. Truly amazing! :)  Keep the good stuff coming!

Tnx
'73
de W4BSD</description>
		<content:encoded><![CDATA[<p>Dang Mark! (x2)</p>
<p>I started following your RSS feed because of one of the python scripts you pulled out. I&#8217;m a python beginner, and I like looking at other folks&#8217; methods.  Then I realized your were an amateur operator, so those feeds were interesting, and THEN you pull out stuff like this. Truly amazing! <img src='http://brainwagon.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   Keep the good stuff coming!</p>
<p>Tnx<br />
&#8216;73<br />
de W4BSD</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Basics-Picavet – Kite Aerial Photography Electronic Resources by Bob</title>
		<link>http://brainwagon.org/2010/07/29/basics-picavet-kite-aerial-photography-electronic-resources/comment-page-1/#comment-274296</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 30 Jul 2010 04:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6034#comment-274296</guid>
		<description>Dang Mark,
That is just neat as it can be! The Picavet is simple, elegant and obviously very functional.  Looks like something that will be a load of fun to try.  Appreciate the blog.
73,
Bob, AD7BP</description>
		<content:encoded><![CDATA[<p>Dang Mark,<br />
That is just neat as it can be! The Picavet is simple, elegant and obviously very functional.  Looks like something that will be a load of fun to try.  Appreciate the blog.<br />
73,<br />
Bob, AD7BP</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Alan Yates</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-274261</link>
		<dc:creator>Alan Yates</dc:creator>
		<pubDate>Fri, 30 Jul 2010 01:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-274261</guid>
		<description>@VK5FNET yes that was slosh-zero-one-two (aka newline) before it got mangled.</description>
		<content:encoded><![CDATA[<p>@VK5FNET yes that was slosh-zero-one-two (aka newline) before it got mangled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Pádraig Brady</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-274036</link>
		<dc:creator>Pádraig Brady</dc:creator>
		<pubDate>Thu, 29 Jul 2010 10:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-274036</guid>
		<description>dd doesn't read full blocks by default for backwards compat reasons.
We added the iflag=fullblock option to coreutils recently, so you can do:

tr -d -c A-Z &lt; /dev/urandom |
dd ibs=10000 iflag=fullblock count=1 cbs=50 conv=unblock |
sed 's/\(.\{5\}\)/\1 /g; s/ $//;'

Trading a little efficiency for clarity,
one could replace the `dd` above with:

fold -w50 | head -n200</description>
		<content:encoded><![CDATA[<p>dd doesn&#8217;t read full blocks by default for backwards compat reasons.<br />
We added the iflag=fullblock option to coreutils recently, so you can do:</p>
<p>tr -d -c A-Z &lt; /dev/urandom |<br />
dd ibs=10000 iflag=fullblock count=1 cbs=50 conv=unblock |<br />
sed &#039;s/\(.\{5\}\)/\1 /g; s/ $//;&#039;</p>
<p>Trading a little efficiency for clarity,<br />
one could replace the `dd` above with:</p>
<p>fold -w50 | head -n200</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Short Movie Review: Twilight by returning a drug test naturally</title>
		<link>http://brainwagon.org/2008/12/13/short-movie-review-twilight/comment-page-1/#comment-273863</link>
		<dc:creator>returning a drug test naturally</dc:creator>
		<pubDate>Thu, 29 Jul 2010 03:12:57 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=3405#comment-273863</guid>
		<description>We were actually kind of let down after people talked it up too much, I still thought it was a pretty good watch.  My sister loved it though.  To each their own.</description>
		<content:encoded><![CDATA[<p>We were actually kind of let down after people talked it up too much, I still thought it was a pretty good watch.  My sister loved it though.  To each their own.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Elwood Downey</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273711</link>
		<dc:creator>Elwood Downey</dc:creator>
		<pubDate>Wed, 28 Jul 2010 19:57:39 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273711</guid>
		<description>Well done, kiwimonster.</description>
		<content:encoded><![CDATA[<p>Well done, kiwimonster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Tom Duff</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273679</link>
		<dc:creator>Tom Duff</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:39:58 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273679</guid>
		<description>Hmm, maybe this formats correctly:

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
int main(int argc, char *argv[]){
    int c, i, n=argc&lt;2?10000:atoi(argv[1]);
    if(n&lt;0) fprintf(stderr, "%s: %s?\n", argv[0], argv[1]), exit(1);
    FILE *f=fopen("/dev/urandom", "r");
    if(f==0) perror("/dev/urandom"), exit(1);
    for(i=0;i!=n;i++){
        do c=getc(f); while(c&lt;'A' || 'Z'&lt;c);
        putchar(c);
        if(i%5==4) putchar(i%50==49?'\n':' ');
    }
    if(i%50!=0) putchar('\n');
    return 0;
}</description>
		<content:encoded><![CDATA[<p>Hmm, maybe this formats correctly:</p>
<p>#include &lt;stdio.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
int main(int argc, char *argv[]){<br />
&nbsp;&nbsp;&nbsp;&nbsp;int c, i, n=argc&lt;2?10000:atoi(argv[1]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if(n&lt;0) fprintf(stderr, &quot;%s: %s?\n&quot;, argv[0], argv[1]), exit(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;FILE *f=fopen(&quot;/dev/urandom&quot;, &quot;r&quot;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if(f==0) perror(&quot;/dev/urandom&quot;), exit(1);<br />
&nbsp;&nbsp;&nbsp;&nbsp;for(i=0;i!=n;i++){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do c=getc(f); while(c&lt;&#8217;A&#8217; || &#8216;Z&#8217;&lt;c);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar(c);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(i%5==4) putchar(i%50==49?&#8217;\n&#8217;:&#8217; &#8216;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;&nbsp;&nbsp;&nbsp;if(i%50!=0) putchar(&#8216;\n&#8217;);<br />
&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Tom Duff</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273678</link>
		<dc:creator>Tom Duff</dc:creator>
		<pubDate>Wed, 28 Jul 2010 16:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273678</guid>
		<description>As usual for this sort of thing, is comes out shorter &amp; easier to read in C than in Perl:

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
int main(int argc, char *argv[]){
	int c, i, n=argc&lt;2?10000:atoi(argv[1]);
	if(n&lt;0) fprintf(stderr, "%s: %s?\n", argv[0], argv[1]), exit(1);
	FILE *f=fopen("/dev/urandom", "r");
	if(f==0) perror("/dev/urandom"), exit(1);
	for(i=0;i!=n;i++){
		do c=getc(f); while(c&lt;'A' || 'Z'&lt;c);
		putchar(c);
		if(i%5==4) putchar(i%50==49?'\n':' ');
	}
	if(i%50!=0) putchar('\n');
	return 0;
}

(Hope this formats right.)</description>
		<content:encoded><![CDATA[<p>As usual for this sort of thing, is comes out shorter &amp; easier to read in C than in Perl:</p>
<p>#include &lt;stdio.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
int main(int argc, char *argv[]){<br />
	int c, i, n=argc&lt;2?10000:atoi(argv[1]);<br />
	if(n&lt;0) fprintf(stderr, &quot;%s: %s?\n&quot;, argv[0], argv[1]), exit(1);<br />
	FILE *f=fopen(&quot;/dev/urandom&quot;, &quot;r&quot;);<br />
	if(f==0) perror(&quot;/dev/urandom&quot;), exit(1);<br />
	for(i=0;i!=n;i++){<br />
		do c=getc(f); while(c&lt;&#8217;A&#8217; || &#8216;Z&#8217;&lt;c);<br />
		putchar(c);<br />
		if(i%5==4) putchar(i%50==49?&#8217;\n&#8217;:&#8217; &#8216;);<br />
	}<br />
	if(i%50!=0) putchar(&#8216;\n&#8217;);<br />
	return 0;<br />
}</p>
<p>(Hope this formats right.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by kiwimonster</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273608</link>
		<dc:creator>kiwimonster</dc:creator>
		<pubDate>Wed, 28 Jul 2010 09:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273608</guid>
		<description>sed is for wimps.  hmm..  how to make it clearer, while still being obtuse...

tr -d -c A-Z &lt; /dev/urandom | fold -w 5 | xargs -n 10 echo | head -200</description>
		<content:encoded><![CDATA[<p>sed is for wimps.  hmm..  how to make it clearer, while still being obtuse&#8230;</p>
<p>tr -d -c A-Z &lt; /dev/urandom | fold -w 5 | xargs -n 10 echo | head -200</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by VK5FNET</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273562</link>
		<dc:creator>VK5FNET</dc:creator>
		<pubDate>Wed, 28 Jul 2010 05:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273562</guid>
		<description>Alan, the fold command is nice, and I'm assuming that there should be a backslash in front of of the 12 there.

So that its the form-feed char, not the carriage-return 13, or line-feed 10 char?

Or is that in 12 in octal?</description>
		<content:encoded><![CDATA[<p>Alan, the fold command is nice, and I&#8217;m assuming that there should be a backslash in front of of the 12 there.</p>
<p>So that its the form-feed char, not the carriage-return 13, or line-feed 10 char?</p>
<p>Or is that in 12 in octal?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by VK5FNET</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273560</link>
		<dc:creator>VK5FNET</dc:creator>
		<pubDate>Wed, 28 Jul 2010 05:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273560</guid>
		<description>hmmm, comment code is striping  the &lt; and &gt; characters.
so make sure the while statement looks like this;

while (&lt;&gt;) {

anyhow, shared the challenge at lunch with other programmers. here is another solution.

perl -e '$limit=shift; $group=5; $i=0; while($i&lt;$limit) { read STDIN, $b, 1; $o=ord $b; next if $o&gt;234; print chr(65+($o % 26)), (++$i % $group ? "" : " ") } print "\n"' 150 &lt; /dev/urandom | fold -w 60</description>
		<content:encoded><![CDATA[<p>hmmm, comment code is striping  the &lt; and &gt; characters.<br />
so make sure the while statement looks like this;</p>
<p>while (&lt;&gt;) {</p>
<p>anyhow, shared the challenge at lunch with other programmers. here is another solution.</p>
<p>perl -e &#8216;$limit=shift; $group=5; $i=0; while($i&lt;$limit) { read STDIN, $b, 1; $o=ord $b; next if $o&gt;234; print chr(65+($o % 26)), (++$i % $group ? &#8220;&#8221; : &#8221; &#8220;) } print &#8220;\n&#8221;&#8216; 150 &lt; /dev/urandom | fold -w 60</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Alan Yates</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273556</link>
		<dc:creator>Alan Yates</dc:creator>
		<pubDate>Wed, 28 Jul 2010 05:08:08 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273556</guid>
		<description>tr -d -c A-Z &lt; /dev/urandom | fold -w 50 | sed 's/\(.\{5\}\)/\1 /g'

Truncate to the desired length...  I am assuming you mean 50 non-space chars?

If you dislike sed you can try this abomination:

tr -d -c A-Z &lt; /dev/urandom | fold -w 5 | tr '12' ' ' | fold -w 60</description>
		<content:encoded><![CDATA[<p>tr -d -c A-Z &lt; /dev/urandom | fold -w 50 | sed &#039;s/\(.\{5\}\)/\1 /g&#039;</p>
<p>Truncate to the desired length&#8230;  I am assuming you mean 50 non-space chars?</p>
<p>If you dislike sed you can try this abomination:</p>
<p>tr -d -c A-Z &lt; /dev/urandom | fold -w 5 | tr &#039;12&#039; &#039; &#039; | fold -w 60</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Tom Duff</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273551</link>
		<dc:creator>Tom Duff</dc:creator>
		<pubDate>Wed, 28 Jul 2010 04:44:49 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273551</guid>
		<description>This works on Linux but not on Mac OS X (no -w flag to od):

tr -d -c A-Z &lt; /dev/urandom |
   dd ibs=1 count=10000 |
   od -cvw50 |
   sed 's/^[0-7]* *//;s/ //g;s/...../&amp; /g'

The trick is to find a command that doesn't look for newlines in its input; od is the obvious choice.  Unfortunately od's -w flag is non-posix.

dd ibs=10000 doesn't actually work how you'd expect when its input is a pipe, for complicated reasons.</description>
		<content:encoded><![CDATA[<p>This works on Linux but not on Mac OS X (no -w flag to od):</p>
<p>tr -d -c A-Z &lt; /dev/urandom |<br />
   dd ibs=1 count=10000 |<br />
   od -cvw50 |<br />
   sed &#039;s/^[0-7]* *//;s/ //g;s/&#8230;../&amp; /g&#039;</p>
<p>The trick is to find a command that doesn&#039;t look for newlines in its input; od is the obvious choice.  Unfortunately od&#039;s -w flag is non-posix.</p>
<p>dd ibs=10000 doesn&#039;t actually work how you&#039;d expect when its input is a pipe, for complicated reasons.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by VK5FNET</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273545</link>
		<dc:creator>VK5FNET</dc:creator>
		<pubDate>Wed, 28 Jul 2010 04:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273545</guid>
		<description>Ok, how about i tidy that up a bit. So 10 groups of 5 characters, totalling 10,000.  All comments and debug removed. No doubt there are smaller and faster ways to do this in perl, but you need to be able to read it first to understand it...

This code reads the standard input with the while () then converts each line to an array and interates over the array to pull out the characters we care about then when our array is full, print it out.

perl -e 'my $limit = 10_000; my @cypher;while (){my @chars=split(undef, $_);for my $char (@chars){if ($char =~ m/[A-Z]/ ){push @cypher, $char;if($limit&lt;=scalar(@cypher)){my $offest = 0;while(@cypher){for(1..10){print "  ";for(1..5){print pop @cypher;}}print "\n";}exit;}}}}' &lt; /dev/urandom</description>
		<content:encoded><![CDATA[<p>Ok, how about i tidy that up a bit. So 10 groups of 5 characters, totalling 10,000.  All comments and debug removed. No doubt there are smaller and faster ways to do this in perl, but you need to be able to read it first to understand it&#8230;</p>
<p>This code reads the standard input with the while () then converts each line to an array and interates over the array to pull out the characters we care about then when our array is full, print it out.</p>
<p>perl -e &#8216;my $limit = 10_000; my @cypher;while (){my @chars=split(undef, $_);for my $char (@chars){if ($char =~ m/[A-Z]/ ){push @cypher, $char;if($limit&lt;=scalar(@cypher)){my $offest = 0;while(@cypher){for(1..10){print &quot;  &quot;;for(1..5){print pop @cypher;}}print &quot;\n&quot;;}exit;}}}}&#039; &lt; /dev/urandom</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by VK5FNET</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273541</link>
		<dc:creator>VK5FNET</dc:creator>
		<pubDate>Wed, 28 Jul 2010 04:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273541</guid>
		<description>#!/usr/bin/perl
#use strict;
#use warnings;

my $limit   = 250;                # ten lines of five groups of five
my @cypher;                       # where we put the plain text pad
while () {                      # read line by line from STDIN
    my @chars = split(undef, $_); # split the line into a list of characters
    #print "|";
    for my $char (@chars) {
	if ($char =~ m/[A-Z]/ ) { # if the character is A-Z
	    push @cypher, $char;
	    #print ".";
	    if ($limit &lt;= scalar(@cypher)) {
		#print "\n";
		#print scalar(@cypher);
		my $offest = 0;
		while (@cypher) {
		    for (1..5) { # GROUP
			print "  ";
			for (1..5) { #LETTERS
			    print pop @cypher;
			}
		    }
		    print "\n";
		}
		exit;
	    }
	}
    }
    #print scalar(@cypher)."\n";
}</description>
		<content:encoded><![CDATA[<p>#!/usr/bin/perl<br />
#use strict;<br />
#use warnings;</p>
<p>my $limit   = 250;                # ten lines of five groups of five<br />
my @cypher;                       # where we put the plain text pad<br />
while () {                      # read line by line from STDIN<br />
    my @chars = split(undef, $_); # split the line into a list of characters<br />
    #print &#8220;|&#8221;;<br />
    for my $char (@chars) {<br />
	if ($char =~ m/[A-Z]/ ) { # if the character is A-Z<br />
	    push @cypher, $char;<br />
	    #print &#8220;.&#8221;;<br />
	    if ($limit &lt;= scalar(@cypher)) {<br />
		#print &quot;\n&quot;;<br />
		#print scalar(@cypher);<br />
		my $offest = 0;<br />
		while (@cypher) {<br />
		    for (1..5) { # GROUP<br />
			print &quot;  &quot;;<br />
			for (1..5) { #LETTERS<br />
			    print pop @cypher;<br />
			}<br />
		    }<br />
		    print &quot;\n&quot;;<br />
		}<br />
		exit;<br />
	    }<br />
	}<br />
    }<br />
    #print scalar(@cypher).&quot;\n&quot;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Shannon Nelson</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273528</link>
		<dc:creator>Shannon Nelson</dc:creator>
		<pubDate>Wed, 28 Jul 2010 03:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273528</guid>
		<description>Of course, this points out one of the problems with specs.  Note that I didn't follow your specs to the letter, I interpreted them and came up with an answer that made sense to me: you asked for lines of 50 characters, and I gave you lines of 59 characters.  Was I wrong in not following the given spec?</description>
		<content:encoded><![CDATA[<p>Of course, this points out one of the problems with specs.  Note that I didn&#8217;t follow your specs to the letter, I interpreted them and came up with an answer that made sense to me: you asked for lines of 50 characters, and I gave you lines of 59 characters.  Was I wrong in not following the given spec?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 10,000 Monkeys Typing…with a Unix/sh challenge… by Shannon Nelson</title>
		<link>http://brainwagon.org/2010/07/27/10000-monkeys-typing-with-a-unixsh-challenge/comment-page-1/#comment-273525</link>
		<dc:creator>Shannon Nelson</dc:creator>
		<pubDate>Wed, 28 Jul 2010 03:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6027#comment-273525</guid>
		<description>Sed is a magical tool, and cut comes in handy at the last:

tr -d -c A-Z &lt; /dev/urandom | dd ibs=10000 count=1 | sed -e 's/\(.\{5\}\)/\1 /g' -e 's/\(.\{60\}\)/\1\n/g' | cut -c 1-59</description>
		<content:encoded><![CDATA[<p>Sed is a magical tool, and cut comes in handy at the last:</p>
<p>tr -d -c A-Z &lt; /dev/urandom | dd ibs=10000 count=1 | sed -e &#039;s/\(.\{5\}\)/\1 /g&#039; -e &#039;s/\(.\{60\}\)/\1\n/g&#039; | cut -c 1-59</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wikileaks, and the Report on the Barnhouse Effect by Elwood Downey</title>
		<link>http://brainwagon.org/2010/07/26/wikileaks-and-the-report-on-the-barnhouse-effect/comment-page-1/#comment-273009</link>
		<dc:creator>Elwood Downey</dc:creator>
		<pubDate>Mon, 26 Jul 2010 20:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6019#comment-273009</guid>
		<description>The founder of Wikileaks has recently done a talk on TED, see http://www.ted.com/talks/julian_assange_why_the_world_needs_wikileaks.html . One point he makes is Wikileaks is a way for us to learn what those whom we target experience every day.</description>
		<content:encoded><![CDATA[<p>The founder of Wikileaks has recently done a talk on TED, see <a href="http://www.ted.com/talks/julian_assange_why_the_world_needs_wikileaks.html" rel="nofollow">http://www.ted.com/talks/julian_assange_why_the_world_needs_wikileaks.html</a> . One point he makes is Wikileaks is a way for us to learn what those whom we target experience every day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Primality testing with Perl regexs by Steve VanDevender</title>
		<link>http://brainwagon.org/2010/07/23/primality-testing-with-perl-regexs/comment-page-1/#comment-272293</link>
		<dc:creator>Steve VanDevender</dc:creator>
		<pubDate>Sat, 24 Jul 2010 04:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6017#comment-272293</guid>
		<description>I saw some article by Damian Conway about creating a recursive descent parser using Perl "regular expressions" and thought much the same thing -- you can't actually do that with real regular expressions because they can't handle unbounded recursive descent.  The difference between what a finite-state machine and what a Turing machine can do is pretty clear and fundamental, and claiming these things are being done with "regular expressions" is a misnomer.</description>
		<content:encoded><![CDATA[<p>I saw some article by Damian Conway about creating a recursive descent parser using Perl &#8220;regular expressions&#8221; and thought much the same thing &#8212; you can&#8217;t actually do that with real regular expressions because they can&#8217;t handle unbounded recursive descent.  The difference between what a finite-state machine and what a Turing machine can do is pretty clear and fundamental, and claiming these things are being done with &#8220;regular expressions&#8221; is a misnomer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eight years of blogging… by Ron</title>
		<link>http://brainwagon.org/2010/07/21/eight-years-of-blogging/comment-page-1/#comment-272005</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Fri, 23 Jul 2010 04:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6014#comment-272005</guid>
		<description>Thanks for all your work on this very unique and interesting blog, Mark. I've been following you for a couple of years and it's been great!</description>
		<content:encoded><![CDATA[<p>Thanks for all your work on this very unique and interesting blog, Mark. I&#8217;ve been following you for a couple of years and it&#8217;s been great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eight years of blogging… by Gus</title>
		<link>http://brainwagon.org/2010/07/21/eight-years-of-blogging/comment-page-1/#comment-271994</link>
		<dc:creator>Gus</dc:creator>
		<pubDate>Fri, 23 Jul 2010 03:35:20 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6014#comment-271994</guid>
		<description>Happy Birthday, Thank you for your dedication.</description>
		<content:encoded><![CDATA[<p>Happy Birthday, Thank you for your dedication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eight years of blogging… by svofski</title>
		<link>http://brainwagon.org/2010/07/21/eight-years-of-blogging/comment-page-1/#comment-271955</link>
		<dc:creator>svofski</dc:creator>
		<pubDate>Fri, 23 Jul 2010 00:24:50 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6014#comment-271955</guid>
		<description>Happy birthday, Brainwagon!</description>
		<content:encoded><![CDATA[<p>Happy birthday, Brainwagon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Eight years of blogging… by Elwood Downey</title>
		<link>http://brainwagon.org/2010/07/21/eight-years-of-blogging/comment-page-1/#comment-271909</link>
		<dc:creator>Elwood Downey</dc:creator>
		<pubDate>Thu, 22 Jul 2010 20:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://brainwagon.org/?p=6014#comment-271909</guid>
		<description>I've only been aware of brainwagon for several months but already found many interesting avenues of thought. I am slowing working through the archives where there are lots more. So thanks for your posts, and may there be many more.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve only been aware of brainwagon for several months but already found many interesting avenues of thought. I am slowing working through the archives where there are lots more. So thanks for your posts, and may there be many more.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
