makandra dev

Class-level process definitions are only applied to the original file Versions are generated based on the processed original file...

github.com

See the attached link for a useful overview of modern (and classic) DOM API methods, like matches, contains, append, cssText...

Bundler 2 requires at least Ruby 2.3.0 and RubyGems 2.5.0. You might get the following error when you try to...

Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them...

For searching in large database tables we usually use PostgreSQL's fulltext search capabilities. While this works reasonably well for...

makandra dev

This is a presentation from 2019-01-21. Summary We want to move away from jQuery in future projects

Spammers have started abusing other application to send their spam. This works like this: The application has some form that...

When restoring a PostgreSQL dump using pg_restore, you usually add the --clean flag to remove any existing data from...

tableplus.io

To remove all tables from a database (but keep the database itself), you have two options. Option 1: Drop the...

I had this error: > gem install bundler Successfully installed bundler-2.0.1 1 gem installed > bundle install Traceback (most recent call...

When building an application that sends e-mails to users, you want to avoid those e-mails from being classified...

If your app does not need to support IE11, you can use most ES6 features without a build step. Just...

makandra dev
developer.mozilla.org

The standard way to abort async code is that your function takes a AbortSignal { signal } property. The caller can use...

makandra dev

Suggested Workflow Set the ruby version in .ruby-version to 2.3.5, then perform these steps one by one, fixing errors...

Remember How to skip Sprockets asset compile during Capistrano deployment and Automatically skipping asset compilation when assets have not changed...

When doing Basic Authentication, your browser will send an "Authorization" header. Its value is simply a Base64-encoded representation of...

In ruby you can easily read and write CSVs with the standard CSV library class. On top of this, you...

makandra dev

To restart all tasks monitored by God, don't use god restart. This command is only meant to soft-restart...

The rendered font often depends on the local font your system provides, therefore you often find a rule like below...

Puma allows you to specify the max and min threads. In development this could be useful if you use a...

stackoverflow.com

To reload a single-item association in Rails 5+, call #reload_ : post.reload_author In older Railses you can say

Cucumber factory supports polymorphic associations out of the box. Just keep in mind that you need to use named associations...

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...

When upgrading Rails versions -- especially major versions -- you will run into a lot of unique issues, depending on the exact...