Disable automatic code suggestions in RubyMine
Constant code suggestion popups in RubyMine can interrupt typing. Turning off auto-display keeps completion available on demand with Ctrl+Space.
Why am I getting different results working with SVG files and ImageMagick?
SVG rendering with ImageMagick can vary across machines because it may use Inkscape, RSVG, or its internal renderer depending on installed packages.
Git: How to stage hunks with a single key press
Git interactive prompts can accept one-letter answers without Enter, speeding up hunk staging and other review commands.
Building web applications: Beyond the happy path
Web apps fail on devices, browsers, slow networks, large data, and printing when responsive design, loading states, image handling, and metadata are neglected.
How to use html_safe correctly
html_safe marks strings for unescaped insertion in Rails views, but does not unescape content; misusing it on user input can enable XSS.
Rails I18n fallback locales
Reuse one locale as a fallback for another instead of duplicating translations for regional variants like Austrian German.
Unpoly: Showing the better_errors page when Rails raises an error
AJAX errors in Unpoly can hide the full better_errors page in Rails development. A fallback full-page reload restores the interactive error view and CSS.
Sidekiq: Problems and Troubleshooting
Sidekiq workers require thread-safe code; gems used in background jobs must be verified for thread safety to avoid concurrency bugs and crashes.
Caution when using the || operator to set defaults
|| can overwrite valid falsy values like false, 0, and '' when setting defaults; use nil or null checks, fetch, or nullish coalescing instead.
Caching in Rails < 6.1 may down parts of your application when using public cache control
Public cache control can serve the wrong MIME type and enable cache poisoning when responses vary by Accept; Vary: Accept prevents stale or mismatched cached content.
Rails: Reverse Lookup a Fixture Name by it's id and table name
Find a Rails fixture name from a table and numeric id when the record label is unknown. ActiveRecord::FixtureSet can search loaded fixtures and return the matching key.
NPM: How to verify that your package-lock.json fulfills dependencies of package.json
npm clean-install or npm ci validates that package-lock.json matches package.json, preventing silent dependency drift during installation.
Rails: Looking up constants by their name string
Rails constantize and safe_constantize turn strings into constants, but untrusted input can resolve dangerous classes; validate with an allowlist first.
How to disable logging for ActiveStorage's Disk Service routes
ActiveStorage disk-service requests can clutter development logs with redundant route, record-load, and URL-generation messages. Selective silencing keeps Rails output readable.
Ignore Selenium driver deprecations
Selenium version updates can flood logs with deprecation warnings for driver methods. Selenium::WebDriver.logger.ignore suppresses selected tags and keeps logs clean.
PSA: Umlauts are not always what they seem to be
Visually identical umlauts can be different Unicode forms, breaking searches, comparisons, and output. String#unicode_normalize in Ruby 2.2 aligns them for reliable matching.
How to combine "change", "up", and "down" in a Rails migration
Rails migrations need path-specific logic for data updates while keeping rollback support. reversible, up_only, and reverting? handle direction-dependent SQL safely.
RubyMine users: you should be using bookmarks
Marking code lines in RubyMine helps revisit complex spots quickly and keep your place with anonymous or mnemonic bookmarks.
How the Date Header Affects Cookie Expiration and Caching
Cookie expiry and HTTP cache lifetimes depend on the Date header when present; missing it can make mocked-time tests and browser caching behave inconsistently.
How to enable Rails' file_fixture helper in FactoryBot
FactoryBot factories do not get Rails' file_fixture helper by default; including RSpec Rails file fixture support makes file_fixture available and sets the fixture path.
RSpec: Scoping custom matchers to example groups
Custom RSpec matchers can stay local to one example group or selected groups, avoiding global helper pollution while reusing expectation logic.
How to tackle complex refactorings in big projects
Large refactorings risk breaking tests, blocking releases, and entangling unrelated changes; breaking work into small green steps keeps long-running project changes manageable.
Getting permanent links to files on Github or Gitlab
Branch-based file links on GitHub and GitLab break when lines shift; commit- or tag-based URLs keep references stable.
TestProf II: Factory therapy for your Ruby tests—Martian Chronicles, Evil Martians’ team blog
Factories can make Ruby test suites slow by creating large association cascades and redundant records. TestProf helps identify factory hotspots with reports and flamegraphs.