This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...
Rails 5.2+ supports "verbose query logs" where it shows the source of a query in the application log.
Learn how to create offline applications with service workers. The amazing power of service workers Writing your first service worker...
When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...
If you have a very large datadir in MariaDB and you want to transfer the data to another host (e.g...
Chrome has a built-in utility to check performance and accessibility (and more) of your web app: Lighthouse.
Rails middlewares are small code pieces that wrap requests to the application. The first middleware gets passed the request, invokes...
If you're about to handle X509 certificates and don't want to remember/google a handful of openssl commands you...
If you want to prevent that two processes run some code at the same time you can use the gem...
grep is the go-to CLI tool to accomplish tasks like filtering large files for arbitrary keywords. When additional context...
GoodJob is a new background worker gem. It's compatible with ActiveJob. We're huge fans of Sidekiq for its...
"Open-source software (OSS) is great. Anyone can use virtually any open-source code in their projects." Well, it depends...
If you have a :string or :text field, you should pair it with a model validation that restricts its length...
FactoryBot allows to create traits from Enums since version 6.0.0 The automatic definition of traits for Active Record enum attributes...
PostgreSQL offers three character types for your columns: character varying(n) (also called varchar or just string): Contents are limited...
In a web application you sometimes have tasks that can not be processed during a request but need to go...
Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...
Speaker today is Henning Koch, Head of Development at makandra. This talk will be in German with English slides.
We use CarrierWave in many of our projects to store and serve files of various formats - mostly images. A common...
To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...
In Active Record you can use named bindings in where-conditions. This helps you to make your code more readable...
With puma you can have concurrent requests. There are two concepts on how Puma can handle two incoming requests: Workers...
A recent patch level Ruby update caused troubles to some of us as applications started to complain about incompatible gem...
Chrome allows you to throttle the Network and the CPU. Both settings are useful to measure the performance of you...