Sometimes you accidentally generate entries in the bash history that you do not want to have there (e.g. commands with...

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

makandra dev

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...

In Rubocop you might notice the cop Style/CaseEquality for e.g. this example: def foo(expected, actual) expected === actual end

Here is a short summary of Cucumber hooks in Ruby taken from https://github.com/cucumber/cucumber-ruby. Note that the BeforeStep is...

Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

On some of our older projects, we use the mysql2 gem. Unfortunately, versions 0.2.x (required for Rails 2.3) and...

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...

If a model inherits from others or uses many concerns / traits, it might be hard to see in the code...

ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...

news.ycombinator.com

This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...

CSS variables are very different from preprocessor variables. While preprocessors use variables to compile a static piece of CSS, CSS...

A flat folder structure can be cool if you have only a few folders but can be painful for huge...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...

makandra dev

If you have a Ruby Pathname, you can use the method :/ to append filepaths to it. With this method, Ruby...

Ruby's File class has a handy method binary? which checks whether a file is a binary file. This method...

If you want to prevent that two processes run some code at the same time you can use the gem...

If you migrate a Rails application from Sprockets to Webpack(er), you can either transpile your CoffeeScript files to JavaScript...

CSP hat zum Ziel einen Browser-seitigen Mechanismus zu schaffen um einige Angriffe auf Webseiten zu verhindern, hauptsächlich XSS...