rc3.org Strong opinions weakly held

Archive for August 2009

Links for August 31

Useful media criticism

Matt Thompson wrote a really good blog post a few weeks ago that I didn’t link to because I assumed everybody saw it, The 3 key parts of news stories you usually don’t get. It explains why people can watch the news on TV or read the newspaper and still not really understand the issues of the day. The argument is that the media tends to cover what’s happening right now without providing useful context or explaining the significance of the news.

I wanted to go back and link to Thompson’s article because it provides useful context for Matthew Yglesias’ explanation of why this is a big problem:

The bias toward process stories is not ideological in its intent, but it’s strongly ideological in its impact. Creating public confusion and ignorance while obscuring what’s really happening tends to favor elites versus people of modest means, it favors the status quo over change, it favors insiders over outsiders, and it favors narrow interests over the public interest.

This is why I read blogs. There are plenty of blogs that are just as focused on the day to day goings on of politics as any newspaper or cable news show, but I don’t read them. (It’s why I don’t subscribe to Think Progress any more.) I strongly prefer blogs that focus on digging into the substance of issues, and the good news is that there are plenty of them out there. Oddly enough, the newspaper that to me represents the worst journalism has to offer, the Washington Post, also employs one of the best public policy bloggers around — Ezra Klein.

Links for August 29

Sometime soon I’m going to write about how being a programmer makes me think differently about toothpaste. In the meantime:

Links for August 28

What do you guys think of the new link format? Good? Bad? Should each link be a separate post?

Links for August 27

Links for August 26

Storing data for Google Maps

I hinted at this in my link post, but I thought I’d write up the whole thing in hopes of discussing it. I have a page that will include a Google Map with markers for a number of locations (potentially a large number of markers). For an explanation of how to add markers to a Google Map, check out this page.

So the question is: how do you get the address data from my database to Google Maps?

The process is to geocode the address and then apply the marker to the map. There’s a simple example at that link.

Here are some possible approaches:

  1. Write some code (PHP in this case) that emits the JavaScript used to geocode the addresses and put the markers on the map. Unfortunately then you have a mixture of JavaScript and PHP code that looks a lot like JavaScript on your page.
  2. Print out a JavaScript data structure that contains all the information for the markers and then iterate over that data structure in JavaScript.
  3. Put the map data in hidden elements on the page where it can be extracted using JavaScript. The downside is you have hidden elements on your page. The upside is that your PHP is completely separated from your JavaScript.
  4. Create a service that returns a JSON data structure of the marker information that can be called using XmlHttpRequest and call that from the page. That offers a clean separation of the JavaScript from the PHP but unfortunately could add latency to the page.

I’ve done some searching to find out how people handle this problem, but haven’t seen any good answers yet. Any ideas?

Links for August 25

Links for August 24

Trying yet another format for daily links. Here we go:

Women’s rights

While I was tinkering with my server over the weekend, the New York Times Magazine was publishing this incredibly thought provoking cover story on women’s rights. Seriously, read the whole thing. I’m not even going to pick out any of the most interesting facts cited so that you have to go look for them.

← Before