Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Michael Foord
On 21/12/2010 18:28, Floris Bruynooghe wrote: On 21 December 2010 18:09, Michael Foord wrote: On 21 December 2010 14:56, Jonathan Hartley wrote: On 21/12/2010 14:45, Michael Foord wrote: my favourites being contextlib.ContextDecorator I didn't know that had your fingerprints on it! Nice on

Re: [python-uk] Tell us what you did with python this year

2010-12-22 Thread Rod Hyde
I didn't think I did all that much with Python this year other than throwing together a few "one off" scripts to collate and analyze data from several thousand tills. These so-called "one off" scripts have been remarkably useful and they saved one of our teams a lot of time by automating what was p

Re: [python-uk] Tell us what you did with python this year

2010-12-22 Thread greg nwosu
I have had a number of python projects, my happiest one was one that scraped government websites for jobs and then applied for those with semi fitting criteria. I was unemployed at the time with unemployment insurance but my insurers wanted proof that I'd been looking. 24 hours hacking and 1 cron

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Alexander Dutton
On 22/12/10 11:38, Doug Winter wrote: > […] > result = yield make_maybe_blocking_call() > […] This looks similar to Dave Beazley's use of coroutines to implement concurrency without threading. In Dave's case, the yielded expression is a request for the scheduler to perform some action at its leisu

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Reza Lotun
On Wed, Dec 22, 2010 at 11:38 AM, Doug Winter wrote: > Have you considered using the @inlineCallbacks decorator instead?  I bet > you could make that work too, you could write your own decorator that > uses inlineCallbacks or something synchronous, then the above becomes: > ... Good point - I lik

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Doug Winter
Reza Lotun wrote: > # async friendly version of the above > def get_foo_nicer(arg1, arg2): > args = prepare_request() > result = make_maybe_blocking_call() > def post_process(result): > do_stuff(result) > do_more_stuff(result) > post_process(result) > > The second v

Re: [python-uk] Tell us what you did with Python this year....

2010-12-22 Thread Reza Lotun
On Mon, Dec 20, 2010 at 12:18 PM, Andy Robinson wrote: > As an attempt to generate some content and balance out the "jobs" > discussion > > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Floris Bruynooghe
On 21 December 2010 18:09, Michael Foord wrote: > > > On 21 December 2010 14:56, Jonathan Hartley wrote: >> >> On 21/12/2010 14:45, Michael Foord wrote: >>> >>> my favourites being contextlib.ContextDecorator >> >> I didn't know that had your fingerprints on it! Nice one - I love this and >> use

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Michael Foord
On 21 December 2010 17:10, Javier Llopis wrote: > > As an attempt to generate some content and balance out the "jobs" > > discussion > > > > Why don't a few people here tell us what they got up to this year? > > Neat projects at work, things you learned about Python in 2010, things > > you've

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Michael Foord
On 21 December 2010 14:56, Jonathan Hartley wrote: > On 21/12/2010 14:45, Michael Foord wrote: > >> my favourites being contextlib.ContextDecorator >> > > I didn't know that had your fingerprints on it! Nice one - I love this and > use it all the time. > > It came out of the pattern used in mock

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread John Chandler
On 21/12/2010 15:33, Jonathan Hartley wrote: > a wargame Hey. What sort of game? 2d? Turn-based? Hex tiles? Or what? And are you using Pygame or pyglet or something else? It's using PyGame. 2D, solitaire, turn-based, irregular area maps (sort of like Hearts of Iron II), with a bit of politics

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Javier Llopis
> As an attempt to generate some content and balance out the "jobs" > discussion > > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been playing with I have automated an ill-thought proces

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Jonathan Hartley
> a wargame Hey. What sort of game? 2d? Turn-based? Hex tiles? Or what? And are you using Pygame or pyglet or something else? On 21/12/2010 15:25, John Chandler wrote: On 20/12/2010 12:18, Andy Robinson wrote: Why don't a few people here tell us what they got up to this year? Neat projects

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread John Chandler
On 20/12/2010 12:18, Andy Robinson wrote: Why don't a few people here tell us what they got up to this year? Neat projects at work, things you learned about Python in 2010, things you've been playing with It's been an interesting year in Python for me. The London dojos have been fantastic -

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Jonathan Hartley
On 21/12/2010 14:45, Michael Foord wrote: my favourites being contextlib.ContextDecorator I didn't know that had your fingerprints on it! Nice one - I love this and use it all the time. Jonathan -- Jonathan Hartley Made of meat. http://tartley.com tart...@tartley.com +44 773

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Michael Foord
Hello all, I started the year working for a German firm writing web applications with Django on the server and Silverlight on the front end. The front end application (about 20 000 lines) was written entirely in IronPython and running in the browser. Communication with django was almost exclu

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread meitham
On Mon, Dec 20, 2010 at 12:18 PM, Andy Robinson wrote: > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been playing with I have worked this year on a web based data quality system written en

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Nicholas Tollervey
Hi Guys, Obviously I went to lots of London Python dojos... It's nice to see that the format is being used for other languages too (I know of at least Clojure and Scala dojos and plans for an Erlang one). We managed to finish our adventure game and plans are afoot for a new Pygame based project (s

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Alexander Harrowell
I've been parsing government data with BeautifulSoup and Scraperwiki, and working on visualising it with NetworkX and Matplotlib. -- The only thing worse than e-mail disclaimers...is people who send e-mail to lists complaining about them signature.asc Description: This is a digitally signed m

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Jonathan Hartley
On 20/12/2010 16:51, Matt Hamilton wrote: On 20 Dec 2010, at 15:41, Jonathan Hartley wrote: clients with extremely large spreadsheets (which take hours to recalculate on Excel) *shudder* But that is what makes what you have done even more amazing :) I'm pretty sure spreadsheets of that level

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Kev Dwyer
I haven't done much python this year, but had a great time at Europython and the London dojo. As I speak, a couple of days using jython for websphere automation awaits... On 21 December 2010 12:22, Matthew Turnbull wrote: > For a while now I've been interested in sports / games 'ratings' > syste

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Matthew Turnbull
For a while now I've been interested in sports / games 'ratings' systems. Some years back I collected results from weekly football games and wanted a way to score individual players from team score results (the teams change each week) - ultimately I wanted to help pick balanced teams). This year I

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread René Dudfield
Hey ya, Enjoyed many London python dojos... and learnt a number of little tips from there, and met a bunch of london python people. That was probably the highlight of 2010 python involvement for me. Started writing a shit JavaScript interpreter (very early stages). ** Wrote a minimal new content

