- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
A crude attempt at security?
Admin
Heisenbug!
Admin
How long had this been a problem? Not very wtf; you hard code something like that you'll always have IDE to Release compile issues, as well as speed. I compile my computational simulations to run outside the IDE, get ~20% speed boost.
Admin
I can't wait to see how people try to defend this one.
Admin
Admin
The Real WTF is the misuse of 'whom' in the title.
Admin
is this an attempt to let us know that you develop computational simulations?
Somthing on the line of "hey guys, i develop computational simulations" would have been better.
Admin
I'd defend it via the many programs on the typical hard drive that have some sort of "if (!strcmp(argv[0], "something"))" magic going on. For example, vi, vim, ex, and view are the same program that behaves differently depending on invocation. tex, latex, pdflatex, and a half-dozen other programs are all just different paths in the pdftex executable.
As for having an IDE that arbitrarily changes argv[0], wtf?
Admin
It's not a completely crazy bit of code... busybox, anyone?
Great software package, emulates just about any linux program that you'd need in an embedded/lightweight device, and works (in the main mode) by checking the calling name.
$ make busybox ... $ ln -s busybox less $ ln -s busybox vim $ ln -s busybox login $ ln -s busybox grep
etc....
Admin
whoa. whose idea was THAT?! it reminds me of a few programs I've seen that act different if you run them via a symlink or directly... making your app decide how to behave based on argv[0] considered harmful.
Admin
Admin
TRWTF is the article's headline. It should read "Who Should I Say is Calling?". The word "whom" is only for indirect objects, as in "Whom can you trust?", or "Whom should I tell you called?".
Admin
Who should I say is calling; not whom. Don't use $10 words if you don't know what they mean. God!
Admin
Can we drop the grammar check? I do this too -- quietly. I think it's fun to constantly be testing my mad grammar skillz. It's like the interweb is Cato to my Inspector Clouseau.
However, I don't prance around showing off my knowledge.
Admin
Anyone that develops in Visual Studio should have a full understanding of the Visual Studio host process and when and how it should be used (and I hope you realise that it does a lot more than just add 'vshost' to the filename!). Accordingly, any good VS user should understand that their executable will have a different name when running through the IDE, and possibly under other circumstances as well. The WTF here is that some moron hard-coded a value that could change at runtime. That's not a WTF, it's just a fact of life when working with crap developers (you may detect that I speak from experience here).
Admin
Admin
He he...
Maybe this is a very clever attempt to execute development sql when running from the IDE, instead of live sql... or...not ;)
Admin
Hey I learned something! Guess I'm done for the day.
Admin
Admin
Admin
Uhh... why? Is there some good reason to not split this into two separate stored procedures?
Admin
Admin
Seriously...as soon as I read the title of this article I thought "Well crap...whether it's correct or not, there will be a group of insufferable know-it-alls who will point and laugh to show how sharp and witty they are"
Seriously, ya social mutants: It is intrinsically rude to point out grammatical errors. I am aware that the internet is not at the apex of courtesy, but for chrissake...the grammar checks are getting a little ridiculous around here...
Admin
This is not actually uncommon. I have a plethora of Access databases (ugh) that connect to Oracle (ugh again) and the "security" is to actually check if the login is coming from Acess.exe.
It took me nearly 2 days to figure out why I couldn't login via SQL*Plus (ugh!!@#!@#!@#!@#!) but could through the "Application".
And no, they won't let me change that.
Admin
I'd say it's intrinsically rude to use terrible grammar, myself.
Admin
Ok folks, simple grammar rule for who/m:
Insert "he" or "him" at the first point after who/m where it makes sense. If "he" makes sense, use who; if "him" makes sense, use whom.
Whom Should I Say is Calling? Whom [Should I Say (He/Him) is Calling]? --> he --> Who
Whom is it? Whom [is it (he/him)]? -> him -> Whom
Admin
You're right. If I presented an article in a forum such as this, where the readers are notorious for their knowledge of syntax, it would be incredibly rude of me to not at least attempt some semblance of proper usage and spelling.
However...it is just plain wrong to go on about correcting trivial and common errors. This is as bad as correcting a fragmented sentence or a split infinitive in everyday conversation.
Moreover, the corrections are not being done to educate, or save the writer from embarrassment. They are made with a smug tone to make the correcter feel a little better than the writer.
It is becoming an annoying cliche around here, not unlike the CAPTCHA at the bottom of a comment.
Admin
Your second example is incorrect.
Correct: Who is it? He is it. It is who? It is he.
This is an example of predicate nominative, in which the nouns on both sides of the verb are nominative.
A problem can sometimes arise when the two nominatives each take a different form of the verb. In these cases, the verb should agree with the subject (who or what the sentence is directly about).
Correct: It am I. I am it.
Incorrect: It is I. I is it.
Admin
This thread now has more to do with one little grammatical error than it does with the actual content of the article. I hope you sad little nitpicking losers are happy.
Admin
And what if, like in this case, it is 'it' (the calling exe)?
Whom [Should I Say (It) is Calling]? -->
Who/Whom? What/Wham?
</NonEnglishSpeakingProgrammerMonkey>Admin
http://en.wikipedia.org/wiki/Declension
Admin
Admin
It may, perhaps, be rude to point out grammatical errors in an email or off-the-cuff forum posting. However, the comment here was directed at the author of an article posted for consumption by thousands of readers of a for-profit online publication. It's not unreasonable to expect the authors of these articles to comprehend and follow the basic grammar rules of their chosen language while mocking the language abuses of others.
Admin
Did anyone notice that Whom was incorrect in the title? How about somebody give us a grammar lesson on the correct way to use who/whom?
:P
Admin
Admin
But that would be INCONCEIVABLE.
captcha - tristique - triple the mystique
Admin
Addendum (2009-01-26 11:09):
Is Alex really a god? I mean, he's really cool and all that, but a deity? Wow!(Snicker. And I didn't even get involved in the whole who/whom thing.)
Admin
But that would be INCONCEIVABLE.
captcha - incassum - Incassum ade a mistake, I'll try again
Admin
It is rude to make bodily noises in polite company, but it is also rude to comment on someone else's bodily noises. See where I'm going with this?
Admin
Application of a real world example.
Admin
Make sure you're in impolite company??
Admin
Admin
I'll try to tip the scales towards Lolcats
[image]Admin
http://en.wiktionary.org/wiki/prepend
Admin
Admin
Addendum (2009-01-26 11:40): I see the poster three above me came to the same conclusion while I was writing my reply!
Admin
Q: Knock, knock. A: Who's there? Q: Fuck. A: Fuck who? Q: Fuck WHOM!
Admin
Admin
It doesn't change it. Visual Studio executes code inside a host process; the host process is called ${ProjectName}.vhost.exe. I have no idea what voodoo the wrapper carries out. It's not part of the actual project and won't be included in the project files if you build an installer.
Admin