Re: [melbourne-pug] Guides for communicating with business accounting systems

2012-09-13 Thread Mike Dewhirst
I suggest an accounting text first up. My reason for saying so is a suspicion that your terminolgy might be misleading. There is no sales tax in Australia. There is a "value-added-tax" which in Australia is called a goods and services tax. The absolute reference is the applicable legislation a

Re: [melbourne-pug] Guides for communicating with business accounting systems

2012-09-13 Thread Mike Dewhirst
On 14/09/2012 12:39pm, Mike Dewhirst wrote: The underlying thesis is that a perfect match means future maintainers who have never seen the software before won't get confused due to discrepancies between the software and the real world. ... and I should have said earlier, it is much much

Re: [melbourne-pug] Unit Testing Tools

2013-08-21 Thread Mike Dewhirst
On 22/08/2013 12:12am, Rasjid Wilcox wrote: Hi all, To date I've mostly used Nose for my unit testing, but was just wanting to canvas views on what the current state of the art in Python testing is, and if I should be looking at something else. I'm just using unittest because it is how I start

Re: [melbourne-pug] Tool to script builds and other such things

2013-08-26 Thread Mike Dewhirst
On 27/08/2013 10:03am, Noon Silk wrote: What are people using for this? Suppose I'd like to do things like: - Run python tests Windows: batch commands Linux: Buildbot - Create python exes Windows: distutils and py2exe - Build arbitrary languages (say C++/C#/etc) Nah. Not since

Re: [melbourne-pug] Tool to script builds and other such things

2013-08-26 Thread Mike Dewhirst
On 27/08/2013 11:11am, Noon Silk wrote: On Tue, Aug 27, 2013 at 10:54 AM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: On 27/08/2013 10:03am, Noon Silk wrote: What are people using for this? Suppose I'd like to do things like: - Run p

Re: [melbourne-pug] Yesterday's MPUG session and going forward

2013-09-04 Thread Mike Dewhirst
On 5/09/2013 12:27pm, Javier Candeira wrote: Put first an unguarded expression that might go boom, so it goes boom early. Brilliant. It's still a hack. So what if your method only cared about a particular attribute of whatever object is passed in? Then maybe ... assert(obj.attribute is

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

2013-09-05 Thread Mike Dewhirst
On 6/09/2013 5:14am, Ben Finney wrote: Brian May writes: On 5 September 2013 14:48, Ben Finney wrote: Why is it a problem for the exception to be raised within the bowels of your program? I'm not saying there can't be a reason, but you haven't said what the problem is. The earlier you cat

Re: [melbourne-pug] django db race conditions

2013-11-20 Thread Mike Dewhirst
On 20/11/2013 4:33pm, Brian May wrote: If I run another copy while the first one is sleeping, the 2nd copy gets locked out until the first one finishes: If you are running on the dev server, I believe it is only capable of dealing with one request at a time. Not saying this is the problem -

Re: [melbourne-pug] PyQT 5.2 for Python 2.7 32bit Windows package

2014-01-14 Thread Mike Dewhirst
On 15/01/2014 11:39am, David Crisp wrote: Hello, I have been looking around for the last hour or so for a PyQT 5.2 Python 2.7 32bit windows package and I havent been able to find one at all. I can find a PyQt 5.2 for Python 3 but not 2.7 Try http://www.lfd.uci.edu/~gohlke/pythonlibs/ Fabulou

Re: [melbourne-pug] PyQT 5.2 for Python 2.7 32bit Windows package

