to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Last week, while visiting Bozeman, Montana, Matt Kahn looked out over all he surveyed and said:
I'm in Bozeman, Montana. While there are 40,000 people in this city. I see a lot of open space. Google taught me that Montana has 380,000 square kilometers of land. Suppose that 50% of that can be built upon. Suppose we built up at Hong Kong's density of 7000 people per square mile. So, we would re-create dense cities at a higher latitude. Let's do some math. 190,000*7000 = 1.33 billion people could live in Montana. This migration and real estate construction would create great wealth. Now, given that the U.S population has only 340 million people --- we could open up migration for those who could jump over Don Trump's wall and house them. This example is meant to show folks how urbanization facilitates adaptation. We need to use our resources more efficiently.
Why do I focus on Montana? It is towards the North and it is off the coast and there is plenty of land here. Yes, this land has some economic activity taking place on it right now but urban use would be more valuable. I am now working on a natural disaster project with Leah Boustan and Paul Rhode and once I can access our disaster data, I will update this post to see whether Montana is exposed to more disasters than would be predicted given its size.
We love this kind of blogging from econ professors because it makes for a quick and dirty tool development project! We've taken Kahn's algebra and built a tool to do it, where anyone can substitute the default data for Montana and Hong Kong (Hong Kong's population density is nearly 7,000 people per square kilometer) with the region or population density of their choice. Including you, where if you're accessing this post on a site that republishes our RSS news feed, please click through to our site to access a working version of the tool so you can!
Since the topic of disasters came up, the biggest lurking natural disaster that has been proposed for Montana would be an eruption of the Yellowstone supervolcano, which in terms of potential scale, would make the plot of a big budget Hollywood disaster movie look like a straight to video animated sequel to a less-than-popular children's movie.
The timebomb under Yellowstone: Experts warn of 90,000 immediate deaths and a 'nuclear winter' across the US if supervolcano erupts
- It could release 1 ft layer of molten ash 1,000 miles from the National Park
- It would be 1,000 times as powerful as the 1980 Mount St Helens eruption
- A haze would drap over the United States, causing temperatures to drop
- Experts say there is a 1 in 700,000 annual chance of a eruption at the site.
The odds of such an event are everything in determining whether we should build out Montana to be the home of 1.33 billion people.
Labels: environment, tool
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.