Checkout our new category - Hot Music Videos!
Here you will find hottest and sexiest music videos we can find on the internet!
>>>WATCH HOTTEST AND SEXIEST MUSIC VIDEOS HERE!!!<<<

’Geek section’ Category

SQL fanatics

There’s always a couple of ways to solving a problem. Right? So why not do everything you can in SQL. Takes the pressure of the server-side programming … rofl

Source: TheDailyWTF.com

// Check if date is valid!
String allowed = "not allowed";

sql = "SELECT IF(DATE(?) <= DATE(?),'allowed','not allowed')";
stmt = con.prepareStatement(sql);
stmt.setString(1, firstDate);
stmt.setString(2, terminationDate);
rs = stmt.executeQuery();

while(rs.next()){
allowed = rs.getString(1);
}
rs.close();
stmt.close();

if(!allowed.equalsIgnoreCase("allowed")){
throw new Exception("Termination Date to early!");
}

letter_array

Source: TheDailyWTF

“My company sells access to a massive PHP application that was built a few years ago by The Originals,” writes Magnus Bergmark. “The application has everything: slow interface, quirks-mode invalid HTML4, hidden POST forms for every link, you name it.”

“The code consists of a few files arranged in a proper developmestuction environment, with thousands of lines in each file. Comments are mostly devoid, but I found a line with a comment about one-and-a-half thousand lines down.”

$letter_array = array(
“A”, “B”, “C”, “D”, “E”, “F”, “G”, “H”, “I”, “J”, “K”, “L”, “M”,
“N”, “O”, “P”, “Q”, “R”, “S”, “T”, “U”, “V”, “W”, “X”, “Y”, “Z”, “!”);
// A B C D E F G H I J K L M N O P Q R S T U V W X Y Z !

Magnus adds, “at least the comment is accurate. That’s more than I can say about the others.”

Small But Rapidly Growing

Source: TheDailyWTF.com

The job listing seemed pretty normal — small-but-rapidly-growing software company needs top-notch developers to help expand flagship product — but there was one little detail that seemed a little… off. Near the bottom of the ad, it readnote that we do not make custom-made software. David didn’t think much of it at the time, especially since the company’s website also reiterated that same point. He figured it must have been some sort of industry thing.

Read the rest of this entry

RegExp From Down Under

New “pearl” from TheDailyWTF.com. Simplest solution is always the best.
Guess no body told this guy.

How to check value entered in input box? .. Hmmmm… well now. Let’s see…

/**
  *Checks to see if Australia is typed into the other country box
  */
  function checkContactCountry(inputBox)
  {
    var validator = new RegExp(
         /^(A|a)(U|u)(S|s)(T|t)(R|r)(A|a)(L|l)(I|i)(A|a)
          |(N|n)(E|e)(W|w)(Z|z)(E|e)(A|a)(L|l)(A|a)(N|n)(D|d)
          |(N|n)(E|e)(W|w) (Z|z)(E|e)(A|a)(L|l)(A|a)(N|n)(D|d)$/);

    if(validator.test(inputBox.value))
    {
         alert("Your Residential Address must be outside Australia. "
             + "Enter your residential address outside this country,"
             + "or visit redacted-travel.com.au to make a booking if "
             + " you live in Australia.");
         inputBox.focus();
         inputBox.select();
    }
 }

I still don’t know if this guy is for real or not. You be the judge.

hard drive weight increasing

Manual str_replace()

There are alway several ways to solve the problem…

Source: TheDailyWTF.com

The Daily WTF

The Daily WTF

I just love this website. Every now and then you can come across some hilarious articles from computer / programming / etc.
Some of my posts come from this great blog.

Worth bookmarking.

2 GB memory stick

Source: The Daily WTF

That’s called – 50% percent … erm .. discount?

2 GB memory stick

2 GB memory stick

High Values of Zero

Curtosy of  The Daily WTF

“This the statement I received with a check from a well-known e-tailer,” John Sadowski wrote, “I believe high values of zero are involved but I’m not good at those complicated maths.

It’s certainly understandable that my credit union requires a couple days to process signing up for bill pay,” notes Joe H “I’m not entirely sure what it’s asking me to disagree with here though.”

Ads up

Ads up