Perhaps "the world's local bank" whose acronym expands to "The Hong Kong and Shanghai Banking Corporation" could explain why they don't have a branch in Hong Kong or Shanghai?
MrBester
@MrBester
Best posts made by MrBester
Latest posts made by MrBester
-
RE: The world's local bank
-
RE: Dont trust the framework, to do the work(.net)
@samael said:
I wish the worst transgression at my place-of-work was throwing away the call stack. One developer (who, incidentally, is now my manager) used a nice idiom:
try {
...
} catch ( Exception ex ) {
throw new Exception( "Something failed", ex.InnerException );
}I suppose it's one step up from ignoring the exception entirely.
That's close to how you implement a Paula.NoQuackException.
-
RE: How big are these pills, anyway?
@Critter said:
A very easy way to fix this is to ditch the "Actual size" text, and place a dime next to the pills for comparative sizing.
Which doesn't help those who have never seen a dime and don't know what size one is (like me). Pardon me for not being up to speed on the relative sizes of small coins of a foreign currency.
-
RE: Not what you want to see on your internet banking site...
@rbowes said:
At least it's just an error in the navigation. I'd be a lot more worried if it was an error in the funds transfer or something. Unless of course the error happened after adding the balance to the other account but before removing it from the first one.
And in terms of the OS, the ".asp" should have given it away. It's rather uncommon to see ASP running on anything other than Windows.
No, it's worse than that: It's a .NET error occuring in some C# code that is running [i]inside[/i] a Classic ASP page (unless they've been [i]really[/i] strange and put ASP.NET code in a .asp file and forced it through the .NET engine just so they don't have to change the links from the old system)
-
RE: The Clbuttic Mistake
@valerion said:
I remember reading about a few places that blocked out searches for the town of sCUNThorpe...
AOL UK famously blocked UK users from putting Scunthorpe or Arsenal pretty much anywhere on their crappy systems (I think it included the account address page as well).
-
RE: Sometimes overanalysis hurts...
"The form only ever will submit a 'y', or a blank if the checkbox was cleared. Why re-assign
the submitted value?"Not quite right. If you don't check a checkbox, the "proper" behaviour is for the useragent to not send anything to do with the input whatsoever. This is different from sending "multirec=" as that should never happen. If it does, it's either a WTF from the browser or someone spoofing the form (take a lucky guess which one it is likely to be)
If you don't set a value (which as it is being used as a Boolean control, rather than a control list isn't such a strange concept) then a form sends "multirec=on" if it is checked and nothing if it isn't.
I do wonder what is wrong with using a Boolean value for Boolean controls rather than strings: If the checkbox value is sent AND == 'y' (or possibly "on") then var is true else false. Simple.
All that notwithstanding, the simple rule is "never trust anything from the client", just as you state. This isn't a personal security practice, it is a paradigm. If the reviewer doesn't know this then you have bigger problems than just their misunderstanding of how a browser POSTs a form...
-
RE: Another spam WTF
@fennec said:
Oh, I agree, though Wikipedia says it's not actually a made-up name (well, not exactly):
Wachovia, pronounced wah-KO-vee-yah, has one of the most unusual corporate names in the United States. The origin of the name is the Latin form of the German name Wachau. When Moravian settlers arrived in Bethabara, North Carolina in 1753, they gave this name to the land they acquired, because it resembled a valley along the Danube River called die Wachau. The area formerly known as Wachovia now makes up most of Forsyth County, and the largest city is now Winston-Salem.
So... a Germanic name starting with a W (and thus pronounced "V") is converted to its Latinate form. This retains the V as there is no W in the Latin alphabet ( == Vacovia), yet it is then spelled in the Germanic fashion, giving back the W and the aspirant C ( == Wachovia) and then pronounced phonetically as an English name. And people wonder why English is so hard for foreigners to learn (and for native speakers to spell)
-
RE: C# WTF
!! is used a lot when it comes to object detection in JavaScript, because you [b]do[/b] want a boolean as to the support of an object: try alert(document.getElementById); in a JS console and you'll most likely get something like:
[code]function getElementById{[native function]}[/code]
Whilst JavaScript is nice in that exists(something) can be evaluated as a boolean implicitly [like if(document.all)] using the double negative means that you can use the value as is rather than having to check if it isn't null later...
-
RE: The New IT Guy.
It's more common from the client:
(Regarding a bespoke site admin suite) "The <insert name> admin isn't working"
normally when it has been "working" fine for several months and someone (new) does something stupid. Needless to say, they won't tell you without you applying thumbscrews just [i]what[/i] they were doing before the app coughed and died, like attempting to upload JPEGs in CMYK format and expecting them to display in IE...
-
RE: New: Support for {True;False;FileNotFound}
@KattMan said:
If you ever need a third value you should no longer use a boolean or even attempt to. Perfect examples follow:
Some people like trying to save gender as "Male?" This gives you a true false, with false implying female. Problem is this is engineered wrong, gender is not male or otherwise, it is male or female (barring the other unusual chromosonal combinatations). Since the choices are Male and Female, it is not boolean since gender is neither true or false. Alternatively an Alive flag can be a boolean as you very specifically know if they are alive or dead and can represented as true or false.
This tool allows poorly engeneered applications to abuse the idea of a boolean, fine for a mid-process refactoring but bad in the long run.
Except that using male / female as [i]gender[/i] is confusing because it can also be part of the biological sex enum { freemartin, hermaphrodite, male, female }. Hell, with this you could add extra ones for eunuch, post-hysterectomy, chemically castrated etc..