This should not be necessary in any case and is only for special cases, for e.g. if the assets...

Trying to open a vnc window with geordi geordi vnc ended up with this error: > VNC viewer could not be...

Use bundler > 1.15 to fix Gem::LOADED_SPECS_MUTEX (NameError). Given the following project: ruby -v ruby 1.8.7

guides.rubyonrails.org

When your Rails controller calls render, you can pass a :status option for the HTTP status code: render 'results', status...

With passenger-status --show=requests you can get a huge JSON showing current information about the running passenger processes.

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

If you want to make a screenshot of a website that works well in print or on a high-DPI...

I recently had fun with replacing a custom video plattform ("mycustomtv") in one of our applications. I learned a lot...

Sometimes it's necessary for you to check which ports are in use on your local machine and which process...

Understanding your type of cronjob Some cronjobs must only run on a single server. E.g. when you run nightly batch...

When installing gems, a lot of time is spent building locally installed documentation that you probably never use.

makandra Operations

If one etcd node is no longer a member of the remaining etcd cluster or fails to connect you need...

When you have a pending Cucumber step (or feature) that also uses an existing VCR cassette, your pending test may...

makandra dev
github.com

Katapult 0.3.0 brings Rails 5 and Ruby 2.5 support with a new design, plus a ton of smaller features, fixes...

Say you want to move a git repository from one remote (perhaps Github) to another (perhaps Gitlab).

This cucumber step is useful for testing an image (looking at the src of the image). Then(/^I should see...

makandra dev

ActiveSupport::Dependencies takes care of auto-loading any classes in development. This is usually useful, but when you run into...

makandra dev
fontawesome.com

Font Awesome version 5 changed some icon names, and introduces new prefixes fab, far, and fas. There is a JavaScript...

TL;DR Use user.update!(remove_avatar: true) to delete attachments outside of forms. This will have the same behavior as...

rubylearning.com

This article will show you how to use throw and catch. It's a nice tool to break out of...

This is a small example on how you can check if your Postgres index can be used by a specific...

github.com

The issue: You are using stub_const to change a constant value for your test. stub_const "SomeClass::CONST", 'test...

blog.bigbinary.com

This error is raised because your old database does not have a configured environment yet, which Rails 5 enforces.

makandra dev
makandracards.com

Rails applications and ruby gems should have a README that gives the reader a quick overview of the project. Its...