<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Anagram on</title><link>http://salopst.yearl.us/tags/anagram/</link><description>Recent content in Anagram on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Fri, 01 Jun 2018 17:35:03 +0000</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/anagram/index.xml" rel="self" type="application/rss+xml"/><item><title>Wranglergram decoder in ruby</title><link>http://salopst.yearl.us/wranglergram-decoder-in-ruby/</link><pubDate>Fri, 01 Jun 2018 17:35:03 +0000</pubDate><guid>http://salopst.yearl.us/wranglergram-decoder-in-ruby/</guid><description>&lt;p&gt;My local radio station has a quiz every once in a while. The questions are hardly &amp;ldquo;University Challenge&amp;rdquo;, but there is one question that always is fiendishly tricksy and slippery: to identify a place in the county from an anagram of it.&lt;/p&gt;&#10;&lt;p&gt;Constantly getting all but one question correct, it is, of course time to &lt;del&gt;cheat&lt;/del&gt; use lateral thinking.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;#1 get a list of place names. A &lt;a href="https://britishplacenames.uk/england/shropshire"&gt;gazetteer&lt;/a&gt; should do.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;#2 Build an index (hash). First thoughts were to md5 the names, but there&amp;rsquo;s an easier way: equalise case, remove spaces and punctuation, order the string&amp;hellip;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>