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

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 mi...@dewhirst.com.au 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

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 br...@microcomaustralia.com.au writes: On 5 September 2013 14:48, Ben Finney ben+pyt...@benfinney.id.au 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

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] 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 a

[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

Re: [melbourne-pug] OS license requirements

2014-08-11 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

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

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] wheel has fallen off

2015-03-23 Thread Mike Dewhirst
March 2015 at 18:38, Mike Dewhirst mi...@dewhirst.com.au 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

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\env\xxdx\lib

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,

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

2015-06-08 Thread Mike Dewhirst
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 mi...@dewhirst.com.au mailto:mi...@dewhirst.com.au

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] 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 n61...@gmail.com 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*

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

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 <mi...@dewhirst.com.au> wrote: Thanks John - no success yet, see below ... logfile = "my_logf

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 <mi...@dewhirst.com.au <mailto:mi...@dewhirst.com.au>> wrote: File "C:\Users\mike\env\xxex3\lib\encodings\cp1252.py", line 19,

[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] 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] 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

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

2016-07-07 Thread Mike Dewhirst
. 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 have been

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

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

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:22 PM, William ML Leslie wrote: On 16 August 2016 at 15:51, Mike Dewhirst <mi...@dewhirst.com.au <mailto:mi...@dewhirst.com.au>> wrote: Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â # this requires a bytes-like object not 'str' Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #cells

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-15 Thread Mike Dewhirst
On 16/08/2016 1:59 PM, William ML Leslie wrote: On 16 August 2016 at 13:57, Mike Dewhirst <mi...@dewhirst.com.au> 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

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

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

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
5/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/0.9.1/

Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Mike Dewhirst
= 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_file_path,'>',self.file_path]) LOG.info(cmd) system(cmd) On Tue, 16 Aug 2016 at 11:04 Mike Dewhi

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

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 . Do you mean PyCon AU 2017 , which is in the city

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

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

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 useful

[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

[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

[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

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

Re: [melbourne-pug] AI and ML idea

2018-08-05 Thread Mike Dewhirst
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>> wrote: On 2/08/201

[melbourne-pug] AI and ML idea

2018-08-02 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

[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

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 are waiting

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't had any

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/2018 11:4

[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

[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

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

2019-08-21 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 ...

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

2020-03-13 Thread Mike Dewhirst
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 been turned into a box

[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
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 the superscript 3 character.  It also

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

2022-05-13 Thread Mike Dewhirst
atabase')[0] print(f"\nDatabase version = {db}") devref = curegistry.query('v135')[0] print(f"\nDevice Reference = {devref}") orgid = curegistry.query('v136')[0] print(f"\nOrganisation ID = {orgid}") On 13/05/2022 9:24 am, Mike Dewhirst wro

[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 ...

[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