Re: [melbourne-pug] Unicode for windows dummies

2016-08-16 Thread Anthony Briggs
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'd be surprised >> if it didn't work. >> >> OTOH, try utf-8 characters in

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Anthony Briggs
On 16 August 2016 at 14:57, 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 > > s

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Anthony Briggs
On 16 August 2016 at 14:30, William ML Leslie wrote: > 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

Re: [melbourne-pug] Unicode for windows dummies

2016-08-15 Thread Anthony Briggs
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 can replicate it with this code: print("Mÿ hôvèrçràft î

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

2016-08-08 Thread Anthony Briggs
u want, as opposed to writing a handful of lines for a custom router (that *will* let you specify a database at runtime). Not sure I can put it more plainly than that ¯\_(ツ)_/¯ On 9 August 2016 at 15:07, Ben Finney wrote: > Anthony Briggs writes: > > > On 9 August 2016 at 14:2

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

2016-08-08 Thread Anthony Briggs
On 9 August 2016 at 14:29, Ben Finney wrote: > Anthony Briggs writes: > > > Or you can do it the Right Way(tm) and write a custom database router > > I appreciate the advice, but no, a database router is *not* right for > this. Specifying the database routing policy in a

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

2016-08-08 Thread Anthony Briggs
. Look for `PrimaryReplicaRouter` in https://docs.djangoproject.com/en/1.10/topics/db/multi- db/#automatic-database-routing, I'm pretty sure you can make it do what you need to (eg. with a method/attribute to specify the database name) Anthony On 9 August 2016 at 12:35, Ben Finney wrote: &

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

2016-08-08 Thread Anthony Briggs
er/django/forms/models.py#L433) and make it do what you need, but that overrides a bunch of Django's guarantees (mainly that the model table will be there to save to, or that it'll be in sync with what you currently have in memory) Anthony On 9 August 2016 at 11:32, Ben Finney wrote

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

2016-08-08 Thread Anthony Briggs
Hi Ben, The database is normally routed via the model, rather than the form, so a ModelForm would generally just pick whatever the model uses. I would imagine that trying to hack on the form directly would be a Bad Plan(tm). https://docs.djangoproject.com/en/1.10/topics/db/multi-db/#automatic-dat

Re: [melbourne-pug] Any value in recruiters job posts?

2016-07-05 Thread Anthony Briggs
Hi Sebastian, My personal experience is that recruiters don't provide much, if any, value. The only job that I've sourced through a recruiter was a terrible, *terrible *PHP job that I quit after a week. I did have several interviews at around the same time, but a) you need to be head and shoulder

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

2016-06-06 Thread Anthony Briggs
Javier, What do the logs/error messages say? ;) If, for some reason, you can't get access to the logs, perhaps switching DEBUG on and checking what queries are being sent might shed some light. (ie. one or more of the things in http://stackoverflow.com/questions/971667/django-orm-how-to-view-or-l

Re: [melbourne-pug] Agile

2016-02-06 Thread Anthony Briggs
Hi Brian, The trick there is to put your "cool technical things" in the right business or user context, for example: - cut system response times - make whatever system you're working on easier to understand - give them more control - lower cost - better uptime - reduced risk

Re: [melbourne-pug] last post

2015-05-25 Thread Anthony Briggs
My 2c: It's a mailing list; it's a public space. In that context, public replies make perfect sense, and as the most common (90+%?) case, should be the easiest option. Replying to someone privately is more like pulling them aside at a party - it shouldn't be default. (Having to do slightly more w

Re: [melbourne-pug] TransportCamp, Melbourne 2014

2014-10-19 Thread Anthony Briggs
Two thoughts: See what evil / potentially evil data sets you can get your hands on: http://research.neustar.biz/2014/09/15/riding-with-the-stars-passenger-privacy-in-the-nyc-taxicab-dataset/ Alternatively, play the "transportation is bullshit, kill cars and buses, walk/train/bike everywhere" angl

Re: [melbourne-pug] Rounded-value ticks on X axis

2014-08-30 Thread Anthony Briggs
after (convert to a date rather than a time). Anthony <http://stackoverflow.com/questions/3677368/matplotlib-format-axis-offset-values-to-whole-numbers-or-specific-number> On 31 August 2014 13:57, Anthony Briggs wrote: > Hi Kevin, > > Looks like it's just pulling tho

