When you have a powerful machine with many CPU cores, you might run into an error like

Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

We forked trusty memoizer to make two changes: Memoized methods now preserve their arity. Previously all memoized methods had an...

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

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

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

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

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

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

The Ace editor is a great enhancement when you want users to supply some kind of code (HTML, JavaScript, Ruby...

jakearchibald.github.io

There are many ways to optimize SVGs. Ideally, your build pipeline does that automatically for you (e.g. via postcss-svgo...

When projects run for many years, they require special regular maintenance to stay fresh. This kind of maintenance is usually...

makandra dev

If your Rubymine does not recognize a file type correctly although you have entered the unmistakeable file extension like material_orders_controller.rb...

We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...

makandra dev
github.com

Deployment ready for Opscomplete Copying view and controller templates over to target application during basics configuration or via...

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

relishapp.com

When you are using lambdas in RSpec to assert certain changes of a call, you know this syntax: expect { playlist.destroy...

github.com

This repository was created with the intention of helping developers master their concepts in JavaScript. It is not a requirement...

It is possible to access Rails config (for example secrets) from within your webpack bundles, thanks to rails-erb-loader...

When debugging your application, you will come across objects created by some gem or framework. You don't have the...

TL;DR: All modern browsers default to using the element as the main document viewport. In CSS, prefer to set...