in 706312 20130928 175017 Joel Goldstick wrote:
>--047d7bf0f67adc8dbc04e7746532
>Content-Type: text/plain; charset=UTF-8
>
Please don't post HTML.
--
https://mail.python.org/mailman/listinfo/python-list
Στις 29/9/2013 2:04 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 4:45 AM, Mark Lawrence wrote:
Not tortured, simply murdered so we don't have to put up with his completely
unacceptable behaviour, which sadly is thriving owing to so many people
ignoring the "do not feed this moron" sig
Hello although my code is correct just today i saw this in the error_log
[Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] Traceback
(most recent call last):
[Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] File
"/home/nikos/public_html/cgi-bin/metrites.py", line 30, in
[S
On Sun, Sep 29, 2013 at 5:49 PM, Νίκος wrote:
> Hello although my code is correct just today i saw this in the error_log
You retain this ridiculous arrogance that your code is somehow
"correct", despite the problems you continually face. Do not these
problems prove that your code is NOT correct?
Στις 29/9/2013 10:49 πμ, ο/η Νίκος έγραψε:
Hello although my code is correct just today i saw this in the error_log
[Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] Traceback
(most recent call last):
[Sun Sep 29 07:44:43 2013] [error] [client 173.245.49.126] File
"/home/nikos/public_
Στις 29/9/2013 10:53 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 5:49 PM, Νίκος wrote:
Hello although my code is correct just today i saw this in the error_log
You retain this ridiculous arrogance that your code is somehow
"correct", despite the problems you continually face. Do no
On Sun, Sep 29, 2013 at 5:53 PM, Νίκος wrote:
> Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0:
> invalid start byte
Something's trying to decode a stream of bytes as UTF-8, and it's not
UTF-8. Work out what in your code is bytes and what is strings, and do
your own co
Στις 29/9/2013 11:00 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 5:53 PM, Νίκος wrote:
Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0:
invalid start byte
Something's trying to decode a stream of bytes as UTF-8, and it's not
UTF-8. Work out what in your c
On Sun, Sep 29, 2013 at 6:04 PM, Νίκος wrote:
> How come all these daysthe followinf line work as expected:
>
>
> host = socket.gethostbyaddr( ipval ) [0]
>
> and only just today just happened to output:
Maybe the ipval is different. Maybe something else is causing the
error. I wonder how, in Pyt
Στις 29/9/2013 11:07 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 6:04 PM, Νίκος wrote:
How come all these daysthe followinf line work as expected:
host = socket.gethostbyaddr( ipval ) [0]
and only just today just happened to output:
Maybe the ipval is different. Maybe something
On Sun, Sep 29, 2013 at 6:19 PM, Νίκος wrote:
> ipval is suposed to get just an ip address.
> ip addresses doesnt change its just number seperated by dots.
That's one way an IP address can be rendered. It's not the only one.
There's an entire category of IP addresses that's usually written with
c
Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 6:19 PM, Νίκος wrote:
ipval is suposed to get just an ip address.
ip addresses doesnt change its just number seperated by dots.
That's one way an IP address can be rendered. It's not the only one.
There's an entire ca
Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε:
Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 6:19 PM, Νίκος wrote:
ipval is suposed to get just an ip address.
ip addresses doesnt change its just number seperated by dots.
That's one way an IP address can be rendered.
Νίκος writes:
> And i don't mean like this:
>
> if not city:
> city ="blabla"
> if not host:
> host="blablabla"
>
>
> Can thes be witten without and if perhaps with the use of 'or'
> operator in 1-line within the except clause?
try:
...
except socket.gaierror as e:
# watch out,
On Sun, 29 Sep 2013 12:35:17 +0300, Jussi Piitulainen wrote:
> try:
> ...
> except socket.gaierror as e:
> # watch out, a composition of bad advice (on demand) city, host = (
> ('city' in locals() or "blabla"),
> ('host' in locals() or "blablabla") )
Bad advice, and buggy a
On Sun, 29 Sep 2013 11:37:14 +0300, Νίκος wrote:
> Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε:
>> Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε:
>>> On Sun, Sep 29, 2013 at 6:19 PM, Νίκος wrote:
ipval is suposed to get just an ip address. ip addresses doesnt
change its just number s
On 29/9/2013 03:35, Νίκος wrote:
>
> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>
> try:
> gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
> city = gi.time_zone_by_addr( ipval )
> host = socket.gethostbyaddr( ipv
Στις 29/9/2013 12:50 μμ, ο/η Dave Angel έγραψε:
ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
try:
gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
city = gi.time_zone_by_addr( ipval )
host = socket.gethostbyaddr
Στις 29/9/2013 12:45 μμ, ο/η Steven D'Aprano έγραψε:
On Sun, 29 Sep 2013 11:37:14 +0300, Νίκος wrote:
Στις 29/9/2013 11:30 πμ, ο/η Νίκος έγραψε:
Στις 29/9/2013 11:23 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 6:19 PM, Νίκος wrote:
ipval is suposed to get just an ip address. ip a
On 9/29/13 4:04 AM, Νίκος wrote:
Στις 29/9/2013 11:00 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 5:53 PM, Νίκος wrote:
Re: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in
position 0:
invalid start byte
Something's trying to decode a stream of bytes as UTF-8, and it's
On 29/9/2013 06:17, Νίκος wrote:
> Στις 29/9/2013 12:50 μμ, ο/η Dave Angel έγραψε:
>> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
>> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>> try:
>> gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
>> city = gi.time_zone_by_addr(
Op 29-09-13 09:35, Νίκος schreef:
Στις 29/9/2013 2:04 πμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 4:45 AM, Mark Lawrence
wrote:
Not tortured, simply murdered so we don't have to put up with his
completely
unacceptable behaviour, which sadly is thriving owing to so many people
ignori
Steven D'Aprano writes:
> On Sun, 29 Sep 2013 12:35:17 +0300, Jussi Piitulainen wrote:
>
> > try:
> > ...
> > except socket.gaierror as e:
> > # watch out, a composition of bad advice (on demand) city, host = (
> > ('city' in locals() or "blabla"),
> > ('host' in locals() o
Στις 29/9/2013 12:50 μμ, ο/η Dave Angel έγραψε:
ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
try:
gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
city = gi.time_zone_by_addr( ipval )
host = socket.gethostbyaddr
On 29/9/2013 06:24, Νίκος wrote:
>
> except Exception as e: ===> except socket.gaierror as e:
> which cannot handle unicore realted errors and the exact same error
> appeared with my ip address involved at the error log.
>
> so, the question that arises again and reamins is how come 'host'
Στις 29/9/2013 2:04 μμ, ο/η Jussi Piitulainen έγραψε:
Steven D'Aprano writes:
On Sun, 29 Sep 2013 12:35:17 +0300, Jussi Piitulainen wrote:
try:
...
except socket.gaierror as e:
# watch out, a composition of bad advice (on demand) city, host = (
('city' in locals() or "blabla"),
On 29/9/2013 07:14, Νίκος wrote:
> Dave's way though seems better.
> Assign the vars default string and if they get re-assinged correctly
> that would be ideal, otherwise we have already given them the defaults.
>
> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_A
Στις 29/9/2013 2:11 μμ, ο/η Dave Angel έγραψε:
On 29/9/2013 06:24, Νίκος wrote:
except Exception as e: ===> except socket.gaierror as e:
which cannot handle unicore realted errors and the exact same error
appeared with my ip address involved at the error log.
so, the question that aris
Στις 29/9/2013 2:27 μμ, ο/η Dave Angel έγραψε:
On 29/9/2013 07:14, Νίκος wrote:
Dave's way though seems better.
Assign the vars default string and if they get re-assinged correctly
that would be ideal, otherwise we have already given them the defaults.
ipval = ( os.environ.get('HTTP_CF_CONNEC
On 29/9/2013 07:25, Νίκος wrote:
>
> Thank you for being willing to look this further.
Willing, but probably not able. I think I know a lot about the
language, and less about the libraries. I know very little about the
administration side of internet use. The reference to /etc/hosts is
only a
Στις 29/9/2013 2:46 μμ, ο/η Dave Angel έγραψε:
On 29/9/2013 07:25, Νίκος wrote:
Thank you for being willing to look this further.
Willing, but probably not able. I think I know a lot about the
language, and less about the libraries. I know very little about the
administration side of inte
note pour les francophones il existe le newsgroup fr.comp.lang.python
ainsi que la liste Python de l'AFUL https://listes.aful.org/wws/info/python
et l'AFPY...
jonathan.corriv...@gmail.com wrote:
> Je sais qu'il y a plein d'information à lire un peu partout, mais j'ai
> vraiment du mal à voir pour
Νίκος writes:
> Σ�ις 29/9/2013 2:04 μμ, ο/η Jussi Piitulainen
> έγ�α�ε:
>
> > Let's see. The task is to assign a default value to city and host,
> > if they haven't a value yet; on one line (which I take to mean one
> > statement); in an "except" block where we may not know which
> > assignment fai
On Sun, Sep 29, 2013 at 1:51 PM, Νίκος wrote:
> Στις 29/9/2013 2:46 μμ, ο/η Dave Angel έγραψε:
>>
>> On 29/9/2013 07:25, Νίκος wrote:
>>
>>
>>>
>>> Thank you for being willing to look this further.
>>
>>
>> Willing, but probably not able. I think I know a lot about the
>> language, and less about
On Sun, Sep 29, 2013 at 8:57 PM, Dave Angel wrote:
> Try help(globals()) at the interpreter prompt.
>
> Help on built-in function globals in module builtins:
>
> globals(...)
> globals() -> dictionary
>
> Return the dictionary containing the current scope's global variables.
Insignificant
On Sun, Sep 29, 2013 at 10:38 PM, Chris “Kwpolska” Warrick
wrote:
> I can point you to “find a sysadmin that will work for you and fix
> your problems for money”. Where can you find one? That’s not a
> question for me. I suggest looking around Greek websites, as someone
> speaking the same lang
On Sun, 29 Sep 2013 06:53:27 -0400, Ned Batchelder wrote:
> This is the nature of Unicode pain in Python 2 (Python 3 has a different
> kind!). This may help you understand what's going on:
> http://nedbatchelder.com/text/unipain.html
That's a fantastic explanation, and I have pointed Nikos at th
On Sun, Sep 29, 2013 at 9:25 PM, Νίκος wrote:
> superhost.gr. 14400 IN MX 0 superhost.gr.
>
> mail14400 IN CNAME superhost.gr.
>
> As for the mail iam afrid it outputs this:
> Code:
> Warning MX CNAME Check WARNING: CNAME was returned for the following MX
> record
Νίκος writes:
> IF it can also be written in one-line
def f(x,n,w):return(lambda
y=f(x[::2],n/2,w[::2]),z=f(x[1::2],n/2,w[::2]):reduce(lambda
x,y:x+y,zip(*[(y[k]+w[k]*z[k],y[k]-w[k]*z[k]) for k in range(n/2)])))()if n>1
else x
--
anch'io la penso come me, ma -- SteO153,
On Sun, Sep 29, 2013 at 11:28 AM, giacomo boffi wrote:
> Νίκος writes:
>
> > IF it can also be written in one-line
>
> def f(x,n,w):return(lambda
> y=f(x[::2],n/2,w[::2]),z=f(x[1::2],n/2,w[::2]):reduce(lambda
> x,y:x+y,zip(*[(y[k]+w[k]*z[k],y[k]-w[k]*z[k]) for k in range(n/2)])))()if
> n>1 else
Στις 29/9/2013 5:19 μμ, ο/η Chris Angelico έγραψε:
On Sun, Sep 29, 2013 at 9:25 PM, Νίκος wrote:
superhost.gr. 14400 IN MX 0 superhost.gr.
mail14400 IN CNAME superhost.gr.
As for the mail iam afrid it outputs this:
Code:
Warning MX CNAME Check WARNING: CNAME
asked and answered. Move on
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Sep 30, 2013 at 2:07 AM, Joel Goldstick
wrote:
> Here's my question: I wonder if Nikos has ever been employed to write
> software. If so, I wonder how long he lasted before he was let go.
Unfortunately that proves nothing. My boss used to have another
employee besides me - he lasted for
Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε:
asked and answered. Move on
shut up. you are nothign but annoyance here.
--
https://mail.python.org/mailman/listinfo/python-list
Antoon Pardon writes:
> Why? What is so important about this particular way, that you are
> willing to spend/waste so much time on it? You act like someone
> who want to get from Brussels to London and when asked how to
> do that gets advise on how to take the boat or plane at which
> point you r
On 9/29/2013 6:53 AM, Ned Batchelder wrote:
This is the nature of Unicode pain in Python 2 (Python 3 has a different
kind!). This may help you understand what's going on:
http://nedbatchelder.com/text/unipain.html
This is really excellent and I bookmarked it.
There is one minor error: "the c
On 29/09/2013 18:24, Piet van Oostrum wrote:
Antoon Pardon writes:
Why? What is so important about this particular way, that you are
willing to spend/waste so much time on it? You act like someone
who want to get from Brussels to London and when asked how to
do that gets advise on how to take
ftputil 3.0a1 is now available from
http://ftputil.sschwarzer.net/download .
Changes since version 2.8
-
Note: This version of ftputil is _not_ backward-compatible
with earlier versions.See the links below for information
on adapting existing client code.
- This version a
On Sun, Sep 29, 2013 at 1:44 PM, MRAB wrote:
> On 29/09/2013 18:24, Piet van Oostrum wrote:
>
>> Antoon Pardon writes:
>>
>> Why? What is so important about this particular way, that you are
>>> willing to spend/waste so much time on it? You act like someone
>>> who want to get from Brussels to
On Sunday 29 September 2013 13:03:17 Chris Angelico did opine:
> On Mon, Sep 30, 2013 at 2:07 AM, Joel Goldstick
>
> wrote:
> > Here's my question: I wonder if Nikos has ever been employed to write
> > software. If so, I wonder how long he lasted before he was let go.
>
> Unfortunately that p
On 9/29/13 1:30 PM, Terry Reedy wrote:
On 9/29/2013 6:53 AM, Ned Batchelder wrote:
This is the nature of Unicode pain in Python 2 (Python 3 has a different
kind!). This may help you understand what's going on:
http://nedbatchelder.com/text/unipain.html
This is really excellent and I bookmark
On Sun, 29 Sep 2013 13:17:36 +0300, Νίκος wrote:
> Στις 29/9/2013 12:50 μμ, ο/η Dave Angel έγραψε:
>> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
>> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>> try:
>> gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
>> city = gi.tim
On Sun, 29 Sep 2013 14:34:02 +0300, Νίκος wrote:
> Στις 29/9/2013 2:27 μμ, ο/η Dave Angel έγραψε:
>> On 29/9/2013 07:14, Νίκος wrote:
>>
>>
>>> Dave's way though seems better.
>>> Assign the vars default string and if they get re-assinged correctly
>>> that would be ideal, otherwise we have alread
I was actually able to fix the code and run it, now i need to run tests but
idk what tests to write or how to even write it.
[code]
import random
intro = 'I have chosen a number from 1-10'
request = 'Guess a number: '
responseHigh = "That's too high."
responseLow = "That's too low."
responseCo
Joel Goldstick writes:
> On Sun, Sep 29, 2013 at 11:28 AM, giacomo boffi wrote:
>
> Νίκος writes:
>
> > IF it can also be written in one-line
>
> def f(x,n,w):return(lambda y=f(x[::2],n/2,w[::2]),z=f(x[1::2],n/2,w
> [::2]):reduce(lambda x,y:x+y,zip(*[(y[k]+w[k]*z[k],y[k]-w[k]*z[
On 9/29/2013 5:28 PM, melw...@gmail.com wrote:
I was actually able to fix the code and run it, now i need to run tests but
idk what tests to write or how to even write it.
Two of us already gave you suggestions. I gave you a detailed re-write.
[snip hard to test code]
--
Terry Jan Reedy
--
giacomo boffi writes:
> it.comp.python
oops, it.comp.LANG.python
--
I do desire we may be better strangers.
--
https://mail.python.org/mailman/listinfo/python-list
I need to convert a proprietary MS Access based printing solution into
something I can
maintain. Seems there is plenty available for generating barcodes in Python, so
for the
persons who have been down this road I was hoping to get a pointer or two.
I need to create some type of output, preferab
On 09/29/2013 02:54 PM, Joseph L. Casale wrote:
I need to convert a proprietary MS Access based printing solution into
something I can
maintain. Seems there is plenty available for generating barcodes in Python, so
for the
persons who have been down this road I was hoping to get a pointer or tw
On behalf of the Python development team, I'm pleased to announce the
third alpha release of Python 3.4.
This is a preview release, and its use is not recommended for
production settings.
Python 3.4 includes a range of improvements of the 3.x series, including
hundreds of small improvements and
"Joseph L. Casale" writes:
> I need to create some type of output, preferably pdf, which is an
> array of 2 across by 8 long of one custom barcode label with some
> other text components oriented around the barcode.
The Reportlab library is a powerful PDF-creation library for Python
https://pypi
Hi Terry & Dave,
Thanks for the suggestions. I am running Python 2.7 and when I tried the code
above it said def main(target) <- invalid syntax. I was told to use pexpect by
my professor which is why I started to use that for the tests. As for the test
suggestions, I will try to come up wit tho
On Sun, 29 Sep 2013 18:46:30 -0700, melwin9 wrote:
> Hi Terry & Dave,
>
> Thanks for the suggestions. I am running Python 2.7 and when I tried the
> code above it said def main(target) <- invalid syntax.
Did you fix the invalid syntax? Until you fix it, you're blocked.
As a programmer, it is
On 09/29/2013 09:19 AM, Νίκος wrote:
Στις 29/9/2013 7:14 μμ, ο/η Joel Goldstick έγραψε:
asked and answered. Move on
shut up. you are nothign but annoyance here.
Thanks for the laugh.
Absolutely the most hilarious thing you've ever posted!!! :-)
(Ever hear about the pot and the kettle?)
Ben Finney writes:
> "Joseph L. Casale" writes:
>
> > I need to create some type of output, preferably pdf, which is an
> > array of 2 across by 8 long of one custom barcode label with some
> > other text components oriented around the barcode.
>
> The Reportlab library is a powerful PDF-creatio
On Thursday, September 26, 2013 4:54:22 AM UTC+5:30, Arturo B wrote:
> So I know what recursion is, but I don't know how is
>
>flatten(i)
>
> evaluated, what value does it returns?
There is a folklore in CS that recursion is hard
[To iterate is human, to recurse divine
Hi Dave,
Yeah I found the silly mistake lol thanks for that. making progress.
Guess a number: 5
That's too high.
Guess a number: 4
That's too high.
Guess a number: 3
Traceback (most recent call last):
File "guess.py", line 34, in
main(random.randint(1, 10))
File "guess.py", line 29, in
By default, Python 3.4 will ship with tab completion turned on. When you
hit the tab key, Python will try to complete the current function,
method, variable or other name, if necessary displaying the alternatives
is there are more than one:
py> d = {}
py> d.pop
d.pop( d.popitem(
This
On 9/30/2013 12:19 AM, melw...@gmail.com wrote:
Hi Dave,
Yeah I found the silly mistake lol thanks for that. making progress.
Guess a number: 5
That's too high.
Guess a number: 4
That's too high.
Guess a number: 3
Traceback (most recent call last):
File "guess.py", line 34, in
main(ra
69 matches
Mail list logo