<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Family on galvanist</title>
    <link>/tags/family/</link>
    <description>Recent content in Family on galvanist</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Mon, 21 Oct 2013 20:05:00 +0000</lastBuildDate>
    <atom:link href="/tags/family/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Solving The Secret Santa Selection &#34;Problem&#34;</title>
      <link>/posts/2013-10-21-solving-the-secret-santa-selection-problem/</link>
      <pubDate>Mon, 21 Oct 2013 20:05:00 +0000</pubDate>
      <guid>/posts/2013-10-21-solving-the-secret-santa-selection-problem/</guid>
      <description>&lt;p&gt;My girlfriend&amp;rsquo;s family does a variation of &lt;a href=&#34;http://en.wikipedia.org/wiki/Secret_Santa&#34;&gt;secret santa&lt;/a&gt; for Christmas every year instead of the more traditional American &amp;ldquo;gift armageddon&amp;rdquo; strategy. I&amp;rsquo;m a fan because it encourages gift creativity and thoughtfulness while eliminating the crazy holiday consumerism that is prevalent here.&lt;/p&gt;&#xA;&lt;p&gt;Every year the selection of giver-receiver pairs must be made and this can be a challenge because &lt;strong&gt;there are strict rules&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;everyone gives once, everyone receives once&lt;/li&gt;&#xA;&lt;li&gt;you can&amp;rsquo;t give to your partner&lt;/li&gt;&#xA;&lt;li&gt;you can&amp;rsquo;t give a gift to someone who is giving a gift to you&lt;/li&gt;&#xA;&lt;li&gt;it should be a secret until gift-giving time&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Last year the selections were made by my girlfriend&amp;rsquo;s sister and Christmas was absolutely delightful. But then at some point afterward I opened my big fat mouth and said that a computer program should do the selections. The response was more or less &amp;ldquo;make it so.&amp;rdquo; Here&amp;rsquo;s my Pythonic attempt. For the web I&amp;rsquo;ve blanked out the PARTNERS map and my SMTP information. The rest is as I ran it.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
