> is_computer_on() How does this relate to computer being in Halt state, which is quite valid state for servers (there could be even a dedicated Halt button)? Technically computer hardware is ON. I remember that in such state it shows a "carrot" prompt (>>>) from the SRE console. By the way, there is also HCF instruction (Halt and Catch Fire). https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing...
Wouldn't a CPU halt state mean no code is running?
How to programmatically find out if computer is on
81–90 of 197 posts
Re: How to programmatically find out if computer is on
#82> is_computer_on() How does this relate to computer being in Halt state, which is quite valid state for servers (there could be even a dedicated Halt button)? Technically computer hardware is ON. I remember that in such state it shows a "carrot" prompt (>>>) from the SRE console. By the way, there is also HCF instruction (Halt and Catch Fire). https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing...
I was somewhat recently scarred for life by this instruction, having just discovered that if you execute HCF on the MIPS-based integrated circuits in Stationeers, the simulated IC... explodes in your face.
Re: How to programmatically find out if computer is on
#83Earlier quoted context omitted.
Wait. When the machine isn't on, P=NP! So our security systems are (useless | perfect)! I think there might even be other implications...
Nice job - having shown that P is the same as NP factorial will allow us to solve a lot of really hard problems!
Re: How to programmatically find out if computer is on
#84Since the not-on result is 'undefined', a devilish implementer could return 1 for the off case, just to screw with people. (How could this work in theory? Maybe the computer has a separate watchdog controller board which allows the computer to be turned on and off remotely, and that controller acts as a proxy for the API request.)
Re: How to programmatically find out if computer is on
#85Re: How to programmatically find out if computer is on
#86Presumably there's a non-joke version of this at some level in the hardware / firmware stack?
Re: How to programmatically find out if computer is on
#87Re: How to programmatically find out if computer is on
#88Re: How to programmatically find out if computer is on
#89Re: How to programmatically find out if computer is on
#90> is_computer_on() How does this relate to computer being in Halt state, which is quite valid state for servers (there could be even a dedicated Halt button)? Technically computer hardware is ON. I remember that in such state it shows a "carrot" prompt (>>>) from the SRE console. By the way, there is also HCF instruction (Halt and Catch Fire). https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing...