[python-uk] more maze

2013-05-06 Thread Thomas Hunger
Here's an implementation of a random spanning tree where the nodes are
coordinates on a plane so one can render them later:

https://gist.github.com/teh/5526976

~
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] more maze

2013-05-12 Thread Thomas Hunger
Very cool. Thanks for the nice write-up and the fixes!

Daniel Pope's maze generator, mentioned here [1], is a different
implementation of the same algorithm.

~

[1]
http://mail.python.org/pipermail/python-uk/2013-May/002942.html



On 12 May 2013 10:01, Tom Viner  wrote:

> I mentioned some comments to Thomas about his elegant random spanning
> tree maze script <https://gist.github.com/teh/5526976> and he insisted
> that I post here so everyone can see the correction and 
> extensions<https://gist.github.com/tomviner/5536939>
> .
>
> First there was a minor bug where the initial location wasn't included in
> the seen set, that meant you could sometimes get cycles in
> the supposedly acyclic graph.
>
> [image: Inline images 1](Note loop at bottom left)
>
> In testing this I found I needed a way repeating a certain random maze, so
> I added this to the start:
>
> seed = sys.argv[1] if sys.argv[1:2] else random.randint(0, 999)
> print "Replay with python maze.py", seed
> random.seed(int(seed))
>
> which picks a random seed unless you pass one in on the command line.
>
> Then I wanted to see how the backtracking worked, so I tried slowing down
> the turtle but there was still a bit of a pause before anything was drawn.
> This was because the maze was being pre-computed, then drawn afterwards.
> Turning the maze algorithm into a generator fixed this.
>
> Finally I asked Thomas how he'd test if any given maze was solvable. He
> said "The spanning tree connects all nodes. There are no unconnected
> subgraphs. For that reason you can pick any two points as start and end and
> have a solvable maze".
>
> At this point I realised I'd been looking at the maze drawing backwards:
> he'd intended the lines the turtle draws to be the *paths*, and *everything
> else* was walls.
>
> Rather than calculating exactly where all the walls would be, to contain a
> given path, I just added a background and made the turtle carve out the
> path of the maze.
>
> I also added entrances when the path hits the edge. So now we have a
> familiar looking maze:
>
> [image: Inline images 1]
> Instructions: Pick 2 opposite entrances and try to get from one to the
> other.
>
> I wonder if we could let Mike's Physical Turtle loose on this...
>
>
> Tom
>
> -- Forwarded message --
> From: Tim Golden 
> Date: 6 May 2013 19:33
> Subject: Re: [python-uk] more maze
> To: python-uk@python.org
>
>
> On 06/05/2013 19:26, Thomas Hunger wrote:
>
>> Here's an implementation of a random spanning tree where the nodes are
>> coordinates on a plane so one can render them later:
>>
>> https://gist.github.com/teh/**5526976<https://gist.github.com/teh/5526976>
>>
>
> Thanks, Thomas.
>
> For those wondering, last Thursday's London Python Dojo was all about
> generating mazes. Most teams didn't have time to fulfil their solution's
> entire potential and evidently a few people went home buzzing with ideas or
> alternatives. Hence the flow of messages to the list promoting maze
> solutions.
>
> Just so you knew...
>
> The next Dojo should be on the first Thursday of June, venue to be
> announced. Keep an eye on this list and/or follow @ldnpydojo.
>
> TJG
>
>
> __**_
> python-uk mailing list
> python-uk@python.org
> http://mail.python.org/**mailman/listinfo/python-uk<http://mail.python.org/mailman/listinfo/python-uk>
>
>
<><>___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Trip to Bletchley Park

2013-09-27 Thread Thomas Hunger
That's a great idea, Tom. I'm in.


On 26 September 2013 14:41, Tim Golden  wrote:

