Rixstep
 About | ACP | Buy | Industry Watch | Learning Curve | News | Products | Search | Substack
Home » Heroes Banquet

The Daily WTF

Bookmark this one: it's soul food.


Get It

Try It

Most people have heard of The Daily WTF. Many people may feel they don't have the time to browse through it. They're mistaken: for soul food like this time is of no importance. The snippets they publish are marvelous. So are the pics. Here are a few pics and snippets.



// TODO: why does this function call accept
//       a request and return a response?
#define NEGATIVE_ONE 0
if (Math.max(1, 2) == 2) return;
If Not IsPostBack Then
  If Not IsPostBack Then
    LoadReport()
  End If
End If
hi all,

IntTemp = Int((255 * Rnd()) + 1)

I used above ASP.NET code. Problem is in " Rnd() "
Rnd() value is changing everytime.

What is the alternative for Rnd()?
OR How will stop Rnd() value changes at everytime?
// Function to confirm before deletion
function Custom_Confirm(message)
{
    // Show confirmation message
    var confirmation = confirm(message);

    // If confirmed then return false to stop form submit
    if (!confirmation)
    {
        return false;
    }
    else
    {
        return true;
    }
}
Boolean answer = new Boolean(
   inp.equals("true")
      ? new Boolean(true)
      : new Boolean(false)).booleanValue();
#define ZERO -1
  /* Prepare for return. */
  return;
}

Bookmark The Daily WTF now.

See Also
The Daily WTF

About | ACP | Buy | Industry Watch | Learning Curve | News | Products | Search | Substack
Copyright © Rixstep. All rights reserved.