Aw: Re: Best way to check if there is internet?

2022-02-07 Thread Karsten Hilbert
> Or the internet acquires a new protocol that's designed > for very-long-latency connections. That's being worked on already https://en.wikipedia.org/wiki/NASA_Deep_Space_Network Karsten -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 12:20, Ethan Furman wrote: > > On 2/7/22 4:27 PM, Greg Ewing wrote: > > On 8/02/22 8:51 am, Chris Angelico wrote: > > >> Some day, we'll have people on Mars. They won't have TCP connections - > >> at least, not unless servers start supporting connection timeouts > >> meas

Re: Best way to check if there is internet?

2022-02-07 Thread Michael Torrie
On 2/7/22 12:51, Chris Angelico wrote: > Some day, we'll have people on Mars. They won't have TCP connections - > at least, not unless servers start supporting connection timeouts > measured in minutes or hours - but it wouldn't surprise me if some > sort of caching proxy system is deployed. > > O

Re: Best way to check if there is internet?

2022-02-07 Thread Ethan Furman
On 2/7/22 4:27 PM, Greg Ewing wrote: > On 8/02/22 8:51 am, Chris Angelico wrote: >> Some day, we'll have people on Mars. They won't have TCP connections - >> at least, not unless servers start supporting connection timeouts >> measured in minutes or hours - but it wouldn't surprise me if some >>

Re: Best way to check if there is internet?

2022-02-07 Thread Greg Ewing
On 8/02/22 8:51 am, Chris Angelico wrote: Some day, we'll have people on Mars. They won't have TCP connections - at least, not unless servers start supporting connection timeouts measured in minutes or hours - but it wouldn't surprise me if some sort of caching proxy system is deployed. Or the

Re: Logging user activity

2022-02-07 Thread Cameron Simpson
On 06Feb2022 23:30, blessy carol wrote: >I have this task where I have to create log files to record user >activity whenever they make an entry or view something. Also, I have to >create Database log file whenever someone accessed or manipulated the >data in the database. The code is written py

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 09:31, <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2022-02-08 at 06:51:20 +1100, > Chris Angelico wrote: > > > Either way, though: would a person on Mars "have the internet"? Yes, > > but not the internet as we know it... > > By current definition, they *can't* have th

Re: Best way to check if there is internet?

2022-02-07 Thread 2QdxY4RzWzUUiLuE
On 2022-02-08 at 06:51:20 +1100, Chris Angelico wrote: > Either way, though: would a person on Mars "have the internet"? Yes, > but not the internet as we know it... By current definition, they *can't* have the internet as we know it. Wikipedia,¹ Mirrian-Webster,² and TechTerms.com³ (the first

Re: Logging user activity

2022-02-07 Thread Peter J. Holzer
On 2022-02-06 23:30:41 -0800, blessy carol wrote: > I have this task where I have to create log files to record user > activity whenever they make an entry or view something. Also, I have > to create Database log file whenever someone accessed or manipulated > the data in the database. The code is

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 08:30, Cameron Simpson wrote: > > On 08Feb2022 06:51, Chris Angelico wrote: > >Some day, we'll have people on Mars. They won't have TCP connections - > >at least, not unless servers start supporting connection timeouts > >measured in minutes or hours - but it wouldn't surpri

Re: Best way to check if there is internet?

2022-02-07 Thread Cameron Simpson
On 08Feb2022 06:51, Chris Angelico wrote: >Some day, we'll have people on Mars. They won't have TCP connections - >at least, not unless servers start supporting connection timeouts >measured in minutes or hours - but it wouldn't surprise me if some >sort of caching proxy system is deployed. The T

Re: Best way to check if there is internet?

2022-02-07 Thread Cameron Simpson
On 07Feb2022 11:40, Grant Edwards wrote: >Ah, c'mon... Every geek worth his salt knows a few real world IP >addresses without relying on DNS. If you want to "ping Google", it's > $ ping 8.8.8.8 > $ ping 8.8.4.4 And Cloudflare is 1.1.1.1. Speaking as someone who's seen his upstream provider have

Re: Best way to check if there is internet?

2022-02-07 Thread Grant Edwards
On 2022-02-07, Dennis Lee Bieber wrote: > On Mon, 07 Feb 2022 11:40:24 -0800 (PST), Grant Edwards > declaimed the following: > >>On 2022-02-07, Dennis Lee Bieber wrote: >> >>> Also, for a machine freshly booted, with no cache, even pinging >>> Google first requires making contact with a DNS serve

Re: Best way to check if there is internet?

2022-02-07 Thread Dennis Lee Bieber
On Mon, 07 Feb 2022 11:40:24 -0800 (PST), Grant Edwards declaimed the following: >On 2022-02-07, Dennis Lee Bieber wrote: > >> Also, for a machine freshly booted, with no cache, even pinging >> Google first requires making contact with a DNS server to ask for >> Google's IP address. With no netw

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 06:41, Grant Edwards wrote: > But, as has been pointed out previously "if there is internet" is too > vague a question to have an answer. > > If all you have is proxied access to outside HTTPS servers, then I > would consider the answer to be "no", but most people would say "

Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 06:51, Cecil Westerhof via Python-list wrote: > > Chris Angelico writes: > > >> > How difficult would it be to get people to read those lines, though? > >> > >> That does remind me about a system administrator who wanted to make a > >> point. He changed something on the serv

Re: Openning Python program

2022-02-07 Thread Cecil Westerhof via Python-list
Chris Angelico writes: >> > How difficult would it be to get people to read those lines, though? >> >> That does remind me about a system administrator who wanted to make a >> point. He changed something on the server so all the Windows computers >> started up and gave a message: >> If yo

