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 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 sense, probably not. All you're getting is multiple names for the sa

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 th

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 wrote: > Chris Angelico 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 is returned. Correct, I was draw

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

2012-01-09 Thread Nick Dokos
Chris Angelico wrote: > On Tue, Jan 10, 2012 at 9:35 AM, Dominic Binks 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: Th

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 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 operation, getting IP addr

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

2012-01-09 Thread Νικόλαος Κούρας
On 10 Ιαν, 00:35, Dominic Binks 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( os.environ['REMOTE_ADDR'] ) > > inst

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 h

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-02 Thread Roy Smith
In article <24123dfe-b2fc-4f4c-8dfe-23bfef19b...@m10g2000vbc.googlegroups.com>, ÉΪÉ«É»όλαος Κούρας wrote: > On 2 ÉßÉΩÉΥ, 20:42, Roy Smith wrote: > > In article > > , > > †ÉΪÉ«É»όλαος Κούρας wrote: > > > > > I'am trying to present myself through my web

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

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith wrote: > In article > , >  ÉΪÉ«É»όλαος Κούρας 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. Evil?!?! How come? :) -- http://mail.python.org/mail

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

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith wrote: > In article > , >  ÉΪÉ«É»όλαος Κούρας 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. Evil?!?! How come? :) -- http://mail.python.org/mail

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

2012-01-02 Thread Roy Smith
In article , ÉΪÉ«É»όλαος Κούρας 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. -- http://mail.python.org/mailman/listinfo/python-list

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

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:47, Roy Smith wrote: > In article > <6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com>, >  ÉΪÉ«É»όλαος Κούρας wrote: > > > > > > > > > > > On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram wrote: > > > Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: > > > > > On 23 Δεκ 2011, 19:14,

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

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:49, Thomas Rachel 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 > >http://superhost.gr > > > Please if you can tell me what might be wr

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 so

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

2012-01-02 Thread Roy Smith
In article <6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com>, ÉΪÉ«É»όλαος Κούρας wrote: > On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram wrote: > > Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: > > > > > On 23 Δεκ 2011, 19:14, Νικόλαος

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

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

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, Νικόλαος Κούρας 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 need some help. My webpa

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

2012-01-02 Thread Νικόλαος Κούρας
On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας wrote: > On 23 Äåê, 12:41, becky_lewis 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 >

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

2011-12-23 Thread Νικόλαος Κούρας
On 23 Δεκ, 12:41, becky_lewis 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 dont know why this l

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-22 Thread Νικόλαος Κούρας
On 22 Δεκ, 17:32, Rami Chowdhury wrote: > 2011/12/22 Νικόλαος Κούρας : > > > 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

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

2011-12-22 Thread becky_lewis
On Dec 22, 2:40 pm, Νικόλαος Κούρας 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 clear but if I had t

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

2011-12-22 Thread Rami Chowdhury
2011/12/22 Νικόλαος Κούρας : > 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 you please post t

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