Bob Mankoff picks his 11 favorite New Yorker cartoons -
The cartoon editor of the New Yorker magazine selects some of his favorite “idea drawings” from across the years.
/rss to the URL of the page. Works for home, tags, search results…
Text-align: Justify and RWD -
Did you know that one of the most powerful tools for fluid, responsive layout has been a native feature of every browser since HTML 4?
Achieve fluid responsive layout with
text-align: justified &
display: inline-block. Nice, simple technique, although it requires an additional empty element.
Those who do not move, do not notice their chains. — Rosa Luxemburg
Auticons: An automatic icon font -
An icon font powered entirely by CSS attribute selectors and attribute value patterns.
Just load up the Auticons CSS and links for secure pages, author pages, permalinks, your Twitter profile, PDFs, .doc files, JSON resources and many more are all “iconed up” automagically! That is, if your link elements are well-formed and semantic so… BE GOOD.
Fortunately, you can emulate atomic grouping with LookAhead.
(?=(a))\1. It works by matching (and capturing) the sub-expression in a LookAhead non character-consuming assertion, then matching it (effectively consuming the characters) with a backreference, not allowing backtracking at this point.
As possessive quantifiers like
a++ have a strict equivalent using atomic grouping (here
(?>a+)), we can also leverage this technique:
There are two downsides though: it complexifies the regex and it inserts a possibly unwanted capturing group for the sole purpose of matching. But still, it may still be a useful trick to know since the JS regex flavor is a bit sub-par.
The Oxford Comma and The Internet -
Writing online is so nearly effortless that reading (not to mention reflection, deliberation and thought) has become a chore in comparison. It’s easier to jot off a patronizing, indignant or self-aggrandizing missive than it is to take the trouble to read the whole article or give fair consideration to the author’s perspective. Thus the vicious circle sets in…
I find we also see effort being made in the other direction, with things like Pocket / Instapaper or Readable / Clearly.
Revenge, ego and the corruption of Wikipedia -
Andrew Leonard, writing for Salon, unmasks a blatantly corrupt Wikipedia editor:
The mind boggles. After years of styling himself as someone who specializes in scrubbing Wikipedia pages clean of “conflicts of interest,” Qworty/Young admitted to editing “the Wikipedia articles of writers with whom I have feuded.” How can Wikipedia possibly allow this man to keep his editing privileges? And how are we, the general public, supposed to trust Wikipedia, when Qworty’s record shows how easy it is to work out personal grudges and real-world vendettas in this great online encyclopedia for years without anyone taking action?
Explicit vs. Clever -
Poorly chosen abstractions or rampant over-abstractions are problems, of course, but they are hardly “clever,” they’re just poorly chosen. Abstractions are a win when either of two things occur:
- The effort to learn the abstraction is an order of magnitude less than the effort to reproduce the underlying mechanism, or;
- You have correctly predicted in advance that the implementation will need to change and can do so without breaking the rest of the application.