It's been a while since I've done a smorgasbord post, so here goes ...

DM discovered the source of some rather ... unprofessional ... error messages in the log files ...

  /* SNIP: 15 lines */
  //How did this happen??

A former developer on Chris' team made up his own way of handling align="center" ...

Please click the 'Print' button to print the Licence Terms and Conditions and sign to accept where indicated.
<input type="button" value=" Print " onclick="window.print();">

The customer service at Jason Harmon's had been telling clients that the bad data coming seen in their system was a configuraiton problem, not a code problem. A client finally complained enough to get the problem pushed back to development where Jason learned that this just might be a coding problem after all ...

private bool IsValid() 
  return true;

Shayne Studdard chuckled at the original authors comment while porting the old ASP code into the ASP.NET ...

var aLeapYears = 
new Array(1900,1904,1908,1912,1916,1920,1924,1928,1932,1936,
2060) //please god let this be far enough??

Chris Reigrut recalls a conversation with a technical support guy years back when he had a problem with one of their products ...

Chris : We're having problems with the new version of your software.
Support : That can't be. We didn't change anything.
Chris : Well, I uninstalled the new version and put the old one back on, and the problem went away. I then reinstalled the new version, and the problem came back.
Support : No, it can't be our software. We didn't change anything!
( ... Lots of back and forth about my analysis of the problem ...)
Chris : So you're telling me that you sent out an update, but you didn't change anything. If that's the case, what's the point of the update?
( ... More back and forth, Support getting more and more exasperated ...)
Support : I'm telling you, nothing changed!!! The only difference between the old version and the new version is that the old version was in COBOL, and the new one is in C!!!

Tristan Harmer was a bit mystified by this metaphysical comment ...

        If iFile.Exists Then
            fileSizeBytes = iFile.Length.ToString
            'Actually this test was done earlier
            ' - the code wouldn't be here if it didn't exist
            Throw New FieldAccessException("File does not exist.")
        End If

And I suppose I'll wrap it up with this bit from TomA, who shows us yet another way to zero-pad a number

$limit = 9999;
  $number = "$i";
  if ($i<10) $number = "0".$number;
  if ($i<100) $number = "0".$number;
  if ($i<1000) $number = "0".$number;
  if ($i<10000) $number = "0".$number;
  if ($i<100000) $number = "0".$number;
  [ ... snip ...]

(Note: next week may be light posting or repeats, due to the Holidays and all)

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!