Speed up your sass compile with sass-embedded

Sass compilation can be a build bottleneck. sass-embedded is a drop-in replacement for the deprecated sass package and is often about 50% faster.

How to change the time for a Docker container from the outside

Run a Docker container with a different perceived system time by injecting faketime via LD_PRELOAD and a mounted library path.

GoodJob: Ensure you get notified about background exceptions

ActiveJob and GoodJob can swallow exceptions, causing silent background job failures. Subscribing to job events and on_thread_error restores exception notifications and adds failure context.

Format your JavaScript with prettier

Opinionated formatting for JavaScript and TypeScript can remove whitespace debates and keep code consistent, with a small config and automatic reformatting.

Ruby: Avoiding errors when casting user input to Integers

User input often breaks integer conversion with exceptions or misleading zeros. Integer(..., exception: false) and ActiveModel type casting return nil instead.

Automatic Log Rotation in Rails

Rails log files rotate automatically around 100 MB, and config.log_file_size lets you cap growth and keep logs manageable in development, test, or production.

Checklist: Rails Authentication

Authentication is easy to get wrong because most users only sign in once. HTTPS with HSTS and a proven solution like Devise, Clearance or Rails primitives reduce security risks.

Documenting your project's Node.js version in .nvmrc

Node.js compatibility depends on the exact runtime version, and projects can pin a supported release in .nvmrc so teams use the same setup.

How to organize large I18n dictionaries in Ruby on Rails

Rails can split large translation files across config/locales to keep model, view, and boilerplate strings manageable.

Bookmarklet to generate a Pivotal Tracker story from Zammad Ticket

Create Pivotal Tracker stories directly from Zammad tickets with a bookmarklet for quick handoff to SWAT teams.

Timecop: reset after each test

Frozen time in tests can make suites flaky when state leaks between examples. Resetting Timecop after each test or using block form prevents order-dependent failures.

Reliably sending a request when the user leaves the page

Reliable analytics or logging delivery on page exit is difficult; navigator.sendBeacon can send POST data during unload or when the tab becomes hidden.

Stabilize integrations tests with flakiness introduced by Turbo / Stimulus / Hotwire

Turbo-driven Rails integration tests can become flaky under load because asynchronous renders and requests finish unpredictably. A Stimulus-based lockstep controller coordinates Capybara with Turbo events.

What does 100% mean in CSS?

CSS percentage values resolve against different reference boxes depending on the property, causing layout surprises when width, height, margins, padding, or transforms are involved.

How to avoid multiple versions of a package in yarn

Duplicate package versions in Yarn can break shared globals like window.jQuery, leaving plugins such as datepicker unavailable. resolutions can force one version across dependencies.

Processing GitLab Merge Requests within RubyMine

Review and comment on GitLab merge requests directly in RubyMine using the GitLab plugin, with file diffs and account connection built into the IDE.

Rails: Redirecting the Logger output temporary aka showing Rails logs in the console

Temporarily route Rails and Active Record logging to STDOUT to inspect database and framework output directly in the console.

Colorful output for several linux command line tools: grc

Adds colorized terminal output to common Linux commands, making logs and status output easier to scan in the shell.

How to evaluate CSS media queries in JavaScript

Responsive breakpoints can be checked in JavaScript with matchMedia() instead of duplicating CSS logic, and MediaQueryList change events track width updates efficiently.

Rails: Fixing the memory leak / performance issues in prepend_view_path

prepend_view_path can leak memory and bypass template caching when called per request, causing slower rendering in multi-tenant Rails apps.

Disable SimpleCov if you only run a fraction of your tests

Coverage reports add noise when only a small subset of tests runs; skipping SimpleCov for partial runs keeps output cleaner.

Javascript: How to match text by Unicode properties

Unicode character class escapes let JavaScript regular expressions match letters, numbers, and symbols beyond ASCII, making password checks work with umlauts and non-Latin digits.

ActiveRecord: Named bindings in conditions

Active Record where clauses can reuse the same value with named bindings, improving readability and avoiding repeated parameters in SQL conditions.

Capybara will not find links without an href attribute

JavaScript-heavy apps can render anchor tags that look clickable but lack href, so Capybara and assistive technology miss them. Adding href="#" makes link lookup and clicking work.