Merry Christmas, and a happy New Year May you get all the geek toys you wished for, and may the newbs learn to search before posting.
![]()
Thought I'd share 2 examples of code I've come across while QA'ing an Enterprise clients J2EE apps.
My favorite (!)how to check an arrays sizeCode:if("value" == null){}
Code:String[] values; .... int valueSize = 0; while(valueSize < values.length) { ++valueSize; }
Merry Christmas, and a happy New Year May you get all the geek toys you wished for, and may the newbs learn to search before posting.
![]()
To be successful here you should read all of the following.
ForumRules
ForumFAQ
If you are new to Back|Track
Back|Track Wiki
Failure to do so will probably get your threads deleted or worse.
Old Skool Phreaking
![]()
Some more code for laughs, this from a "it's too damn slow" application for a military contractor's non-classified app (I'm paraphrasing from memory).Strangely enough the app ran slowCode:filesize = getFileSize(FNAME); while(bytesRead < fileSize) { open(FNAME); read(FNAME, chararray, 1); // READ ONE BYTE!! close(FNAME); bytesRead++; }![]()
Still not underestimating the power...
There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.
During a recent password audit, a company discovered a blonde was using the following password:
When they asked why such a long password, she said she was told that it had to be at least 8 characters long and include one capital.Code:MickeyMinniePlutoHueyLouieDeweyDonaldGoofySacramento
Some of these are very very funny.
Thank you very much.
Bal.![]()
wife?
parsijoke.com/wp-content/uploads/2010/01/wife_zan_be_che_dard_mikhore.jpg