Click here to Skip to main content
15,867,453 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.

 
JokeRe: Why care about descriptive names? Pin
Kornfeld Eliyahu Peter16-Oct-13 21:47
professionalKornfeld Eliyahu Peter16-Oct-13 21:47 
GeneralRe: Why care about descriptive names? Pin
Lutosław16-Oct-13 22:03
Lutosław16-Oct-13 22:03 
GeneralRe: Why care about descriptive names? PinPopular
Argonia16-Oct-13 23:28
professionalArgonia16-Oct-13 23:28 
GeneralRe: Why care about descriptive names? Pin
Nicholas Marty17-Oct-13 4:30
professionalNicholas Marty17-Oct-13 4:30 
GeneralRe: Why care about descriptive names? Pin
phil.o18-Oct-13 4:12
professionalphil.o18-Oct-13 4:12 
GeneralRe: Why care about descriptive names? Pin
Lutosław19-Oct-13 5:18
Lutosław19-Oct-13 5:18 
GeneralHad a Boss Pin
michaelbarb14-Nov-13 8:58
michaelbarb14-Nov-13 8:58 
GeneralExecutable that requires elevation PinPopular
Michael Haephrati15-Oct-13 11:21
professionalMichael Haephrati15-Oct-13 11:21 
I recently worked on a project and at a certain point noticed that the executable that is created requires elevation. It has this icon indicating that an administrator approval is required, and when it is double clicked, the elevation prompt appears.
It drove me craze to remove this setting, as the nature of the software didn't require it to be elevated. I looked at the Manifest section when there are settings related to UAC (User Account Control), but even when I matched these settings to the ones taken from another project, which didn't require elevation, my new project did.
Today, while speaking to another programmer, he told me how to fix that....

Well, my executable had the string "install" as part of it, and when I renamed it to demo.exe, the icon has changed and no elevation any more required. Smile | :)
GeneralRe: Executable that requires elevation Pin
Richard Deeming15-Oct-13 12:11
mveRichard Deeming15-Oct-13 12:11 
GeneralRe: Executable that requires elevation Pin
Michael Haephrati15-Oct-13 12:40
professionalMichael Haephrati15-Oct-13 12:40 
GeneralRe: Executable that requires elevation Pin
Rage15-Oct-13 22:56
professionalRage15-Oct-13 22:56 
GeneralRe: Executable that requires elevation Pin
Dave Kreskowiak16-Oct-13 1:30
mveDave Kreskowiak16-Oct-13 1:30 
GeneralRe: Executable that requires elevation Pin
Richard Deeming16-Oct-13 1:45
mveRichard Deeming16-Oct-13 1:45 
GeneralRe: Executable that requires elevation Pin
Dan Neely18-Oct-13 7:14
Dan Neely18-Oct-13 7:14 
GeneralRe: Executable that requires elevation Pin
BillW3318-Oct-13 8:27
professionalBillW3318-Oct-13 8:27 
GeneralRe: Executable that requires elevation Pin
BillW3318-Oct-13 8:25
professionalBillW3318-Oct-13 8:25 
GeneralRe: Executable that requires elevation Pin
Rob Grainger23-Oct-13 0:55
Rob Grainger23-Oct-13 0:55 
GeneralRe: Executable that requires elevation Pin
Bernhard Hiller15-Oct-13 20:19
Bernhard Hiller15-Oct-13 20:19 
GeneralWhats wrong with this code??? Pin
Ankush Bansal14-Oct-13 20:50
Ankush Bansal14-Oct-13 20:50 
GeneralRe: Whats wrong with this code??? Pin
vonb14-Oct-13 20:55
vonb14-Oct-13 20:55 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 21:13
Ankush Bansal14-Oct-13 21:13 
GeneralRe: Whats wrong with this code??? Pin
Bernhard Hiller14-Oct-13 21:07
Bernhard Hiller14-Oct-13 21:07 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 21:15
Ankush Bansal14-Oct-13 21:15 
GeneralRe: Whats wrong with this code??? Pin
OriginalGriff14-Oct-13 22:22
mveOriginalGriff14-Oct-13 22:22 
GeneralRe: Whats wrong with this code??? Pin
Ankush Bansal14-Oct-13 23:01
Ankush Bansal14-Oct-13 23:01 

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.