Everything Is a Ghetto: pythonPosts tagged with pythonhttp://www.thattommyhall.com2007-12-27T12:05:38+00:00thattommyhallPython talk for WYLUG, Ruby envy, Haskell Joy.http://www.thattommyhall.com/2007/12/27/python-talk-for-wylug-ruby-envy-haskell-joy/2007-12-27T12:05:38+00:002016-06-05T02:27:23+01:00thattommyhallI am just getting a talk ready for WYLUG on python.
I sent Dave the following blurb:
Why I love Python:
A talk on the programming language Python, in 3 parts (feel free to
leave in the interludes if you have had enough)
Part 1: Past, Present, FutureRubyQuiz 148 - Postfix to Infixhttp://www.thattommyhall.com/2007/12/01/rubyquiz-148-postfix-to-infix/2007-12-01T23:32:05+00:002016-06-05T02:27:23+01:00thattommyhallI have been meaning for some time to tackle the RubyQuiz problems in Python.
The one from yesterday (#148) is quite interesting, taking postfix notated expressions and returning an infix version.
For example
2 3 5 +
goes to
2 * (3 + 5)
I spoiltSecond Python User Group meetinghttp://www.thattommyhall.com/2007/12/07/second-python-user-group/2007-12-07T17:30:42+00:002016-06-05T02:27:23+01:00thattommyhallI gave a talk at the second python user group in leeds on
Wednesday. It was called “Anatomy Of A Python Program - How Much Can
You Do In 0.1 KLOC?”. It is based on Peter Norvigs
Sudoku solver. I had been thinking
about doing it for WYLUG, possibly asLearning Ruby: methods vs procs (or Ruby vs Python?)http://www.thattommyhall.com/2010/10/04/learning-ruby-methods-vs-procs-or-ruby-vs-python/2010-10-04T14:03:46+01:002016-06-05T02:27:23+01:00thattommyhallI have been meaning to learn ruby for a while and the place I am working now uses a lot so I had another look at it. I read Learn To Program, a simple but good book and found the bit on blocks and procs etc pretty good and wanted to see if I could doInfinite Prime Number Generator In Pythonhttp://www.thattommyhall.com/2010/10/18/prime-gen/2010-10-18T13:50:35+01:002016-06-05T02:27:23+01:00thattommyhallI was looking at this article (The Genuine Sieve of Eratosthenes / PDF) about a common functional prime number generator that is mistakenly called the Sieve of Eratosthenes.
It is quite complicated, section 2 deals with the performance of the naive algorithmProject Euler 39 http://www.thattommyhall.com/2008/04/12/project-euler-39/2008-04-12T19:49:57+01:002016-06-05T02:27:23+01:00thattommyhallIf p is the perimeter of a right angle triangle with integral length
sides, {a,b,c}, there are exactly three solutions for p = 120.
{20,48,52}, {24,45,51}, {30,40,50}
For which value of p < 1000, is the number of solutions maximised?
You may remember