|
I hate it when people stand behind me in covert and watch my screen while I peacefully code. I loose my balance.. chemically
|
|
|
|
|
Read the top of this forum, don't think this post fits this.
|
|
|
|
|
it does state Coding Horrors, Worst Practices. well it is a horror.. while coding
|
|
|
|
|
"This forum is purely for amusement and discussions on code snippets."
True, however the last two words in the sentence above are the important ones.
|
|
|
|
|
I guess this explains why his manager thinks he needs to monitor what this guy's coding
|
|
|
|
|
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
I guess I am glad I'm not his manager!
|
|
|
|
|
The solution to this problem is to install a trap door directly behind you where the supervisor always stands.
You then set audio, motion, and location in their appropriate places.
if( audio == null && motion == null && location == true)
{
trigger = true;
}else{
trigger = false;
}
End result, no more supervisor standing behind you while you code.
Heh, heh, I've lost more supervisors that way.
Now, back to reality.
|
|
|
|
|
hahaha.. ooh boy i really wish I could compile this code and run it.
|
|
|
|
|
It is a bit psuedo.
With properly declared variables and keywords it would compile and run. Unfortunately it has a bug and is therefore quite dangerous to anyone stepping on the trap door.
I forgot two important parameters. A variable for a timer and a constant for maximum standing time allowed.
The trap would trigger as soon as you got up to use the restroom.
Now, if you really want to use the code, rather than applying it to a trap door, apply it to an arduino or raspi controlled supper soaker water gun sitting on the desk, pointed in the direction of the standing interloper.
To be not so obvious and have some real fun, place a small hidden water device on the sealing above the spot and have it spew out just enough water to make it feel like a bird just pissed on the individual. For real effectiveness, make the device focus on any area behind the desk that's within the monitors viewing area.
Hmmm; It appears that I have been reading way to many Instructables and Hackadays. And also watching to many YouTube videos utilizing arduino controlled devices.
|
|
|
|
|
You could also turn on your (password-protected) screensaver, turn towards him and do nothing except staring at him. (I for one would enjoy his reaction.)
|
|
|
|