Shame on you, Microsoft engineers, for not being able to verify that a function has no side effects! I mean, this cannot be an unsolvable or hard problem, can it?
IMil
@IMil
Best posts made by IMil
-
RE: Fabs has side effects
Latest posts made by IMil
-
RE: Fabs has side effects
Shame on you, Microsoft engineers, for not being able to verify that a function has no side effects! I mean, this cannot be an unsolvable or hard problem, can it?
-
RE: I ARE ANGERED (YouTube and their coddling of fraudulent copyright trolls)
It's not clear to me what you are complaining about.
Some bot checked your video for copyrighted material and gave a false positive. Oh, the humanity!
You would like each such case to be rechecked by a human being? Yeah, and I would like the traffic lights to turn green when I approach them. -
RE: SQL injection as a feature
What exactly do you find surprising? Parameters are used to substitute values, not arbitrary query parts. Otherwise they would not protect against injection, would they?
So, each one of the following "prepared statements" is invalid:
SELECT * FROM ? WHERE ANSWER = 42
SELECT ? FROM QUESTIONS WHERE ANSWER = 42
SELECT * FROM QUESTIONS WHERE ANSWER ? 42 ;;hoping to replace with "=" or "<"Only the next one is correct:
SELECT * FROM QUESTIONS WHERE ANSWER = ?
-
RE: .net parameters
@dhromed said:
Because strained, swiss-cheese prosaic metaphors are the best way of getting a point across.
Sorry for not coming up with a more original one.Anyhow, I apologize to the OP if it seems that I was mocking him. His question is actually quite reasonable for a person starting to learn .NET. It's his colleagues "with several years of .NET experience" who surprise me by not knowing the fundamentals.
-
RE: .net parameters
In order to hang a picture on the wall, you have to insert a long hard object in the wall, as expected.
However, you need to be aware of the object type.
There are nail type and screw type objects. A nail type object has to be hit hard with a hammer. A screw type object has to be rotated with a screwdriver (which seems quite an inefficient and slow method to me).My roommates didn't believe me when I told them (they have been doing room repairs for several years already).
I'm not sure I understand the reasoning for doing it this way. Is this just to avoid hitting myself on the thumb?
-
RE: I know Google Maps wtfs are lame, but...
I guess the pathfinding algorithm became a bit... superstitious.
-
RE: Excel 2007's Undo Feature
@bstorer said:
@Jaime said:
Try opening two spreadsheets with the same file name someday.
God that fucking annoys me. If that isn't fixed in 2010, I'm going to burn down the universe.It won't be fixed neither in 2010, nor in 2100. Get a lighter, you'll need it.
The reason is that VBA programs may reference data in other spreadsheets by file name only, without path and extension. So allowing to open multiple files with the same name would screw up thousands of existing VBA programs in most exciting ways. The current limitation, however inconvenient it may be, is relatively easy to work around, so the choice is pretty obvious.
UPD: seems I was wrong about extensions, book.xls may coexist with book.xlsx . However, for the files in different folders you still have to fire up a second Excel instance.
-
RE: Betterwhois. Whois of SATAN
@danixdefcon5 said:
I thought 666 was read-write perms for everyone!
And isn't it pure evil from security point of view?
-
RE: What's the for loop for?
@ammoQ said:
Now get rid of the useless variable, and we are done.bool TestAlignment()
{
return TestAlignment(0) && TestAlignment(1);
}
Nice code; the only problem is that it isn't correct. In the original post, the SetAlignment() procedure was called for both 0 and 1; your code may skip the second call. -
RE: Close setup before continuing with setup
@Eternal Density said:
"Close setup before continuing with setup" messages are a dime a dozen.
Yes, it's almost as exciting as "Error: operation completed successfully".