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
Blame Craig Newmark. No, not the Craigslist guy, we're talking about the *real* Craig Newmark. This morning, he linked to a Washington Post article featuring a mathematical formula and tool that's designed to measure the degree to which a music artist is 'selling out' by licensing their artistic products to be used in the commercial advertising for ordinary, everyday products, such as cars, soft drinks and underwear.
Update: We edited the previous paragraph after receiving an e-mail from Craiglist's Craig Newmark who confirms that he's real as well. The world will simply have to continue to be confused, as the statistics behind this site indicate that there can be only one....
The Washington Post's tool is a mixed affair. It offers an excellent graphic created by Todd Lindeman detailing the formula and providing entertaining suggestions for how to measure the degree of an artist's "integrity." But then, as you scroll down to where the tool's data input fields may be found, it gets pretty clunky.
You, as the user, are expected to remember all the things that go along with each of the different input factors that were presented in the excellent graphic. However, if you, as the user, are anything like us, you quickly forgot just about everything presented in the formula's graphic. That means you're going to be doing some serious up and down scrolling as you're using the Washington Post's tool. That process makes for a very clunky way of doing business.
Then, it gets stupid. Instead of providing your output right then, right there, the Washington Post takes the data you entered and sucks it back into the newspaper's servers, where we suspect it's probably pretty likely that they store it along with information about your computer and your location in a database, where it may well be used to target specific advertising your way.
So, if you are one of those people who get really upset by the idea of artists who sell out, well, guess what you just did. For free!
We know all this because of what the tool did when we clicked the "Calculate" button. Instead of quickly running the numbers and outputting the data directly, the entire page refreshed to include the results. That's a pretty wasteful way to do the programming for such a simple calculation.
We can do better. Here's our tool that's designed to do exactly the same math but that incorporates all the lessons we've learned, both tangible and intangible, in becoming the blogosphere's premier source for online tools.
Your role, should you choose to accept it, is to think about that artist you've always admired, their song that's always been one of your favorites, and which has perhaps now become irrevocably linked to dishwashing detergent, and enter the indicated data in the tool below to find out just how far the artist has gone down the sellout route:
The higher an artist's Moby quotient, the greater the degree to which the artist has sold out. The default data for the tool above is taken from the Washington Post's assessment of Led Zeppelin and their song "Rock and Roll" which is now used to hawk Cadillacs. Your artist's Moby Quotient may differ.
To be honest, this was a fun project for us! Then again, the combination of entertaining math and poor tool design is for us what offering crack to a junkie is like - a pretty irresistible combination. You can thank Craig Newmark for serving as our dealer....
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.