Saturday, December 29, 2012

The American Population - Visualized (as a dotmap)

Brandon Martin-Anderson does the heavy lifting, mapping every single person counted in the 2010 census. Thats 308,450,225 dots (technical term - "a lot of dots").  The image above is just that - an image.  Go to the source to see the actual - interactive - visualization.
From the source

What's all this?

This is a map of every person counted by the 2010 US Census. The map has 308,450,225 dots - one for each person.

Why?

I wanted an image of human settlement patterns unmediated by proxies like city boundaries, arterial roads, state lines, &c. Also, it was an interesting challenge.

Who is responsible for this?

The US Census, mostly. I made the map. I'm Brandon Martin-Anderson.Kieran Huggins came to the rescue with spare server capacity and technical advice after this got Boing Boing'd.

How?

I wrote a Python script to generate points from US Census block-level counts, and then generated the tiles with Processing. Here's more detail for the interested.

The census actually counted 308,745,538 people.

Yeah, I don't know. Puerto Rico? The military?

I don't see dots. I see smudges.

The dots are very small. Try zooming in.

Nobody lives in Central Park/Pier 12/County Lockup/Abandoned Themepark.

The 2010 Census reported that someone lived there.

 

Gun Homicides in America - Visualized


Jerome Cukier does the heavy lifting so that you don't have to.  On to details...
As Jerome puts it
I have created this map of every homicide in the USA using firearms for the latest year where detailed information was available. Every, that is from all the agencies that report homicides to the FBI, which is not an obligation – this is why the map lacks Florida data.

In the interactive version you can see how murders happen through the year and explore them according to several criteria that were available in the database. While large shooting sprees receive media attention, unfortunately there are thousands of cases each year in just about every community.
Note that the above is just an image - go here for the actual - interactive - visualization.