Re: [python-uk] Tell us what you did with Python this year....

2010-12-21 Thread Tim Golden
Bit of this year and last... We have a 3rd-party COTS Helpdesk system with a woeful desktop interface and a naive [and that's being charitable] email ingest mechanism. All the data's stored in a SQL Server and is fairly clearly two different apps bolted together... A few years ago I knocked up a

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread python
Hi Michael All I did was generate some DXF files that could be fed into a laser cutter. But I've never designed anything like that before, so the geometry and getting the gear teeth right was fun. It was for a business idea that didn't progress. Dave Berkeley On 20/12/10 18:02, Michael Graz

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Edward Hartley
On 20 Dec 2010, at 16:46, Tim Golden wrote: > On 20/12/2010 16:08, Alec Battles wrote: >> I >> still have no idea why tokenizing Hungarian text and tokenizing German >> text are not fundamentally the same operation > Those languages have different grammatical structure inflexion and stemmin

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread python
Also I've been playing with Arduino, although that's so straightforward to use Python does everything I need it to. I've fiddled with ZigBee networking, which is quite good fun and I've got some basic stuff for that in Python. Cheers, Doug. Hi Doug, I went to a talk by you (on TurboGears?)

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread python
On 20/12/10 17:06, Andy Robinson wrote: On 20 December 2010 14:43, wrote: Sadly I only got paid for some of it. The invoices are generated in Python though. PDFs from ReportLab, I hope and trust? ;-) No, but the Christmas cards are. The invoices are just dynamically generated HTML. I know

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Giorgio Zoppi
2010/12/20 Doug Winter : > On 20/12/10 17:53, Alec Battles wrote: I seem to remember that 'file' in Linux detects encodings, but it's also a matter of calling it by the exact same name... >>> >>> There is no foolproof way of detecting encoding unfortunately - you just >>> need to kno

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Doug Winter
We've been building all sorts of stuff, much of which I can't talk about annoyingly. We're about 50% Plone, 50% other stuff - primarily Django, Twisted and plain old Python. Most of my time has been taken up with our largest client who is in the Pharmaceutical industry. We've done lots of

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Will McGugan
Not sure if I'll allowed to discuss the day job, but in my off time I've been developing pyfilesystem (http://code.google.com/p/pyfilesystem/). I recently added the ability to open filesystems with a url, and created a bunch of command line applications which make use of that. This turned out to b

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Doug Winter
On 20/12/10 17:00, Matt Hamilton wrote: * I organised the Plone Conference 2010 which was held in the UK this year. We had nearly 300 attendees from 33 different countries. This was a fantastic event, a great community of people and demonstrating the power of python in larger systems And ver

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Doug Winter
On 20/12/10 17:53, Alec Battles wrote: I seem to remember that 'file' in Linux detects encodings, but it's also a matter of calling it by the exact same name... There is no foolproof way of detecting encoding unfortunately - you just need to know what it is before you read the file. That's in

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Rob Cowie
On that topic, one of my highlights this year has been getting a ReportLab license. I'm now producing uninteresting letters with interesting tech; It's all about the journey not the destination I guess ;) On 20 Dec 2010, at 17:06, Andy Robinson wrote: > On 20 December 2010 14:43, wrote: >> Sa

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Matt Hamilton
On 20 Dec 2010, at 12:18, Andy Robinson wrote: > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been playing with Well a couple highlights of my year: * I organised the Plone Conference 20

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Michael Grazebrook
Dear Mr Berkley, This sounds both fun and interesting! Tell me more! Was this business or pleasure? A small project of my own is to help my father with his milling machine. He wants to re-write a program in a more modern language: the program converts printed circuit board layouts into the m

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Alec Battles
>> I seem to remember that 'file' in Linux detects encodings, but it's >> also a matter of calling it by the exact same name... > > There is no foolproof way of detecting encoding unfortunately - you just > need to know what it is before you read the file. That's interesting. I wonder if there's a

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Doug Winter
Alec Battles wrote: > I seem to remember that 'file' in Linux detects encodings, but it's > also a matter of calling it by the exact same name... There is no foolproof way of detecting encoding unfortunately - you just need to know what it is before you read the file. Cheers, Doug. -- Telephon

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Nick Murdoch
On Mon, Dec 20, 2010 at 04:58:07PM +, Alec Battles wrote: > > I seem to remember that 'file' in Linux detects encodings, but it's > also a matter of calling it by the exact same name... > Any encoding detection will be heuristics; I've personally found the chardet library really useful when

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Andy Robinson
On 20 December 2010 14:43, wrote: > Sadly I only got paid for some of it. The invoices are generated in Python > though. PDFs from ReportLab, I hope and trust? ;-) -- Andy Robinson Managing Director ReportLab Europe Ltd. ___ python-uk mailing list py

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Alec Battles
>> Unicode >> interoperability is a pain, though, and I find it depressing to work >> with in Python2.x, because it never seems to behave predictably. I >> still have no idea why tokenizing Hungarian text and tokenizing German >> text are not fundamentally the same operation > > I have no idea why

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Matt Hamilton
On 20 Dec 2010, at 15:41, Jonathan Hartley wrote: > clients with extremely large spreadsheets (which take hours to recalculate on > Excel) *shudder* But that is what makes what you have done even more amazing :) I'm pretty sure spreadsheets of that level of complexity have a lot of subtle exc

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Chris Dew
I've used a lot of Python/Django for vehicle/resource tracking http://www.xlocate.net/ - about 50% of the server-side is Python, the rest being Javascript/NodeJS. The web site uses Django CMS. I've also used Python a dozen times for one-off text processing jo

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread python
On 20/12/10 12:43, Giorgio Zoppi wrote: 2010/12/20 Andy Robinson: As an attempt to generate some content and balance out the "jobs" discussion Why don't a few people here tell us what they got up to this year? Neat projects at work, things you learned about Python in 2010, things you've bee

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Tim Golden
On 20/12/2010 16:08, Alec Battles wrote: Unicode interoperability is a pain, though, and I find it depressing to work with in Python2.x, because it never seems to behave predictably. I still have no idea why tokenizing Hungarian text and tokenizing German text are not fundamentally the same opera

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Alec Battles
> As an attempt to generate some content and balance out the "jobs" > discussion > > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been playing with > > I'm having a mad day but will try

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Jonathan Hartley
OK, I'll bite, because what we're doing is exciting and new to me, so maybe to others also: Here at Resolver a couple of years ago we wrote a spreadsheet-like desktop application entirely in Python. Cell formulae are also full Python expressions, with a slightly augmented grammar to allow the

Re: [python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Giorgio Zoppi
2010/12/20 Andy Robinson : > As an attempt to generate some content and balance out the "jobs" > discussion > > Why don't a few people here tell us what they got up to this year? > Neat projects at work, things you learned about Python in 2010, things > you've been playing with Stub serve

[python-uk] Tell us what you did with Python this year....

2010-12-20 Thread Andy Robinson
As an attempt to generate some content and balance out the "jobs" discussion Why don't a few people here tell us what they got up to this year? Neat projects at work, things you learned about Python in 2010, things you've been playing with I'm having a mad day but will try to post mine to