16 July 2009

Turn off Flash player debug messages

If you use the Flash debugger version in your browsers, you often see the AS3 debug window on sites around the Internet. Anytime an exception is encountered, the debug window pops up. This happens almost daily with the MSNBC site.

There's an easy way to disable the debug messages without uninstalling the Flash debug player; these instructions are for Windows, though the same concept applies to the other platforms.
  1. Go to C:\Documents and Settings\[your_login_name]
  2. Open/create the file mm.cfg.
  3. Add the following to the file:
    SuppressDebuggerExceptionDialogs=1
If you need to re-enable the debugging, change the 1 to a 0.

02 July 2009

JSF- Disable Submit button, re-enable if validation fails

Ran into an interesting question: How do you disable a Submit button when the user clicks it, but re-enable it if validation fails? With JSF, it's actually simple. Here's an example with Richfaces:
  onclick="this.disabled=true"
oncomplete="#{facesContext.maximumSeverity == null ? '' : 'this.disabled=false'}"/>

Disable the Submit button on every click; then oncomplete, see if there were errors. If so, re-enable the Submit button.

01 July 2009

What is "infoviz?"

This great article from Amanda Schaffer describes the concept of information visualization, "infoviz" for short.
"Display an unwieldy mass of data in clever visual form and you may gain über-insight into questions you hadn't yet put into words... The field has long helped scientists, engineers, and businesspeople see the unseen as it emerges from complex data: Users may spot promising molecules for pharmaceutical testing, for instance, or pinpoint glitches in a supply chain."

30 June 2009

Periodic Table of Typefaces


SquidSpot.com has a very nice Periodic Table of Typefaces that you can purchase (name your own price). Here's a glimpse at it.