Server Help

Trash Talk - The Daily WTF

Mine GO BOOM - Fri Oct 08, 2004 12:41 pm
Post subject: The Daily WTF
http://thedailywtf.com/

Shows stupid code - Check
Updated daily - Check
Submissions from Smithy - PENDING

You know your job. Now go do it.
k0zy - Fri Oct 08, 2004 2:03 pm
Post subject:
oh my god. rofl, that's just great!

Quote:
//return whether a double is negative
bool IsNegative(double n)
{
string nStr = n.ToString();
if (nstr.IndexOf('-', 0, 1)) return true;
return false;
}


Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole....
k0zy - Fri Oct 08, 2004 2:17 pm
Post subject:
Quote:
CREATE PROCEDURE sp_get_order (
@OrderID int
) AS

select * into #temp_order from Orders
delete from #temp_order where OrderID<>@OrderID
select * from #temp_order
drop table #temp_order

This one's great, too.

select * from Orders where OrderID = @OrderID would have been too easy
Dustpuppy - Fri Oct 08, 2004 8:16 pm
Post subject:
Haha I just found this in SH/SC, it's a pity it browsing isn't easier.
Smithy101 - Fri Oct 08, 2004 8:32 pm
Post subject: Re: The Daily WTF
Mine GO BOOM wrote:

Submissions from Smithy - PENDING


I suppose your gonna start a message board about me?
lp_street_soldier - Sat Oct 09, 2004 5:36 am
Post subject:
...OMG, WTF? SMITHY'S AGE CHANGED FROM 18 TO 19 THEN TO FUCKING 11!!!111111 WTF?
Mr Ekted - Sat Oct 09, 2004 6:18 am
Post subject:
Great site. Looks like the same people who post bot questions here. icon_surprised.gif
Cyan~Fire - Sat Oct 09, 2004 2:22 pm
Post subject:
I would submit this, but I believe it's the recommended C++ method icon_confused.gif

Code: Show/Hide
template <class T>
std::string ToString(T obj)
{
   std::stringstream ss;
   std::string str;

   ss.unsetf(std::ios::skipws);

   ss << obj;

   ss >> str;

   return str;
}

D1st0rt - Sat Oct 09, 2004 4:22 pm
Post subject:
ROFL



and no, I'm not leeching
Smong - Sat Oct 09, 2004 5:30 pm
Post subject:
Here is my contribution:
Code: Show/Hide
int waste_valuable_time_posting_spammy_messages(int postcount)
{
    return postcount + 1;
}

CypherJF - Sat Oct 09, 2004 7:14 pm
Post subject:
harhar
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group