Re: [melbourne-pug] Rounded-value ticks on X axis

2014-08-30 Thread Anthony Briggs
Hi Kevin, Looks like it's just pulling those keys from the data, so something to convert those explicitly when you read it in would probably be the easiest way. There might be something in the read_csv function to convert data from a particular column, or you could try a dictionary comprehension p

[melbourne-pug] List courtesy

2014-08-11 Thread Anthony Briggs
Hi All, Just as a courtesy to us list admins, would you mind posting to the list with the address that you used to subscribe? I had a bunch waiting for me this morning - it'll mean that your email will be seen sooner, and save us some time. Thanks, Anthony __

Re: [melbourne-pug] A brief note on list administration

2014-03-11 Thread Anthony Briggs
On 11 March 2014 17:51, Brian May wrote: > > On 11 Mar 2014 10:45, "Tennessee Leeuwenburg" > wrote: > > In particular, I can't understand why those people don't see a bounce > notification and immediately either register their additional address or > re-send the email from a registered address.

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

2014-02-20 Thread Anthony Briggs
Yep, just realised that - if it's stored as a list of key, value pairs. On 21 February 2014 09:45, William ML Leslie wrote: > > On 21/02/2014 9:40 am, "Anthony Briggs" wrote: > > > > You can also use the dict() function or dictionary comprehensions to >

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

2014-02-20 Thread Anthony Briggs
Sounds like you don't need the checking, since the items are all identical, *but* if the values differ for a particular key, then the behaviour will be different (earliest with checking, latest without). It you have itemOne: 10, then itemOne: 20, the checked version will have 10 for itemOne You ca

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

2014-01-29 Thread Anthony Briggs
indstat.org/(which uses MoinMoin). Note that while this looks > like it makes a lot of > use of MoinMoin, infact almost all the work is done through MoinMoin > "macros", written in Python. I want to re-use as much of the wiki as > possible. > > > > On Thu, Jan 30, 2014 a

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

2014-01-29 Thread Anthony Briggs
Trac is pretty painful to set up, from memory. It might help if you gave us some more detail about what you're trying to do, rather than a list of features. eg. The iPython notebook will let you execute arbitrary code, but I don't know whether it can introspect and pull bits of other pages in the

Re: [melbourne-pug] January Meeting

2014-01-12 Thread Anthony Briggs
Hmm, for some reason I thought that this was *this* Monday, ie. today. No idea why, advancing old age maybe? :\ In any case, I will/can be in the city this evening, of anyone wants to get together for impromptu drinks or something. Cheers, Anthony On 6 Jan 2014 17:09, "Richard Jones" wrote: >

Re: [melbourne-pug] PyCon Australia 2013 Early Bird registration and Accommodation deals now available!

2013-04-02 Thread Anthony Briggs
Hi Chris, Have you considered something like a wild-card SSL cert? Then you could potentially have the payment part of pycon secured under a url like pycon.linux.org.au. That might also be useful for other organisations that you support. Cheers, Anthony On 3 April 2013 10:11, Chris Neugebauer

Re: [melbourne-pug] [job] Senior Python/Django Developer | Brand New Project

2013-02-07 Thread Anthony Briggs
None of which is relevant to being a programmer... On 8 February 2013 11:54, Tobias Sargeant wrote: > > On 08/02/2013, at 11:28 AM, Rod Favola wrote: > > > 1. Johnny’s mother had three children. The first child was named April. > The second child was named May. What was the third child’s name

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

2012-09-06 Thread Anthony Briggs
On 7 September 2012 08:04, David Crisp wrote: > > > NO NO NO NO NO!!! If you send an email with an announcement in it you > should have ALL the details of the announcement in the email, who, what, > where, when, why, how etc.. > > If there are details missing (such as location or date or time)

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

2012-09-05 Thread Anthony Briggs
On 6 September 2012 09:16, Tennessee Leeuwenburg wrote: > > > On Thu, Sep 6, 2012 at 12:49 AM, Ben Finney wrote: > >> William ML Leslie writes: >> >> All the information about the announcement should be in the body, of >> course. Always write the body of your message as a self-contained text, >>