Click here to Skip to main content
15,176,980 members

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, embarrassing 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.

 
GeneralHad a Boss Pin
michaelbarb14-Nov-13 9:58
Membermichaelbarb14-Nov-13 9:58 
GeneralExecutable that requires elevation Pin
Michael Haephrati15-Oct-13 12:21
mvaMichael Haephrati15-Oct-13 12:21 
GeneralRe: Executable that requires elevation Pin
Richard Deeming15-Oct-13 13:11
mveRichard Deeming15-Oct-13 13:11 
GeneralRe: Executable that requires elevation Pin
Michael Haephrati15-Oct-13 13:40
mvaMichael Haephrati15-Oct-13 13:40 
GeneralRe: Executable that requires elevation Pin
Rage15-Oct-13 23:56
professionalRage15-Oct-13 23:56 
GeneralRe: Executable that requires elevation Pin
Dave Kreskowiak16-Oct-13 2:30
mveDave Kreskowiak16-Oct-13 2:30 
GeneralRe: Executable that requires elevation Pin
Richard Deeming16-Oct-13 2:45
mveRichard Deeming16-Oct-13 2:45 
GeneralRe: Executable that requires elevation Pin
Dan Neely18-Oct-13 8:14
MemberDan Neely18-Oct-13 8:14 
The alternative to a heuristic like that would have been 99% of installers trying to run as normal processes when Vista launched, failing because they couldn't access privileged areas, and bombing. That would have been an order of magnitude more elephanted up. And not just because setting runs-as-user in a manifest if your app name matches the heuristic is strait forward for a dev; but 99% of lusers don't know there is something called admin mode, never mind how to launch a program in it.


Edit: PS The VS2k3Sp1 installer doesn't get detected to auto elevate and fails/backs out in a way that gives no indication of what's wrong until on the nth try you realize you never got the elevate prompt.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

GeneralRe: Executable that requires elevation Pin
BillW3318-Oct-13 9:27
professionalBillW3318-Oct-13 9:27 
GeneralRe: Executable that requires elevation Pin
BillW3318-Oct-13 9:25
professionalBillW3318-Oct-13 9:25 
GeneralRe: Executable that requires elevation Pin
Rob Grainger23-Oct-13 1:55
MemberRob Grainger23-Oct-13 1:55 
GeneralRe: Executable that requires elevation Pin
Bernhard Hiller15-Oct-13 21:19
MemberBernhard Hiller15-Oct-13 21:19 
GeneralWhats wrong with this code??? Pin
Ankush Bansal14-Oct-13 21:50
MemberAnkush Bansal14-Oct-13 21:50 
GeneralRe: Whats wrong with this code??? Pin
vonb14-Oct-13 21:55
Membervonb14-Oct-13 21:55 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 22:13
MemberAnkush Bansal14-Oct-13 22:13 
GeneralRe: Whats wrong with this code??? Pin
Bernhard Hiller14-Oct-13 22:07
MemberBernhard Hiller14-Oct-13 22:07 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 22:15
MemberAnkush Bansal14-Oct-13 22:15 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff14-Oct-13 23:22
mveOriginalGriff14-Oct-13 23:22 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal15-Oct-13 0:01
MemberAnkush Bansal15-Oct-13 0:01 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff15-Oct-13 0:47
mveOriginalGriff15-Oct-13 0:47 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 1:47
MemberSentenryu15-Oct-13 1:47 
GeneralRe: Whats wrong with this code??? Pin
ENOTTY15-Oct-13 2:37
MemberENOTTY15-Oct-13 2:37 
GeneralRe: Whats wrong with this code??? Pin
Sentenryu15-Oct-13 10:11
MemberSentenryu15-Oct-13 10:11 
GeneralRe: Whats wrong with this code??? Pin
harold aptroot16-Oct-13 3:22
Memberharold aptroot16-Oct-13 3:22 
GeneralRe: Whats wrong with this code??? Pin
Vasudevan Deepak Kumar17-Oct-13 0:02
MemberVasudevan Deepak Kumar17-Oct-13 0:02 

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

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