Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Νικόλαος Κούρας
Can you please explain me what the [0] in host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] does at the end? Why not just host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] ) instead? what is the need of [0] ? -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Dominic Binks
On 1/9/2012 2:19 PM, Νικόλαος Κούρας wrote: Can you please explain me what the [0] in host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] does at the end? Why not just host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] ) instead? what is the need of [0] ? The address database can

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Νικόλαος Κούρας
On 10 Ιαν, 00:35, Dominic Binks dbi...@codeaurora.org wrote: On 1/9/2012 2:19 PM, Νικόλαος Κούρας wrote: Can you please explain me what the [0] in host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] does at the end? Why not just host = socket.gethostbyaddr(

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Chris Angelico
On Tue, Jan 10, 2012 at 9:35 AM, Dominic Binks dbi...@codeaurora.org wrote: The address database can have multiple names for the same IP address so gethostbyaddr returns a list - [0] being the first item in the list (and usually considered the canonical name) Point to note: The inverse

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Nick Dokos
Chris Angelico ros...@gmail.com wrote: On Tue, Jan 10, 2012 at 9:35 AM, Dominic Binks dbi...@codeaurora.org wrote: The address database can have multiple names for the same IP address so gethostbyaddr returns a list - [0] being the first item in the list (and usually considered the

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Chris Angelico
On Tue, Jan 10, 2012 at 10:32 AM, Nick Dokos nicholas.do...@hp.com wrote: Chris Angelico ros...@gmail.com wrote: Point to note: The inverse operation, getting IP addresses from names, so socket.gethostbyaddr(os.environ['REMOTE_ADDR'])[0] is the 0th element of the tuple, i.e. the *name* that

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Thomas Rachel
Am 09.01.2012 23:35 schrieb Dominic Binks: On 1/9/2012 2:19 PM, Νικόλαος Κούρας wrote: Can you please explain me what the [0] in host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] does at the end? Why not just host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] ) instead? what is

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-09 Thread Chris Angelico
On Tue, Jan 10, 2012 at 5:42 PM, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa...@spamschutz.glglgl.de wrote: BTW: This behaviour might be useful with gethostbyaddr() as well - if the first one returned has gone away, you have the chance to reach the 2nd one... In its directest

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας nikos.kou...@gmail.com wrote: On 23 Äåê, 12:41, becky_lewis bex.le...@gmail.com wrote: Is there any possibility that you can tell us what the script actually is or provide a code listing (use pastebin if it's big)? The script is about retrieving and

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Heiko Wundram
Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: On 23 Δεκ 2011, 19:14, Νικόλαος Κούραςnikos.kou...@gmail.com wrote: I dont know why this line host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes and some other times works ok retrieving the hostnames correctly. Please i

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: On 23 Δεκ 2011, 19:14, Νικόλαος Κούραςnikos.kou...@gmail.com  wrote: I dont know why this line host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes and some

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article 6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: On 23

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Thomas Rachel
Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can tell me what might be wrong. What is wrong on this site? Mainly the unwanted

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:49, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:47, Roy Smith r...@panix.com wrote: In article 6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes. Background music on web sites is evil.

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes.  

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes.  

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article 24123dfe-b2fc-4f4c-8dfe-23bfef19b...@m10g2000vbc.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com, †

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-23 Thread becky_lewis
Is there any possibility that you can tell us what the script actually is or provide a code listing (use pastebin if it's big)? -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-23 Thread Νικόλαος Κούρας
On 23 Δεκ, 12:41, becky_lewis bex.le...@gmail.com wrote: Is there any possibility that you can tell us what the script actually is or provide a code listing (use pastebin if it's big)? The script is about retrieving and storing the visitros hostnames to mysql database creating a log file. I

socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-22 Thread Νικόλαος Κούρας
Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can tell me what might be wrong. -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-22 Thread Rami Chowdhury
2011/12/22 Νικόλαος Κούρας nikos.kou...@gmail.com: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can tell me what might be wrong. I can't see any errors on that page -- can

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-22 Thread becky_lewis
On Dec 22, 2:40 pm, Νικόλαος Κούρας nikos.kou...@gmail.com wrote: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage athttp://superhost.gr Please if you can tell me what might be wrong. It doesn't seem entirely

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2011-12-22 Thread Νικόλαος Κούρας
On 22 Δεκ, 17:32, Rami Chowdhury rami.chowdh...@gmail.com wrote: 2011/12/22 Νικόλαος Κούρας nikos.kou...@gmail.com: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can