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

 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Bernhard Hiller3-Aug-17 21:12
Bernhard Hiller3-Aug-17 21:12 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Gary Wheeler4-Aug-17 1:46
Gary Wheeler4-Aug-17 1:46 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Gary Wheeler4-Aug-17 1:50
Gary Wheeler4-Aug-17 1:50 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Kirk 103898214-Aug-17 4:23
Kirk 103898214-Aug-17 4:23 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Peter_in_27804-Aug-17 4:35
professionalPeter_in_27804-Aug-17 4:35 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
Brisingr Aerowing4-Aug-17 4:51
professionalBrisingr Aerowing4-Aug-17 4:51 
GeneralRe: get getter and get setter, or is it getter get and getter set? Pin
V.29-Aug-17 19:03
professionalV.29-Aug-17 19:03 
GeneralCSS fun: mysterious 10.4% Pin
dan!sh 12-Jul-17 1:39
professional dan!sh 12-Jul-17 1:39 
We are using Kendo UI components for an MVC application. Kendo's CSS has textbox width set as 12.4em. I want it to be 100%. So, in jQuery, I was setting it to 100%. But when the control is rendered, in the source I see it to be 110.4%.

After just looking at the screen for sometime (didn't knew what to do), I asked my colleague for help. And we both were confused. We then created a 100px wide div and added a textbox to it. Then, same jQuery function was called to change the width to 100% instead of default 12.4em. It still showed up as 110.4%.

Time not being on my side, I changed width in jQuery function to 89.6% and then it rendered as 100%.

We are still looking for a good detective to help solve the mysterious 10.4%.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[^]

GeneralRe: CSS fun: mysterious 10.4% PinPopular
Richard Deeming12-Jul-17 1:46
mveRichard Deeming12-Jul-17 1:46 
GeneralRe: CSS fun: mysterious 10.4% Pin
dan!sh 12-Jul-17 19:00
professional dan!sh 12-Jul-17 19:00 
GeneralRe: CSS fun: mysterious 10.4% Pin
TheGreatAndPowerfulOz17-Jul-17 11:07
TheGreatAndPowerfulOz17-Jul-17 11:07 
GeneralRe: CSS fun: mysterious 10.4% Pin
Jon McKee12-Jul-17 8:11
professionalJon McKee12-Jul-17 8:11 
GeneralRe: CSS fun: mysterious 10.4% Pin
dan!sh 12-Jul-17 19:03
professional dan!sh 12-Jul-17 19:03 
GeneralDoes NULL <> 'string'? Pin
Chris Maunder11-Jul-17 8:38
cofounderChris Maunder11-Jul-17 8:38 
GeneralRe: Does NULL <> 'string'? Pin
User 1106097911-Jul-17 8:50
User 1106097911-Jul-17 8:50 
GeneralRe: Does NULL <> 'string'? Pin
Chris Maunder11-Jul-17 8:52
cofounderChris Maunder11-Jul-17 8:52 
GeneralRe: Does NULL <> 'string'? Pin
OriginalGriff11-Jul-17 11:16
mveOriginalGriff11-Jul-17 11:16 
JokeRe: Does NULL <> 'string'? Pin
Nelek12-Jul-17 2:17
protectorNelek12-Jul-17 2:17 
GeneralRe: Does NULL <> 'string'? Pin
Gary Wheeler13-Jul-17 7:01
Gary Wheeler13-Jul-17 7:01 
GeneralRe: Does NULL <> 'string'? Pin
Dan Sutton13-Jul-17 4:06
Dan Sutton13-Jul-17 4:06 
GeneralRe: Does NULL <> 'string'? Pin
User 1106097913-Jul-17 4:51
User 1106097913-Jul-17 4:51 
GeneralRe: Does NULL <> 'string'? Pin
Dan Sutton13-Jul-17 8:14
Dan Sutton13-Jul-17 8:14 
PraiseRe: Does NULL <> 'string'? Pin
User 1106097913-Jul-17 8:34
User 1106097913-Jul-17 8:34 
GeneralRe: Does NULL <> 'string'? Pin
Richard Deeming13-Jul-17 8:08
mveRichard Deeming13-Jul-17 8:08 
GeneralRe: Does NULL <> 'string'? Pin
Dan Sutton13-Jul-17 8:15
Dan Sutton13-Jul-17 8:15 

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.