Author Archives: Brian

Google’s handicap-accessible captchas

Google Handicap Captcha

Has anyone else noticed the cool handicap-enabled captchas Google is now using? Go to the Google AdSense login page and put in an invalid login and submit it. Do this twice. Now you have a handicap-enabled captcha (see picture above).

Now press the handicap button and wait a few seconds and you will hear voices speaking numbers. The one they read to me was 5 digits. Each digit was spoken by a male or female voice with background noise too. The numbers don’t match the letters in the visual captcha but they work – I logged in using the audio captcha.

Leave it to Google to come up with this. Nice job, Google.

UPDATE: Hmmm…I just tried it again and it’s not working anymore. No handicapped-accessible captchas anymore – not sure what’s going on.

[tags]geek, captcha, captchas, handicap, handicapped, accessible, adsense, google[/tags]

Overriding JComponent’s Ctrl-C Action

A little Java geekery here for my own reference and anyone else that needs it….

I needed to override the default CTrl-C (copy) behavior on a JList (though this should work on any JComponent) to copy what I wanted to the clipboard. After Googling and playing with it, I found that this works:

InputMap im = JLIST.getInputMap(JComponent.WHEN_FOCUSED);
ActionMap am = JLIST.getActionMap();
Action copyAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
String myString = "this goes to clipboard";
Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
cb.setContents(new StringSelection(myString ), null);
}
};
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_MASK), "Copy");
am.put("Copy", copyAction);