31 May

HTML5 Globals and You – Nettuts+

Much has been written on the big ticket changes in HTML5, like forms, semantics, and media, but information on the less splashy changes is sparse. While global attributes aren’t the most sexy change of HTML5, they are the change that you will be using over and over and over as you migrate to the new specification.

via HTML5 Globals and You – Nettuts+. The most interesting attributes (to me) contextmenu and hidden are currently not usable by any browser engine.

30 May

Now you see me… show/hide performance – Learning jQuery

Also note that for the majority of use cases, all of these methods are plenty fast to use. When you start having to manipulate large jQuery collections, .show() and .hide() might become too slow in IE, and you might need to bump up to .addClass() or .removeClass(). Enabling/disabling of stylesheets would only be necessary in the most extreme cases, but if things are hiding to slowly for you, you might want to give it a try.

via Now you see me… show/hide performance – Learning jQuery. Personally I like using the add/remove class the advantage of it already being slightly faster for IE makes it even nicer.

23 May

The El Paso Miracle – Reason Magazine

Numerous studies by independent researchers and government commissions over the past 100 years repeatedly and consistently have found that, in fact, immigrants are less likely to commit crimes or to be behind bars than are the native-born. This is true for the nation as a whole, as well as for cities with large immigrant populations such as Los Angeles, New York, Chicago, and Miami, and cities along the U.S.-Mexico border such as San Diego and El Paso.

via The El Paso Miracle – Reason Magazine. Totally goes against most anti–immigration talking points but hey facts are facts.

22 May

HoverAttribute jQuery plugin – afEkenholm Web Design

HoverAttribute is a jQuery plugin that allows you to make (link-)elements more dynamic by making an attribute of that element show up on hovering. This is foremost intended for <a> tags residing within full-width elements, such as headings or list entries. Amongst several options, it is possible to choose any attribute (href by default, see Usage) of a given tag.

via HoverAttribute jQuery plugin – afEkenholm Web Design. Really cool jQuery plugin, used it for a project at work where a tooltip was not the desired tool to show additional data. It works on any jQuery object and let’s display any attribute.

22 May

Down The Memory Hole – Paul Krugman Blog

Here’s a rough-cut version. The blue line, left scale, shows median family income in 2008 dollars; the red line, right scale, shows the top marginal tax rate, a rough indicator of the overall stance of policy. Basically, US postwar economic history falls into two parts: an era of high taxes on the rich and extensive regulation, during which living standards experienced extraordinary growth; and an era of low taxes on the rich and deregulation, during which living standards for most Americans rose fitfully at best.

via Down The Memory Hole – Paul Krugman Blog. When in doubt just re-write history to make it fit your version.

18 May

Why a Soda Tax Makes Sense for Washington – NYTimes.com

We’re drinking more soda for several reasons. Above all, the inflation-adjusted price has fallen 34 percent since the late 1970s, largely because it can be manufactured more cheaply than in the past. Meanwhile, the average real cost of fruits and vegetables has risen more than 30 percent, according to the Bureau of Labor Statistics.

via Why a Soda Tax Makes Sense for Washington – NYTimes.com. Very interesting stat.

11 May

Lotteries – The Frontal Cortex

The study neatly illuminates the sad positive feedback loop of lotteries. The games naturally appeal to poor people, which causes them to spend disproportionate amounts of their income on lotteries, which helps keep them poor, which keeps them buying tickets. The saddest part is that these destructive games are run by the government.

via Lotteries – The Frontal Cortex. A lottery is quite possibly one of the stupidest things to spend money on.