What to do when you get a new credit card

As soon as you get that shiny new credit card, do the following: Activate the card. Call the 800 number on the sticker and answer the IVR prompts or convince the human that you’re real. Sign the card. If you haven’t already, call customer service and opt out of everything: phone, mail and email solicitations; …

HOWTO count words in JavaScript

Here is a handy JavaScript function for counting words: String.prototype.countWords = function(value) { // remove html tags var cleanedText = this.replace(/< .[^]*?>/g, ' ') // remove numbers and punctuation .replace(/[–—.(),;:!?%#$‘’“”'"_+=\/\-]*/g, '') // remove/coalesce space chars .replace(/(&nbsp;|&#160;|[ ])+/gi, ' '); // don't split "" into words, as you'll get 1 ([""]) if (cleanedText === "") { …