The future of food production
0

The future of food production

Ezra Klein on the future of food production:

But for now, I think of the preference for farmers markets and small producers as being mainly important in sending certain signals about production methods and branding preferences to Big Ag than in actually creating some sort of viable alternative.

That’s importance in a society-changing sense, of course. Choosing your food based on how it is produced can be very important to individuals for perfectly sensible reasons.

Not migrating Twitter scripts to OAuth
11

Not migrating Twitter scripts to OAuth

I have a number of scripts I’ve written that send updates to Twitter automatically. They are Perl scripts that run database queries and then post to Twitter using curl. Unfortunately, since Twitter turned off basic authentication they’re all dead.

Twitter ended support for basic authentication in order to prevent third party applications from asking Twitter users for their passwords. Phishing for Twitter passwords is rampant, and it’s harder to combat phishing when legitimate sites are asking Twitter users for their usernames and passwords.

While I was working on this blog post, John Udell beat me to the punch by posting about the good and bad aspects of migrating to OAuth and a technical guide to the migration.

My use case is simple, I just need to come up with an equivalent to the following code that actually works:

exec("curl -s -u $username:$password -d status=\"$tweet\" 
http://twitter.com/statuses/update.json");

When updating command line scripts to use OAuth, there are three steps. The first is registering the application with Twitter. The second is obtaining an OAuth token that the script can use. The third is updating the script to authenticate using OAuth.

Twitter’s recommendation in this case is that I stop using curl and migrate to an OAuth or Twitter library instead. To be frank, this sucks. Our servers run Red Hat Enterprise Linux and my systems administrator doesn’t like to install random Perl modules. In researching how to solve this problem, I decided to start with Net::Twitter, which has the following dependencies:

DateTime [requires]
Data::Visitor::Callback [requires]
DateTime::Format::Strptime [requires]
Net::OAuth [requires]
Moose [requires]
JSON::Any [requires]
Try::Tiny [requires]
Moose::Role [requires]
URI [requires]
namespace::autoclean [requires]
Moose::Exporter [requires]
JSON [requires]
MooseX::MultiInitArg [requires]

Those dependencies each have dependencies of their own as well. So I’m looking at moving from a script that is dependent only on the curl command line tool, which is already installed, to a script that requires dozens of Perl modules to be installed in order to work. That’s a deal breaker. As an aside, when I tried to install Net::Twitter on my Mac, the installation failed because the tests for the module didn’t pass.

Before I can even bother with registering my silly 15 line Perl script with Twitter as an application and authorize it for the account to which I submit these status updates, I have to rewrite it to use a library that I was unsuccessful in installing on my laptop and probably can’t install on the server, or I can write my own OAuth implementation from scratch to avoid getting caught in the mire of dependencies.

My Twitter script is just dead for now.

Twitter has traded simplicity for the potential for greater security. The emphasis is on the potential, because the tough part isn’t getting third party sites to migrate to OAuth, but teaching users not to give their passwords to sites that ask for them. Just because sites don’t need your password any more doesn’t mean that third parties can’t still ask for passwords or that users won’t continue to enter them when asked.

Update: My scripts started working again a few hours ago with no changes on my end. Has Twitter reenabled basic authentication temporarily?

Apple updates the iOS app review process
1

Apple updates the iOS app review process

The big news today is that Apple has relaxed some of the incredibly onerous restrictions they imposed on iOS applications back in April. Specifically, Apple has killed section 3.3.1, which prohibited applications built using any kind of translation or compatibility layer. They’ve also published the guidelines used in the review process, adding a layer of transparency that has been lacking thus far. I still think the review process should still be much more transparent than it is, but these are important steps forward. We can all thank Android for putting competitive pressure on Apple and outspoken developers for shaming the company for these changes.

Scott Rosenberg makes the point that while the app review process may make sense for judging applications, it’s scary as hell for people using the platform to distribute content. One thing that should be clarified is that Apple isn’t issuing new rules, it’s publishing the rules it has been applying internally. At least we have something tangible to critique, beyond just reading the tea leaves when specific applications are rejected.

The risks of using Wikipedia as a source
3

The risks of using Wikipedia as a source

I am an unabashed fan of Wikipedia, but it still shouldn’t be relied upon for anything more than hobbyist-level interest in a subject. If you’re curious about the historical context for the TV series The Pillars of the Earth, Wikipedia is an outstanding resource. On the other hand, if you’re writing a news story about outbreaks of infections caused by drug-resistant bacteria in hospitals, you shouldn’t rely on what you read in Wikipedia. Science journalist Steve Silberman writes about how spurious information sourced from Wikipedia is pervasive in stories about acinetobacter, and why that bad information could cost people their lives.

Why the economy needs stimulating
9

Why the economy needs stimulating

Modeled Behavior explains our fundamental economic dysfunction, with charts:

This is a failure of our basic institutions of production. The job of the market is to bring together willing buyers with willing sellers in order to produce value. This is not happening and as a result literally trillions of dollars in value are not being produced.

Let me say that again because I think it fails to sink in – literally trillions of dollars in value are not being produced. Not misallocated. Not spent on programs you don’t approve of or distributed in tax cuts you don’t like. Trillions of dollars in value are not produced at all. Gone from the world entirely. Never to be had, by anyone, anywhere, at any time. Pure unadulterated loss.

This is what has bothered me for months — the opportunity cost of having so much human and industrial capacity idle. We live in a world where many, many things are needed and wanted by people, and the capacity to produce them exists but is going unused. I don’t know if another round of government spending will help or if that’s what we should do, but “stimulus” is exactly the right word for what needs to happen.

His main point is that this loss should bother everyone to the extent that they’re willing to move beyond their political hobby horses and look for a solution. That isn’t happening.

Why is corporate communication laden with BS?
1

Why is corporate communication laden with BS?

Tyler Cowen takes a stab at answering a reader question about why corporate communications is laden with so much BS:

People disagree in corporations, often virulently, or they would disagree if enough real debates were allowed to reach the surface. The use of broad generalities, in rhetoric, masks such potential disagreements and helps maintain corporate order and authority. Since it is hard to oppose fluffy generalities in any very specific way, a common strategy is to stack everyone’s opinion or points into an incoherent whole. Disagreement is then less likely to become a focal point within the corporation and warring coalitions are less likely to form.

I definitely agree with his theory that financial incentives can cut through the BS:

When direct financial incentives can work well, such as in sales (bonuses) or in some parts of finance, there is much more straight talk. Disagreement and candor can flourish, because the $$ keep the workers on a common track.

The foundation of America’s success
3

The foundation of America’s success

Matthew Yglesias on the source of America’s strength:

Winning the second world war entailed building a lot of tanks and ships and warplanes and nuclear bombs. But the reason we won the war is that in the 150 years before the war, we’d gone about building the most prosperous society in human history.

The question I have these days is whether we have a government and citizenry that are capable of building a society that continues to build prosperity for the next 150 years. Like Michael O’Hare, I have my doubts.