From news02 at metrak.com Tue May 2 00:33:37 2017 From: news02 at metrak.com (paul sorenson) Date: Mon, 1 May 2017 21:33:37 -0700 Subject: [melbourne-pug] pycon 2017 Message-ID: Heading to pycon 2017? I will be there along with some others from Facebook, please come and introduce yourself. Aside from pycon if you are in the Bay area and up for a beer please get in touch. cheers From ben+python at benfinney.id.au Tue May 2 01:41:28 2017 From: ben+python at benfinney.id.au (Ben Finney) Date: Tue, 02 May 2017 15:41:28 +1000 Subject: [melbourne-pug] pycon 2017 References: Message-ID: <85wp9z4xyv.fsf@benfinney.id.au> paul sorenson writes: > Heading to pycon 2017? As far as I know, ?PyCon 2017? refers to the US-based event in Portland . Do you mean PyCon AU 2017 , which is in the city for which this is a forum? > I will be there along with some others from Facebook, please come and > introduce yourself. When you say ?from Facebook?, are these people who you know as users on that service? Or are you saying you're a Facebook employee? Or something else? > Aside from pycon if you are in the Bay area and up for a beer please > get in touch. Thanks for the invitation :-) -- \ ?I put contact lenses in my dog's eyes. They had little | `\ pictures of cats on them. Then I took one out and he ran around | _o__) in circles.? ?Steven Wright | Ben Finney From miked at dewhirst.com.au Tue May 2 08:17:03 2017 From: miked at dewhirst.com.au (Mike Dewhirst) Date: Tue, 2 May 2017 22:17:03 +1000 Subject: [melbourne-pug] pycon 2017 In-Reply-To: <85wp9z4xyv.fsf@benfinney.id.au> References: <85wp9z4xyv.fsf@benfinney.id.au> Message-ID: <8dc78aba-3237-1639-dd25-eb910d3b1498@dewhirst.com.au> On 2/05/2017 3:41 PM, Ben Finney wrote: > paul sorenson writes: > >> Heading to pycon 2017? > As far as I know, ?PyCon 2017? refers to the US-based event in Portland > . > > Do you mean PyCon AU 2017 , which is in > the city for which this is a forum? > >> I will be there along with some others from Facebook, please come and >> introduce yourself. Paul is a distinguished scientist and engineer from Melbourne with some amazing accomplishments. I believe he was recruited recently by Facebook to predict their networking requirements. Python is part of his palette. If he presents a session at Pycon I will definitely attend. > When you say ?from Facebook?, are these people who you know as users on > that service? Or are you saying you're a Facebook employee? Or something > else? > >> Aside from pycon if you are in the Bay area and up for a beer please >> get in touch. > Thanks for the invitation :-) > From news02 at metrak.com Tue May 2 20:42:02 2017 From: news02 at metrak.com (paul sorenson) Date: Tue, 2 May 2017 17:42:02 -0700 Subject: [melbourne-pug] pycon 2017 In-Reply-To: <8dc78aba-3237-1639-dd25-eb910d3b1498@dewhirst.com.au> References: <85wp9z4xyv.fsf@benfinney.id.au> <8dc78aba-3237-1639-dd25-eb910d3b1498@dewhirst.com.au> Message-ID: Mike, Close - some of my colleagues will be presenting (in Portland). cheers On 05/02/2017 05:17 AM, Mike Dewhirst wrote: > On 2/05/2017 3:41 PM, Ben Finney wrote: >> paul sorenson writes: >> >>> Heading to pycon 2017? >> As far as I know, ?PyCon 2017? refers to the US-based event in Portland >> . >> >> Do you mean PyCon AU 2017 , which is in >> the city for which this is a forum? >> >>> I will be there along with some others from Facebook, please come and >>> introduce yourself. > > Paul is a distinguished scientist and engineer from Melbourne with > some amazing accomplishments. I believe he was recruited recently by > Facebook to predict their networking requirements. Python is part of > his palette. If he presents a session at Pycon I will definitely attend. > > >> When you say ?from Facebook?, are these people who you know as users on >> that service? Or are you saying you're a Facebook employee? Or something >> else? >> >>> Aside from pycon if you are in the Bay area and up for a beer please >>> get in touch. >> Thanks for the invitation :-) >> > > _______________________________________________ > melbourne-pug mailing list > melbourne-pug at python.org > https://mail.python.org/mailman/listinfo/melbourne-pug From news02 at metrak.com Tue May 2 20:53:38 2017 From: news02 at metrak.com (paul sorenson) Date: Tue, 2 May 2017 17:53:38 -0700 Subject: [melbourne-pug] pycon 2017 In-Reply-To: <85wp9z4xyv.fsf@benfinney.id.au> References: <85wp9z4xyv.fsf@benfinney.id.au> Message-ID: <74308e51-273f-9942-16a6-15657d314cc1@metrak.com> On 05/01/2017 10:41 PM, Ben Finney wrote: > paul sorenson writes: > >> Heading to pycon 2017? > As far as I know, ?PyCon 2017? refers to the US-based event in Portland > . this one ^^^^ > Do you mean PyCon AU 2017 , which is in > the city for which this is a forum? >> I will be there along with some others from Facebook, please come and >> introduce yourself. > When you say ?from Facebook?, are these people who you know as users on > that service? Or are you saying you're a Facebook employee? Or something > else? I am a facebook employee and spend most of my day hacking on python. > >> Aside from pycon if you are in the Bay area and up for a beer please >> get in touch. > Thanks for the invitation :-) > No problem. From ryan.verner at gmail.com Thu May 4 06:47:27 2017 From: ryan.verner at gmail.com (Ryan Verner) Date: Thu, 4 May 2017 20:47:27 +1000 Subject: [melbourne-pug] pycon 2017 In-Reply-To: <74308e51-273f-9942-16a6-15657d314cc1@metrak.com> References: <85wp9z4xyv.fsf@benfinney.id.au> <74308e51-273f-9942-16a6-15657d314cc1@metrak.com> Message-ID: Assuming you mean Pycon US, I'll be there. Any other MPUG'ers going? R On Wed, May 3, 2017 at 10:53 AM, paul sorenson wrote: > > On 05/01/2017 10:41 PM, Ben Finney wrote: > > paul sorenson writes: > > > >> Heading to pycon 2017? > > As far as I know, ?PyCon 2017? refers to the US-based event in Portland > > . > this one ^^^^ > > Do you mean PyCon AU 2017 , which is in > > the city for which this is a forum? > >> I will be there along with some others from Facebook, please come and > >> introduce yourself. > > When you say ?from Facebook?, are these people who you know as users on > > that service? Or are you saying you're a Facebook employee? Or something > > else? > I am a facebook employee and spend most of my day hacking on python. > > > >> Aside from pycon if you are in the Bay area and up for a beer please > >> get in touch. > > Thanks for the invitation :-) > > > No problem. > > > _______________________________________________ > melbourne-pug mailing list > melbourne-pug at python.org > https://mail.python.org/mailman/listinfo/melbourne-pug > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.crisp at gmail.com Mon May 8 00:34:47 2017 From: david.crisp at gmail.com (David Crisp) Date: Mon, 8 May 2017 14:34:47 +1000 Subject: [melbourne-pug] Python 3 and PySide shearing of properties from other classes Message-ID: A problem in two parts with their own questions. What is the terminology for something, and then how would I do it. My problem is that I don't know the correct Pythonic (or even general programming terminology) term to use to search for what I am trying to do. This makes it very difficult to go searching for the answer to my problem. What is the correct terminology for the following: I have a Main class that instantiates a Configuration class that handles reading the settings file and then setting up properties. The same main class then calls a mainWindow GUI which has a configuration gui that I want to be able to use and set the properties in the Configuration class. I not sure what this terminology is. For what its worth, I am using PySide, converting the .ui files to python files and handling the gui content in python instead of the .ui file if that helps. In the following example each of the python files contain a single class. (makes for a lot of files but it seems to work in my head) Main -\ | Configuration |- guiMainWindow -\ | \--guiConfigWindow Given that: How do I set it up so that the properties set in the configuration class can be accessed and set by the guiConfigWindow class? Mind you, if I know what the correct terminology is and can find some well written examples I will have this problem solved before you can say "We needed this code last Friday, Today was meant to be release day" I asked on StackOverflow a while ago but haven't had any responses. David -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at jugglethis.net Mon May 8 01:24:11 2017 From: tom at jugglethis.net (Tom Allen) Date: Mon, 8 May 2017 15:24:11 +1000 Subject: [melbourne-pug] Python 3 and PySide shearing of properties from other classes In-Reply-To: References: Message-ID: I would suggest what you're after is the Model-View-Controller pattern. Your settings file is the canonical repository of the configuration and is the Model. The Configuration class is the Controller and is able to read/update the Model. The GUI is just a View over the Model, and should only do things using the Controller's API. Alternatively, you blur the lines a bit and say the Configuration class is both the Model and the Controller. Or you blur them differently and say the GUI class is one of many possible Controllers and a View for this Model. Plenty of people will argue that your Model has to be an object-oriented wrapper around your data and must therefore be a class itself. Doesn't bother me, but I'd just use a sensible data layout in the settings file (JSON, XML, INI, whatever) and call it a day. Another worthwhile thing to look at is specific libraries that read/write config files. If you use one of these you effectively get your settings file as an object in memory, and the API to manipulate it. That's your Controller straight up without having to do any work. You'd then ditch your Configuration class entirely, since the in-memory representation of the settings file provides everything you need. Be aware that "MVC" must be one of the most over-used and over-argued-about acronyms of all times, so searching Stack Overflow for it will get you nowhere. Cheers, Tom On 8 May 2017 at 14:34, David Crisp wrote: > A problem in two parts with their own questions. What is the terminology > for something, and then how would I do it. > > My problem is that I don't know the correct Pythonic (or even general > programming terminology) term to use to search for what I am trying to do. > This makes it very difficult to go searching for the answer to my problem. > > What is the correct terminology for the following: > > I have a Main class that instantiates a Configuration class that handles > reading the settings file and then setting up properties. The same main > class then calls a mainWindow GUI which has a configuration gui that I > want to be able to use and set the properties in the Configuration > class. I not sure what this terminology is. > > For what its worth, I am using PySide, converting the .ui files to python > files and handling the gui content in python instead of the .ui file if > that helps. > > In the following example each of the python files contain a single class. > (makes for a lot of files but it seems to work in my head) > > Main -\ > | Configuration > |- guiMainWindow -\ > | > \--guiConfigWindow > > Given that: > How do I set it up so that the properties set in the configuration class > can be accessed and set by the guiConfigWindow class? > > Mind you, if I know what the correct terminology is and can find some > well written examples I will have this problem solved before you can say > "We needed this code last Friday, Today was meant to be release day" > > I asked on StackOverflow a while ago but haven't had any responses. > David > > > _______________________________________________ > melbourne-pug mailing list > melbourne-pug at python.org > https://mail.python.org/mailman/listinfo/melbourne-pug > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at pythoncharmers.com Tue May 9 18:46:28 2017 From: ed at pythoncharmers.com (Ed Schofield) Date: Wed, 10 May 2017 08:46:28 +1000 Subject: [melbourne-pug] [JOB] Python contract at Cisco (Sydney) Message-ID: <7C8C8A63-3438-4604-979D-E27AA7B73D35@pythoncharmers.com> Hi all! If any of you are interested in moving to Sydney (temporarily?), Cisco looking for a Python programmer (see below) to "automate various things with Python scripts" and ideally "kick-start a couple of projects involving machine learning". If you're interested, please contact Kabeer Norundeen directly at kabeer at cisco.com . --------------- Python programmers with passion & knowledge, there is a 6-month contract opportunity in Cisco TAC, Sydney. =================== Experience Summary =================== Required: ? Strong programming aptitude ? Strong knowledge of Python programming ? Good working knowledge of REST APIs ? Expertise in Python programming exhibited through personal or professional projects Preferred: ? Good knowledge of machine learning concepts -- Dr. Edward Schofield Python Charmers http://pythoncharmers.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From walker.michael.luke at gmail.com Mon May 8 00:45:23 2017 From: walker.michael.luke at gmail.com (Michael Walker) Date: Mon, 8 May 2017 14:45:23 +1000 Subject: [melbourne-pug] Python 3 and PySide shearing of properties from other classes In-Reply-To: References: Message-ID: Hi David, Off the top of my head, I'm not sure that there is a specific terminology, but it looks to me like you need to pass a Configuration object to a guiConfigWindow either at construction or via a Main method later. If your code needs to be very formal then Configuration needs to have getter and setter methods for each such property. Michael Walker On 8 May 2017 14:35, "David Crisp" wrote: A problem in two parts with their own questions. What is the terminology for something, and then how would I do it. My problem is that I don't know the correct Pythonic (or even general programming terminology) term to use to search for what I am trying to do. This makes it very difficult to go searching for the answer to my problem. What is the correct terminology for the following: I have a Main class that instantiates a Configuration class that handles reading the settings file and then setting up properties. The same main class then calls a mainWindow GUI which has a configuration gui that I want to be able to use and set the properties in the Configuration class. I not sure what this terminology is. For what its worth, I am using PySide, converting the .ui files to python files and handling the gui content in python instead of the .ui file if that helps. In the following example each of the python files contain a single class. (makes for a lot of files but it seems to work in my head) Main -\ | Configuration |- guiMainWindow -\ | \--guiConfigWindow Given that: How do I set it up so that the properties set in the configuration class can be accessed and set by the guiConfigWindow class? Mind you, if I know what the correct terminology is and can find some well written examples I will have this problem solved before you can say "We needed this code last Friday, Today was meant to be release day" I asked on StackOverflow a while ago but haven't had any responses. David _______________________________________________ melbourne-pug mailing list melbourne-pug at python.org https://mail.python.org/mailman/listinfo/melbourne-pug -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at linuxpenguins.xyz Fri May 12 04:41:19 2017 From: brian at linuxpenguins.xyz (Brian May) Date: Fri, 12 May 2017 18:41:19 +1000 Subject: [melbourne-pug] Mysql Server has gone away Message-ID: <87h90qtqkw.fsf@prune.linuxpenguins.xyz> Hello, For my personal Django based project, I am getting random test failures on Travis, e.g.: https://travis-ci.org/brianmay/spud/jobs/231462150 OperationalError: (2006, 'MySQL server has gone away') The usual culprit for the message - that the server closed its connection due to idle time out and we didn't reconnect as we were suppose to - doesn't seem to be applicable for a sequence of automated tests - most if not all requiring db access. If I click restart job, it almost certainly will succeed. I only seem to have problems with MySQL. I am inclined to disable the mysql tests, on the assumption that is is brokenness inside Django mysql drivers or mysql. First I thought I would check here. Regards. -- Brian May https://linuxpenguins.xyz/brian/ From ben+python at benfinney.id.au Fri May 12 18:57:08 2017 From: ben+python at benfinney.id.au (Ben Finney) Date: Sat, 13 May 2017 08:57:08 +1000 Subject: [melbourne-pug] The future is looking bright for Python Message-ID: <85inl53cqj.fsf@benfinney.id.au> Howdy all, This article highlights an encouraging long-term trend in Most Popular Language [0], namely that Python has been on a steady upward climb for many years, greater than any other language measured. Take 15 seconds and mouse over all the tags, starting from C# and go all the way down to Assembly. What do you see? I?m no data scientist, but to me it?s pretty obvious that Python has, by a very large margin, the greatest positive slope (future?). In fact, it appears to be only one of two languages listed here that even has a positive slope [?]. [0] Most Popular Language, as measured by StackOverflow Trends . -- \ ?Any intelligent fool can make things bigger and more complex? | `\ It takes a touch of genius ? and a lot of courage ? to move in | _o__) the opposite direction.? ?Albert Einstein | Ben Finney From alaa at codedemigod.com Fri May 12 18:14:23 2017 From: alaa at codedemigod.com (Alaa Salman) Date: Sat, 13 May 2017 08:14:23 +1000 Subject: [melbourne-pug] melbourne-pug Digest, Vol 131, Issue 8 In-Reply-To: References: Message-ID: On 13/05/17 02:00, melbourne-pug-request at python.org wrote: > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 12 May 2017 18:41:19 +1000 > From: Brian May > To: melbourne-pug at python.org > Subject: [melbourne-pug] Mysql Server has gone away > Message-ID: <87h90qtqkw.fsf at prune.linuxpenguins.xyz> > Content-Type: text/plain > > Hello, > > For my personal Django based project, I am getting random test failures > on Travis, e.g.: > > https://travis-ci.org/brianmay/spud/jobs/231462150 > > OperationalError: (2006, 'MySQL server has gone away') > > The usual culprit for the message - that the server closed its > connection due to idle time out and we didn't reconnect as we were > suppose to - doesn't seem to be applicable for a sequence of automated > tests - most if not all requiring db access. > > If I click restart job, it almost certainly will succeed. > > I only seem to have problems with MySQL. I am inclined to disable the > mysql tests, on the assumption that is is brokenness inside Django mysql > drivers or mysql. > > First I thought I would check here. > > Regards. Hey Ben, Are you able to check if you're reaching the connection limits somehow? It might be that you're exhausting the pool. That's the first thing I would try; increase the pool size to see if it has any effect and that would tell me how to proceed in finding the problem. I usually advise that people stay away from mysql due to negative personal experience. Or you might be right that there's something broken within the driver. But unless your tests are doing some black magic, an error like this(connection issue so everyone using mysql would face) is likely to have a simpler explanation. -- Regards, Alaa Salman +61413852057 http://www.codedemigod.com From brian at linuxpenguins.xyz Sat May 13 07:30:07 2017 From: brian at linuxpenguins.xyz (Brian May) Date: Sat, 13 May 2017 21:30:07 +1000 Subject: [melbourne-pug] melbourne-pug Digest, Vol 131, Issue 8 In-Reply-To: References: Message-ID: <87ziehro3k.fsf@prune.linuxpenguins.xyz> Alaa Salman writes: > Are you able to check if you're reaching the connection limits somehow? > It might be that you're exhausting the pool. That's the first thing I > would try; increase the pool size to see if it has any effect and that > would tell me how to proceed in finding the problem. I assume you mean server connection limits? Hmmm. Interesting thought, testing might create one connection for each test. Not sure. There were about 174 tests when this test was run. I would have hoped to get a "Too many connections" error however. Unfortunately this is a mysql server automatically setup by travis, not sure if there is any easy way to get or change the settings. Which could mean this is a case of tests failing due to (a) inefficient use of sockets during the tests and (b) not enough connections in the default travis config. Interesting enought the tests that fail take almost 6 minutes instead of almost 3 minutes. No idea if this somehow is the cause of the failure or a symptom of the failure (e.g. we spend 3 minutes trying to reconnect for same insane reason). Also no idea why is seems to be random. -- Brian May https://linuxpenguins.xyz/brian/ From levi.cameron at alliancesoftware.com.au Sun May 14 19:45:19 2017 From: levi.cameron at alliancesoftware.com.au (Levi Cameron) Date: Mon, 15 May 2017 09:45:19 +1000 Subject: [melbourne-pug] melbourne-pug Digest, Vol 131, Issue 8 In-Reply-To: References: Message-ID: > For my personal Django based project, I am getting random test failures > on Travis, e.g.: > > https://travis-ci.org/brianmay/spud/jobs/231462150 > > OperationalError: (2006, 'MySQL server has gone away') > > The usual culprit for the message - that the server closed its > connection due to idle time out and we didn't reconnect as we were > suppose to - doesn't seem to be applicable for a sequence of automated > tests - most if not all requiring db access. > > If I click restart job, it almost certainly will succeed. > > That message can be triggered by more than just an idle timeout. Whenever I've encountered this it's almost always because the SQL query was too big (typically inserting/updating a large blob, or a very large 'WHERE x IN (1,2,3,..)' clause) https://dev.mysql.com/doc/refman/5.7/en/packet-too-large.html (Although without knowing the test case in detail I would have expected it would fail consistently) -- Kind Regards, -------------------------------------------------------- Alliance Software Ph: 03 9955 7000 Fax: 03 9894 2106 Email: levi.cameron at alliancesoftware.com.au Web: www.alliancesoftware.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at linuxpenguins.xyz Mon May 15 04:54:29 2017 From: brian at linuxpenguins.xyz (Brian May) Date: Mon, 15 May 2017 18:54:29 +1000 Subject: [melbourne-pug] melbourne-pug Digest, Vol 131, Issue 8 In-Reply-To: References: Message-ID: <87h90msdoa.fsf@prune.linuxpenguins.xyz> Levi Cameron writes: > (Although without knowing the test case in detail I would have expected it > would fail consistently) Yes, this is what gets to me. The tests themselves are pretty consistant, and do the same things everytime. -- Brian May https://linuxpenguins.xyz/brian/