<?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>Simon Cook &#187; Random</title>
	<atom:link href="http://simoncook.org/blog/tag/random/feed/" rel="self" type="application/rss+xml" />
	<link>http://simoncook.org</link>
	<description>Home Page of Simon Cook</description>
	<lastBuildDate>Fri, 11 May 2012 20:28:23 +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>A Breakdown of Comment Spam</title>
		<link>http://simoncook.org/blog/2010/04/a-breakdown-of-comment-spam/</link>
		<comments>http://simoncook.org/blog/2010/04/a-breakdown-of-comment-spam/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 15:12:46 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[lol]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://simoncook.org/?p=473</guid>
		<description><![CDATA[One thing that is a given these days with blogs (especially ones with a known format, like WordPress) is that you will get spam, a lot of spam. Thankfully plugins like the brilliant Akismet manages to block 99% or more of the spam, though it still stays in the comment moderation queue for reading and [...]]]></description>
			<content:encoded><![CDATA[<p>One thing that is a given these days with blogs (especially ones with a known format, like WordPress) is that you will get spam, a lot of spam. Thankfully plugins like the brilliant <a href="http://www.akismet.com" target="_blank">Akismet</a> manages to block 99% or more of the spam, though it still stays in the comment moderation queue for reading and checking for false positives when it has filtered out some ham. Well, after many months of collecting spam in the moderation queue, I have decided to read some of them and share the &#8220;top of the spam&#8221;, the funniest comments, either because they just make no sense, or have nothing to do with the post they&#8217;re associated to.</p>
<p>The first of these comes from &#8220;<em>NevyZelry</em>&#8221; who decided to advertise its services to me in my post &#8220;<em><a href="https://simoncook.org/blog/2008/08/finished-computer-photos/">Finished Computer Photos</a></em>&#8220;. NevyZelry said:</p>
<blockquote><p>hello, cute web site<br />
the simple way to create blog posts who smash in your visitors:<br />
<em>link removed</em></p></blockquote>
<p><em> </em>Now that sounds like a good offer, a simple way to butcher my readers to death, oh yes please!</p>
<p>The next came from someone who called themself &#8220;<em>WP Themes</em>&#8220;, and this was posted to my post, &#8220;<em><a href="https://simoncook.org/blog/2010/01/my-blog/">My Blog</a></em>&#8220;. They wrote:</p>
<blockquote><p>Amiable brief and this enter helped me alot in my college assignement. Gratefulness you for your information.</p></blockquote>
<p>Awesome! A coming soon message has helped people in college assignments. Personally, I don&#8217;t see how the words &#8220;<em>Returning soon&#8230;</em>&#8221; could do such a thing, but hey, all for the greater good, right?</p>
<p>&#8220;<em>Robes</em>&#8221; also had something to say about this post.</p>
<blockquote><p>awesome article.</p></blockquote>
<p>Why thank you, two word comments about a two word post is just what I needed, thanks.</p>
<p>This comment came from someone named &#8220;<em>wrmachine</em>&#8220;, posted to the <a href="https://simoncook.org/about/big-tag-sphere/">Big Tag Sphere</a> that I added because Harry wanted to see how it works:</p>
<blockquote><p>I read about it some days ago in another blog and the main things that you mention here are very similar</p></blockquote>
<p>Poor marks for correct spelling and grammar, however as it&#8217;s just a standard WordPress Plugin, and all I wrote basically was &#8220;Here it is&#8221;, yes I can imagine it&#8217;s pretty standard. Thanks for writing in.</p>
<p>This comment was quite confusing, it seemed to have nothing to do with the blog post (even when compared to the others), but &#8220;<em>MackLee31</em>&#8221; still wanted to share his comments, so here you go, posting in &#8220;<a href="https://simoncook.org/blog/2009/06/a-tale-of-a-laptop-and-windows-7-part-1/">A tale of a laptop (and Windows 7) Part 1</a>&#8220;:</p>
<blockquote><p>This is cool that we can take the loans and this opens completely new chances.</p></blockquote>
<p>Yes, I agree completely, a new OS does open up new chances for a device. However no loans are needed for Windows 7, so do not fret MackLee31, you can buy Windows 7 quite reasonably without taking out yet another loan. The laptop on the other hand, well&#8230; it all depends on which laptop you want.</p>
<p>A different user however suggested that I buy Viagra in their name. But that&#8217;s not very interesting, their comment on the other hand&#8230; in the post &#8220;<a href="https://simoncook.org/blog/2010/03/modifying-the-nexus-one-custom-keyboards/">Modifying the Nexus One: Custom Keyboards</a>&#8220;, they wrote&#8230;.</p>
<blockquote><p>I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader.</p></blockquote>
<p>I would just like to say thank you for becoming yet another bot reader, plenty of bots trawl this site looking to leave spam comments, but as you&#8217;re such a constant reader that had bookmarked me, you&#8217;ve ranked yourself high in terms of spam, you should feel proud.</p>
<p>The last piece of spam, from user &#8220;<em>soggalimask</em>&#8220;, decided to comment probably just based on the post title, &#8220;<em><a href="https://simoncook.org/blog/2009/06/some-sort-of-uber-epic-catchup-thing/">Some sort of uber epic catchup thing</a></em>&#8220;:</p>
<blockquote><p>I do think this is a most incredible website for proclaiming great wonders of Our God!</p></blockquote>
<p>Thank you. No, really. Thank you. I didn&#8217;t realise you thought of me as your God, or maybe you&#8217;re just talking about my robots. I&#8217;m glad you liked the post and I&#8217;m sure I will make more posts about the God that I am. Or something like that?</p>
<p>That&#8217;s the end of the comments, 7 spam comments dissected, because I thought they were comical when against the posts they were in. Hopefully some more bots will post comments here and then soon enough, there will be more comment dissections in the near future. But until then, I hope you enjoyed this disassembly of bot commenting.</p>
]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2010/04/a-breakdown-of-comment-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Riddle of the Month&#8230; February 2010 (Infinity)</title>
		<link>http://simoncook.org/blog/2010/02/riddle-of-the-month-february-2010-infinity/</link>
		<comments>http://simoncook.org/blog/2010/02/riddle-of-the-month-february-2010-infinity/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 21:28:58 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[infinity]]></category>
		<category><![CDATA[maths]]></category>
		<category><![CDATA[riddle]]></category>

		<guid isPermaLink="false">http://simoncook.org/?p=415</guid>
		<description><![CDATA[If I get one of these a month, then it will be monthly. If I don&#8217;t then it will be just a one off. But here is your Riddle of the Month&#8230; Infinity If Infinity = Infinity and Infinity+1 = Infinity and 0-Infinity = -Infinity What is Infinity-Infinity? Answers in the comments please.]]></description>
			<content:encoded><![CDATA[<p>If I get one of these a month, then it will be monthly. If I don&#8217;t then it will be just a one off. But here is your Riddle of the Month&#8230; <em>Infinity</em></p>
<p style="font-size: large; font-style: italic; font-variant: small-caps;">If Infinity = Infinity<br />
and Infinity+1 = Infinity<br />
and 0-Infinity = -Infinity<br />
What is Infinity-Infinity?</p>
<p>Answers in the comments please. <img src='http://simoncook.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2010/02/riddle-of-the-month-february-2010-infinity/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Pulling random data from /dev/random</title>
		<link>http://simoncook.org/blog/2010/02/pulling-random-data-from-devrandom/</link>
		<comments>http://simoncook.org/blog/2010/02/pulling-random-data-from-devrandom/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 06:55:44 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://simoncook.org/?p=408</guid>
		<description><![CDATA[This is a shell script that will pull 5 random characters from /dev/random and print them out to standard output. It was created as the input component for a random password generator that I am currently writing. Note on using /dev/random: as usual, using this source for entropy will give you pure randomness, though due [...]]]></description>
			<content:encoded><![CDATA[<p>This is a shell script that will pull 5 random characters from /dev/random and print them out to standard output. It was created as the input component for a random password generator that I am currently writing.</p>
<p><strong>Note on using /dev/random</strong>: as usual, using this source for entropy will give you pure randomness, though due to the nature of the random source (see <a href="http://en.wikipedia.org/wiki//dev/random">Wikipedia entry on /dev/random</a>) the script may sometimes lock up and fail to generate a complete output, as it has run out of randomness. If you are intending to use this alot, then it is advised to use /dev/urandom that doesn&#8217;t block, although that comes at the cost of a small bit of entropy.<br />
<span id="more-408"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;"># Script for pulling x characters from a random source</span>
<span style="color: #666666; font-style: italic;">#   and prints them out to stdout</span>
<span style="color: #666666; font-style: italic;"># Version 1.0.0</span>
<span style="color: #666666; font-style: italic;"># By Simon Cook (https://simoncook.org)</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Fill in the two variables below</span>
<span style="color: #666666; font-style: italic;">#  &quot;entropy&quot; is the source of randomness</span>
<span style="color: #666666; font-style: italic;">#  &quot;chars&quot; is the number of chars we want</span>
<span style="color: #007800;">entropy</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random
<span style="color: #007800;">chars</span>=<span style="color: #000000;">5</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Pull x characters from source</span>
<span style="color: #007800;">i</span>=<span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-n1</span> char
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$char</span>&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span> i++ <span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$i</span>&quot;</span> <span style="color: #660033;">-eq</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$chars</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
   <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
   <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt; <span style="color: #ff0000;">&quot;<span style="color: #007800;">$entropy</span>&quot;</span></pre></div></div>

<p><strong> Licensing:</strong> This small script is released under the CC-GNU GPL licence.</p>
<p><!-- Creative Commons License --><br />
<a href="http://creativecommons.org/licenses/GPL/2.0/"><br />
<img src="http://creativecommons.org/images/public/cc-GPL-a.png" border="0" alt="CC-GNU GPL" /></a><!-- /Creative Commons License -->.</p>
]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2010/02/pulling-random-data-from-devrandom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is that Tiberium in this product?</title>
		<link>http://simoncook.org/blog/2010/01/is-that-tiberium-in-this-product/</link>
		<comments>http://simoncook.org/blog/2010/01/is-that-tiberium-in-this-product/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 22:29:22 +0000</pubDate>
		<dc:creator>Si</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[CnC]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[sure]]></category>
		<category><![CDATA[tiberium]]></category>

		<guid isPermaLink="false">http://simoncook.org/?p=364</guid>
		<description><![CDATA[I came across this originally walking around Town, and thought &#8220;WTF is that Tiberium!?&#8221; and thought that maybe people here would be interested to see what looks like Tiberium in the real world. If you don&#8217;t know what Tiberium is, then I&#8217;m guessing you haven&#8217;t played any of the main Command &#38; Conquer games. Note: [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this originally walking around Town, and thought &#8220;WTF is that Tiberium!?&#8221; and thought that maybe people here would be interested to see what looks like Tiberium in the real world. If you don&#8217;t know what Tiberium is, then I&#8217;m guessing you haven&#8217;t played any of the main Command &amp; Conquer games.</p>
<p><div id="attachment_363" class="wp-caption aligncenter" style="width: 596px"><a href="https://simoncook.org/uploads/2010/01/ohsh1ttiberium.png" rel="lightbox[364]"><img class="size-full wp-image-363 " title="ohsh1ttiberium" src="https://simoncook.org/uploads/2010/01/ohsh1ttiberium.png" alt="" width="586" height="454" /></a><p class="wp-caption-text">Is this Tiberium at the bottom of the image?</p></div></p>
<p>Note: Sorry to the people at Sure, I don&#8217;t mean to pull your products apart <img src='http://simoncook.org/wordpress/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><strong>Edit: </strong>Here&#8217;s a link about Tiberium on Wikipedia for those who don&#8217;t know. <a href="http://en.wikipedia.org/wiki/Tiberium">http://en.wikipedia.org/wiki/Tiberium</a></p>
]]></content:encoded>
			<wfw:commentRss>http://simoncook.org/blog/2010/01/is-that-tiberium-in-this-product/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

