Tuesday, February 28, 2012

REST's fifth HTTP method: PATCH?

The HTTP method PUT means resource creation or replacement at some given URL.

Think files, for example. If you upload a file to S3 at some URL, you want either to create the file at that URL or replace an existing file if there's one. That is PUT.

Now let's say a web application has an Invoice model with a paid flag that indicates whether the invoice has been paid. How do you set that flag in a RESTful way? Submitting paid=1 via PUT to /invoices/:id does not conform to the semantics, because such request would not be sending a complete representation of the invoice for replacement.

...

In practice, as you see, PATCH suits everyday web programming way better than PUT for updating resources. In Ruby on Rails it corresponds naturally to the way we use update_attributes for updating records.

Thus, PATCH is going to be the primary method for updates in Rails 4.0.

Saturday, February 25, 2012

Code Across America: A Week of Civic Innovation!

Media_httpcodeforamer_gctka
From February 24 through March 4, hundreds of passionate citizens around the country will come together to “Code Across America” – to make their cities even better. In over a dozen cities, there will be hackathons to build civic apps, “brigades” to deploy existing ones, unconferences to plan for the year ahead, and meetups to strengthen the community.

Friday, February 24, 2012

Daniel Dennett receives 2012 Erasmus Prize for cultural contributions.

Media_httpwwwtuftsdai_iyrth

"A lot of people want to keep science at bay," Dennett said. "I want to show them that all of these treasures are more wonderful when you show them how they work. I want to understand the mind and religion. All of these things are natural. There's got to be a natural as opposed to supernatural account for them."

Tuesday, February 21, 2012

Your next workstation may be your phone.

Media_httpwwwubuntuco_cfwsl

Your next desktop could be a phone

Why carry two devices, when you could carry only one? Your next high-end smartphone has far more horsepower than you’ll need on a phone, and more than enough for a laptop. So we’ve brought Android together with Ubuntu, the world’s favourite free operating system, to give you a full productivity desktop that fits in your pocket. Android for the phone experience, Ubuntu for the desktop, all on one device, running at the same time.

So forget the office PC. Just dock your corporate phone and enjoy Ubuntu. Anywhere. One address book. One set of bookmarks. One place for your text messages and email. No more typing on a tiny screen when all you want is a keyboard and a mouse. Seamless integration of your desktop and mobile worlds. Brilliant.

Hauntingly Beautiful Zombie Love Story

Do Hackathons and Civic Hacking Matter? « Civic Innovations

Media_httpciviciofile_zdmwi

All of these events, to one degree or another, helped to galvanize the local technology community in these cities and demonstrate that building software-based solutions with open government data (or helping to liberate such data from outdated government websites) is a highly valuable form of civic engagement.

Bet you wish your IDE could do this! (Also one of the most moving coder talks I've ever seen.)

Friday, February 17, 2012

The .0000063 Percent Election | The Nation

...electoral politics and the 2012 presidential election have become almost exclusively defined by the 1 percent. Or, to be more precise, the .0000063 percent. Those are the 196 individual donors who have provided nearly 80 percent of the money raised by super PACs in 2011 by giving $100,000 or more each.

Tuesday, February 14, 2012

Hack the vote: How #OpenSource will change our elections

Media_httpgovfreshcom_idegr

@LukeFretwell:

After watching the documentary Hacking Democracy, I started researching how government uses voting technology to conduct elections. That’s how I learned about the work of Open Source Digital Voting Foundation.

I asked OSDV Co-Executive Director and Chief Development Officer Greg Miller to share what his organization is doing to make election software more open and secure and how others can help.

OpenStax Open Sources College Textbooks.

Media_httpdldropboxco_fvppj
OpenStax College offers students free textbooks that meet scope and sequence requirements for most courses. These are peer-reviewed texts written by professional content developers. Adopt a book today for a turnkey classroom solution or modify it to suit your teaching approach. Free online and low-cost in print, OpenStax College books are built for today’s student budgets.

Saturday, February 11, 2012

Adding to the deficit: Bush vs. Obama - The Washington Post

Media_httpwwwwashingt_oyedr
Since President Obama became chief executive, the national debt has risen almost $5 trillion. But how much of that was because of policies passed by Obama, and how much was caused by the financial crisis, the continuation of past policies and other effects? For this analysis, we worked with the Center on Budget and Policy Priorities to attach a price tag to the legislation passed by Obama and his predecessor. George W. Bush’s major policies increased the debt by more than $5 trillion during his presidency. Obama has increased the debt by less than $1 trillion. Read related article.

90% of our trash could skip the landfill.

Monday, February 6, 2012

Soaking the Poor, State by State | Mother Jones

There's not one single state with a tax system that's progressive.

Media_httpwwwmotherjo_ccuaj

Friday, February 3, 2012

Livenotes from @techATstate

Media_httpapiningcomf_flvrd

Live (notes) from today's @techATstate conference:

Wednesday, February 1, 2012

CIO ≠ Chief Infrastructure Officer | Code for America

we need the “I” part of the CIO title to meaningfully relate to the provision of information services. We need municipal CIOs to spend less time on upgrading operating systems and deploying “thick” client software and more on the business of cities.