This version of the site is now archived. See the next iteration at v4.chriskrycho.com.
Topic: “Public Service Announcements”

PSA: Android browser and soft hyphens

The default Android browser does not love soft hyphens (Unicode: U+00AD, HTML: ­ or ­). This means, for anyone using the good old PHP Typography tool or its WordPress plugin equivalent, wp-typography, that you’re in trouble if you have mobile viewership at all. While it’s nice to have a sensible hyphenization algorithm at play – the sort that can prevent widows – it’s a bad idea to be running anything that doesn’t support mobile these days. Read on, intrepid explorer →

PSA: jQuery Validate 1.10.0 ‘accept’ method

Just an FYI for any other potentially confused developers out there: the jQuery Validate plugin’s documentation is out of date as concerns the accept() method: I just spent an hour trying to figure out why accept() it isn’t working… Of course, it works just fine, but I was missing an important piece of the puzzle.

Though the method used to be part of the main validation plugin, this is no longer the case. The method still exists, but it is now part of the additional-methods.js. Accordingly, if you try to use the accept() method without including the extra file, you’re going to see the error message Cannot call method 'call' of undefined in your Javascript console.

The additional-methods.js script is part of the standard zip file download – it’s just not necessarily obvious that you need to include the extra file to make the method work. Hopefully the documentation will get updated soon so others don’t spend a bunch of time trying to figure out why a basic method isn’t working!

Eclipse Indigo, Subversive, and Connectors

This is apparently a pretty common issue, so I thought I’d write up the solution to it. When using the suggested method of installing Subversive – one of two standard SVN client plugins for Eclipse, the other being Subclipse – the installation may fail (as it did for me). The Eclipse error messages for the failure aren’t incredibly informative, but I managed to figure out the issue, so here it is: Read on, intrepid explorer →