Re: [melbourne-pug] Job Opportunity - Software Engineer/Developer (Python)

2015-02-25 Thread William ML Leslie
On 26 February 2015 at 09:32, Liam Kelly wrote: > My client > ​blah blah blah > ​A nice side-effect of all this recruiter spam is that we're getting an education on who to avoid. -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law.

Re: [melbourne-pug] Job Opportunity - Software Engineer/Developer (Python)

2015-02-25 Thread William ML Leslie
On 26 February 2015 at 10:53, Rory Hart wrote: > Meets my criteria for appropriate for this list. > > Python: check > Melbourne: check > ​I thought Javier's criteria made sense:​ https://mail.python.org/pipermail/melbourne-pug/2015-February/002211.html -- William Leslie Notice: Likely much o

Re: [melbourne-pug] Spectacular HoloView

2015-03-22 Thread William ML Leslie
On 20 March 2015 at 14:02, Juan Nunez-Iglesias wrote: > "from holoviews import *" on the first line of code is pretty nasty. =\ ​People keep trying to tell me that mathematicians just LOVE global behaviour and a complete lack of code hygiene. We really don't. I mean, what's with this: %%opts

Re: [melbourne-pug] PyCon Australia 2015 Call for Proposals is Open!

2015-03-31 Thread William ML Leslie
Lets not reply-all (: On 1 April 2015 at 10:12, Chris Hausler wrote: > That would be cool. I'll come :-) > > On Wed, 1 Apr 2015 at 10:02 Noon Silk wrote: > >> Is there a plan to host this thing in Melbourne at some point? >> >> On Tue, Mar 31, 2015 at 6:49 PM, Clinton Roy >> wrote: >> >>> Clos

Re: [melbourne-pug] last post

2015-05-25 Thread William ML Leslie
On 25 May 2015 at 17:10, Juan Nunez-Iglesias wrote: > I vote against changing. The default interaction with a mailing list is to > write back to the list. And Reply-all ends up polluting people's inboxes > who might have otherwise not wanted to stay on that thread. +1 for the list being the def

Re: [melbourne-pug] Unicode encode problem

2015-09-22 Thread William ML Leslie
On 23 September 2015 at 08:41, Mike Dewhirst wrote: > Thanks John - no success yet, see below ... > > logfile = "my_logfile".encode(encoding='utf_8', errors='strict') This line is the same as doing this: logfile = b"my_logfile" Probably what you want is more like: 'handlers' : { 'file' : {

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread William ML Leslie
On 16 August 2016 at 11:01, Mike Dewhirst wrote: > If anyone can point me to the appropriate advice for resolving the error > below I would be most appreciative. Really very appreciative. > > I think I understand Unicode in theory and have reread a lot of articles > including ... The article we r

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread William ML Leslie
On 16 August 2016 at 13:57, Mike Dewhirst wrote: > On 16/08/2016 11:27 AM, William ML Leslie wrote: >> What is the value of sys.stdout.encoding at this point? > > > It is just a waypoint. I just wrote the class init and wanted to prove it > produced data I can use before

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread William ML Leslie
On 16 August 2016 at 14:24, Anthony Briggs wrote: > Hi Mike, > > I was just trying to solve a similar problem at the PyconAU sprints :) > > The error is that there are some things / Unicode strings which don't > translate to Windows 'charmap' characters, and can't be printed to the > terminal. You

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread William ML Leslie
On 16 August 2016 at 14:23, Mike Dewhirst wrote: > On 16/08/2016 1:59 PM, William ML Leslie wrote: >> import sys >> print(sys.stdout.encoding) > > > cp850 > > There is no cp850 in the env vars so it must come from somewhere else. > You could set it to som

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread William ML Leslie
On 16 August 2016 at 14:40, Anthony Briggs wrote: > print("M├┐ h├┤v├¿r├ºr├áft ├«├ƒ f├╗┼él ├Âf ├®├¬l┼ø") > > works just fine for me, since you're just printing an internal Python > string. It will work fine unless you're on Mike's machine - if sys.stdout.encoding is cp850 and you've got unicode_li

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
On 16 August 2016 at 15:28, Anthony Briggs wrote: > > > On 16 August 2016 at 14:57, William ML Leslie < > william.leslie@gmail.com> wrote: > >> On 16 August 2016 at 14:40, Anthony Briggs >> wrote: >> > print("Mÿ hôvèrçràft îß fûłl

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
On 16 August 2016 at 15:51, Mike Dewhirst wrote: > Output with different code page settings ... > > line = line.encode("utf-8").decode("cp1252", "replace") > > , ',', '\x00', ',', '\x00', ',', '\x00', ',', '\x00', '0', '\x00', '.', > '\x00', '0', '\x00', > '0', '\x00', '0', '\x00

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
On 16 August 2016 at 15:51, Mike Dewhirst wrote: > > # this requires a bytes-like object not 'str' > > #cells = line.split(",") > > ​You got that exception because you had one of the .encode steps above. Don't do any .encode before the split. -- William Leslie N

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
​What does something like this do for you?​ with open(csvfile, "r", encoding='utf-16') as csv: > > self.rows = csv.readlines() > > for > ​i, ​ > line in > ​enumerate(​ > self.rows > ​)​ > : > > cells = line.split(",") > > if i >= start: > > print(', '.join(cells

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
other programs, including text editors, may not.​ On 16 August 2016 at 18:35, Mike Dewhirst wrote: > On 16/08/2016 5:36 PM, William ML Leslie wrote: > >> ​What does something like this do for you?​ >> > > That is an official, gold plated win! > > Thanks for your pe

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread William ML Leslie
On 16 August 2016 at 20:55, Anthony Briggs wrote: > > > On 16 August 2016 at 17:12, William ML Leslie > wrote: >> >> >> On 16 August 2016 at 15:28, Anthony Briggs >> wrote: >>> >>> That string is translated to a cp1252 character set, so I&#

Re: [melbourne-pug] help with importing fasta files nito command window (python)

2017-03-06 Thread William ML Leslie
On 3 March 2017 at 18:57, Jessica Rose via melbourne-pug wrote: > Hi there, I am having trouble with importing or reading text files (fasta > files) when writing code with python. I am very new to this and have been > practicing python code writing from the command window with great success. > but

Re: [melbourne-pug] Install ‘conda’ using Debian package manager

2017-08-02 Thread William ML Leslie
On 2 August 2017 at 17:09, Ben Finney wrote: > I think it is alarmingly bad advice to say “prepare for this tutorial by > downloading this third-party shell script and running it on your > computer”. So I've been trying to find a way that is more secure than > that. > That's before you even get t

Re: [melbourne-pug] Install ‘conda’ using Debian package manager

2017-08-02 Thread William ML Leslie
On 3 August 2017 at 10:16, William ML Leslie wrote: > On 2 August 2017 at 17:09, Ben Finney wrote: >> I think it is alarmingly bad advice to say “prepare for this tutorial by >> downloading this third-party shell script and running it on your >> computer”. So I've been

Re: [melbourne-pug] How do I become a python developer?

2017-09-07 Thread William ML Leslie
On 4 September 2017 at 15:04, Dylan Pereira wrote: > Hi, > > I just had a general question. I have used python before and have loved it. > I would love to work as a python developer. I don't have any previous > experience except for writing a few python scripts in a previous role. What > would emp

Re: [melbourne-pug] FroSolPy Fronius Inverter Data Collector / Code Feedback

2018-05-17 Thread William ML Leslie
On 18 May 2018 at 13:40, paul sorenson wrote: > My inverter came with a CD-ROM which would push a cloud somewhere but I > reckon it would be fun to crowd source really granular data. > The ability to push clouds is a great feature for a solar inverter to have. -- William Leslie Notice: Likely

Re: [melbourne-pug] Spawn new process to handle inbound websocket connection

2018-07-26 Thread William ML Leslie
On 24 July 2018 at 07:19, Andrew Stuart wrote: > I have servers that send a sequence of PNG images which need to be processed > via a sequence of commands. > > My idea is this: > > A Python websockets server is listening for connections from the servers. > When a websocket connection is received

Re: [melbourne-pug] Can anybody please identify this company?

2019-10-11 Thread William ML Leslie
On Fri, 11 Oct 2019 at 17:42, Franzi ska wrote: > > What does full stack mean these days? > It means that if someone changes the subject, I'm going to forget what I was doing again. I have had quite a few recruiters use it to mean "full-stack javascript", like it's a short-hand(?) for a node dev

Re: [melbourne-pug] Software Freedom Day: Saturday September 15

2012-09-04 Thread William ML Leslie
On 5 September 2012 10:02, Lev Lafayette wrote: > Linux Users of Victoria and Free Software Melbourne is hosting Software > Freedom Day in Melbourne! On Saturday, the 15th of September, I suppose? -- William Leslie ___ melbourne-pug mailing list melbo

Re: [melbourne-pug] Software Freedom Day: Saturday September 15

2012-09-05 Thread William ML Leslie
Whoops, nothing gets past me. Here I am looking for the date in the body and it is in the subject. On 05/09/2012 11:24 AM, "William ML Leslie" wrote: On 5 September 2012 10:02, Lev Lafayette wrote: > Linux Users of Victoria and... On Saturday, the 15th of September, I suppose

Re: [melbourne-pug] config files? pfft!

2013-02-27 Thread William ML Leslie
On 28 February 2013 18:09, Sam Watkins wrote: > config files? pfft! > > In python, one may put a program's settings in a separate python file, > and simply import it (or from it import *). Or more typically, execfile it - this means you don't have to mess with the path [0], no .pyc is generated,

Re: [melbourne-pug] Notes from tonight's MPUG meeting

2013-06-03 Thread William ML Leslie
Thinking about your pygrep, I would like to share something similar I've been using. alias sgrep='grep -R -E --exclude-dir=.git --exclude-dir=.svn --exclude-dir=.hg --exclude-dir=test --exclude='\''*~'\'' --binary-files=without-match ' I entirely divorced rope since I started using this sgrep a f

Re: [melbourne-pug] Notes from tonight's MPUG meeting

2013-06-03 Thread William ML Leslie
On 3 June 2013 23:33, Stephen Moore wrote: > Even better is > find . -type f -name "*.pyc" -delete I remember once having to do this. I'd changed types.CodeType in such a way as to break marshalling .pyc files, and didn't change the pyc magic number. If I ever saw anyone else doing it, I'd gues

Re: [melbourne-pug] What are the "issues of software freedom"? was, Re: Promotional materials for not-for-profit groups

2013-06-27 Thread William ML Leslie
On 27 June 2013 16:32, Noon Silk wrote: > [What are the issues of software freedom?] > Are they specific? Or is it something to do with this: > > http://libreplanet.org/wiki/LibrePlanet:Mission_Statement > > ? They have shifted as time as gone on, for example, patents can pose a significant prob

Re: [melbourne-pug] Data type assumptions in Python

2013-09-05 Thread William ML Leslie
On 5 September 2013 17:07, Javier Candeira wrote: > Just one thing. Comparability is transitive, so I don't have to test > comparability of the new element with all existing elements. I only > have to check whether it's comparable to the first or root item in the > structure. So that test is O(1),

Re: [melbourne-pug] Data type assumptions in Python

2013-09-05 Thread William ML Leslie
On 4 September 2013 19:09, Clare Sloggett wrote: > Lack of types are the cause of most of my python issues too. Maybe we need > types that you don't HAVE to declare if you don't want :) I've had a few people say something like this to me over the years. Do many of you find this to be the case? I

Re: [melbourne-pug] Plotly: Python graphs and online command line

2013-11-28 Thread William ML Leslie
On 29 November 2013 10:09, Sam Watkins wrote: >> Plotly has a Python Shell (NumPy supported) > > Wow. Did you guys code this up from scratch, or is it based on other > work? How is it done? I guess you wrote a python interpreter or > translator in javascript? Is your numpy performant? I'm thi

Re: [melbourne-pug] Question about adding members to list : hypothetical just for interest kind of question

2014-02-20 Thread William ML Leslie
On 21/02/2014 9:40 am, "Anthony Briggs" wrote: > > You can also use the dict() function or dictionary comprehensions to create your dictionary: > item = dict( (key, value) for key, value in list ) > Otherwise written: item = dict(list) ___ melbourne

[melbourne-pug] Import questions

2014-03-05 Thread William ML Leslie
On 6 March 2014 11:16, Brian May wrote: > > > [2] Also, on a separate thread, can somebody point me to a document that > describes the difference between the two forms of import in as described in > [1]? It seems that they are different. > The best place to find answers for all language questions

Re: [melbourne-pug] Import questions

2014-03-05 Thread William ML Leslie
On 6 March 2014 11:50, Brian May wrote: > On 6 March 2014 11:34, William ML Leslie wrote: > >> specifically, 'import module' loads and initialises the module if needed, >> and then binds the name 'module' to the module. >> >> 'import package

Re: [melbourne-pug] Import questions

2014-03-05 Thread William ML Leslie
On 6 March 2014 11:50, Brian May wrote: > Seems to be that there is more to it then that. > > For example. if in module/__init__.py I have: > >import module.something > > I get an circular import loop. The import "module.something" seems to > imply an import of "module". > > However, if inste

Re: [melbourne-pug] dicts not always printing (and thus processing) in the same order they were created in (or, Im doing it WRONG ????)

2014-03-13 Thread William ML Leslie
On 14 March 2014 11:30, Noon Silk wrote: > It'd be pretty fun to have a mode for the interpreter such that, if, when a > particular property was 'undefined', the implementation did it's best to > make sure it was a undefined as possible. That's a superb idea! -- William Leslie Notice: Likely m

[melbourne-pug] Getting Tom Allen's "The Longest Road"

2014-05-05 Thread William ML Leslie
Thanks everyone for a great meeting. If you were looking for Tom's game, here's the repo so you don't have to google so creatively. https://github.com/Schwolop/GetToAnExit -- William Leslie Notice: Likely much of this email is, by the nature of copyright, covered under copyright law. You abso

Re: [melbourne-pug] The One True way to structure repositories for common code re-use

2014-05-05 Thread William ML Leslie
On 6 May 2014 10:45, Noon Silk wrote: > 1) Local copy in your repo either as: > - Subrepo pointing at source, This is the common practice at work, using braid within a git repo rather than the built-in sub-repository functionality. Braid is flaky, uses the wrong APIs into git (changing you

Re: [melbourne-pug] Fwd: The One True way to structure repositories for common code re-use

2014-05-05 Thread William ML Leslie
On 6 May 2014 13:58, Noon Silk wrote: > On Tue, May 6, 2014 at 1:46 PM, Javier Candeira wrote: >> >> The changes are contained in a git commit, so you can put that in your >> requirements.txt and ask everyone to update (or have the update in a >> git hook). > > > But how do they get the commit? T

Re: [melbourne-pug] Variable Inheritence between modules. I have no idea!

2014-09-11 Thread William ML Leslie
On 12 September 2014 12:11, David Crisp wrote: > How do I read the configuration opbject from within test7 when it is > called from test6?I dont really want to call it from every module that > needs it as there is meant to be some write back functionality happening to > a configuration file a