> ... which was of course at the time part of the Oxford-Cambridge line,
> considered important for the work of BP:
>
>   http://www.disused-stations.org.uk/v/verney_junction/
>
> (There are probably better links; I didn't search very hard).
>
> Geeks + Railways: what a heady mix!
>
> TJG
>
> On 26/09/2013 14:37, Jonathan Fine wrote:
> > I'm interested, and live locally, so I can cycle there. Bletchley Park
> > is walking distance from Bletchley rail station, so it's much better to
> > get a train to there than to Milton Keynes Central.
> >
> > By the way, Bletchley Park was chosen in part because of its closeness
> > to the rail station, and to GPO communication lines.
> >
> >
> > Jonathan
> >
> >
> > On Thu, Sep 26, 2013 at 1:24 PM, David Nicholas Snowdon
> > mailto:dave.snow...@gmail.com>> wrote:
> >
> > Count me in too.
> > Dave
> >
> > Sent from my iPhone
> >
> > On 26 Sep 2013, at 11:01, Luis Visintini  > > wrote:
> >
> >> I can make it no problem.
> >> count me in
> >>
> >> Luis
> >>
> >>
> >> On Thu, Sep 26, 2013 at 8:41 AM, Tim Golden  >> > wrote:
> >>
> >> I'm tied up with a Boys' Club on Saturdays but I definitely
> >> encourage
> >> anyone to go who hasn't. Aside from the mainstream attractions
> >> of the
> >> Enigma / Codebreaking stuff and the NMOC, there's also a
> >> charmingly
> >> eclectic mixture of side exhibitions: a museum of wartime
> >> pigeons; the
> >> local model railway enthusiasts; a dusty garage of vintage
> >> cars; model
> >> ships made by a local club; someone's toy collection; the
> on-site
> >> wartime Post Office.
> >>
> >> And it's all run by fans who are delighted to talk.
> >>
> >> Definitely go if you haven't already. (And if you have).
> >>
> >> TJG
> >>
> >> On 25/09/2013 21:33, Tom Viner wrote:
> >> > Hi all,
> >> >
> >> > A few of us had a discussion at PyconUK about doing a trip to
> >> > Bletchley Park and the The National Museum of Computing.
> >> >
> >> > Saturday, 19 Oct seemed to be the best option. Londoners
> >> could meet at
> >> > Euston Station and others could make their own way.
> >> >
> >> > In terms of timing:
> >> >
> >> > - Bletchley Park is open from 9.30am to 5.00pm
> >> > - The Museum of Computing is "Fully open 1-5pm; Colossus and
> >> Tunny
> >> > Galleries open all day"
> >> >
> >> > So we could meet at say 10am and get the train there,
> >> potentially
> >> > using this national rail 2 for 1 offer:
> >> > http://www.daysoutguide.co.uk/bletchley-park-(1)
> >> >
> >> > More info:
> >> > http://www.bletchleypark.org.uk/
> >> > http://www.tnmoc.org/
> >> >
> >> > So put it in your calendar and I'll email again a week
> >> before with
> >> > specific meeting times etc.
> >> >
> >> > Cheers,
> >> > Tom
> >> >
> >> > @tomviner
> >> > ___
> >> > python-uk mailing list
> >> > python-uk@python.org 
> >> > https://mail.python.org/mailman/listinfo/python-uk
> >> >
> >>
> >> ___
> >> python-uk mailing list
> >> python-uk@python.org 
> >> https://mail.python.org/mailman/listinfo/python-uk
> >>
> >>
> >> ___
> >> python-uk mailing list
> >> python-uk@python.org 
> >> https://mail.python.org/mailman/listinfo/python-uk
> >
> > ___
> > python-uk mailing list
> > python-uk@python.org 
> > https://mail.python.org/mailman/listinfo/python-uk
> >
> >
> >
> >
> > ___
> > python-uk mailing list
> > python-uk@python.org
> > https://mail.python.org/mailman/listinfo/python-uk
> >
>
> ___
> python-uk mailing list
> python-uk@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Job Ad: Senior Python Engineers -Skimlinks - London

2015-02-04 Thread Thomas Hunger
Hi Niamh,

I saw a Skimlinks talk a while back at a London data meetup which was super
interesting!

In any case: if you are ever looking for an agency to do coding, we just
started one [1]. I worked for Google as an SWE/SRE for several years and
the others have a great technical background as well. If you just want to
meet for a coffee with no expectations some time, that'd be fun to!

All the best,
Tom

[1]
https://wearewizards.io/

On 4 February 2015 at 12:15, Niamh O'Reilly  wrote:

> Hi Python UK
>
> Skimlinks, a leading UK tech startup, is currently hiring for Senior
> Python Developers to join our team in London.
>
> We develop applications and APIs to allow the online publishing community
> to monetize their content. We are considered leaders in this space and
> currently work with approx. 40,000 publishers (Conde Nast, Gawker, Hearst
> Magazines) and over 18,000 e-commerce sites (eBay, Amazon, Net-a-Porter).
> Our engineering department is headquartered in London. We have a small,
> dynamic, language agnostic team that drive over 20 billion API requests a
> month across 1.5 million active websites.
> We are language agnostic and program in with a broad range of languages
> like Python, Ruby, Go, Haskell, Javascript... Right now we are doing some
> really interesting work with Clojure.
> We have weekly dedicated Training & Innovation time set aside for all team
> members to pursue learning in new languages, technologies etc.
> We host numerous MeetUps on a monthly basis and ensure our team members
> get opportunity to attend industry conferences.
> We are currently looking for experienced Senior Python Developers to join
> our team in London.
> Apply or find out more at http://skimlinks.com/company/careers or email
> j...@skimlinks.com
>
>
> Best regards
> Niamh
>
>
>
>
>
> *Niamh O'Reilly | **Recruiter | **Skimlinks Inc*
>
> *(UK) +44 (0)20 3397 1240*
>
> *ni...@skimlinks.com  | *@SkimlinksLife
> |* LinkedIn
> *
>
> *Skimlinks are hiring!* Check out our open roles *here
> .*
>
> *UK Office | *52 Bevenden Street *|* 2nd floor *|* London *|* N1 6BL
> *US Office* *| *235 Pine Street *|* Suite 1050 *|* San Francisco *|* CA
> 94104
>
>
> ___
> python-uk mailing list
> python-uk@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>
>
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Job Ad: Senior Python Engineers -Skimlinks - London

2015-02-04 Thread Thomas Hunger
Well now, that's a slightly larger audience than I had in mind.

How embarrassing .. I apologise for the spam!

On 4 February 2015 at 13:11, Thomas Hunger  wrote:

> Hi Niamh,
>
> I saw a Skimlinks talk a while back at a London data meetup which was
> super interesting!
>
> In any case: if you are ever looking for an agency to do coding, we just
> started one [1]. I worked for Google as an SWE/SRE for several years and
> the others have a great technical background as well. If you just want to
> meet for a coffee with no expectations some time, that'd be fun to!
>
> All the best,
> Tom
>
> [1]
> https://wearewizards.io/
>
> On 4 February 2015 at 12:15, Niamh O'Reilly  wrote:
>
>> Hi Python UK
>>
>> Skimlinks, a leading UK tech startup, is currently hiring for Senior
>> Python Developers to join our team in London.
>>
>> We develop applications and APIs to allow the online publishing community
>> to monetize their content. We are considered leaders in this space and
>> currently work with approx. 40,000 publishers (Conde Nast, Gawker, Hearst
>> Magazines) and over 18,000 e-commerce sites (eBay, Amazon, Net-a-Porter).
>> Our engineering department is headquartered in London. We have a small,
>> dynamic, language agnostic team that drive over 20 billion API requests a
>> month across 1.5 million active websites.
>> We are language agnostic and program in with a broad range of languages
>> like Python, Ruby, Go, Haskell, Javascript... Right now we are doing some
>> really interesting work with Clojure.
>> We have weekly dedicated Training & Innovation time set aside for all
>> team members to pursue learning in new languages, technologies etc.
>> We host numerous MeetUps on a monthly basis and ensure our team members
>> get opportunity to attend industry conferences.
>> We are currently looking for experienced Senior Python Developers to join
>> our team in London.
>> Apply or find out more at http://skimlinks.com/company/careers or email
>> j...@skimlinks.com
>>
>>
>> Best regards
>> Niamh
>>
>>
>>
>>
>>
>> *Niamh O'Reilly | **Recruiter | **Skimlinks Inc*
>>
>> *(UK) +44 (0)20 3397 1240*
>>
>> *ni...@skimlinks.com  | *@SkimlinksLife
>> <https://twitter.com/SkimlinksLife>|* LinkedIn
>> <https://www.linkedin.com/pub/niamh-o-reilly/6/442/306>*
>>
>> *Skimlinks are hiring!* Check out our open roles *here
>> <http://skimlinks.com/jobs>.*
>>
>> *UK Office | *52 Bevenden Street *|* 2nd floor *|* London *|* N1 6BL
>> *US Office* *| *235 Pine Street *|* Suite 1050 *|* San Francisco *|* CA
>> 94104
>>
>>
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> https://mail.python.org/mailman/listinfo/python-uk
>>
>>
>
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] What trends should we watch Python during 2017..?

2016-12-07 Thread Thomas Hunger
I'm cautiously optimistic about http://mypy-lang.org/ though I'd prefer not
to have values as type annotations.

I think the JS community demonstrated that retrofitting types can be done
in a principled and nice way with TypeScript and flow so maybe we can do
that, too.




On 7 December 2016 at 11:24, Nicholas H.Tollervey  wrote:

> I've been asked to answer this. I've already replied but I wonder what
> the wider community think..?
>
> My response mentioned:
>
> * MicroPython bringing Python to embedded / IoT communities (and such
> communities into the Python world).
>
> * Python 2 / Python 3 (a perennial)
>
> * Python in education: with the micro:bit, Calliope (German micro:bit)
> and Adafruit all settling on MicroPython lots of kids and teachers will
> be learning Python next year. Also viz RPi - now the most successful
> computing in education project in history if measured in terms of
> devices shipped (and they promote Python too).
>
> * Python in data science. If the London PyData is anything to go by,
> things have only just started in this respect.
>
> Care to add anything else..? What about technical things to watch out
> for..? Will Larry complete his Gilectomey..?
>
> Season's greetings...
>
> N.
>
>
> ___
> python-uk mailing list
> python-uk@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>
>
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk