makandra dev

For webpages to load fast it's recommended to optimize images. Ideally an image's file size should be as...

If you want to fill in textareas with multiple lines of text (containing line breaks / new lines) you can use...

Whenever is a Ruby gem that provides a nicer syntax for writing and deploying cron jobs. Leading zeros are important...

rspec.info

RSpec let's you chain a matcher with .or. The expectation will then pass if at least one matcher matches...

Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...

makandracards.com

In medium-sized to large Rails applications, asset compilation can take several minutes. In order to speed up deployment, asset...

Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...

When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...

Webpacker uses Babel and Webpack to transpile modern JavaScript down to EcmaScript 5. Depending on what browser a project needs...

rubydoc.info

CarrierWave comes with some RSpec matchers which will make testing more comfortable. Let's say you have an Uploader like...

github.com

Recent Bundler (1.16.1) started complaining about missing dependencies in the Gemfile. This is due to a stricter handling of specifications...

github.com

This might be a known issue with Rubygems 2.5.1. This will help: gem update --system

You might have some trouble running a Rails LTS 2 app with MySQL 5.7. If you don't want to...

The httpclient gem comes with a custom SSL cert store. While an customizable, application-level cert store is great when...

You need to update a lof gems. Make sure you don't have any version constraints in your...

Bundler::GemRequireError: There was an error while trying to load the gem 'mysql2'. Gem Load Error is: Incorrect MySQL client...

stackoverflow.com

mysql> SELECT @@global.version; +------------------+ | @@global.version | +------------------+ | 5.6.30 | +------------------+ 1 row in set (0,00 sec) MySQL 5.6 Reference Manual says "BLOB and TEXT...

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

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 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...

blog.bigbinary.com

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

makandracards.com

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

github.com

When writing XLSX files, there are gems like rubyXL or axlsx. While they do offer features like formatting or graphs...