Re: [python-uk] Python Meetup Monday 10th?

2005-10-10 Thread xtian
The other one I went to, I just looked for people looking earnest. The
other clientele weren't earnest-looking at all. You should be fine. :)

xtian

On 10/10/05, Ed Parcell <[EMAIL PROTECTED]> wrote:
> I'm going to try to come along when I get out of work. I've never been
> to a Python meetup before and Smiths is fairly large as I remember.
> Will the meetup be on the ground floor? How will the group be
> recognizable?
>
> Thanks,
> Ed.
>
> On 10/10/05, Simon Brunning <[EMAIL PROTECTED]> wrote:
> > On 10/10/05, Jon Ribbens <[EMAIL PROTECTED]> wrote:
> > > I'd come for a bit if it was at the Lamb & Flag like before, since I
> > > now live next door ;-)
> >
> > Must be a bit of a temptation...
> >
> > > Can't make it to Smithfields unfortunately due
> > > to time constraints.
> >
> > Sorry - far too late to move it now.
> >
> > --
> > Cheers,
> > Simon B,
> > [EMAIL PROTECTED],
> > http://www.brunningonline.net/simon/blog/
> > ___
> > python-uk mailing list
> > python-uk@python.org
> > http://mail.python.org/mailman/listinfo/python-uk
> >
> ___
> python-uk mailing list
> python-uk@python.org
> 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] how to kill the server in program

2006-02-16 Thread xtian
On 2/15/06, Yang, W (Wanjuan) <[EMAIL PROTECTED]> wrote:
>
> Since the server main thread and child thread will run forever, my question 
> is how can I exit the server nicely in the program when it is required (e.g 
> no clients coming for a while) rather than using 'Ctrl-c' or kill the process.
>
> another question is: Is that when the main thread is killed, then the child 
> thread will stop as well? In this case, before killing the main thread, we 
> have to make sure the child thread already finish its job.  But how the main 
> thread know whether the child thread finish the job or not. in other words, 
> how does the main thread communicate the child thread?
>

What Chris said about making the child thread a daemon is right.
Another technique I've found useful when writing threaded servers like
this is to use the timeout facility of sockets (in Python 2.3 onwards)
- you can then have the child thread loop accepting connections *or*
timing out, and checking a run flag to determine when you should stop.
Something like (not tested):


socket.setdefaulttimeout(0.5)

class ServerThread(threading.Thread):
def __init__(self, sock):
threading.Thread.__init__(self)
self.run = True
self.sock = sock

def please_stop(self):
self.run = False

def run(self):
while self.run:
try:
conn, address = self.sock.accept()
# do stuff with connection...
except socket.timeout:
pass # maybe track how many consecutive timeouts?
# any cleanup can go here.

I've found that having the timeout in there makes everything much
easier to handle.

Cheers,
xtian
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] London 2.0 tomorrow

2006-09-04 Thread xtian
Any hints as to the location?

On 9/4/06, Simon Brunning <[EMAIL PROTECTED]> wrote:
> Should be plenty of Python people around - .
>
> --
> Cheers,
> Simon B,
> [EMAIL PROTECTED],
> http://www.brunningonline.net/simon/blog/
> ___
> python-uk mailing list
> python-uk@python.org
> 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] London 2.0 tomorrow

2006-09-04 Thread xtian
On 9/4/06, Simon Brunning <[EMAIL PROTECTED]> wrote:
> Congratulations, Mark! See you another time.
>
> Sam has confirmend that the meet tomorrow is at The Bank of England, BTW.
>

Great! Thanks - see you there.

(Congratulations Mark!)

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


Re: [python-uk] pyweek. london python code dojo pyweek team?

2010-03-15 Thread xtian
I'm keen! Please add me to the team!

My pyweek username is xtian.
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] pyweek. london python code dojo pyweek team?

2010-03-15 Thread xtian
On Mon, Mar 15, 2010 at 12:55 PM, xtian  wrote:
> I'm keen! Please add me to the team!
>
> My pyweek username is xtian.
>

In lieu of a letter of marque, I offer my coveted 'Best Quack' award.
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] How to access a class instance created in one module in another module?

2010-04-29 Thread xtian
On Wed, Apr 28, 2010 at 3:02 PM, Goodies  wrote:
> I have a query. I have two modules viz. MnSem5Main.py and MnCEMMain.py in
> different folders.
> I have created the below instances in MnSem5Main.py:
>
> 'app'   ,  'frame'
> Please note that 'app' is created using wx.App and 'frame' using wx.Frame
> builtin classes.
> I want to access these in MnCEMMain.py. How to access these instances?

Your terminology is a little muddled here. It sounds like what you
mean is that you created classes called app and frame in MnSem5Main.py
which subclass (or inherit from) wx.App and wx.Frame.

if MnSem5Main.py is on your PYTHONPATH, you can import the classes by
putting the following line in MnSem5Main.py:

from MnSem5Main import app, frame

