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
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
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
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 î
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
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
. 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:
&
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
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
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
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
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
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
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
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
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
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
__
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.
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
>
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
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
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
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:
>
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
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
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)
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,
>>
27 matches
Mail list logo