Click here to Skip to main content
15,389,177 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: Give a right username and a right password and you're in... Pin
PIEBALDconsult25-Aug-14 5:56
professionalPIEBALDconsult25-Aug-14 5:56 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos25-Aug-14 6:05
professionalyiangos25-Aug-14 6:05 
GeneralRe: Give a right username and a right password and you're in... Pin
Marc Koutzarov29-Aug-14 21:44
professionalMarc Koutzarov29-Aug-14 21:44 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos31-Aug-14 6:38
professionalyiangos31-Aug-14 6:38 
GeneralAndroid gravity constants Pin
Indivara18-Aug-14 22:04
professionalIndivara18-Aug-14 22:04 
GeneralRe: Android gravity constants Pin
Bernhard Hiller19-Aug-14 0:08
MemberBernhard Hiller19-Aug-14 0:08 
GeneralRe: Android gravity constants Pin
Richard Deeming19-Aug-14 1:47
mveRichard Deeming19-Aug-14 1:47 
GeneralRe: Android gravity constants Pin
KP Lee21-Aug-14 17:57
MemberKP Lee21-Aug-14 17:57 
Just out of curiosity (on win 8.1) I wondered if you could enter exponentials. I was gratified that typing 1e automatically changed to 1e+0, but worried if negative exponents worked. Nope, came out -6. Well how close is positive? Typing "1e7=" is 9999993 REALLY disappointing for a calculator (5 place accuracy), that here-to-fore I was very impressed with its accuracy. (Later I cleared memory and 1e7 gave the right answer. It assumed I wanted to subtract 7 from 1e7 or better yet: I wanted to add 1e7 to -7).
The percentage of Earth gravity is about 0.0000036%. So 100 lbm weighs 0.000000036 lbf.(100kg WEIGHS 0.036gm*mm/sec^2 on the death star) I always assumed they could stand like they did because they had developed artificial gravity. Since the pilots could turn like they did without the pilots getting squished, I assumed their star fighters had it too.
My calculator, using the link's numbers --> (((3.5303614/10000000)/9.80665)*100)= 3.5999667572514569195392922149766e-6% (Yes, parens shouldn't be necessary, but I proved to myself years ago it properly supported needed parens and that memory glitch scared me too.)

So, where is half of Earth's gravity mentioned?

PS I think my numbers are right, but I wouldn't bet 100 dollars on it.
GeneralRe: Android gravity constants Pin
Sander Rossel19-Aug-14 1:49
professionalSander Rossel19-Aug-14 1:49 
GeneralRe: Android gravity constants Pin
Brisingr Aerowing19-Aug-14 5:00
professionalBrisingr Aerowing19-Aug-14 5:00 
GeneralRe: Android gravity constants Pin
KP Lee21-Aug-14 18:24
MemberKP Lee21-Aug-14 18:24 
GeneralThe lasting effects of the Unix epoch Pin
PIEBALDconsult10-Aug-14 12:32
professionalPIEBALDconsult10-Aug-14 12:32 
GeneralRe: The lasting effects of the Unix epoch Pin
Rob Grainger13-Aug-14 23:26
MemberRob Grainger13-Aug-14 23:26 
GeneralThe Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 10:34
professionalNicolas Dorier10-Aug-14 10:34 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Brisingr Aerowing10-Aug-14 11:28
professionalBrisingr Aerowing10-Aug-14 11:28 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult10-Aug-14 11:55
professionalPIEBALDconsult10-Aug-14 11:55 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 12:17
professionalNicolas Dorier10-Aug-14 12:17 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult10-Aug-14 12:33
professionalPIEBALDconsult10-Aug-14 12:33 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 12:37
professionalNicolas Dorier10-Aug-14 12:37 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult10-Aug-14 12:39
professionalPIEBALDconsult10-Aug-14 12:39 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 12:47
professionalNicolas Dorier10-Aug-14 12:47 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult10-Aug-14 12:56
professionalPIEBALDconsult10-Aug-14 12:56 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 13:16
professionalNicolas Dorier10-Aug-14 13:16 
AnswerRe: The Magician's String, what you see is not what you get. Pin
Guirec10-Aug-14 11:57
professionalGuirec10-Aug-14 11:57 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Dave Kreskowiak10-Aug-14 12:22
mveDave Kreskowiak10-Aug-14 12:22 

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.