Then you can create instances of the classes by calling them with the
appropriate parameters.

Even if app and frame are instances of classes instead of classes, the
import statement will get them from the MnSem5Main namespace and put
them in your namespace.

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


[python-uk] London Dojo next week?

2012-01-25 Thread xtian
Is there a dojo happening next week? It's on the ldnpydojo gcalendar, but I
haven't seen anything about tickets (although admittedly I've not been on
the twitters much lately).

Thanks,
xtian
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] LIVE Python Developer Vacancies

2012-11-30 Thread xtian
Or just not moving due to being tired and shagged out after a particularly
loud tweet.


On 30 November 2012 10:36, Michael  wrote:

> On 30 November 2012 10:12, Matt Hamilton  wrote:
> >
> >
> > On 30 Nov 2012, at 09:32, Adam Elliott wrote:
> >
> > > Hi all,
> > >
> > > I have various LIVE Python Developer vacancies!
> >
> > Good move. I've found dead Python developers to be a bit useless.
>
>
> They wouldn't be dead, they'd be merely resting. Pining even.
>
>
> Michael.
> ___
> python-uk mailing list
> python-uk@python.org
> 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] The perils of reply-to

2013-01-03 Thread xtian
On 3 Jan 2013 15:19, "Jon Ribbens"  wrote:
>
> On Thu, Jan 03, 2013 at 11:40:51AM +, Andy Robinson wrote:
> > In the light of this morning's, er, entertainment, are the Python
> > developers on this list (well, all but one of them...) happy with the
> > way it currently works?
>
> No. Reply-to-list is almost never correct. There is even less excuse
> than usual (which would be almost none) on a "technical" list.

I agree - I had been chortling at the hapless recruiter for hitting
reply-all when she meant reply. I didn't realise that she'd actually hit
reply, in the pretty reasonable expectation that it would do the same thing
it does in (almost) every other circumstance.

While I hope I'd be alert enough to spot the error before sending if I'd
done the same, anyone I've worked with would agree that it's a 50/50 chance
at best, depending on day and mania-level.

> ___
> python-uk mailing list
> python-uk@python.org
> 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] The perils of reply-to

2013-01-03 Thread xtian
Amusingly, you've replied to the wrong person - meitham was the one
complaining about the gmail interface.
I hope you don't mind me cc-ing the list, because it kind of illustrates my
point. ;)

I sent my initial message from a client that had both reply and reply-all
buttons side-by-side, so when beginning my reply I made a decision about
where it should go. Except the reply-to settings on the list meant that
both buttons actually do the same thing. That seems unnecessarily confusing
- nothing to do with correctness.

Similarly, due to those settings, when Walter wanted to send a private
(even though perfectly polite) message to meitham, he accidentally sent it
to me instead.

Anyway, like Oli said, this isn't the kind of thing where people are likely
to change their minds. And it's really not a big deal either way. I guess I
just won't laugh so hard at the next recruiter who does it. And maybe
that's a worthwhile lesson right there. Aren't we all people? Don't we all
love, and die, and eat, and poop?

I love you guys.
xtian

On 3 January 2013 16:58, Walter Prins  wrote:

> Just use the little drop down next to the arrow left top of the mail,
> select "Replay all, " (second menu option) then click the  on
> the list address to remove it if desired.
>
> (Sent from gmail via this method.)
>
> Cheers,
>
> Walter
>
> On 3 January 2013 15:57, meitham  wrote:
>
>> > No. Reply-to-list is almost never correct. There is even less excuse
>> > than usual (which would be almost none) on a "technical" list.
>> +1
>> I can't get the new gmail web interface to reply to individual instead
>> of replying to list, not without composing a new email from scratch.
>
>
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] The London Python Dojo is this Thursday

2013-07-12 Thread xtian
I like the sound of this - Scrapheap Challenge style. You're right, it would 
take a bit more organisation though.

On 12 Jul 2013, at 14:31, Alistair Broomhead  
wrote:

> Something that may may not work (I guess it would take a fair amount of 
> organisation) once a challenge has been picked, we ask people to volunteer as 
> team leaders, they get a git repo set up and write tests, but their main role 
> is to advise their team and give them a nudge on things which are stopping 
> them from progressing. This would mean that each team has an 'expert', but I 
> guess it would also mean people who were willing to take this role would have 
> to bring a laptop off their own -an issue for me as I don't own one...
> 
> On 12 Jul 2013 14:19, "Javier Llopis"  wrote:
>> 
>> >> Another person could simply say: mmm... interesting but... not for my
>> >> level. And stop coming. Do you really want this?
>> >
>> > When all's said and done, if someone doesn't think it's for them, then
>> > it's not for them. We can try to be as accommodating as possible, but
>> > you can't please all the people all the time.
>> >
>> 
>> ...And in this case, I would rather try to keep the expert coders in
>> instead of the newbies. Better be challenged than bored.
>> 
>> Just my 2p
>> 
>> J
>> 
>> 
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> http://mail.python.org/mailman/listinfo/python-uk
> ___
> python-uk mailing list
> python-uk@python.org
> 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] Cryptopals study group

