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
From time to time, Political Calculations takes on the challenge of answering questions that other blogs avoid. Whether that's due to fear on their part, where a sensitive topic may be too far out of their comfort zone, or just because they cannot, we see such challenges as an opportunity.
So let's talk about how much underwear you need to pack while you're traveling away from home. Not long ago, Ashley McIntosh of Brisbane, Australia's 97.3 FM radio posted the solution to a problem that we ourselves never appreciated existed. We'll let her explain....
Are you guilty of packing three times as many pairs of underwear as you could possibly need when travelling.
*Raises hand*
Or even worse... Not packing enough!?
Well never fear, this nifty new math equation is here to the rescue ladies.
And it seems pretty thorough.
Karina Judd recently shared on Facebook group Meme Queens her saving grace.
Not just that, but she has also created a public Google doc excel spreadsheet so the math is all done for you!
That's all well and good, but what if you're packing in a rush right before leaving on your trip because you've procrastinated too long and you can no longer afford to take the time to fire up your personal computer to run Karina Judd's spreadsheet to calculate how many pairs of underwear you should pack?
That's the kind of niche market that we seek to serve here at Political Calculations, where we've brought Karina Judd's undie math into the world of online ready reckoners you can run on your mobile! Just enter the indicated data below, and we'll sort out how much underwear you should pack for your travel. [If you're accessing this article on a site that republishes our RSS news feed, please click through to our site to access a working version.]
For the sake of simplicity, we've limited the tool to consider no more than a week-long vacation, where we've assumed you will not have access to clean underwear outside of what you pack (if you're traveling for longer than that, or have limited packing space, you might consider taking advantage of local options for doing laundry during your trip).
We've also generalized the math a bit, to make it more universally applicable. The original math in Karina Judd's spreadsheet was developed by Jess Evans, who considered a number of additional factors that could affect your underwear packing needs, such as the temperature of your destination, whether the drinking water is "dodgy", and whether you will be able to do laundry while traveling, where the spreadsheet can handle a much longer trip.
Underwear math is far from the strangest problem we've built tools to solve! Here's a sampling of some of the other quirky problems we've tackled over time....
Labels: geek logik, 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.