How to solve Facebook’s error 1366027

Sometimes, Facebook silently fails when you upload a new profile picture. After clicking Upload Picture, message indicating “your changes have been saved” is displayed. However, the new picture does not appear on your profile. Further, the string success=0&errornum=1366027 is appended to the URL. This error means the image you uploaded is too small. You need …

Globe and Mail + Nanos = Infographic fail

A month ago, The Globe and Mail ran an article entitled Most Canadians want Elizabeth May at leaders’ debate, poll shows. It presented the results of a poll showing most Canadians supported Elizabeth May’s inclusion in the leaders’ debate. The article was unremarkable. The chart that accompanied it, however, was remarkably bad: First, the graph …

Your hiring process is broken

Job ads are usually terrible. Both boring and bland, they’re typically written by some HR functionary who is totally disconnected from the actual work being done. Requirements are ridiculous, and often impossible to meet (hint: in 1997, no one had 10 years of Java experience!). The emails I get from recruiters are generally poorly written, …

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 === "") { …