|
Luckily it wasn't trapped by only it's front feet...
veni bibi saltavi
|
|
|
|
|
Coming into the office after lunch, saw window washers half-way up the high rise next door.
If it rains today (good chance), is that a washout for them?
|
|
|
|
|
Does Mickey Mouse give people Disney spells?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
That's just Goofy.
Mongo: Mongo only pawn... in game of life.
|
|
|
|
|
Is Pluto still considered a dog, or has he been declassified?
Hogan
|
|
|
|
|
Not as far as the CIA is concerned...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
That's a dopey thing to say; you need to go and see a doc - that'll make you happy.
|
|
|
|
|
You're just being Grumpy.
New version: WinHeist Version 2.1.1 new web site.
I know the voices in my head are not real but damn they come up with some good ideas!
|
|
|
|
|
|
I suppose you heard Mickey and Minnie are getting a divorce?
Mickey claims she's f***ing Goofy!
New version: WinHeist Version 2.1.1 new web site.
I know the voices in my head are not real but damn they come up with some good ideas!
|
|
|
|
|
I feel I should get this, but I Donalderstand it...
|
|
|
|
|
Thread.CurrentThread.CurrentCulture = new CultureInfo("hu");
string mechanism = "HMACSHA256";
var v1 = mechanism.StartsWith("HMAC");
mechanism = "HMAC-SHA256";
var v2 = mechanism.StartsWith("HMAC");
Result : v1 is false, but v2 is true.
I was too lazy for using StringComparison.Ordinal, since, in my code all the strings were hardcoded... No way, ever, a bug would happen... Until an hungarian used it.
Apparently, if you are hungarian, "CS" is counted as 1 letter, BUT in unicode this is 2 letters...
modified 29-Apr-15 10:30am.
|
|
|
|
|
Might be worth checking Welsh (cy-GB) too..
Welsh Alphabet[^]
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Yes, Hungarian has a few letters that are 2 characters long and one that is 3. So depending on culture settings this can get taken into account (same for SQL Server etc.). Unfortunately, as with other culture or datetime related problems there are weird corner cases. For example the word "pácsó" (meaning curing salt) consists of two parts, "pác" and "só", so even though c and s are next to each other they are two different letters and pronounced as such. Needless to say the computer has no way of knowing this, so StartsWith("pác") returns false for "hu" culture setting, which strictly speaking is incorrect. Cultures are hard...
|
|
|
|
|
Cultures are hard...
Well, at this point I see no reason over not using StringComparison.InvariantCulture/CultureInfo.InvariantCulture in any code.
In fact, this should be the default.
|
|
|
|
|
And CCS is actually two CS's not a C and CS.
There are over forty characters in the Hungarian Alphabet and a fair few are dipthongs, with evan a three letter letter one as well - clickity[^]
veni bibi saltavi
|
|
|
|
|
Clearly, the solution is to keep Hungarians away from computers.
|
|
|
|
|
|
I would have to sell my stock!
Mongo: Mongo only pawn... in game of life.
|
|
|
|
|
veni bibi saltavi
|
|
|
|
|
|
Well, the problem is that even if you try to do it with this code :
if(Thread.CurrentThread.CurrentCulture.ToString().StartWith("hu"))
{
throw new HttpException("Not authorized");
}
You are not even sure it will works correctly.
|
|
|
|
|
When you are dead, you don't know that you are dead. It is only difficult for other people.
The same goes for stupid.
veni bibi saltavi
|
|
|
|
|
Ooohh, deep.. but how do you know that you don't know that you're dead when you're dead?
How do you know so much about swallows? Well, you have to know these things when you're a king, you know.
modified 31-Aug-21 21:01pm.
|
|
|
|
|
Whoever replies to Brent's message, please don't hurt his feelings by referencing the 'stupid' part of the post.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|