Recent Articles

21 Nov 2014

Turn Off Your Uter

by Mark Bowytz in Error'd on 2014-11-21

"Not quite sure what to do here... should I, or shouln't I turn of my computer... and what about my uter?" wrote Peter P.

60 Comments - Last Comment @ 23:10
20 Nov 2014
19 Nov 2014

WTF from A to Z

by TJ Mott in CodeSOD on 2014-11-19

Alex's customers were having issues with a web project management console developed by a coworker. Upon opening the code to see what was causing all the JavaScript errors, he learned that the original developer was clearly an expert in web development standards. The code file itself was JavaScript. The use of the .css() function definitely proved his mastery of Cascading Style Sheets. Hard-coded tags demonstrated his deep knowledge of HTML. Finally, his variable naming scheme is essential to maintaining the coveted "Now I Know My ABC's" certification.

var i = "DivContainer";
var j = "DEFAULT";
var k = "DEFAULT";
var l = a(document.createElement("select")).css("min-width", "200px").append(a(document.createElement("option")).val(""));
var m = a(document.createElement("select")).css("min-width", "200px").append(a(document.createElement("option")).val(""));
var n = a(document.createElement("select")).css("min-width", "200px").append(a(document.createElement("option")).val(""));
var o = a(document.createElement("input")).attr("name", "group1").attr("id", "RessRadio").attr("type", "radio");
var p = a(document.createElement("input")).css("width", "250px").attr("type", "text");
var q = a(document.createElement("input")).attr("id", "HiddenRessID").attr("type", "hidden");
var r = a(document.createElement("input")).attr("name", "group1").attr("type", "radio");
var s = a(document.createElement("input")).css("width", "250px").attr("type", "text");
var t = a(document.createElement("input")).attr("type", "hidden");
var u = a(document.createElement("a")).addClass("JButton").text("Display");
var v = a(document.createElement("label")).css("color", "Red");
var w = a(document.createElement("label")).text(" Display all employees assigned to a project: ");
var x = a(document.createElement("label")).text(" Display all projects assigned to an employee: ");
var y = a(a(this)[0]);

f = a(document.createElement("div"));
f.css("border-top", "1px solid Gray").css("width", "450px").css("padding", "5px");
f.append(a(document.createElement("table")).append(a(document.createElement("tr")).append(a("").append(a("").text("President:"))).append(a("").append(l))).append(a(document.createElement("tr")).append(a("").append(a("").text("Vice-president:"))).append(a("").append(m))).append(a(document.createElement("tr")).append(a("").append(a("").text("Head office:"))).append(a("").append(n))));

35 Comments - Last Comment @ 2014-11-20
18 Nov 2014

Selling Out Again… with Puppet Labs!

by Alex Papadimoulis in Announcements on 2014-11-18

Several years back, I confessed to selling out. But there was a catch: instead of running those rubbish Google ads, we would run hand-picked ads from relevant tech companies.

This worked out wonderfully and, as many of you commented, you first heard about some really cool tools and services, here on the site. So, to commemorate the site relaunch, we wanted to do something really special and work with a select group of tools/companies in the industry to sponsor some entertaining content for you, our readers. You know, things like Radio WTF's Make It Work, OMGWTF Contest, or even Mandatory Fun Day.

7 Comments - Last Comment @ 2014-11-20
18 Nov 2014
17 Nov 2014

Committed to Committing Commissions

by snoofle in CodeSOD on 2014-11-17

Simon worked in a small shop that supported a sales system. One of the features of the system was that sales commissions were stored in the database. For the sake of simplicity, the sales commissions were stored as the multiplier factor needed to compute the total sale. For example, a 5% commission on $100 would be $5, so the factor would be 1.05 so you could just multiply: 100 * 1.05 -> 105.

Of course, when they needed a report that showed the percent commission for a given sale, they had to work backward from the multiplier to get the actual value.

72 Comments - Last Comment @ 18:56
14 Nov 2014

A Bad Day for Recovery

by Mark Bowytz in Error'd on 2014-11-14

"I guess this gives new meaning to 'Read-Only Fridays'," writes Petr S.

19 Comments - Last Comment @ 2014-11-17
13 Nov 2014
12 Nov 2014

Exceptionally Secure

by Maciej Stachowski in CodeSOD on 2014-11-12

Error handling is not an easy task. Even the tiniest bit of code can fail in spectacular ways.

Luckily, modern programming languages tend to use at least some sort of exception model, which means that even if your program crashes, you’ll still be able to obtain more debugging information than a "Segmentation fault" or other generic error message would provide.

62 Comments - Last Comment @ 2014-11-18
11 Nov 2014
10 Nov 2014

A Binary Number Generator

by Jane Bailey in CodeSOD on 2014-11-10

Rich had heard countless complaints from Cindy in Finances that the reports were "slow".

Mostly though, he'd blown them off -- anything shy of instant was "slow" to her, and there wasn't a lot of room to go wrong in an SSRS package. Still, she was pretty, so he decided to take a look. Maybe he could speed up the reports and earn her gratitude. How bad could it be?

64 Comments - Last Comment @ 2014-11-14
07 Nov 2014

Just Testing the News

by Mark Bowytz in Error'd on 2014-11-07

Thanks to Jesse S. we know that the Sydney Morning Herald isn't afraid to do their testing in Production.

41 Comments - Last Comment @ 2014-11-10
06 Nov 2014
05 Nov 2014

The UntouchaDBles

by Dan J. in CodeSOD on 2014-11-05

Casa de Quixote is a small, state-run retirement community in La Mancha, in central Spain. Sergio continues his job as the sole developer of software managing hundreds of residents.

It's always a bonus when the same brave soul delivers multiple WTFs for our exasperation. Our very own man from La Mancha has been doing a lot of refactoring lately, retaining the GUI of his employer's Assistance-Management System while replacing the zany consultantware underneath with vastly improved code.

50 Comments - Last Comment @ 2014-11-07
04 Nov 2014
03 Nov 2014

Brick by Brick

by Remy Porter in CodeSOD on 2014-11-03

Jannik worked for a company known for a line of building products . They were an international company, which meant they had to make sure their website supported multiple languages. They embedded this information into the URL, eg

They tracked the list of valid languages in an array:

77 Comments - Last Comment @ 2014-11-12