atlassian.com

Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...

I recently built a screen with a very high and wide table in the center. This posed some challenges:

When your Rails application is using Redis as its cache store, this is how you can list existing keys:

thejh.net

What you copy may not be what you see in the browser. Here is an online tool to determine the...

The change_column method for rails migrations support casting with a custom SQL statement. This allows us to change a...

...machine is usually on a very good network connection. To test how your application behaves on a slow network (e.g. mobile), you can simulate limited bandwidth. Chrome

When you need to insert many records into the same table, performance may become an issue. What you can do to save time is to open a transaction and save...

You can unpack a .tar.gz file into the current directory like this: tar -xzvf archive.tar.gz The options used are

If you are using git submodules in Gitlab CI, you might run into a "The project you were looking for...

Reacting on a class getting added can be done with a mutation observer. Example: const items = document.querySelectorAll('.item') const expectedClass...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

docs.sentry.io

You can report CSP violations to Sentry. Within config/initializers/content_security_policy.rb: Rails.application.configure do config.content_security_policy do |policy| # Settings for the policy...

...emoji picker that also uses Control+Shift+E to open. You can change this behaviour by opening the ibus setup from the console: ibus-setup A window will open and...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

When deploying Rails applications you might have noticed that JS and CSS are not cached by all browsers.

rspec.info

Note Don't use reruns as a mean to work around flaky tests. You should always try to fix those...

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

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

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