If your Webpack build is slow, you can use the Speed Measure Plugin for Webpack to figure out where time...

Chromedriver (or selenium-webdriver?) will not reliably scroll elements into view before clicking them, and actually not click the element...

As an application exists, data accumulates. While you'll be loosely monitoring the main models' record count, some supportive database...

...request: "GET /index.html HTTP/1.1", upstream: "http://198.51.100.123:80/index.html", host: "192.0.2.10:80" The cause This behaviour was caused by an application that transforms parts of the query from the URL into...

...find dead code in puppet projects. To use it, (as of now) it's best to get the latest version from git, as the last release is not yet on...

If you use a newer SSH key generated with the ED25519 algorithm instead of RSA (see Create a new SSH...

Wondering what these numbers in the mount entries in /etc/fstab are meaning? The first number fs_freq When this field...

PostgreSQL and ActiveRecord have a good support for storing dynamic attributes (hashes) in columns of type JSONB. But sometimes you...

For each movie in MovieDB, we want to track which other movie it was inspired by. For...

...calls html_safe if you're not escaping. FWIW, an HTML string may easily become invalid when truncated, e.g. when a closing tag gets chopped off. However, when the input...

When you have many changes, and you want to spread them across different commits, here is a way to stage...

We recently encountered a problem with GlusterFS (7.x) when an application used the flock syscall on a GlusterFS path...

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

# Capitalized expressions are intended to be replaced with YOUR values describe 'SERVICE', -> beforeEach -> module 'MODULE' module ($urlRouterProvider) -> # Prevent uiRouter's initialization, i.e. do not sync the current URL...

When making cross-domain AJAX requests with jQuery (using CORS or xdomain or similar), you will run into issues with...

When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...

Rails comes with grouped_collection_select that appears to be useful, but isn't. As an alternative, consider the flat...

...issue with this pattern/approach. What's happening? Consider these classes: class Post < ActiveRecord::Base belongs_to :thread def thread_title thread.title end end class Thread < ActiveRecord::Base has_many :posts...

...post.thread is not actually a Thread even though looking at its class makes you believe so: post.thread.class => Thread Its real class is ActiveRecord::Associations::BelongsToAssociation which is sometimes exposed, for...

...being used by default (which may be annoying). Here is how to do that. Beware: By following the steps below, you will drop and recreate your cluster. You will lose...

...As an example, we will be modifying 9.5 main (running on port 5435) below. Become a PostgreSQL superuser sudo su postgres Backup entire database pg_dumpall -p 5435 > 5435.sql

CoffeeScript and JavaScript (ECMAScript) both have operators in and of. Each language use them for more than one purpose. There...

When such a virtual attribute should contain integer values you might get unexpected behavior with forms, because every param is a string and you don't get the magic...

We often do some HTTP requests to fetch the data we want to check for certain criteria. Testing this in...

...guest from the CD, open a terminal (on the guest, not the host!) and become root: sudo su fdisk -l to see the disk information. \ There should be one drive...

The Oracle mysql client has an odd behavior if your server uses latin1 as default character-set-server. Command mysql --version mysql Ver 8.0.31-0ubuntu0.20.04.2 for Linux on x86...

...character-set utf8 and set the character set inside the session to circumvent this behavior. Better solutions Use MariaDB mysql client The MariaDB mysql client handles the --default-character-set...