Thursday, September 17, 2009

Blasted Checked Exceptions

Argh You Checked Exceptions!!!!

Finally someone makes the case against the bastards in a clear way: http://java.dzone.com/articles/checked-exceptions-i-love-you

The Citigroup SSO was the only project I worked on that did this. Basically every exception was a RuntimeException - and would redirect you to a standard error page - and log the problem. That's it - this isn't a pickup game of softball - why do I have to catch and rethrow?

Monday, September 14, 2009

My Favorite Computer Warning Message

I don't see this one often, but this is my favorite warning message spit out by computers. Well, that is since "(A)bort, (R)etry, (F)ail?" has faded into obscurity. (Note the domain name and IP address have been changed to protect the innocent.

I generated this one intentionally by reassigning a DNS record for one of my domains to a different public IP address. And I'm not sure but I think in older versions of the ssh implementation it used to say "monkey-in-the-middle attack".

BTW - this is one of the messages you should take very seriously if you didn't deliberately trigger it.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for xyz.com has changed,
and the key for the according IP address 196.168.0.1
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
da:ca:4b:b2:23:b2:ce:9d:95:09:77:7b:df:8d:c8:bf.
Please contact your system administrator.