Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? PinmentorDaveAuld1-Feb-13 6:45 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? PinmemberFlorin Jurcovici7-Feb-13 21:31 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? PinmentorKeith Barrow4-Feb-13 2:42 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? Pinmemberjibesh4-Feb-13 15:04 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? PinmemberMarco Bertschi6-Feb-13 1:09 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? Pinmembersatovey7-Feb-13 7:21 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? Pinmemberjoe_j7-Feb-13 19:50 
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? Pinmembersatovey8-Feb-13 6:16 
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.
 
Laugh | :laugh:
GeneralRe: supervising stalker eyes onto your screen while you code.. IRRITATING or what??? PinmemberFlorin Jurcovici7-Feb-13 21:47 
GeneralTwo Approaches to Avoiding Repeating an Item Template [modified] PinprotectorAspDotNetDev31-Jan-13 13:43 
GeneralDrinking and coding Pinmemberjoe_j30-Jan-13 21:35 
GeneralRe: Drinking and coding Pinmemberpeterchen30-Jan-13 22:25 
GeneralRe: Drinking and coding PinmemberJörgen Andersson30-Jan-13 23:09 
GeneralRe: Drinking and coding Pinmemberpeterchen30-Jan-13 23:11 
GeneralRe: Drinking and coding PinmemberJörgen Andersson30-Jan-13 23:17 
GeneralRe: Drinking and coding PinmemberRob Grainger6-Feb-13 23:30 
GeneralRe: Drinking and coding PinmemberJörgen Andersson6-Feb-13 23:39 
GeneralRe: Drinking and coding PinmemberRugbyLeague30-Jan-13 22:30 
GeneralRe: Drinking and coding Pinmemberderek999931-Jan-13 2:47 
GeneralRe: Drinking and coding PinmemberRugbyLeague31-Jan-13 3:12 
GeneralRe: Drinking and coding PinmemberNagy Vilmos30-Jan-13 22:41 
GeneralRe: Drinking and coding Pinmemberjoe_j30-Jan-13 23:03 
GeneralRe: Drinking and coding PinmemberNagy Vilmos30-Jan-13 23:19 
GeneralRe: Drinking and coding PinmvpOriginalGriff31-Jan-13 2:16 
GeneralRe: Drinking and coding Pinmemberjoe_j1-Feb-13 4:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 24 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid