uh... no... this is simply just what happens when books that might have a market go out of print...
Posts made by Morbii
-
RE: Wow, folks must really love Peoplesoft
-
RE: Ternary operator
@PSWorx said:
I was actually talking about VB (6.0), not .NET. But I wasn't aware they added return and short cirquiting in .NET. Sorry.
The "real" WTF is that even though a number of people have since spelled circuit correctly, you've gone ahead and made a second attempt at forging new ground with "cirquit" anyway :O
-
RE: Ternary operator
@liserdarts said:
I’ve heard people discourage using a ternary operator. But I’ve never seen anybody go out of their way to use it.
Return IIF(UCase(Data.Web_enabled) = "Y", True, False)
Alrighty then.
-
RE: Expected -22 WTFs
@Reweave said:
This looks like the output of MS cl.exe, which version has this bug? Just tried with 14.0.50727.42, it shows the correct number of arguments (2).
@joe.edwards@imaginuity.com said:Can you dereference a void pointer like that (especially an uninitialized one)? This looks like the infamous "undefined behavior" I'm always hearing about. Things like this make me glad I've moved on to managed code. It precludes several broad classes of WTF.
You can't, which is why the compiler throws an error, there's no undefined behavior here.
You can't, but just to clarify, it has nothing to do with whether or not the pointer was initialized (a decent compiler may give a warning if you use an uninitialized pointer, but it's not illegal to do so).
-
RE: Amazing market research
LOL! :O That Walmart comparison is borderline racist!
-
RE: Travelocity: Always the lowest airfares
@ammoQ said:
I wonder how good their super-ultra-über-luxury-mega-premium-firstclass service really is. Does the price include a couple of semi-naked young girls dancing for the passenger? Two magnum bottles of champagne?
I'm guessing the really expensive ones are first class and the reason why some of them are 7 hours+ is because of the layover (note that all of them have one stop). Weird.
-
RE: Windows update : Got Windows XP SP 2?
Yep, I know. Which is why I speculated about the ActiveX control (I wasn't absolutely sure it was via ActiveX). Anyhow, my user agent reports Windows NT 5.1 - I run XP SP2 (which might mean the same thing). However, relying on your browser to state this seems like it would create several wtfs.
-
RE: Windows update : Got Windows XP SP 2?
I may be proven wrong, but I don't think there is a way to determine what OS/SP you have via the browser. Maybe through an active X control or something...
-
RE: Yahoo Mail without mails
@Anja said:
If you haven't JavaScript turned on, you can't read them.
Which would probably account for about 90% of webpages nowadays. The WTF is that you turned it off and thought you would have a chance.
-
RE: Another spam WTF
@Cloaked User said:
@Morbii said:
I Love when I get the ones from "Fifth Third Bank" (!!!)
I don't get it - you mean this Fifth Third Bank? Sure the spams are phishing, but the bank's real...
Amazing.. I assumed even the bank was fake... stupid name (and yes I've seen some of the other posts).
-
RE: Another spam WTF
@craiga said:
There's nothing WTF-worthy about this particular one. I get dozens like this. What's really funny is when you get such a badly crafted phishing email that they haven't spelled any words correctly, including the name of the bank in question. For instance, I've had a couple from Wels Furgo and one from the Bank of Amrieca.
I Love when I get the ones from "Fifth Third Bank" (!!!)
-
RE: Functions Considered Harmful
@burnmp3s said:
@Yorinaga said:
Somehow, my earlier post linking to the sourcecode got deleted...
The author of the program even followed up my post with the flow-charts, so it's not like he was objecting..
I saw the flowcharts, and I was wondering why nobody had posted the code. It would be a shame if this one gets deleted because that code is more genuinely WTF than 90% of the stuff that gets posted here.
So let me get this straight: A guy comes to a forum about bad code and posts an off-topic post complaining about censorship. The members of the forum post on-topic bad code from the guy's public website, and they get censored? My irony detector is off the charts.
You do realize that his post[s] and his site are a joke, right? Right???
-
RE: _CRTDBG_MAP_ALLOC useful information
Found this on an MSDN forum, and it looks correct (ie, it appears to be the same content that the IDE would inject into files automatically - however, I don't see it anymore and mine seems to work... maybe just dumping all of it into stdafx.h would work or something):
The setup described in that document is enough to see the source file/line for memory allocations made via malloc(). For allocations made via 'new' it is not enough, additionally you have to do something like the following:
1. After #include <crtdbg.h>:
#define DEBUG_NEW new(_NORMAL_BLOCK, THIS_FILE, __LINE__)
2. At the beginning of every source file with memory allocations:
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endifA wizard-generated MFC application can be used as a sample.
Also there is a simpler way - use a tool that can setup everything for you. For example, take a look at this one:
-
RE: WTFy story
Regardless of the license, the wtf is the consultant himself. You would think if he's setting up computers for a business that he might have a clue as to what he should be buying and what it will require...
-
RE: Is it a Number?
I work with a "programmer" who has garbage like this everywhere. I may have even posted one just like it, only to not have it show up on the front page. Another gem I found was, rather than just making sure to set a pointer to NULL when he deleted it, he would "call any old function" (actual comment) on the pointer in a try/catch block to see if it threw an exception.