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 …

Monte McNaughton is a homophobic bigot

“It’s not the premier of Ontario’s job — especially Kathleen Wynne — to tell parents what’s age-appropriate for their children.” —Monte McNaughton “What is it that especially disqualifies me for the job that I’m doing? Is it that I’m a woman? Is it that I’m a mother? Is it that I have a master’s of …

Ain’t no party like a no-party party

Sometimes indepenence isn’t enough. Want to make sure folks know you’re not a member of a political party? Here are 74 ways people have done this: Do not wish to specify dont have one Dont have one. dont know dont no DONT NO YET Dont want to say I am not affiliated with a party …

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