- AP: Britain votes to leave EU: Cameron to resign; markets rocked
- CNN: No-fly nightmares: The program's most embarrassing mistakes
On the same day Kennedy revealed his flight troubles, civil rights icon and longtime Rep. John Lewis revealed he, too, had been snarled by the watchlist dragnet. According to his office, the Georgia Democrat had over the course of a year been held up 35 to 40 times. Despite reaching out to a number of federal agencies over that period, Lewis' name had remained on a list.
- The Chronicle of Higher Education: Does Reading on Computer Screens Affect Student Learning?
The mind-set with reading on a computer or tablet screen, says Ms. Baron, becomes
I’m studying for a test, and this piece of text is not going to become a part of who I am.
- Language Log: Gertrude Trump
You know the Republicans honestly folks our leaders our leaders have to get tougher. This is too tough to do it alone but you know what I think I'm gonna be forced to. I think I'm going to be forced to. Our leaders have to get a lot tougher.
- Providence Journal: Mark Patinkin's judgmental map of Providence
- Providence Business News: House OKs $20M bond for ProvPort
A $20 million state bond issue that would expand the terminal capacity of ProvPort Inc., by adding more land and water acreage at the Port of Providence, is expected to be presented to voters in November.
- The Economist: Where the smart is
Connected homes will take longer to materialise than expected
- Providence Business News: What new residential construction there is in R.I. rarely matches state's needs
Although permit activity has increased, new construction of housing has yet to rebound from the Great Recession, according to builders and state officials.
And where residential building is taking place, it generally is not taking the form of multifamily or increased density. But that is exactly what the state needs, according to housing advocates.
- On the Economy: Read this now: Clyde Prestowitz’s masterful history of the political economy of trade in the US
The idea that more trade is always win-win for everybody is unquestionably wrong in theory and practice.
- The Big Picture: Dani Rodrik on the downsides of globalization
- The Economist: The price of caring
Some reports have it that Thomas Mair, the 52-year-old man arrested for yesterday’s fatal attack on Jo Cox, a Labour MP, was waiting for her outside the Yorkshire library where she was holding a constituency surgery. Whether or not this turns out to have been the case, her murder is a stark illustration of the risks to which MPs go by making themselves so available to their constituents.
- aeon: Disgust made us human
- The Globe and Mail: Dear McDonald’s, your desserts are too sugary. Love, a giant candy company
- Combat!: Citigroup sues AT&T, claiming trademark on phrase “thank you”
Like most consumers, I associate the phrase “thank you” with Citigroup THANKYOU Marks, which the financial-services giant uses in its customer rewards programs. When I hold the door open for a little girl and she says “thank you,” I suffer a moment of confusion. How has this child become employed by Citigroup, and why has my act of courtesy earned me THANKYOU Mark rewards? But then I remember that, oh yeah, trademark violations have diluted the THANKYOU Mark brand to the point where people started using it in non-rewards point contexts. It’s the kind of infringement on intellectual property that has become too common in the modern world.
- The Hard Times: Female Noise Artist Proves Women Can Be Talentless and Weird Too
She's the next big thing in an almost completely ignored scene.
- #fridayreads: The Concrete Blonde, Michael Connelly
All these findings correspond with a substantial body of research in the economic literature, which, with the help of surveys, laboratory experiments, as well as field experiments showed that those who learn about markets (economists) or act in markets (businessmen) are lacking in … ‘pro-social behavior’ … I also use corruption as a proxy to show whether there are any differences in pro-social behavior between economists and non-economists, but unlike them, I observe behavior outside the artificial situation of a laboratory. By analyzing real world data of the U.S. Congress, I found that politicians holding a degree in economics are significantly more prone to engage in corrupt practices.
Does Economics Make Politicians Corrupt? Empirical Evidence from the United States Congress
Yet another PaperJS experiment. This one generates
Sparklines. It simply looks for canvases matching a specific CSS selector (
canvas.sparkler by default), and draws a chart based on JSON-formatted data in the
data-data attribute. Here, I'm displaying some unemployment data from Quandl.
The code is on Gist.
What it's doing: Each
node has a
belief that matches its hue, represented
as an angle between 0 and 359 degrees. Every 25 frames (once a second or so), a node is chosen at random and given
a choice whether to speak; if it does (this is represented by a fading circle expanding from the node). Every other
node has a chance to hear the speaking node based on the distance between the speaker and the listener--the farther
you are from the speaker, the less likely you are to hear.
Once a node does hear another node, it will only care about what it's hearing under one of two conditions:
- The hearer's beliefs (i.e. color) are similar to the speakers, in which case the hearer's beliefs will move slightly closer to the speaker's; or
- The hearer's beliefs are very different from the speakers, and its beliefs will move even further away from the speaker's.
In either case, there is a small chance the hearer will
subscribe to the speaker, which adds a line between the two and
means the hearer will always hear announcements from that speaker.
**NB:* This isn't designed--at least in this incarnation--to be a realistic simulation of anything. It's another experiment with PaperJS.*
This is a minor experiment with Paper.js, made while I (re-)teach myself to animate color and movement. (Click through to view.)
jekyll.R provides two R functions to let you add posts or drafts to your Jekyll blog direct from the RStudio console, by
knit()ing an .Rmarkdown document into markdown with the YAML
front-matter Jekyll expects. This is probably the best option for blogs.
rmarkdown_converter.rb is a Jekyll plugin that provides an Rmarkdown
converter. This lets write your posts in RMarkdown and save them in your site's
_posts directory with the extension
Rmarkdown, just like you normally post standard markdown documents.
The downside here is that changes to your R environment (you get a new computer and don't reinstall all of the packages you had before, you upgrade R and one of the packages you used to use is no longer supported, etc.) can make it impossible to build your blog (or at least some posts). It might be more useful for some non-blog sites.
I've been experimenting lately with Paper.js,
The Swiss Army Knife of Vector Graphics Scripting.
My first effort is below, an interactive (try selecting lines by clicking and dragging) parallel coordinate plot.
The plot below is displaying the state.x77 dataset
built in to R; I'll think of something more interesting to display with it eventually.
Good to see someone's finally using R for something useful.
I've been asked to look into doing some kind of analysis of this Sexual Health Rankings data. The data's available as a spreadsheet providing data by state, so I'm using my preliminary, check-this-stuff-out phase, as an opportunity to check out R's
xslx package and Stately.
xslx allows you to read and write Excel workbooks from R. Below, I use the high-level
read.xslx function to read blocks of cells from worksheets as dataframes, which is quick and easy to work with.
Stately is a quick and easy (and fun) way to draw simple choropleth maps of the US. It's implemented as a font and some CSS; to use it in a web page, you just create a list with each letter A-Z and a-y and style the elements as needed. I've written an R script that generates the html you need to generate a map with Stately.