2014-12-27 Thread xtian
I'm definitely keen. I've done up to exercise 13 in Python (and started
porting some of them to Rust).
___
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 xtian
I'm pro dropping the reply-to header, it's always awkward when someone gets
bitten by it. People are much more familiar with the difference between
reply and reply all now than they were when the reply-to header solution
was devised.

On Wed, 4 Feb 2015 14:22 Richard Barran  wrote:

> More sensible, but a lot less fun for us in the popcorn gallery!
>
> > The reverse, people accidentally answering just to the sender instead of
> the whole list, seems better than people accidentally sending private
> emails to everyone.​
>
> ___
> 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] URGENT: Volunteers for teacher collaboration please... :-)

2016-02-17 Thread xtian
I'm keen too! I can only really do London though, sorry.

On Wed, 17 Feb 2016, 11:25 Harry Percival  wrote:

> v much up for this.  London easiest for me but I'm sure I can wrangle some
> time off if you need someone to trek up the country somewhere...
>
> On 17 February 2016 at 10:49, Zeth  wrote:
>
>> Hi Nick,
>>
>> Put me down for Birmingham of course, probably can do Nottingham and
>> some of the Northern ones if needed.
>>
>> Best Wishes,
>> Zeth
>>
>> On 17 February 2016 at 08:30, Nicholas H.Tollervey 
>> wrote:
>> > Hi Folks,
>> >
>> > I realise I must sound like a stuck record about this sort of thing -
>> > please accept my sincere apologies.
>> >
>> > TL;DR: I need volunteers from around the country to support a twilight
>> > meetup of teachers happening in various parts of the UK. It's not
>> > difficult and likely to be a lot of fun and will only take a few hours
>> > of your time in the early evening of a single day. I may be able to
>> > cover travel expenses. Please get in touch. More detail below...
>> >
>> > Computing at School (see: http://www.computingatschool.org.uk/), a
>> grass
>> > roots movement of computing teachers in the UK would like to run a
>> > series of training courses for "Master Teachers" in MicroPython on the
>> > BBC micro:bit during March. These teachers would go on to act as the
>> > seed / catalyst for other teachers who require Python training during a
>> > series of training events over the summer. Put simply, this is an
>> > exercise in Python evangelism for teachers.
>> >
>> > Master teachers are those who have demonstrated a combination of deep
>> > subject knowledge and teaching skill. Put simply, they're the most
>> > senior teachers you can get. They're also the leaders in the field and
>> > what they say or do influences many hundreds of their colleagues.
>> >
>> > The idea is for the master teachers to get together with Python
>> > developers (that'd be *you*) for a few hours to work through MicroPython
>> > related educational resources. These events would happen at university
>> > based hubs around the country. As a Python developer you'll *get a BBC
>> > micro:bit* and be expected to offer advice, answer questions and
>> > demonstrate Python as needed. Honestly, it's not an onerous task and
>> > will only last a few hours in a "twilight" session (i.e. after work).
>> >
>> > The locations and proposed dates are as follows:
>> >
>> > London: 25th February
>> > Birmingham: 9th March
>> > Nottingham: 15th March
>> > Lancaster: 16th March
>> > Newcastle: 17th March
>> > Hertfordshire: 21st March
>> > Manchester: 23rd March
>> > Southampton: 23rd March
>> >
>> > It's easy for UK Python to be very London-centric. This is an
>> > opportunity for Pythonistas throughout the UK to step up and get
>> involved.
>> >
>> > Why should you volunteer a few hours of your time to help teachers? Need
>> > you ask? Your help and influence will ultimately contribute to the
>> > education of the next generation of programmers - your future
>> > colleagues. It's a way to give back to the community by fostering the
>> > next generation of Pythonistas with the help of the CAS Master Teachers.
>> > It's also, from a moral point of view, simply a selfless and
>> > unambiguously good thing to do.
>> >
>> > If you're thinking "oh, they won't want me", then YOU ARE EXACTLY THE
>> > PERSON WE NEED! Your experience, perspective and knowledge is invaluable
>> > and teachers need to hear from you. Rest assured, this will not be a
>> > difficult or high-pressure activity. In fact, it's likely to be a lot of
>> > fun.
>> >
>> > Remember that awesome person who mentored you and/or gave you a step up?
>> > Now's your chance to be that person for a group of master teachers.
>> >
>> > If this is of interest to you, please get in touch ASAP and I can start
>> > to coordinate things with CAS.
>> >
>> > I'm going to put in a grant request to the PSF to see if we can cover
>> > travel costs for developers. But there's no guarantee this will come
>> about.
>> >
>> > Best wishes,
>> >
>> > 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
>>
>
>
>
> --
> --
> Harry J.W. Percival
> --
> Twitter: @hjwp
> Mobile:  +44 (0) 78877 02511
> Skype: harry.percival
> ___
> 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