You can tell npm to install a package globally with npm -g install @puppeteer/browsers. However, it seems that its not...

Terraform (and terragrunt) gives a lot of output when running plan or apply, outputting a lot of progress information when...

Sometimes you might need to do some task in GitLab which would be tedious if you'd have to do...

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

docs.ruby-lang.org

The sprintf method has a reference by name format option: sprintf("% d : % f", { :foo => 1, :bar => 2 }) # => 1 : 2.000000

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

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

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

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

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

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

github.com

Zeitwerk is the new autoloader of Rails. It is mandatory starting with Rails 7.0. Sometimes, a model needs to know...

Controllers Take care when defining nested resources, as they don't behave identical to namespaced resources: namespace :users do resources :sign_ups, only: [:new] end # GET /users/sign_ups/new...

...in controllers/sign_ups_controller.rb in order to make the second example work. You can alter this behaviour with a custom controller path, as shown in the very first example of this card...

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

This should not be necessary in any case and is only for special cases, for e.g. if the assets...

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

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

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

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

sudo gem install gettext --no-ri --no-rdoc sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://...

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

blog.cloudflare.com

Two weeks ago, Cloudflare was struck by a global outage that lasted ~30 minutes. The incident was rooted on a...