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. You also need to make sure rbenv knows where you put readline. 1. Install rbenv […]

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 Running “sass:theme” (sass) task OptionParser::InvalidOption: invalid option: –image-path=assets/img Use –trace for backtrace. OptionParser::InvalidOption: invalid option: […]

Quick Cruz and Paul updates

Good news: Ted Cruz’s https homepage no longer 404s: $ curl -I https://tedcruz.org/ HTTP/1.1 301 Moved Permanently Server: cloudflare-nginx Date: Wed, 15 Apr 2015 02:03:46 GMT Content-Type: text/html Connection: keep-alive Set-Cookie: __cfduid=d738dec08ca404d83f8aa2b5baafa66821429063426; expires=Thu, 14-Apr-16 02:03:46 GMT; path=/; domain=.tedcruz.org; HttpOnly Location: http://www.tedcruz.org/ Set-Cookie: X-Mapping-fjhppofk=FDCC6397B2B0DC55E6AEB95E4FAB3D36; path=/ CF-RAY: 1d74136e3b2b076d-EWR I noted Rand Paul is running PHP 5.5.9. That’s […]

Presidential candidate website tech, compared

Today, Hillary Clinton announced that she’s running for president. She also launched a new website. Over the next year, political pundits will spend far too much time dissecting the horse race, scandals (real or imagined), the electoral college and more polls than you can shake a stick at. I’m doing none of that. I’m just […]

On Feedback

Jobs’s taste for merciless criticism was notorious; Ive recalled that, years ago, after seeing colleagues crushed, he protested. Jobs replied, “Why would you be vague?,” arguing that ambiguity was a form of selfishness: “You don’t care about how they feel! You’re being vain, you want them to like you.” Ive was furious, but came to […]

Declaring independence … from the dictionary

Be careful when you give people a freeform text field. They’ll get creative. Here are 28 — yes, 28 — ways people spelled “independent”: endapendent IDEPENDENT Ind. Indenpent indepant Indepdendent Indepedent indepenant Independance Independanr Independence Independent independiant independient independnt Indepenent indepent Indepentant indepented Indepentent Indepependent Indipendant indipendent indopenit indpendant Indpendent Indpndt undependent