2014-01-15 Thread Mike Dewhirst
for all my libraries.. this is my first fail :( On Wed, 15 Jan 2014, Mike Dewhirst wrote: On 15/01/2014 11:39am, David Crisp wrote: Hello, I have been looking around for the last hour or so for a PyQT 5.2 Python 2.7 32bit windows package and I havent been able to find one at all. I can find a

Re: [melbourne-pug] How to go about an aspect of a web app

2014-01-15 Thread Mike Dewhirst
On 16/01/2014 2:40pm, Tennessee Leeuwenburg wrote: Being a massive web app n00b, Having been there myself well within living memory I think the best advice I can give is to judge the choice of webserver and framework by the quality of the available user support. The most important factor is

Re: [melbourne-pug] python-based wiki with nice query-/template-ability?

2014-01-29 Thread Mike Dewhirst
On 30/01/2014 11:56am, Noon Silk wrote: Hello, So I'm interested in a python-based wiki that I can write arbitrary python code in; perhaps with a view to: 1) Creating specific templates, 2) Arbitrarily querying the list of pages, 3) Obtaining specific "bits" of pages (Perhaps I mark

Re: [melbourne-pug] melbourne-pug Digest, Vol 91, Issue 19

2014-01-29 Thread Mike Dewhirst
for >> > the ticketing but it also has useful wiki with markup permitting code. >> >> I hadn't considered Trac for this, thanks for reminding me about it. I'm >> not sure it's right, though. &g

Re: [melbourne-pug] Excel spreadsheet munging under Linux. Limits?

2014-02-03 Thread Mike Dewhirst
On 4/02/2014 2:29pm, Javier Candeira wrote: At work I need to manipulate a series of excel spreasheets, and I seem to remember that people have discussed the topic in a meeting. I have two questions to anyone who's already had to do the same: - What's the current best Python library for excel ma

[melbourne-pug] foo is None bar is 2 so is foo < bar

2014-02-06 Thread Mike Dewhirst
It is in Python 2.7 ... Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> foo = None >>> bar = 2 >>> foo < bar True >>> But it seems not in Python 3.3 ... Python 3.3.3 (v3.3.3:c3896275c

Re: [melbourne-pug] foo is None bar is 2 so is foo < bar

2014-02-07 Thread Mike Dewhirst
in Python 2 But it doesn't all have to be changed because ... >>> bar = 'x' >>> foo = None >>> if not foo: ...bar = 'y' ... >>> bar 'y' Mike The way to correctly compare to None is to use "is", ie: >>>

[melbourne-pug] pip will not downgrade to django 1.5.5 from 1.6.2 on ubuntu 12.04

2014-03-04 Thread Mike Dewhirst
Is there a special incantation for pip on Ubuntu??? Notice the "Requested django==1.5.5, but installing version 1.6.2" line below. I couldn't see anything obviously wrong with what I did. It works fine on Windows. (Aside: I was able to install using easy_install) mike@pq3:~$ sudo pip uninsta

Re: [melbourne-pug] pip will not downgrade to django 1.5.5 from 1.6.2 on ubuntu 12.04

2014-03-04 Thread Mike Dewhirst
5 Successfully installed Django Cleaning up... (piprot-io)sesh@brntn:~/$ pip freeze | grep Django Django==1.6.1 Cheers, Brenton On Wed, Mar 5, 2014 at 3:48 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: Is there a special incantation for pip on Ubuntu???

[melbourne-pug] OS license requirements

2014-08-10 Thread Mike Dewhirst
Apologies for cross-posting I'm getting near to open sourcing a Django project and have to choose an appropriate license. Can anyone help me choose? I have settled on the following requirements ... 1. Project source must be freely available for end users to view and download and modify and f

Re: [melbourne-pug] OS license requirements

2014-08-10 Thread Mike Dewhirst
On 11/08/2014 10:48 AM, Ben Finney wrote: Mike Dewhirst writes: I'm getting near to open sourcing a Django project and have to choose an appropriate license. Can anyone help me choose? Thank you for working to release the software under free terms. I have settled on the foll

Re: [melbourne-pug] OS license requirements

2014-08-10 Thread Mike Dewhirst
On 11/08/2014 2:45 PM, Oliver Nagy wrote: Hi Mike, I do not seem to be able to post to the list, so here is a private reply. I believe you want the Mozilla Public License. It is similar in spirit to the LGPL but allows your code to be freely mixed with other (proprietary) code. You can find th

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

2014-09-11 Thread Mike Dewhirst
On 12/09/2014 12:11 PM, David Crisp wrote: Hello, I've managed to muddle my way through python for the last while and have finally come up with something I dont know how to deal with. (I have included a simplified code group below that represents what m trying to do and see) I have a main modu

Re: [melbourne-pug] Code of Conduct for MPUG

2015-03-09 Thread Mike Dewhirst
Javier +1 for the PyCon model minimally edited so it suits MPUG. Today. As for dealing with "infractions" it might be best to first think of ways to de-pressurise the situation. Not sure how - other than checklists which *must* be followed by whoever has the responsibility at the time. But

Re: [melbourne-pug] Code of Conduct for MPUG

2015-03-17 Thread Mike Dewhirst
I've been watching this thread with interest and even joined it briefly a little while ago. And I am now noticing something. We are all software people and therefore we all recognise disaster when we see it. In hindsight most disasters come from inadequate specifications or misunderstanding us

[melbourne-pug] wheel has fallen off

2015-03-23 Thread Mike Dewhirst
I'm failing to install psycopg2 in a virtualenv and hoping someone can help. My efforts so far have blown it away across all virtualenvs. I have obviously installed an incompatible DLL file somewhere as follows ... File "C:\Users\mike\env\xxdx\lib\site-packages\django\db\backends\postgresql_

Re: [melbourne-pug] wheel has fallen off

2015-03-23 Thread Mike Dewhirst
On 23/03/2015 9:55 PM, Sam Lai wrote: That download link, http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266, works for me. Maybe just a temporary blip? Sam It is still saying server not found to me. There must be a DNS problem in my corner of the internet. I'll check it out.

Re: [melbourne-pug] wheel has fallen off

2015-03-23 Thread Mike Dewhirst
On 23 March 2015 at 18:38, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: I'm failing to install psycopg2 in a virtualenv and hoping someone can help. My efforts so far have blown it away across all virtualenvs. I have obviously installed an incompatible DLL file some

Re: [melbourne-pug] wheel has fallen off - but now repaired

2015-03-23 Thread Mike Dewhirst
On 23/03/2015 6:38 PM, Mike Dewhirst wrote: I'm failing to install psycopg2 in a virtualenv and hoping someone can help. My efforts so far have blown it away across all virtualenvs. I have obviously installed an incompatible DLL file somewhere as follows ... File "C:\Users\mike\en

Re: [melbourne-pug] [pyconau-orgs] Permanent links to Code of Conduct

2015-04-12 Thread Mike Dewhirst
Hear hear! On 12/04/2015 7:11 PM, Chris Maclachlan wrote: Hi all, I've been lurking on the list for about a year, and I've only been to one MPUG meetup so far - but I've read the entire discussion around this with some interest. The community seems to be open, friendly, welcoming, well-behaved

Re: [melbourne-pug] last post

2015-05-25 Thread Mike Dewhirst
On 26/05/2015 10:07 AM, Brian May wrote: On Tue, 26 May 2015 at 09:25 N6151H mailto:n61...@gmail.com>> wrote: * The failure mode of “don't do anything with Reply-To” is that  sometimes people send a message to an individual, that they *intended*  to go mor

Re: [melbourne-pug] last post

2015-05-25 Thread Mike Dewhirst
On 26/05/2015 10:07 AM, Brian May wrote: In another situation however if my management found out I was looking for more work that could place my current position in serious jeopardy. Or more hopefully, prompt management to take a good hard look at themselves! And if they aren't that sort of ma

Re: [melbourne-pug] reply-to header on mailing list

2015-06-02 Thread Mike Dewhirst
On 3/06/2015 3:01 PM, Tennessee Leeuwenburg wrote: Hey, Turns out it's a slow day and I'm enjoying learning a little about mailing list administration. Go back and look at Mark Hammond's contribution. Actually, look at the Reply-to setting on his message. Interesting! Mike Mostly my gi

Re: [melbourne-pug] Any interest in a tutorial night?

2015-06-03 Thread Mike Dewhirst
Tennessee Yes please. Whenever ... Mike On 4/06/2015 3:02 PM, Tennessee Leeuwenburg wrote: Hi all, I have a tutorial accepted at PyCon AU this year, "Applied Data Science". I was wondering what interest there might be in my delivering this at one of the MPUG nights, either before or after the

Re: [melbourne-pug] Any interest in a tutorial night?

2015-06-07 Thread Mike Dewhirst
Tennessee If it is next week I'll need to withdraw. Won't be around at all. Cheers Mike On 8/06/2015 1:09 PM, Tennessee Leeuwenburg wrote: Great idea, Ben. I think an off-night makes sense. I haven't liaised with Inspire9 about organising a meeting -- who is our current contact there? I'll

Re: [melbourne-pug] Any interest in a tutorial night?

2015-06-08 Thread Mike Dewhirst
and predict the outcomes according to the formula. If that makes sense. Would your tutorial help get me over the learning hump? I don't want to become a career statistician just tackle a few datasets. Thanks Mike On 8 June 2015 at 14:11, Mike Dewhirst mailto:mi...@dewhirst.com.au>

[melbourne-pug] Unicode encode problem

2015-09-22 Thread Mike Dewhirst
I'm using python 3.4 and having unicode difficulties which I suspect are due to Python 3.x being rigorous. How do I encode particular chars? I have a utility which swaps subscripted unicode chars for plain integer chars ... like this: if char == "2": char = "\u2082" elif char == "3":

Re: [melbourne-pug] Unicode encode problem

2015-09-22 Thread Mike Dewhirst
Thanks John - no success yet, see below ... On 23/09/2015 5:38 AM, John La Rooy wrote: On Tue, Sep 22, 2015 at 7:51 PM, Mike Dewhirst mailto:mi...@dewhirst.com.au>> wrote: File "C:\Users\mike\env\xxex3\lib\encodings\cp1252.py", line 19, in encode   return codec

Re: [melbourne-pug] Unicode encode problem

2015-09-22 Thread Mike Dewhirst
William That worked. Thank you very hard. Much appreciated. Beer on the way :) Cheers Mike On 23/09/2015 11:30 AM, William ML Leslie wrote: On 23 September 2015 at 08:41, Mike Dewhirst wrote: Thanks John - no success yet, see below ... logfile = "my_logfile".encode(encod

Re: [melbourne-pug] OS license requirements

2016-01-12 Thread Mike Dewhirst
Further to this, for the SharedSDS project licensing is now settled on GNU GPL v3 for the bulk of the software. API code will be GNU LGPL v3 Mike On Tuesday, August 12, 2014 at 10:43:58 AM UTC+10, Mike Dewhirst wrote: > > Cross posting again to thank everyone for responding ... > &g

Re: [melbourne-pug] Question re job ads from recruiters

2016-01-26 Thread Mike Dewhirst
On 27/01/2016 4:07 PM, Andrew Stuart wrote: I’m curious to know why the limitations on job postings from recruiters? I get plenty of good Python jobs but we can’t post them here which is a pity as there might be a good outcome for all. Why does it matter that we need to keep the company nam

Re: [melbourne-pug] Agile

2016-01-30 Thread Mike Dewhirst
+1 On 30/01/2016 8:14 PM, Kiran Busi wrote: Agile is really another way to get stuff done, organising a large body of work into regular deliverables. Why not implement a version of agile in your org you're currently working in now. Keep the agile principle but modify the process to suit you

Re: [melbourne-pug] Python and BPAY

2016-05-27 Thread Mike Dewhirst
On 27/05/2016 9:03 PM, Karim wrote: Hello, I must implement the BPAY payment in an existing application, anyone has some experience on BPAY? Is there anything on python? I tried to found some documentation but I found nothing about BPAY, the only thing I found is http://www.ezidebit.com/au/. Is t

Re: [melbourne-pug] Configuring Django 1.8 on Ubuntu 14.04 to read from an existing MSSQL DB

2016-06-05 Thread Mike Dewhirst
On 6/06/2016 2:45 PM, Javier Candeira wrote: Hi everyone, For a job I've been asked to read some data from an external MSSQL database, but I can't figure out how to configure a MSSQL driver on Django 1.8 site on Ubuntu 14.04. Maybe https://django-mssql.readthedocs.io/en/latest/ Then in 1.8 yo

Re: [melbourne-pug] Putting Python on ones resume

2016-07-06 Thread Mike Dewhirst
On 7/07/2016 1:33 PM, David Crisp wrote: I have been catching up with a lot of my Python blogs at the moment, and as I read through one of them a thought came to me. How much Python do you need to know (or how confident do you need to be with Python) before you put it on your Resume. And how d

Re: [melbourne-pug] Putting Python on ones resume

2016-07-07 Thread Mike Dewhirst
n training. Although now I read what I wrote it both locations it could still come accross that way. Either way, I have a better idea how to write my resume to sell the skills I have already. Regards, David On Thu, 7 Jul 2016, Mike Dewhirst wrote: On 7/07/2016 1:33 PM, David Crisp wrote: I

Re: [melbourne-pug] PyCon AU related events: Data Carpentry, MelbDjango, PyLadies, Running group

2016-08-07 Thread Mike Dewhirst
Hi Paul We should be able to arrange at least 15 celcius. And beer! Cheers Mike On 8/08/2016 5:20 AM, paul sorenson wrote: Sounds like a great program. A couple of my colleagues, Cooper Lees and Jason Fried will be in town so put on some warmish weather and check out stuff we use Python fo

Re: [melbourne-pug] Specify the database for a Django ModelForm instance

2016-08-08 Thread Mike Dewhirst
Ben Can I ask why you are using manage.py to import csv data instead of a migration? I ask because I'm just starting to think about an upcoming csv (xlsx actually) import task of my own. Thanks Mike On 9/08/2016 12:35 PM, Ben Finney wrote: The ModelForm validation functionality is bein

Re: [melbourne-pug] Django: Best practice for importing data

2016-08-08 Thread Mike Dewhirst
Thanks Ben That confirms it for me. I'll go with migrations. Mike On 9/08/2016 2:50 PM, Ben Finney wrote: Mike Dewhirst writes: Can I ask why you are using manage.py to import csv data instead of a migration? There are different scenarios when each makes sense. * When the data impo

[melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Mike Dewhirst
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 ... * https://docs.python.org/3/library/codecs.html#encodings-and-unicode *

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Mike Dewhirst
On 16/08/2016 11:27 AM, William ML Leslie wrote: 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

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Mike Dewhirst
On 16/08/2016 1:59 PM, William ML Leslie wrote: 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

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Mike Dewhirst
On 16/08/2016 2:57 PM, William ML Leslie wrote: 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 unl

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Mike Dewhirst
First of all, thank you all very much for this support. I was seriously contemplating a change of career to something easy like becoming an Olympic gymnast and giving up unicode forever ... but anyway ... From the top, some examples which might shed some light ... class CsvImport(object):

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
On 16/08/2016 4:08 PM, Ben Finney wrote: Unicode isn't a career. It's a calling. Must be easier without Windows ___ melbourne-pug mailing list melbourne-pug@python.org https://mail.python.org/mailman/listinfo/melbourne-pug

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
On 16/08/2016 5:17 PM, William ML Leslie wrote: , encoding='UTF-16' Output snippet shown below ... with open(csvfile, "r", encoding='utf-16') as csv: i = 0 self.rows = csv.readlines() for line in self.rows: #line = line.encode("utf-8").decode("cp1252", "replace")

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
On 16/08/2016 5:22 PM, William ML Leslie wrote: On 16 August 2016 at 15:51, Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrote: Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # this requires a bytes-like object not 'str' Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #cells = line.split(&qu

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
On 16/08/2016 11:37 AM, paul sorenson wrote: On 08/15/2016 06:01 PM, Mike Dewhirst wrote: map_csv.py [1] is the beginning of a module I want to develop into a generic data import facility. ... Might not help your encode problem but have you looked at csvkit? https://csvkit.readthedocs.io/en

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
On 16/08/2016 5:36 PM, William ML Leslie wrote: ​What does something like this do for you?​ Before responding here is something which I think spells curtains for my Windows laptop. http://stackoverflow.com/questions/878972/windows-cmd-encoding-change-causes-python-crash I had a look at

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
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 persistence William. Everything is utf-8 now. I found a Windows registry hack to convert the codepage to utf-8 or actually cp65001 as Microsof

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
Postscript ... Just went back into the csv file and it had switched *itself* back to utf-16. This does not compute. I need to lift my understanding somewhat. Mike On 16/08/2016 6:35 PM, Mike Dewhirst wrote: On 16/08/2016 5:36 PM, William ML Leslie wrote: ​What does something like

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
.file_path = old_file_path.replace('.','-utf8.') LOG.info('Converting to UTF8, new file: %s' %self.file_path) cmd =' '.join(['iconv','-f','UTF-8','-t','UTF-8','-c', old_

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
npyxl, xlsxwriter. Thanks Edward. I'll check them out. Interesting that emails from you and David didn't get here until late last night. Must be a blockage somewhere. Cheers Mike On Tue, 16 Aug 2016 at 11:44 AM, paul sorenson <mailto:new...@metrak.com>> wrote: On 08/15/2016

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

2017-03-07 Thread Mike Dewhirst
On 6/03/2017 10:44 PM, Jessica Rose via melbourne-pug wrote: yeah that pip command gives me trouble too! i really am a newbie at all this so sorry for seeming slow. when i have my command window open (idle) what do i type in to import fasta from biopython? I know nothing about fasta nor biop

Re: [melbourne-pug] pycon 2017

2017-05-02 Thread Mike Dewhirst
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 https://us.pycon.org/2017/>. Do you mean PyCon AU 2017 https://2017.pycon-au.org/>, which is in the city for which this is a forum? I

Re: [melbourne-pug] Django: Automatically creating default groups and assigning default permissions

2017-09-06 Thread Mike Dewhirst
On 6/09/2017 3:43 PM, Brian May wrote: Hello, Just wondering how to create groups automatically in Django and automatically assign permissions? Sounds easy. I have created a database migration to do just this. The problem is under Django the permissions are not created until after all the

[melbourne-pug] PyCharm and virtualenv

2017-11-21 Thread Mike Dewhirst
I seem to have a blind-spot with PyCharm. I'd like to try it out with an existing project but it incorrectly reports problems with missing bits and pieces of my project which are all there in the virtualenv. Are there any PyCharm fans out there who develop in Windows? How can I get PyCharm to

Re: [melbourne-pug] PyCharm and virtualenv

2017-11-23 Thread Mike Dewhirst
lick the 'edit' icon. >Check 'Associate this virtual environment with current project'. >Click 'OK'. >Click 'OK'. >Click 'Apply' > click 'OK'. > > >http://exponential.io/blog/2015/02/10/configure-pycharm-to-use-vir

Re: [melbourne-pug] PyCharm and virtualenv

2017-11-25 Thread Mike Dewhirst
On 25/11/2017 1:00 AM, Tim Richardson wrote: Might have some more questions soon. I couldn't find a pycharm users list. Do you know of one? I use PyCharm on Windows & Linux, often with virtualenvs although on Windows increasingly I use miniconda non-administrator installs which is c

Re: [melbourne-pug] PyCharm and virtualenv plus apology

2017-11-25 Thread Mike Dewhirst
On 24/11/2017 8:14 PM, Graeme Cross wrote: On Thu, 23 Nov 2017, at 11:00 PM, Mike Dewhirst wrote: Thanks Marcus Might have some more questions soon. I couldn't find a pycharm users list. Do you know of one? Hi Mike. JetBrains hosts a PyCharm discussion forum that you might find u

[melbourne-pug] Seeking partner(s)

2018-01-02 Thread Mike Dewhirst
Apologies for cross-posting Some of you are aware that I have been working for some time on a significant project. It is now deployed with a few users although there is much still to do. We now need one or more equal partners. The target market is the global chemistry industry (manufacturers

[melbourne-pug] Joblib question

2018-03-08 Thread Mike Dewhirst
https://media.readthedocs.org/pdf/joblib/latest/joblib.pdf I'm trying to make the following code run in parallel on separate CPU cores but haven't had any success. def make_links(self): for db in databases: link = create_useful_link(self, Link, db) if link: scrape_db(self, link, db) This is

Re: [melbourne-pug] Joblib question

2018-03-09 Thread Mike Dewhirst
fic number crunching and disk caching results to prevent re-computing. Scraping web pages is often a good candidate for asyncio based models. I think I'm being seduced by io in the name. I do judge books by their cover so I think I'll read asyncio Thanks Paul Mike cheers On 03/08

Re: [melbourne-pug] Joblib question

2018-03-09 Thread Mike Dewhirst
. I'm not (yet) using AJAX to update the screen when the data becomes available. Cheers Mike On 09/03/18 18:41, Mike Dewhirst wrote: https://media.readthedocs.org/pdf/joblib/latest/joblib.pdf I'm trying to make the following code run in parallel on separate CPU cores but haven

Re: [melbourne-pug] Joblib question

2018-03-09 Thread Mike Dewhirst
rld to respond. Might set up a long running test to try and smooth out the differences. M On 10/03/2018 5:04 PM, Mike Dewhirst wrote: On 9/03/2018 7:30 PM, Alejandro Dubrovsky wrote: delayed is a decorator, so it takes a function or a method. You are passing it a generator instead. def

Re: [melbourne-pug] Joblib question

2018-03-12 Thread Mike Dewhirst
On 10/03/2018 5:13 PM, Mike Dewhirst wrote: I've run the process a couple of times and there doesn't seem to be an appreciable difference. Both methods take enough time to boil the kettle. I know that isn't proper testing. It might be difficult to test timing accurately when we

[melbourne-pug] TNT video from last night's attempted tri-nitrated-toluene

2018-05-07 Thread Mike Dewhirst
For those who sat through my mispelled web scraping exercise last night, here is a three and a half minute video of the real thing ... spelled correctly this time! https://www.sharedtrain.com/course/5/instruction/85/ Thanks Mike ___ melbourne-pug m

[melbourne-pug] Nobel prize for former BDFL

2018-07-15 Thread Mike Dewhirst
I would like to see Guido nominated for a Nobel prize. Literature? Science? And perhaps canonicalisation* after he drops off the perch :) Yes Mike * Involves taxidermy and feathers ___ melbourne-pug mailing list melbourne-pug@python.org https:/

Re: [melbourne-pug] Nobel prize for former BDFL

2018-07-22 Thread Mike Dewhirst
On 21/07/2018 6:25 PM, Ben McGinnes wrote: On Mon, Jul 16, 2018 at 03:38:03PM +1000, Mike Dewhirst wrote: I would like to see Guido nominated for a Nobel prize. Literature? Science? How about peace? I mean if Arafat can get it and Obama managed to just on the basis of being elected POTUS

[melbourne-pug] AI and ML idea

2018-08-01 Thread Mike Dewhirst
Hi all! I attended a dangerous goods meeting yesterday and most of the time was spent discussing waste. Some contractors who can no longer ship waste to China now pay a few months rent in advance for a factory, stack it to the roof with waste and when no more can be squeezed in they disappea

Re: [melbourne-pug] AI and ML idea

2018-08-02 Thread Mike Dewhirst
we need to clean them up and prevent them from polluting. Robots can learn to clean up for us. That is what I think it has to do with Python :) Mike On 2 Aug 2018, at 4:42 pm, Mike Dewhirst wrote: Hi all! I attended a dangerous goods meeting yesterday and most of the time was spent

Re: [melbourne-pug] AI and ML idea

2018-08-05 Thread Mike Dewhirst
On 4/08/2018 3:50 PM, Andrew Stuart wrote: That is what I think it has to do with Python Sorry Mike I meant my comment had nothing to do with Python - did not mean to invalidate your idea which is a good one and relevant to Python. I apologise for mis-reading your reply. Ain't email wonderf

Re: [melbourne-pug] AI and ML idea

2018-08-05 Thread Mike Dewhirst
On 4/08/2018 7:13 PM, Dan Peade wrote: Hi Mike, Have you seen WALL-E (https://en.wikipedia.org/wiki/WALL-E) ? Worth watching (for adults and kids). No. But the synopsis is interesting. I've definitely had similar thoughts to what you're proposing particularly with regards to extricating p

Re: [melbourne-pug] AI and ML idea

2018-08-05 Thread Mike Dewhirst
y autonomous swarms of robots it will probably be part of the solution. I just did a bit of googling and see this idea is old hat really. It is being done already. Oh well ... Cheers Mike Tim On Thu, Aug 2, 2018 at 9:43 AM Mike Dewhirst <mailto:mi...@dewhirst.com.au>> wrot

[melbourne-pug] The Python Papers - call for papers

2018-11-20 Thread Mike Dewhirst
The Python Papers is not your average academic journal. 1. It was started in Melbourne, Australia in 2006 2. Its founders were Maurice Ling, Richard Jones and Tennessee Leeuwenberg 3. Its objective is to publish interesting papers in two streams - academic and industrial 4. Editors specifically

[melbourne-pug] Pythonpapers.org needs a PHP person

2019-08-20 Thread Mike Dewhirst
Anyone here have any PHP memories? Unfortunately, many years ago mpug started the Python Papers and based it on a PHP journal system http://pkp.sfu.ca/ojs/ We have what appears to be a minor problem where a particular URL results in a blank page and no error message. That URL is ... https:/

Re: [melbourne-pug] Pythonpapers.org needs a PHP person

2019-08-21 Thread Mike Dewhirst
Thanks everyone. It is fixed now. There were broken/truncated php cachefiles. I just added closing parens and finished with ?> pretty much as directed by the error log hints. Didn't have to learn php after all :) Cheers Mike On 21/08/2019 4:50 pm, Mike Dewhirst wrote: Anyone here

[melbourne-pug] Superscript chars are a pain

2020-03-07 Thread Mike Dewhirst
I'm now exclusively Python 3.6+ thank heavens but ... UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 6500: invalid start byte It just so happens that is the superscript 3 character.  It also happens that superscript 3 displays correctly and works properly on Windows 10

Re: [melbourne-pug] Superscript chars are a pain

2020-03-07 Thread Mike Dewhirst
next. Sorry to interrupt your long weekend. Cheers Mike On 8/03/2020 5:30 pm, Mike Dewhirst wrote: I'm now exclusively Python 3.6+ thank heavens but ... UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb3 in position 6500: invalid start byte It just so happens that is th

Re: [melbourne-pug] Superscript chars are a pain

2020-03-13 Thread Mike Dewhirst
at you are reading. These file could be ISO-8859-1 or another variant.CheersDaveOn Sun, 8 Mar 2020 at 17:45, Mike Dewhirst wrote: Oh well ... maybe it isn't Python's fault. I just looked at the data input file and found the ³ character in all places had be

[melbourne-pug] Windows registry PermissionError

2022-05-12 Thread Mike Dewhirst
I'm trying to copy a value from HKLM to HKCU for application rollout via bulk installation by an administrator but individual Windows user authentication. The installer can write to HKLM but the user needs to see the value in HKCU Any hints appreciated. Thanks Mike Getting this ... Traceba

[melbourne-pug] [Solved] Re: Windows registry PermissionError

2022-05-13 Thread Mike Dewhirst
7;Country')[0] print(f"\nCountry = {anz}") db = curegistry.query('Database')[0] print(f"\nDatabase version = {db}") devref = curegistry.query('v135')[0] print(f"\nDevice Reference = {devref}") orgid = curegistry.query(

[melbourne-pug] Looking for a Django firm

2022-09-12 Thread Mike Dewhirst
Hi all - I'm looking for a Django outfit with an interest in chemistry or customers in the chemical industry in Australia. Possible opportunity. Best to respond off list and there will be an NDA. Cheers Mike OpenPGP_signature Description: OpenPGP digital signature __