Check out this page: http://www.functionx.com/vjsharp/
Can someone explain the connection between the content of this page and the image at the top?
Check out this page: http://www.functionx.com/vjsharp/
Can someone explain the connection between the content of this page and the image at the top?
@Farmer Brown said:
@A Wizard A True Star said:I very much doubt that developers who don't work for Microsoft developed this add-on
I'm sorry. Did you not read the site or the quoted portions of the site I posted above?
I'm sorry. Are you just an ass? As mallard pointed out, several hundred projects on CodePlex are developed by Microsoft. Check out the link he posted. The "reubenk" on that page is [url="http://blogs.msdn.com/crm/pages/bio-reuben-krippner.aspx"]Reuben Krippner[/url], who indeed works for Microsoft.
@Farmer Brown said:
So you are picking on a tooltip in a free, open source community?
I very much doubt that developers who don't work for Microsoft developed this add-on for Microsoft CRM in their spare time. Or maybe you mean that just because it's free software, it's above criticism?
I just ran a SQL Reporting Services report created by Microsoft, and I found an interesting tooltip on one of the headers.
If you have an installation of Microsoft CRM, you can download the report and see it for yourself: http://www.codeplex.com/crmaccelerators/Release/ProjectReleases.aspx?ReleaseId=20449
@NeoMojo said:
Shriley the loop will never be used since b starts off as < a. Or am I missing some in joke?
I just executed the following query against an MS SQL 2000 database:
select cast(1112222 as varchar(6))
Yes, I know it's a WTF that a seven digit number is being cast to a six character string.
What really made me go WTF! is the result this query returns:
------
*
(1 row(s) affected)
I could understand SQL converting the number to '111222', NULL, or throwing an error. But it changed a number into an asterisk????
Okay, so I'm fielding support calls for a web app where development was outsourced.
One page is a very simple "upload spreadsheet" form. One control on the form is "Overwrite existing file?" and it's... a textbox.
Yes, the user must manually type either "Yes" or "No" into a textbox to indicate if the existing file should be overwritten. Hmmm.. if only there were some UI control specifically designed to allow the user to pick one of two possible values. A check..
check.. something.
Anyway, that's not even the worst part. One of our users called up complaining that after he entered "Yes" in this field and clicked the upload button, nothing happened. No message, no script error, nothing.
Turns out the validation on this textbox was failing because the user had the gall to enter "Yes" with a capital Y. When you enter all lowercase "yes", the upload works just fine. And the developer forgot to actually make the error message visible when validation fails, which is why it looked like nothing was happening.
And the absolute worst part? The label next to the textbox actually says, "Overwrite existing file? (Enter Yes/No)"... with a capital Y.
Come on, it's simple. Just edit the query string to say thisSpeed=-1. Problem solved!
I guess none of you have used the SqlBoolean type in .NET.
That's what I originally thought the original post was about when I clicked on the link.
Just let this sink in for a moment, and then imagine the kind of WTF code you could write:
Property Value
true if Value is False; otherwise, false.
So what's the RegExp solution? Because I think I would rather maintain something like this than try to figure out a RegExp expression that somebody probably copied off the web...
(All psuedocode, of course)
<FONT face="Courier New">switch ($category[0].toUpper())
{</FONT>
<FONT face="Courier New"> case "A", "E", "I", "O", "U":
echo " an ";
break;</FONT>
<FONT face="Courier New"> default:
echo "a";
break;</FONT>
<FONT face="Courier New">}</FONT>
RegExp here is probably like using a chainsaw to sharpen a pencil.
Though, I don't think this solution would work for all words. I can't think of any, but I'm sure there are many words that don't start with a vowel that would be preceded by "an". Like "historic" if you happen to be in the UK.
I came across an article [ http://www.databasejournal.com/features/mssql/article.php/3076421 ] that suggests using this lovely WTF-ish code in MS SQL Server to calculate the "Last Day of Current Year":
<FONT face="Courier New">select dateadd(ms,-3,DATEADD(yy, DATEDIFF(yy,0,getdate() )+1, 0))</FONT>
Am I missing something here? Why in the world would you want to use the code above instead of the following?
<FONT face="Courier New">select cast( cast(year(getdate()) as char(4) + '-12-31' as datetime )</FONT>