When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.
You can use proxy_hide_header in different contexts: Syntax: proxy_hide_header field; Default: — Context: http, server, location
Note Don't use reruns as a mean to work around flaky tests. You should always try to fix those...
To connect to the serial console of an EC2 instance, you can use the aws cli. Add your public ssh...
Maintain this feature branch on a regular basis to not get too far behind production. Setup a reminder to either merge the branch or drop it. Inform the colleagues...
Create a user without password (recommended) Replace newuser with your desired username: mysql -uroot -p CREATE USER 'newuser'@'localhost' IDENTIFIED...
...also packaged as a snap. A snap will always track a channel (like stable, beta) and automatically update to the newest version available in this channel. By default the snap...
channels: stable: 2018.3.2 (72) 269MB classic candidate: 2018.3.2 (72) 269MB classic beta: 2018.3.2 (72) 269MB classic edge: 2018.3.2 (72) 269MB classic 2018.3/stable: 2018.3.2 (72) 269MB classic 2018.3/candidate...
Wondering what these numbers in the mount entries in /etc/fstab are meaning? The first number fs_freq When this field...
Our projects with parallel_tests and cucumber used to have a patched failure logger as the one from parallel_tests...
It's not possible to use variables in media queries with plain CSS. @media (max-width: var(--some-pixel-size...
After upgrading to Rails 6.1.7.2 one of our apps printed a wall of warnings while booting: /var/www/app/shared/bundle/ruby/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: already...
If you want to find out whether a Class object is directly inheriting from another class, use superclass: ActiveRecord::RecordNotFound.super...
Given there is a user with an attachable avatar: class User < ApplicationRecord has_one_attached :avatar end
We often do some HTTP requests to fetch the data we want to check for certain criteria. Testing this in...
When your JavaScript bundle is so massive that you cannot load it all up front, I would recommend to load...
Rubymine 2024.3 bundles Grazie Lite by default. You need to enabled "German" under Settings/Preferences | Editor | Natural Languages.
Git has two kind of tags: annotated lightweight Annotated tags are stored as full objects in the Git database. They...
Within Capybara you most certainly use the #check- and #uncheck-method to (un)check checkboxes. But there's one problem...
These two addons will change your life: Search as list This will always open search results in the list views...
...systemd service unit: # Run `openssl speed` as unit run-benchmark.service $ sudo systemd-run --unit=run-benchmark openssl speed # Query the current status $ systemctl status run-benchmark.service ● run-benchmark.service - /usr/bin/openssl speed Loaded: loaded (/run/systemd/transient/run-benchmark.service...
...CGroup: /system.slice/run-benchmark.service └─18344 /usr/bin/openssl speed # Get the logs $ sudo journalctl -u run-benchmark.service -- Logs begin at Mon 2022-03-07 13:45:18 CET, end at Wed...
...iterated until the final design is ready – shiny, accepted and ready for implementation. I believe this works well when you get to work with the final decider in person.
When using Sidekiq in your application, you must write thread-safe code. This wiki page also lists gems that are...
...switches to the clicked link. In a Jasmine spec I wanted to test this behaviour. Unpoly's up.hello emits an up:fragment:inserted event, in whose callback function I can...
As a developer you may have many tools watching your project for changes: Your IDE, Webpack, Guard, etc. This is...