Here is the resulting command: docker run --rm -it \ --env FAKETIME="@2025-09-18 12:00:00" \ --env LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 \ --volume /usr/lib/x86_64-linux-gnu/faketime:/usr/lib/x86_64-linux-gnu/faketime:ro \ example/image Note that faketime...
GoodJob and ActiveJob rescue exceptions internally, preventing exception_notification from triggering. This can cause silent job failures.To get notified, subscribe...
prettier calls itself an opinionated code formatter. I recommend using it for your JavaScript and TypeScript code. prettier only concerns...
There's a method Integer() defined on Kernel, that typecasts everything into an Integer. Integer("2") # 2 Integer("foo") # Invalid...
navigator.sendBeacon is a way to reliably send a POST request, even on unload. Please note, however, that there are generally...
If you run a Rails app that is using Turbo, you might observe that your integration tests are unstable depending...
GitLab has a RubyMine plugin that enables you to review and process merge requests within RubyMine! Setup Open RubyMine settings...
Coverage reports are rarely useful if you run only small parts of your test suite. Just do not load SimpleCov...
The linked MDN article is quite informative of a neat feature supported by all major browsers: Unicode character class escape...
SimpleForm comes with an option browser_validations which could be used to give fields that have a presence validation the...
RSpec examples can get quite long, especially in feature specs. This makes them hard to read & understand. Also, when executing...
When RSpecs runs the first feature spec, you may see log output like this: Capybara starting Puma... * Version 6.5.0, codename...
ActiveRecord computes table names of model classes, and results are usually just like you'd expect. Adding a prefix for...
In Rails 7.2. the feature ActiveRecord.after_all_transactions_commit was added, for code that may run either inside or outside...
In Rails 7.2 the new default for config.action_dispatch.show_exceptions is rescuable. :rescuable: It will show a Rails error page in...
Modern CSS offers the field-sizing property to allow elements to automatically adjust size (width and/or height) to fit their...
When you repeat complex assertions in your tests multiple times, it might be a good idea to extract a custom...
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...
If you want to build a small CLI application, that supports more advanced inputs than gets, I recommend using the...
The DB schema is the most important source of truth for your application and should be very self-explanatory. If...
We usually ship applications that self-host webfonts to comply with GDPR. Many popular web fonts are available as NPM...
The linked article shows how to configure omniauth-multi-provider to support multiple SAML identity providers for a single Rails...
tl;dr Set profile.password_manager_leak_detection to false in your Selenium Chrome options to disable password leak detection and...
If you need dummy data to play around with in development, it's often faster to reuse your existing factories...