Skip to main content

Manngo

Australia

http://mark.manngo.net/

Jul
17
comment Automatically import modules when entering the python or ipython interpreter
@wjandrea Actually, there’s a subtle difference. pprint.pp() defaults to sort_dicts=False, which suits my usage better. pprint.pprint() defaults to sort_dicts=True.
Jul
17
revised Automatically import modules when entering the python or ipython interpreter
added 2 characters in body
Jul
17
comment Chuffed - happy or unhappy?
Looking up the word in various dictionaries, and coming across this post, I can now understand why I was confused when I first heard someone was pretty “chuffed”. When I was younger we used the expression “chuffed off” to mean displeased, though it was pronounced like “choofed off”.
Jul
17
answered filename and line number of Python script
Jul
15
awarded Popular Question
Jul
12
revised How to use variables in SQL statement in Python?
added 92 characters in body
Jul
12
comment Parameterized queries with psycopg2 / Python DB-API and PostgreSQL
@Arsen The Python string format() method simply creates a new string from the original and unfiltered data. That’s where SQL injection comes from: untrusted data is mixed in with SQL code.
Jul
12
answered How to use variables in SQL statement in Python?
Jul
11
awarded Famous Question
Jul
11
comment isPrime Function for Python Language
“ … even though it is … ” isn’t true. You’ll find a discussion on whether 1 is a prime on Wikipedia, and it hasn’t always been excluded from primes. However, the short answer is that every integer can be expressed as a unique product of primes; if you include 1 as a prime, then you can multiply it as many times as you like, and the product is no longer unique.
Jul
11
comment Unicode superscript numbers 1 to 3 vs. 4 and above
It does appear to be dependent on the font.
Jul
10
awarded Yearling
Jul
10
awarded Yearling
Jul
8
awarded Popular Question
Jul
8
comment Getting a random value from a JavaScript array
@ggorlen Thanks for the mantra. It’s a good thing that this solution doesn’t do that. It adds a method to an existing object without reaching out to the prototype.
Jul
7
comment Set SQL SERVER Express 2017 to allow remote connections
Thank you, it was the firewall that tripped me up.
Jul
5
revised Is there a way of clearing the window and rebuilding it?
added 56 characters in body
Jul
4
revised Is there a way of clearing the window and rebuilding it?
added 201 characters in body
Jul
4
accepted Is there a way of clearing the window and rebuilding it?
Jul
1
revised How do I adjust a tab control's width to fit the contained tabs?
deleted 7 characters in body
1 2 3 4 5