If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...

On application servers, gems are usually bundled into the project directory, at a location shared across deployments. This is usually...

If you get an error like this for a puppet mount: $ > puppet agent --test Info: Retrieving pluginfacts Info: Retrieving plugin...

Understand how we're dealing with exception notifications. Integrate exception notification into your MovieDB. Use your personal e-mail as...

So you're getting an error like this: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

TL;DR: Update the 'net-ssh' gem by adding to your Gemfile: gem 'net-ssh', '=2.9.1' Now run bundle update...

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

Building plain text emails with an .erb template doesn't allow you to indent code like you normally do in...

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

When giving a presentation with a projector it is sometimes better to use a dual screen layout instead of a...

In order to have monitoring for Sidekiq (like queue sizes, last run of Sidekiq) your application should have a monitoring...

api.rubyonrails.org

Instantiating ActiveRecord objects comes expensive. To speed up things, you can choose a more direct way to talk to your...

makandra dev
github.com

Improve geordi cucumber: Only attempt @solo run when the specified files contain the @solo tag, skip @solo run if any...

Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...

To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...

makandra Operations
redis.io

Hint You're not able to control which redis replica will chosen for the failover. Connect to your sentinel instance...

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

github.com

Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...

kb.wisc.edu

When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically.

to create a Gallery that has a name and has_many :images, which in turn have a...

makandra dev

Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...

When you have a localized website, you may want to redirect users to their preferred language when they visit the...

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...