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

wiki.postgresql.org

When you have a large PG database, you may want to find out which tables are consuming the most disk...

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

For applications coming with lots of stylesheets and scripts, asset compilation might take quite long. This can be annoying when...

makandra dev
begriffs.com

The attached article explains options you have to store the order of items in a database table. The simplest solution...

Don't sum up columns with + in a sql-query if NULL-Values can be present. MySQL and PostgreSQL cannot...

When you find yourself constantly ignoring a RubyMine warning, you can simple disable that warning and de-clutter your editor...

makandra dev
github.com

geordi delete_dumps [directory] Recursively search for files ending in *.dump and offer to delete those. When no...

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

MySQL and MariaDB have an SQL mode setting which changes how MySQL behaves. The SQL mode value is comprised of...

On your local system that only hosts non-critical development data and only you have access to, you can store...

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

Running rails server will start a local server that you can access via http://localhost:3000. When you are working...

stackoverflow.com

Your default postgres user is named like your linux user. That default user has limited access privileges, which can cause...

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

guides.rubyonrails.org

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

makandra dev

When a Rails controller action should handle both HTML and JSON responses, do not use request.xhr? to decide that. Use...

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

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

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

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

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