Incidentally, the visualization is a pretty horrific companion piece to this chart from the WP showing gun-related murders in the developed world.  We are - sadly and horrifically - No. 1 by a wide margin. Yay for the 2nd amendment :-(
 

Thursday, December 27, 2012

Your senses are Tricksy! (McGurk effect Edition)

You remember The Gorilla Effect, right?  To remind you (from LiveScience)
The so-called "invisible gorilla" test had volunteers watching a video where two groups of people — some dressed in white, some in black — are passing basketballs around. The volunteers were asked to count the passes among players dressed in white while ignoring the passes of those in black. (To watch the video for yourself, click here.)
The point being that what you see may not necessarily be what actually happened - something the the New Jersey supreme court took into consideration when they made it much easier for defendants to challenge "eye-witness testimony" last August.  From the New York Times
The State Supreme Court’s ruling was seen as significant because it was based in part on an exhaustive study of the scientific research on eyewitness identification, led by a special master, a retired judge, who held hearings and led a review of the literature on the issue. The special master, Geoffrey Gaulkin, estimated that more than 2,000 studies related to the subject had been published since the Supreme Court’s original 1977 decision, the court noted.

“Study after study revealed a troubling lack of reliability in eyewitness identifications,” Chief Justice Rabner wrote. “From social science research to the review of actual police lineups, from laboratory experiments to DNA exonerations, the record proves that the possibility of mistaken identification is real.

“Indeed, it is now widely known that eyewitness misidentification is the leading cause of wrongful convictions across the country.”
Scientific American sheds a bit more light on this in their latest issue, when they point out that its not just that your senses are inaccurate - they depend on each other to a much greater extent than was previously understood.  (paywall. sigh)

Exhibit A in this would be The McGurk Effect - a phenomenon where a speaker sez. one thing, you are shown an image of him/her saying something else, and what you hear is an entirely different sound!
A video is better than a thousand words - take a peek at the following video from BBC. 


The wacky part is, you can't "untrain" yourself, you will always hear the wrong thing!
Freaky, innit?

Tuesday, December 25, 2012

Daily Caller Shark Jumping - CIgarette Review Edition

Hoo boy - just when you thought you'd seen everything, along comes Daily Caller's latest idiocy - Cigarette reviews.
And not just any old review - reviews done with flair, style, and a remarkable degree of odiousness.
So well done in fact that if it wasn't for the fact that this is almost Onion worthy.  Except that it is the Daily Caller - Tucker Carlson's latest chumpy endeavor and is entirely serious.
Patrick Howley's review of the Marlboro Red is truly the Mariah Carey of reviews - starting on a high note, and just going up from there.
Before cigarettes were sold to men for the purpose of sexual solicitation, they were allowed to revel in their polarizing maleness, their seductiveness muted and irrelevant, their purpose utilitarian.
Hoo boy. 
Seriously?
"sexual solicitation"?
What on earth is Howley smoking? Apparently something a bit different from a Marlboro Red, I suspect..
Densely concentrated at its tip, the Marlboro requires a concerted initial pull from the chest. The taste hits the back of the mouth first, tinny and pointed, a quick alert that the experience is underway. The smoke comes in fast and runs fast for the throat, forcing the participant to hold in for a moment’s reflection.
Only at this point does the smoker appreciate the full thickness of the product he has just inhaled. He enjoys the unexpected pleasure of being able to control it, maneuver it for a few split seconds so as to cover selected points at the top of the chest. This moment is most satisfactory, providing a warmth and respiratory presence so lacking from other cigarettes.
Sexual innuendo much?
"full thickness of the product"?
Freud would be proud. 
Mind you, so would the CDC - I suspect you don't really want to get into what exactly is "cover[ing] selected points at the top of the chest".  There is probably a reason that Howley didn't grace the review with a picture of a tar-stained set of lungs...
The exhale, too, is thick, requiring work from the mouth, shaping the lips into a crude circle as the ingredients are let go unfashionably into the air. The taste lingers at the roof of the mouth, identical to the initial taste, for a few seconds. Though creating a noticeable dryness in the region with repeated efforts, this effect necessitates a second inhalation to alleviate it.
Serious awesomeness - once you inhale, you actually need to exhale.  Crazy stuff I tell you.  Mind you, I do appreciate the little addi(c)tive touch - "a second inhalation to alleviate it".   Pulitzer price material I tell you...
This is a thick and thorough brand, to be sure, but very pedestrian in its goals.

Its combination of pre-taste, post-taste, speed, thickness, and chestal warmth provides sufficiency across five different categories. Similar brands may provide one or two of these pleasures, but few brands can hit a “B+” level at every stage of the smoking experience.

Marlboro’s allure, then, is in its manufactured completeness. The smoker knows what to expect with every drag, and with every drag his expectations are met. To deny the effectiveness of the Marlboro, even for the most refined cigarette aficionados among us, is to deny the mechanics and benefits of smoking.
Like I said - the Mariah Carey of reviews. 
I mean, seriously, "chestal warmth"? "benefits of smoking?" "knows wat to expect with every drag"?
Words fail me...







Monday, December 24, 2012

'twas the Night before Christmas - with Sog-Nug-Hotep

John Holbo brings madness to the mortal plane with A Truly Awful Christmas - A Visitation of Sog-Nug Hotep
'twas the Night before Christmas
when all through the house
What a Creature came stirring,
all legs, wings, and mouths!
Ancient runes had been scratched
on the chimney with fear,
In hopes that Sog-Nug-Hotep
would not come here!  
Surely mortal mind was not meant to behold the tentacl'd horror, that pustul'd visage, on this fair eve!




Saturday, December 22, 2012

Tim Whyatt and Bangkok

'nuff said

Friday, December 21, 2012

The history of video games - Visualized

Two charts from Tumblr showing video games by genre and platform.
Brilliant...
(Click to embiggen. A lot...)

On "Canada" - and people who believe in it

Daniel brings the pain to "Canadians" at Crooked Timber.  It answers that crucial question - Do you believe in "Canada"? quite thoroughly, but lovingly.
Mind you, I've lived up there, and I have to admit that the belief runs strong in those environs (it must be the cold). 
Over time, all sorts of supporting myths and rationalizations grew up to support the “Canadian” faith. Apparently they fought a war against America in 1812, although not one with any noticeable or measurable political consequences. They don’t have a football team because they play “hockey on ice” (really!), a sport at which they are world champions (naturally, because it is a fictitious sport). They have all the nice characteristics of America, but have a healthcare system rather suspiciously similar to the British one, and so forth, and so on.
As anyone can see, this isn’t a country – it’s far too perfect to be convincing. It’s a fantasy roleplaying character invented by a kid who goes to mock United Nations camps instead of playing Dungeons & Dragons. Occasionally this is recognized in little cultural hints – a “girlfriend in Canada” is American slang for “an imaginary girlfriend”. But in general, people humour them – these days, if you want to make it in Hollywood, you’ve got to be either a Canadian or a Scientologist. Then the concept was discovered by that sizeable contingent of French people who always want to pretend to be Americans, and the Canadian faith had to pick up yet another massive and glaring inconsistency in the shape of a massive linguistic minority who lived in a state of peace and friendship with the rest of the country. Do I have to mention that they struck oil and invented the Blackberry?
[...] I’ve done my best to look at the strongest arguments possible for Canadaism. I’ve drunk those bottles of Budweiser that they make with the labels saying “Molson Lager”. I’ve talked to Canadianists. I’ve even been to see a pretend game of “hockey on ice” in the ice rink in “Toronto”, an American town to which I have been more than half a dozen times in different seasons. I’ve been to “Montreal” and listened to French people pretending to have an American accent. Right now as I type, I can see at the top of the foreign coins jar on my desk is an American 25 cent piece with the Queen’s head stamped on to it and the word “Canada”. I’m not arguing out of ignorance here – I’m intimately familiar with the arguments for Canada. I respectfully suggest, indeed, that I am more familiar with the arguments for the existence of Canada than most Canadians are familiar with the arguments against. I’m just not convinced.
As I grow older, I must admit that the prospect of Canada seems more comforting and spiritually enriching rather than irritating. My wife is a firm believer in Canada and insisted on bringing up the children as believers, and every now and then she says things like “Some of our best friends have emigrated to Canada and it’s lovely there. Maybe we should all go to Canada for a skiing holiday”, and I must admit, the way of life has all sorts of attractions. Some days I find myself flirting with Canadagnosticism.
Mind you, some of the lengths that they go to is a bit strange - they tend to use some kind of local scrip (which I thought was illegal, but whatever), and are far far too polite, but then again, they might all just be from Minnesota or something.
Anyhow, I leave you with the immortal Bob & Doug McKenzie...


ACME corporation ("Keeping coyotes busy since '49"?)

Rob Loukotka watched every Coyote/Road-Runner episode (43 of them, in case you are wondering) and has put together this marvelous poster of every one of the 126 featured items from ACME corp.
From the site
 Tornado seeds! Giant magnets! Dynamite! Rocket powered roller skates! Anvils! Giant Rubber Bands! I spent over 100 hours illustrating, designing, and researching this one poster
Check it out!

Thursday, December 20, 2012

The Family Tree of Birds - Visualized

This has got to be the most comprehensive bird-related family tree - ever.  It links nearly 10,000 species of birds, and walks the tee back to the dinosaurs (creationists, please ignore...).
From a releated release 
Researchers, from the University of Sheffield, Yale University, University of Tasmania and Simon Fraser University, say the creation of new species has speeded-up over the last 50 million years. Surprisingly, species formation is not faster in the species rich tropics, but was found to be faster in the Western Hemisphere compared to the Eastern Hemisphere as well as on islands.
As well as being the first time scientists have created a family tree for birds, it is hoped the research could help prioritise conservation efforts in a bid to save the most diverse species from extinction.
Dr Gavin Thomas, of the University of Sheffield’s Department of Animal and Plant Sciences, said: "We have built the first ever family tree showing the evolutionary relationship among the species of birds. We used fossils and genetic data to estimate the ages of all the different branches of the bird tree so that we could assess how diversity has accumulated through time. Our work is indebted to researchers from museums and universities who have collected astounding amounts of genetic data from birds around the world."
Despite major steps forward in modern super computers it has still taken the researchers almost five years to analyse the millions of year’s worth of fossil data, DNA, maths and maps, to create this never-before-snapshot of how the thousands of birds alive made it to where they are today.
The original is, tragically, behind a Nature paywall...

George Will goes Godwin

Today's bit of idiocy by St. George takes the cake, what with it not just containing the usual bad logic, ridiculous statements and obtuse language, but going quasi-Godwin in the process.
According to Saint George,
  • The (evil?) Obama's drive to federalize voter registration is part of his master plan to make voting compulsory
  • Holder's comment "We should rethink this whole notion that voting only occurs on Tuesday" is "loopy" because, wait for it, in most states people vote before Tuesday. (Yeah. I don't get it either. But it makes sense to St. George)
  • Takes a statement from the Heritage foundation (Fair! Balanced!) that voter registration rolls are in poor shape with more registered voters than actual people as gospel, and proceeds to use it as evidence that justifies the long waits in line to vote (strangely, only in tossup states. Hmmmmm), while blaming it on the Federal Govt. (I wonder if St. George has ever been to a - state run - DMV?)
  • Notice the perverse dialectic by which Washington aggrandizes its power: It promises to ameliorate problems exacerbated by its supposedly ameliorative policies" <--- Yeah, whatever
  • Managed to jump from "our democracy is stronger when more people have a say in electing their leaders." to "mandatory voting". Seriously. No waiting.
  • Rapidly moves on to claiming that people don't vote because they are happy.
  • Manages to state that smart people don't vote 'cos each vote is of infinitesimally small value, only emotional people (who aren't smart?) vote, but making voting harder changes this dynamic (how? lord knows).
  • And then the grand-daddy of them all, basically saying "You know who else had high voting rates? The Nazis!". Seriously.
It is seriously past time someone put him out to pasture - he has long outlived his usefulness, and is now just embarrassing to read.... 

Wednesday, December 19, 2012

Pythagorean theorem - Visualized

hat-tip ChartPorn

Tuesday, December 18, 2012

"TV Chef" recipes are less healthy than "ready meals"

Seriously.
According to a BMJ study by the NHS and Newcastle University that compared recipes from books by Jamie Oliver, Lorraine Pascale, Nigella Lawson, and Hugh Fearnley Whittingstall against supermarket "ready to eat" meals.  The results?
No recipe or ready meal fully complied with the WHO recommendations. The ready meals were more likely to comply with the recommended proportions of energy derived from carbohydrate (18% v 6%, P=0.01) and sugars (83% v 81%, P=0.05) and fibre density (56% v 14% P<0.01). The recipes were more likely to comply with the recommended sodium density (36% v 4%, P<0.01), although salt used for seasoning was not assessed. The distributions of traffic light colours under the FSA’s food labelling recommendations differed: the modal traffic light was red for the recipes (47%) and green for ready meals (42%). Overall, the recipes contained significantly more energy (2530 kJ v 2067 kJ), protein (37.5 g v 27.9 g), fat (27.1 g v 17.2 g), and saturated fat (9.2 g v 6.8 g; P<0.01 for all) and significantly less fibre (3.3 g v 6.5 g, P<0.01) per portion than the ready meals.
Or, to translate this down
Neither the Chef's recipes, nor the supermarket meals complied with WHO guidelines. But the supermarket meals were "healthier".

I must admit I don't find this particularly surprising (and no, Paula Deen, I am not referring to you).  If you watch these chefs for mroe than the ritual entertainment value you do learn a lot.
Ok, thats a big IF, but if you actually do something based on the Chef's recipes, odds are that you have absorbed something.
And given the specifics of the chef's above, what you have probably absorbed includes
  • The importance of good ingredients
  • Conversely, the suckiness of additivies
  • Something about sustainability
  • The need for "balance" in your diet
  • The social aspects of cooking
And a whole host of other items, most of which you are not going to get in your Supermarket MRE.
So yeah, the study may not be have the best results, but thats OK...


International Finance and Mr. Potato Head

Lisa Pollack explains Internatinal Transfer Pricing (with particular reference to the ongoing saga of Starbucks in the U.K.) via that famed mouthpiece - Mr. Potato Head.
Oh, you do know about whats going on with Starbucks in the U.K., right? 
For those who haven't been following the sordid saga, the (extremely) short version is that despite having been in business in the U.K. for 14 years, and making around £400 million/year, they've paid a grand total of £8.6M. Over 14 years.  They get away with it because they do fun stuff like royalties paid to Starbucks Netherlands, coffee purchased from Starbucks Switzerland, and no doubt "Because International Finance".
This is actually a bit more than forum shopping - its basically moving finance widgets around the global chessboard which can be done for good or for evil - and thats what is called Transfer Pricing.
 And this is where Mister Potato Head comes in.  I've excerpted the article below - go read the whole thing at the source...
[...C]onsider Mr Potato Head:
Let’s say Mr Potato Head is owned by Toy Corp, USA (for the avoidance of doubt — we’re making this up for the purposes of this example). Additionally assume that he’s assembled on US soil with locally sourced parts. He’s exclusively sold to the domestic market.
In such a simple scenario, all of the revenues and costs of Toy Corp would arise within US borders and the Internal Revenue Service would no doubt receive its fair share of tax.
Let’s take over the world
Things can quickly get complicated when Toy Corp launches foreign operations.
Say Toy Corp wants to branch out to the European market. To assist this, the company opens a subsidiary in the UK.
Now imagine that most of the world’s plastic nose trading occurs in Switzerland. After being purchased by Toy Corp’s Swiss employees, the raw noses are shipped to the Netherlands for painting.
Also worth mentioning — the blueprints for manufacturing Mr Potato Head (potato body plus parts) are ‘owned’ by another Toy Corp company. That one is in the Cayman Islands.
Given that the blueprints are in the Carribean, the noses are purchased in Switzerland and then painted in the Netherlands, plus the marketing for Mr Potato Head is handled mostly by the US corp, how should the tax accounts of the Toy Corp subsidiary in the UK be compiled?
Some potential line items:
£10.0m Mr Potato Head sales
(£3.0m) Manufacturing costs in the UK
(£2.5m) Other UK cost of sales, e.g. salaries
(£0.5m) Purchase of noses from Dutch Toy Corp
(£1.0m) Royalty payment to Cayman entity
(£0.4m) Marketing costs paid to US Toy Corp
£2.6m Taxable income in UK
The £5.5m of costs in the UK are uncontroversial.
Becoming more tax efficient
The next three line items are where transfer pricing come in. If the Dutch entity — that itself buys raw noses form the Swiss entity — pays lower tax, then one can see how it’s in the overall interests of the Toy Corp group to claim that the final noses are expensive.
Expensive noses mean lower UK tax liability, and more revenue in a country (the Netherlands) where the tax suffered is lower. The company ends up with more cash overall and higher profits at the group level through such maneuvering.
The same goes for the royalty payment to the Cayman entity, which is paid because that entity owns the blueprints for Mr Potato Head. The UK entity is using that intellectual capital.
As for the marketing costs, that’s sending money to a higher tax jurisdiction, so not as potentially tax efficient. But hey, can’t get everything right! That would look bad.
Inspectors call
Given all of this, if you were investigating how aggressive Toy Corp is being with its tax planning, you’d probably ask yourself these sorts of questions:
  • Does Toy Corp have genuine operations in the Netherlands, Switzerland, and the Caymans, or are those just shell entities?
  • Does Toy Corp UK pay a fair (“arms length”) rate for the noses?
One would be particularly curious to get good answers to these questions if Toy Corp UK was in fact making a loss for tax purposes.
It could well be that Toy Corp UK’s tax accounts are a genuine reflection of its costs of doing business. Imagine the market clearing rate for noses is £3.0m, but the UK entity only paid £2.0m to the Dutch entity. This could be harmful to the Dutch entity if it then can’t meet its costs, and the UK entity is going to get taxed more than its fair share, possibly causing it to lose ground to competitors in the British toy market.
Competing with tax rates
Transfer pricing should allow entities to be taxed fairly on their operations in each country in which they do business. But, well… some countries do effectively compete for business activity to be done within their borders with tax incentives.
Companies, quite rationally, respond to that and can go quite far with it, while still very much landing within legal boundaries. Maximising profits is part of one’s fiduciary duty to the owners (shareholders) of the company after all.


Friday, December 14, 2012

Messi's 86 goals - Visualized

Yanina Ronconi at La Nacion brilliantly visualizes Lionel Messi's 88 (thus far) goals this season.

For the irretrievably news challenged, Messi beat Muller's record of 85 goals in a year - set in 1972 - on Dec 9th.  In case you didn't know this, the above might be slightly less interesting...

Thursday, December 13, 2012

Must pay attention to the documentation (Erlang Edition)

Right there, in the documentation for supervisor, it says (emphasis mine)
Creates a supervisor process as part of a supervision tree. The function will, among other things, ensure that the supervisor is linked to the calling process (its supervisor).
And I know this.
Really.
It's just that I, apparently, didn't know it for the last 8 hours.
So there I am, writing out Common Tests for our system, and in init_per_suite I slap in (basically) the following line
supervisor:start_link({local, some_module_sup}, some_module_sup, []).
Wonder of wonders, everything craps out.  After an eternity (ok, 8 hours), I figured out that
  1. init_per_suite runs will executed in its own dedicated process (as oh so helpfully stated multiple times in the documentation, and which I not only know, but have expounded on multiple times in the past)
  2.  supervisor:start_link/3 links to its calling process, which is write there in the second line of its documentation as show above.  Granted, the calling process is probably a supervisor of its own, all the way to the top when its probably an application bootstrapping the whole thing, but still, I know this.
Put the two together, and it is exceedingly obvious that I deserve no sympathy whatsoever.  Apparently "Mahesh" is spelled I-D-I-O-T...





Wednesday, December 12, 2012

Zeus was quite the playa...

Ilaria Pagin has the definitive Visualization of Zeus's affairs, and we are all better off for it.  From the guide
Zeus's Affairs - A God, his Lovers and his Offspring.
Reconstruction of Zeus's genealogy as described by different authors, with brief description of each character.
Instructions
Relationships: Zeus is represented by the wide thick black circles of the scheme. In the inner part of these circles there are all his lovers, which are connected with coloured lines to their children.
Crossings between circles and lines represent a relationship.
Thin circles, in the central part of the diagram, represent brotherhoods.
It is remarkably (and ludicrously) comprehensive - go check it out!
(The image above is just that, an image. Go to the original)