The Mysterious Beeping Server

The rumor of the beeping server started out as a hushed whisper between network administrators. First, it was taken seriously. When beeping comes from a server room, something is either broken or going to break soon. However, everything -- the servers, switches, UPS units -- all checked out.

Soon, it became the stuff of urban legend and took on a life of its own. Some said that the beeping foretold that a major outage was coming. Others said that the number of beeps signaled how many points the company's stock would dive. Others dismissed the rumors as being the result of too much coffee and too little sleep on the part of the admins.

Eventually, the rumor worked itself out into the rest of the IT departments. When the rumor finally reached Jake, he felt a knot slowly forming in his stomach. He knew rumors of the beeping server must be true ... after all, it was his fault.

I'm Still Here
Awhile back, Jake had a brilliant idea: instead of writing out to the crowded common log file, why not try something different? His solution: whenever a condition was met, add a call to a Beep function. It worked great! His app happily chirped on command and saved him the pain of looking through the output logs for an "I'm Here" message.

He was positive that he had remembered to remove his genius additions, but a quick scan of source control found he had missed two function calls:

  Private Sub btnRun_Click(ByVal  
   sender As System.Object, ByVal e As 
   Dim QnumAs2 As Int16 = 
   lblError.Visible = False
  If answer1.Text = 
    "" Or answer2.Text = "" Then
    lblError.Text = 
     "ERROR: Answers can NOT be BLANK!!!"
    lblError.Visible = True
    Exit Sub
  End If
  If (QnumAs2 > 2 And answer3.
    Text = "") Or (QnumAs2 > 3 And 
    answer4.Text = "") Or _
    (QnumAs2 > 4 And answer5.
    Text = "") Then
    lblError.Text = 
     "ERROR: Answers can NOT be BLANK!!!"
    lblError.Visible = True
    Exit Sub
  End If

Server-Side Function
The conditions were not often met; they were met only when a user failed to fill out all data fields, which was the good news. However, because the Beep function runs server-side, the resulting sound only appears on the physical box that's running the application.

From then on, Jake resolved to make sure that he removed his former debugging code next time he was in the application, but until then it was fairly amusing that he could mystify senior-level administrators with only two lines of code.

About the Author

Mark Bowytz is a contributor to the popular Web site The Daily WTF. He has more than a decade of IT experience and is currently a systems analyst for PPG Industries.

comments powered by Disqus


  • .NET Core Ranks High Among Frameworks in New Dev Survey

    .NET Core placed high in a web-dominated ranking of development frameworks published by CodinGame, which provides a tech hiring platform.

  • Here's a One-Stop Shop for .NET 5 Improvements

    Culled from reams of Microsoft documentation, here's a high-level summary of what's new for performance, networking, diagnostics and more, along with links to the nitty-gritty details for those wanting to dig in more.

  • Azure SQL Database Ranked Among Top 3 Databases of 2020

    Microsoft touted the inclusion of Azure SQL Database among the top three databases of 2020 in a popularity ranking by DB-Engines, which collects and manages information about database management systems, updating its lists monthly.

  • Time Tracker Says VS Code Is No. 1 Editor for Devs, Some Working 15+ Hours Per Day

    WakaTime, which does time tracking for programmers, released data for 2020 showing that Visual Studio Code is by far the top editor/IDE used by its coders, some of whom are hacking away for more than 15 hours per day.

Upcoming Events