<?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>Gary Pendergast &#187; Secret Santa</title>
	<atom:link href="http://pento.net/tag/secret-santa/feed/" rel="self" type="application/rss+xml" />
	<link>http://pento.net</link>
	<description>I&#039;m on the Internet</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:04:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<cloud domain='pento.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Secret Santa Script</title>
		<link>http://pento.net/2009/02/15/secret-santa-script/</link>
		<comments>http://pento.net/2009/02/15/secret-santa-script/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 23:09:29 +0000</pubDate>
		<dc:creator>Gary Pendergast</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Secret Santa]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[Kris Kringle]]></category>
		<category><![CDATA[Perl]]></category>
		<guid isPermaLink="false">http://pento.net/?p=66</guid>
		<description><![CDATA[My partner comes from a large family. At Christmas time, rather than making everyone buy presents for everyone else (a rather expensive venture), we have a Secret Santa tradition. Unfortunately, as the years have gone on, it has become more difficult to organize for everyone to be in the one place to &#8220;pick a name [...]]]></description>
			<content:encoded><![CDATA[<p>My partner comes from a large family. At Christmas time, rather than making everyone buy presents for everyone else (a rather expensive venture), we have a <a title="Wikipedia: The encyclopedia that talks about Secret Santa" href="http://en.wikipedia.org/wiki/Secret_Santa">Secret Santa</a> tradition. Unfortunately, as the years have gone on, it has become more difficult to organize for everyone to be in the one place to &#8220;pick a name out of a hat&#8221;.</p>
<p>And so, in my never-ending quest to remove the magic and joy from Christmas, I wrote a script to automatically assign everyone their Santa/Santee, and send them an SMS. It has a few cool things to it:</p>
<ul>
<li>Allows you to prevent some people from being paired up. For example, you might not want a couple in the family to be assigned each other, because they&#8217;ll probably buy each other presents anyway.</li>
<li>Makes sure that everyone has a Santee before it starts sending messages, to prevent SMS spam.</li>
<li>Checks that all messages went through successfully.</li>
</ul>
<p>I found that <a title="Australian SMS gateway service" href="http://www.valuesms.com/">ValueSMS</a> worked nicely for sending messages in Australia, you might need to use a different one for your country. Any gateway that has a HTTP(S) interface will do the job.</p>
<p>To set it up for yourself, you&#8217;ll need to do the following:</p>
<ul>
<li>Edit the @names array to create a list of everyone participating (beginning line 12).</li>
<li>Edit the @people array to give the details of everyone participating (beginning line 20).</li>
<li>Edit in your ValueSMS username/password, or setup the HTTP(S) URL for your preferred SMS provider (beginning lines 101, 139).</li>
</ul>
<p>Here it is, for your enjoyment:</p>
<p>0.1 &#8211; 2009-02-16: <a href="http://pento.net/blog/wp-content/uploads/2009/02/secretsantapl.gz">secretsanta.pl.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pento.net/2009/02/15/secret-santa-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
