<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<?xml-stylesheet type='text/xsl' href='/style/atom-comments.xsl'?>
<feed xmlns='http://www.w3.org/2005/Atom'>
<title>norman.walsh.name: Comments on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning/comments.atom</id>
<updated>2004-09-09T21:51:15Z</updated>

<entry xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<title>Comment 0001 on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning#comment0001'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning#comment0001</id>
<published>2004-08-26T18:02:50Z</published>
<updated>2004-08-26T18:02:50Z</updated>
<author>
  <name>Sjoerd Visscher</name>
  <foaf:mbox_sha1sum>eecd181ed69c352b4c3ebb42fb360388736d0aee</foaf:mbox_sha1sum>
  <uri>http://w3future.com</uri>
</author>
<content type='xhtml'><div xmlns="http://www.w3.org/1999/xhtml"><p>There are 5 places to put the o.
Then there are 4 places left to put the r.
Then there are 3 places left to put the i.
The remaining 2 places are filled with n.</p>
<p>5 x 4 x 3 = 60</p></div></content>
</entry>

<entry xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<title>Comment 0002 on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning#comment0002'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning#comment0002</id>
<published>2004-08-26T23:14:52Z</published>
<updated>2004-08-26T23:14:52Z</updated>
<author>
  <name>Giulio Piancastelli</name>
  <foaf:mbox_sha1sum>426aaf5906c9c8e5e246d8331fe83357917f56ae</foaf:mbox_sha1sum>
  <uri>http://www.mycgiserver.com/~gpiancastelli/blog/</uri>
</author>
<content type='xhtml'><div xmlns="http://www.w3.org/1999/xhtml"><p>There's a recipe [1] in the online Python Cookbook to calculate permutations and combinations of elements in a list, using Python's generators. You'll need to remove duplicates from the results, since the two n's are perceived as different tokens; but you'll eventually end up with 60 possibilities.</p>
<p>[1] http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/190465</p></div></content>
</entry>

<entry xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<title>Comment 0003 on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning#comment0003'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning#comment0003</id>
<published>2004-08-26T23:36:59Z</published>
<updated>2004-08-26T23:36:59Z</updated>
<author>
  <name>Jay Hannah</name>
  <foaf:mbox_sha1sum>9a97d9f1c338501a1b231aaed20c83178917829e</foaf:mbox_sha1sum>
  <uri>http://jays.net</uri>
</author>
<content type='xhtml'><div xmlns="http://www.w3.org/1999/xhtml"><p>Sjoerd: All mathmatical formulas must be proven with long, inefficient, brute force Perl algorithms. -grin-</p></div></content>
</entry>

<entry>
<title>Comment 0004 on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning#comment0004'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning#comment0004</id>
<published>2004-08-27T01:32:09Z</published>
<updated>2004-08-27T01:32:09Z</updated>
<author>
  <name>martin english</name>
</author>
<content type='xhtml'><div xmlns="http://www.w3.org/1999/xhtml"><p>See http://www.oreillynet.com/pub/wlg/5492 for brian d foy's generic solution.</p></div></content>
</entry>

<entry xmlns:foaf='http://xmlns.com/foaf/0.1/'>
<title>Comment 0005 on /2004/08/26/goodMorning</title>
<link rel='alternate' type='text/html' href='http://norman.walsh.name/2004/08/26/goodMorning#comment0005'/>
<id>http://norman.walsh.name/2004/08/26/goodMorning#comment0005</id>
<published>2004-08-28T22:14:23Z</published>
<updated>2004-08-28T22:14:23Z</updated>
<author>
  <name>Tony Bowden</name>
  <foaf:mbox_sha1sum>b57490c23ecb721b86607fe93b65570a53d94c56</foaf:mbox_sha1sum>
  <uri>http://www.tmtm.com/nothing/</uri>
</author>
<content type='xhtml'><div xmlns="http://www.w3.org/1999/xhtml"><p>No need to reinvent the wheel:</p>
<pre>use Algorithm::FastPermute ('permute');
my @letters = qw/o r n i n/;
my %seen;
permute {
my $word = join "", "m", @letters, "g";
print "$word\n" unless $seen{$word}++;
} @letters;</pre>
</div></content>
</entry>

</feed>
