Mark Bowytz

Besides contributing at @TheDailyWTF, I write DevDisasters for Visual Studio Magazine, and involved in various side projects including child rearing and marriage.

Oct 2014

CMD: Completely Malicious Data

by in Error'd on

What? Friday already!? Not quite, but close! We have something really good coming up tomorrow for Halloween, so here's your weekly dose of Error'd a day early. Enjoy!

--------


Advanced Time Management

by in Representative Line on

Whenever a computer wants to sync its internal clock, usually right around reboot, it'll check in with a time server. This is built-in functionality that spans across every modern OS.

Now, in some cases you might have a reason to disable the time check - and that's fine.


Undefined Favorites

by in Error'd on

"It's great I can ship my favorites to Europe, I just wish I knew what they were," writes Nick.


Is It Safer to Use Numbers?

by in CodeSOD on

Mac didn't know anything about how the JavaScript on the search page worked, and he wasn't that great at CSS styling, but that didn't matter. He had his orders. As part of the latest round of enhancements, the front-end developer had added another search parameter which would be passed via the regular search URL, and the back end needed to be adjusted to accomodate. (You know... instead of 'http://initrode.com/search?a=xxx&b=yyy' it now was 'http://initrode.com/search?a=xxx&b=yyy&c=zzz'.)

No problem. Mac made his tweak in the code and ran a quick test...which failed instantly in a spectacular way. "WTF? It's a parameter. Must be already used..." he thought, but nope.


Sorry, but You Can't Do the Math

by in Error'd on

"I guess that Intuit might have reasons for not allowing me to say Math was my least favorite subject in school," writes Alan R.


Do the Math

by in Error'd on

"These car shades I found at Walmart were made especially for the American market," Bryan W. writes, "I mean just look - they work much better in Fahrenheit than in Celsius."


IP Address Denial

by in CodeSOD on

While trying to assign an address from his framed /29 route to the internal side of his Linksys AM300 router, Phillip S. received an unexpected "Local IP Address is not valid" error.

Being a web script error, Phillip correctly figured that he could dig into what condition would make the address come up as invalid. Turns out, his problem was that the router considers any IP address starting with 115 to be invalid, but Phillip found that there were a few other instances of hard coding and magic number abuse. On a positive note, at least it's not device-side code.


The Post Office is Wrong

by in Error'd on

Mark H. wrote, "Despite being a company that specializes in shipping orders, I guess Tiger Direct has no idea which zip codes are in which cities."


Ternary Operator Nesting Syndrome

by in Representative Line on

Back in July, I wrote about my disdain for ternary operators citing a monster representative line as being a great example of an attempt at cleverness gone too far.

Well, an anonymous submitter sent our way another ternary operator disaster but with a twist - nested within the call to "payRecordsList.Add", almost every parameter passed has its own ternary operator added.


Best of Email - Greatest Pitch EVER!

by in Feature Articles on

Trying to advance yourself in your career is really tough. Usually, if you want things to go your way, either you have to work really hard at it or pray that you know someone who might be willing to assist on your behalf.

Well, if the email that Dhruv received is any indication, you can forget about all that stuff. Yep, here's proof that, sometimes, opportunities just fall out of the sky.