Apr
7
comment Converting a List<int> to a comma separated string
What about StringBuilder.AppendFormat?
Apr
1
awarded Yearling
Apr
1
awarded Yearling
Mar
17
comment NaN to Bool conversion: True or False?
But does NaN constitute a value at all? It's similar to NULL in typical database systems. I was explicitly taught that NULL is not a value, but the absence of a value. Unless there's evidence to the contrary, I think we can claim the same about NaN. As such, I argue that this leaves the behaviour of convert NaN to a bool undefined, unless there's something elsewhere in the spec that covers the issue.
Mar
15
comment Is a primary key automatically an index?
"Every table needs a clustered index" "Note: a table without a clustered index...." You've contradicted yourself there - what did you mean? And as for every table needing a primary key - in my experience, SQL Server will allow you to create a table without one, as will most DBMSs.
Mar
13
awarded Popular Question
Feb
22
comment Why does the 260 character path length limit exist in Windows?
@IanBoyd Exactly. So recompiling programs that use this API so that they can handle longer pathnames is just the same. As such, it makes no sense that MS singled out this particular constant to decide not to change.
Feb
10
comment Why does the 260 character path length limit exist in Windows?
@IanBoyd Surely there are far more programs that rely on filenames being 8.3, or pointers being 2 bytes in size, or ints ranging from -32768 to 32767, than this?
Jan
22
comment Why does the 260 character path length limit exist in Windows?
@IanBoyd How does the use of the symbolic constants (MAX_PATH etc.) rather than hard-coding the numbers not achieve source code compatibility?
Jan
21
comment Why does the 260 character path length limit exist in Windows?
@IanBoyd There's a serious flaw in that argument - it doesn't explain why it couldn't be changed between Win16, Win32 and Win64. Of course, the Win16 implementation in Win32 OSs would need to raise an error in some way if the path is too long for the Win16 limit. Besides, binary compatibility has been broken a few times in the course of the history of Windows. For instance, Windows 95 can't run programs built for Windows 2. I get the impression that 64-bit versions of Windows can't run Win16 apps.
Jan
21
comment Why does the 260 character path length limit exist in Windows?
A good insight into where the value 260 came from, but it doesn't actually answer the question. Why is the length of paths limited at all (other than by available memory in which to store the path)? Even if there was a limit under MS-DOS, why haven't MS been able to change the fact in this day and age? Even if it would break APIs that write the path into a char array of a fixed length, they could have introduced a new API that works in a more flexible way, and deprecated and later removed the old one. Or is the transition just still a work in progress?
Dec
29
comment PHP cURL: Get target of redirect, without following it
It looks to me as if the page on which you were trying to block redirection was using a meta-refresh, rather than an HTTP redirect. The latter is what I am dealing with.
Dec
19
awarded Excavator
Dec
19
revised How do you pronounce the "ng" in "language" and "English"?
clarify which 'g' in 'language' we're talking about it
Dec
18
awarded Teacher
Dec
9
comment How does one generate vertical quotes in Word?
@sq33G Notepad++ has a plugin called NppExport, which does the same if you select 'Copy HTML to clipboard'.
Dec
9
comment How does one generate vertical quotes in Word?
You will still need to switch off the option under 'AutoFormat as you type' for this to work; otherwise, Word will change them to 'smart' quotes while carrying out the replacement operation.
Nov
20
awarded Caucus
Nov
6
awarded Supporter
Oct
24
comment Do you still "know" something you have temporarily forgotten?
In other words, "I know it" is ambiguous - does it mean "my conscious mind knows it" or "my subconscious mind knows it"?
1 2 3 4 5