Re: Best way to check if there is internet?

2022-02-07 Thread Grant Edwards
On 2022-02-07, Dennis Lee Bieber wrote: > Also, for a machine freshly booted, with no cache, even pinging > Google first requires making contact with a DNS server to ask for > Google's IP address. With no network, the DNS look-up will fail > before ping even tries to hit Google. Ah, c'mon... Eve

Correct way to setup a package with both compiled C code and Python code?

2022-02-07 Thread Christian Gollwitzer
Hi all, we've developed a Python pacakge which consists of both a compiled extension module and some helper functions in Python. Is there a tutorial on how to package such an extension? Most resources I found for distutils describe either building an extension or pure python modules. Current

Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 04:30, Cecil Westerhof via Python-list wrote: > > Chris Angelico writes: > > > On Tue, 8 Feb 2022 at 02:53, Grant Edwards > > wrote: > >> > >> On 2022-02-06, Dennis Lee Bieber wrote: > >> > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" > >> > declaimed

Re: Best way to check if there is internet?

2022-02-07 Thread Dennis Lee Bieber
On Mon, 7 Feb 2022 13:33:54 +0400, Abdur-Rahmaan Janhangeer declaimed the following: >Popular browsers tell: No internet connection detected. A function that >goes in the same sense. Unless they too are pinging Google.com to check ... > Ah, but WHEN do those browsers report that? When at

Logging user activity

2022-02-07 Thread blessy carol
Hi, I have this task where I have to create log files to record user activity whenever they make an entry or view something. Also, I have to create Database log file whenever someone accessed or manipulated the data in the database. The code is written python and used django framework. I've con

Re: Openning Python program

2022-02-07 Thread Cecil Westerhof via Python-list
Chris Angelico writes: > On Tue, 8 Feb 2022 at 02:53, Grant Edwards wrote: >> >> On 2022-02-06, Dennis Lee Bieber wrote: >> > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >> > declaimed the following: >> > >> >> I cannot open python after downloading it keeps going to >>

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Barry wrote: >> On 7 Feb 2022, at 15:55, Grant Edwards wrote: >> On 2022-02-06, Dennis Lee Bieber wrote: >>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >>> declaimed the following: >>> I cannot open python after downloading it keeps going to modify/u

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-07, Chris Angelico wrote: > On Tue, 8 Feb 2022 at 02:53, Grant Edwards wrote: >> >>On 2022-02-06, Dennis Lee Bieber wrote: >>> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >>> declaimed the following: >>> I cannot open python after downloading it keeps going

Re: Openning Python program

2022-02-07 Thread Barry
> On 7 Feb 2022, at 15:55, Grant Edwards wrote: > > On 2022-02-06, Dennis Lee Bieber wrote: >> On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" >> declaimed the following: >> >>> I cannot open python after downloading it keeps going to modify/uninstall >>> ?? please help >

Re: Openning Python program

2022-02-07 Thread Chris Angelico
On Tue, 8 Feb 2022 at 02:53, Grant Edwards wrote: > > On 2022-02-06, Dennis Lee Bieber wrote: > > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" > > declaimed the following: > > > >> I cannot open python after downloading it keeps going to modify/uninstall > >> ?? please hel

Re: Openning Python program

2022-02-07 Thread Grant Edwards
On 2022-02-06, Dennis Lee Bieber wrote: > On Sun, 6 Feb 2022 13:44:07 +0530, "createkmontalb...@gmail.com" > declaimed the following: > >> I cannot open python after downloading it keeps going to modify/uninstall >> ?? please help > > Stop clicking on the INSTALLER. What you downloaded is just

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Mon, 7 Feb 2022 at 23:48, Lars Liedtke wrote: > > Each Browser is doing it differently and even Windows or > Linux-Desktopmanagers (NetworkManager). > > I have had cases, where one tool told me I had Internet and another one > I hadn't. Not at all surprised :) Though that situation would proba

Re: Best way to check if there is internet?

2022-02-07 Thread Lars Liedtke
P.S.: for ping a startingpoint can be icmplib, for dns dnspython and for http requests. But consider as well if you want to check for IPv4 and/or IPv6 Connectivity. Am 07.02.22 um 13:47 schrieb Lars Liedtke: Each Browser is doing it differently and even Windows or Linux-Desktopmanagers (Networ

Re: Best way to check if there is internet?

2022-02-07 Thread Lars Liedtke
Each Browser is doing it differently and even Windows or Linux-Desktopmanagers (NetworkManager). I have had cases, where one tool told me I had Internet and another one I hadn't. So What Chris Angelico wrote is propably the best way, ping e.g. Google, do a DNS lookup and try http for Status

Re: Best way to check if there is internet?

2022-02-07 Thread Abdur-Rahmaan Janhangeer
Popular browsers tell: No internet connection detected. A function that goes in the same sense. Unless they too are pinging Google.com to check ... Kind Regards, Abdur-Rahmaan Janhangeer about | blog github

Re: Best way to check if there is internet?

2022-02-07 Thread Chris Angelico
On Mon, 7 Feb 2022 at 20:18, Abdur-Rahmaan Janhangeer wrote: > > Greetings, > > Using the standard library or 3rd party libraries, what's the > best way to check if there is internet? Checking if google.com > is reachable is good but I wonder if there is a more native, > protocol-oriented > way of

Best way to check if there is internet?

2022-02-07 Thread Abdur-Rahmaan Janhangeer
Greetings, Using the standard library or 3rd party libraries, what's the best way to check if there is internet? Checking if google.com is reachable is good but I wonder if there is a more native, protocol-oriented way of knowing? Even this URL recommends checking if a domain is up as a way to ch