DevDisasters

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 
   System.EventArgs) 
   Dim QnumAs2 As Int16 = 
    Server.HtmlEncode(Request.
    Cookies("QnumAs").Value)
   lblError.Visible = False
  If answer1.Text = 
    "" Or answer2.Text = "" Then
    Beep()
    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
    Beep()
    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

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube