<?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>benwatts.ca &#187; sandbox</title>
	<atom:link href="http://benwatts.ca/tag/sandbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://benwatts.ca</link>
	<description>Designer and Frontend Developer in Ottawa, Canada</description>
	<lastBuildDate>Fri, 22 Jul 2011 19:00:09 +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>jQuery Random Colour Generator</title>
		<link>http://benwatts.ca/2008/jquery-random-colour-generator/</link>
		<comments>http://benwatts.ca/2008/jquery-random-colour-generator/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 16:26:35 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.benwatts.ca/?p=12</guid>
		<description><![CDATA[I can&#8217;t remember the inspiration for this crazy thing, but I&#8217;m sure somewhere out there someone is looking for a random colour generator that is done in jQuery. So if you&#8217;re feeling in the mood to have a randomly changing colour &#8230; this is the script for you! Essentially it&#8217;s just generating a random number [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t remember the inspiration for this crazy thing, but I&#8217;m sure somewhere out there someone is looking for a random colour generator that is done in jQuery.</p>
<p>So if you&#8217;re feeling in the mood to have a randomly changing colour &#8230; this is the script for you! Essentially it&#8217;s just generating a random number between 0 and 255 for red, green, and blue. It then uses CSS to change the colour property of an element (that&#8217;s easily customizable by you).</p>
<p>So <a href="/sandbox/jquery-colourific/">check out the demo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://benwatts.ca/2008/jquery-random-colour-generator/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Secret Santa Script</title>
		<link>http://benwatts.ca/2007/secret-santa-script/</link>
		<comments>http://benwatts.ca/2007/secret-santa-script/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 20:45:30 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[sandbox]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[secret santa]]></category>

		<guid isPermaLink="false">http://www.benwatts.ca/?p=13</guid>
		<description><![CDATA[Every year my friends and I typically have a little &#8220;Secret Santa&#8221; (we call it &#8220;Secret Satan&#8221;, but that&#8217;s neither here nor there) &#8212; you know, where you are randomly pick a person&#8217;s name out of a hat and it becomes your job to buy a present for said person. In previous years it was [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.benwatts.ca/sandbox/secret-santa/"><img class="alignnone size-full wp-image-524" title="secretsantabot-banner" src="http://www.benwatts.ca/wp-content/uploads/2009/12/secretsantabot-banner1.jpg" alt="" width="560" height="153" /></a></p>
<p>Every year my friends and I typically have a little &#8220;Secret Santa&#8221; (we call it &#8220;Secret Satan&#8221;, but that&#8217;s neither here nor there) &#8212; you know, where you are randomly pick a person&#8217;s name out of a hat and it becomes your job to buy a present for said person.</p>
<p>In previous years it was always easier because we were able to meet up to do the hat-selection. The past two years have not been so easy, due to conflicting schedules and what-not. Last year&#8217;s solution was to get someone&#8217;s mom to send out the emails.</p>
<p>This year I opted for a PHP-based solution. If you&#8217;re thinking &#8220;THAT&#8217;S AMAZING&#8221;, you are correct, it is amazing. Because of the rush I was in to make it, it&#8217;s not as user-friendly as it should be. There&#8217;s two things you need to do to get this working out of the box:</p>
<ol>
<li>Edit the array containing names and emails. This is the most critical part.</li>
<li>When you first run the script it will be in no-email mode, so you can preview the how the script might work (remember, it&#8217;s random &#8230;). Change the <strong>$noemail</strong> variable to <strong>false</strong> for it to send emails. You will NOT see who is paired up with who after debug mode is turned off.</li>
</ol>
<p>It randomly pairs people up, making sure not to pair up the same person twice, or pairing the same person. Then it sounds out the emails! It&#8217;s just that easy (I hope).</p>
<p><strong>Edit: this has been updated as of December 2009.  </strong></p>
<p><a href="http://www.benwatts.ca/sandbox/secret-santa/">Demo</a> | <a href="http://github.com/benwatts/SecretSantaBot">Source (on Github)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://benwatts.ca/2007/secret-santa-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

