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
Are you feeling kind of down? Could you use a quick pick-me-up? Have you considered therapy?
As we ask that last question, we don't mean psychoanalysis. Instead, maybe some "retail therapy" is what's called for in your situation!
We first learned about retail therapy from Russ Roberts' podcast with Tyler Cowen via EclectEcon, who excerpted Tyler's commentary from the podcast and observed the following:
Go to Amazon.com, look for some CDs, click, buy the CD....
It's genuinely fun. It's fun to do the shopping; it's fun to get the CD.
Lots of people do this. What is nice about his approach is that he is quite open about it: no guilt, no regrets.
And "retail therapy" provides utility not just if you are feeling down. Even when you are up, and not in need of a boost, shopping for something, buying it, getting it home, and trying it out — they are all fun activities. For someone to unabashedly admit it and support it is refreshing.
But there's also the potential problem of "buyer's remorse" to consider if you opt for retail therapy. What if you spend more than you really should have for something that maybe you don't really need? Like a trip to the international space station?
It's really a question of how to balance the good feelings stemming from retail therapy with the potential regrets of buyer's remorse. Fortunately, Geek Logik author Garth Sundem has math we can use, which we've put to use in the tool below. Just answer the questions as best you can, and we'll help see if retail therapy is the thing for you!
You can use the Buy Index Value above to tell how close you are to the "Buy Point" - if the value is greater than 1, you should buy the item. Otherwise, you shouldn't buy it.
Garth Sundem observes the following about the math behind the "buy it or not" equation:
This equation weighs the desirability of the purchase against its practicality. If it's a good buy and you have the money, of course you should buy the item. However, if your desire and the need fail to outweigh the cost and it's also a bit of an impulse buy, perhaps you should consider waiting for your heart to stop its consumer-frenzy palpitations. Or maybe think about investing this money in a safe place until your judgment improves.
Or maybe just limit your retail therapy to something else that fits better in your budget!
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.