Category Archives: public service announcement

Fixing git-svn on OS X El Capitan

When you install a new version of Mac OS X, git svn breaks. This happened with Mountain Lion and Mavericks, it happened with Yosemite. It happens again with El Capitan. Unfortunately, the old solutions no longer work due to El … Continue reading

HOWTO make readline and history work with irb and rails console on OS X Yosemite

Here’s how to make readline (including control-R reverse search) and command history work with both irb and the Rails console with rbenv and OS X Yosemite (10.10.4). You need to install Readline first, as OS X ships with libedit instead. … Continue reading

fixing dlopen “no suitable image found” errors with node, sass and grunt

I ran in to this error today: $ grunt css Loading “sass.js” tasks…ERROR >> Error: dlopen(/path/to/project/node_modules/grunt-sass/node_modules/node-sass/vendor/darwin-x64-node-0.12/binding.node, 1): no suitable image found. Did find: >> /path/to/project/node_modules/grunt-sass/node_modules/node-sass/vendor/darwin-x64-node-0.12/binding.node: truncated mach-o error: segment __LINKEDIT extends to 1765408 which is past end of file 1765309 … Continue reading

Making Flickr badges work with https

Following Eric’s instructions, I switched paulschreiber.com to https. I then had to get rid of the pesky mixed-content warnings. Most were pretty straightforward — I had a few JavaScript files and images that used absolute URLs and HTTP; I switched … Continue reading

How to take your bike on Amtrak

After biking to DC, I needed a way to get my bike back to New York. There were a few options: Ship it (FedEx Ground would be best) Take it with me on a bus Take it with me on … Continue reading

The case against MBAs

Have friends who wants to go to business school? Please save their souls (and their livers): An infographic detailing the cost of an MBA. The Economist: Think twice The return on investment on an MBA has gone the way of … Continue reading

iMessage and T-Mobile Monthly4G prepaid

I have a factory unlocked iPhone 4. It was running iOS 5.0.1 and has a T-Mobile SIM in it. Voice, text, data and MMS all work as expected. This morning, I was unable to activate iMessage. Several times, it got … Continue reading

Ontario 2011 Election results, consolidated

If you don’t want to download and parse 107 pages of Elections Ontario data, I’ve gathered it for you:

7198299 Canada Limited

7198299 Canada Limited is Red Chili Thai, 1266 Danforth Avenue in Toronto. [for Google]

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, ' '); // … Continue reading