Timeline for Check if computer is connected to the internet
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Apr 13, 2017 at 12:39 | history | edited | CommunityBot | replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/ | |
| Jan 14, 2017 at 1:00 | comment | added | Floris | Hello @LuisMendo yes I sometimes prowl other sites... too bad the ftp doesn't work! | |
| Jan 14, 2017 at 0:25 | comment | added | Luis Mendo | @Floris Nice to see you also here! Unfortunately ftp doesn's seem to work for that site | |
| Jan 13, 2017 at 20:02 | comment | added | Floris | would this work with ftp instead of http - save another byte? | |
| Jan 13, 2017 at 14:47 | history | edited | Luis Mendo | CC BY-SA 3.0 | added 133 characters in body |
| Jan 13, 2017 at 14:44 | comment | added | Luis Mendo | @StewieGriffin Thanks! Yes, I think urlread('http://g.gl') is valid (and is the same as my code does), as STDERR is ignored by default, and an empty STDOUT is falsy in MATLAB | |
| Jan 13, 2017 at 14:41 | comment | added | Stewie Griffin | Would you consider urlread('http://g.gl') to be an OK answer by itself? It will error and leave the workspace empty if the connection is down. It will display an error message, but technically that's to STDERR...? I thought it was a bit of a stretch, so I did it this way. But skipping try seems to give the same result as your code, or? You leave the stack empty too don't you? Nice answer by the way... :) | |
| Jan 13, 2017 at 14:02 | history | edited | Luis Mendo | CC BY-SA 3.0 | added 91 characters in body |
| Jan 13, 2017 at 13:56 | history | answered | Luis Mendo | CC BY-SA 3.0 |