IsComputerOnFire 1.0
By Santiago (Jacques) Lema
jacques@link-u.com
Author's website
Oh my Lord, what the hell is this?
Please avoid religious references, this is not the place. There are quite a few reasons why a miserable human like me loves BeOS. One of the first is that if you are a developer - and I sometimes pretend I am one in a sense - you can access very useful functions in the Kernel kit.
And this includes these two functions:
int32 is_computer_on(void)
Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
double is_computer_on_fire(void)
Returns the temperature of the motherboard if the computer is currently on fire. If the computer isn't on fire, the function returns some other value.
Now imagine someone who is not a developer.... What happens to him/her? Well he/she simply cannot access the full power of the tools offered to him/her. That's where this fantastic tool comes in to save the average user. Just click on it and it will sit in your deskbar and show you if you computer is on fire. Well.. at least it should. There is even a fire simulation mode (but you will have to imagine the smell of a rotten CPU yourself).
If you have the BeBook installed locally you should be able to see those two functions in their context by clicking here.
Any License ?
You can do whatever you want with this, except nasty things ortherwise you'd go to hell and hell is not a nice place to be unless you are an atheist in which case you'd turn into plain dust which ain't much better these days.
Disclaimer
You'd better get used to it: you are going to die anyway. Sooner or later. If you lose all your data or your life ends prematurely because of this program please accept my apologies but I am not liable. You just should not click on stupid programs, especially if you are a minor and the program's name include the word fire. You have been warned.
Greetings
Since I hadn't written C++ for years and I didn't feel like reading much doc on replicants and such I based the source of this useless program on BWeather (by James Marr, james@interius.com). Let's bless him for his nice code that saved me a lot of time. Apart from that I have no friends to thank. If I had friends I definitely would not be writing software like this :-)
But hey, you did really spend hours to write THIS on a saturday night. You must be completely hopeless! Do you know there are young people having fun out there tonight ?
I know what you mean but you have to understand that I am a man who lives in Lausanne, Switzerland. I have been living in stockholm for 11 months but now, for some stupid reason, I had to come back to my so-called home country. Being now able to compare I must admit there are really few reasons for a would-be heterosexual person to go out in Lausanne. As a result I have plenty of time to write useless things, especially on saturday nights.
Oh, and for that 'hopeless' thing: you just cannot prove it :-)