Bundler: How to release a gem with 2FA enabled
Bundler releases can hang or fail when RubyGems two-factor authentication is enabled, especially with older versions and legacy Ruby runtimes.
Minified JavaScript and CSS
Production assets should be minified for faster delivery and smaller payloads. Rails 3.1+ handles this through the asset pipeline; older Rails versions need compressed JavaScript libraries.
Linux, Arial and Helvetica: Different font rendering in Firefox and Chrome
Firefox on Linux may resolve Helvetica to a different installed font than Chrome, causing text to shift and render poorly. Overriding the font alias can make browsers prefer Arial.
Guideline for moving from jQuery to vanilla JavaScript
Practical equivalents for common jQuery patterns in vanilla JavaScript, useful when modern browser support makes dependency-free code feasible.
Ruby: The YAML safe_load method hides some pitfalls
YAML.safe_load can reject symbols and aliases in Ruby, causing Psych::DisallowedClass or Psych::BadAlias unless classes and aliases are explicitly permitted.
Don't open user-supplied links with target="_blank"
Opening user-supplied links with target="_blank" can expose window.opener, enabling script access or location changes that support phishing. rel="noopener" reduces the risk in modern browsers.
Email validation regex
Ruby email checks can be simplified with URI::MailTo::EMAIL_REGEXP, while stricter web forms often need a top-level domain and looser validation may use Devise's pattern.
Unicorn: How to force a single threaded boot in development
Limit Unicorn to one worker in development to keep debugging output manageable and prevent concurrent requests like ActionCable from flooding the console.
How to fix webpack-dev-server not found
bin/webpack-dev-server can fail with Yarn's "Command "webpack-dev-server" not found" error when dependencies are missing; yarn install --check-files restores the command.
Links to CoffeeScript 1 documentation
Version 1 CoffeeScript projects need legacy documentation and examples that match ES5 output; current docs and the Try CoffeeScript console target the newer language version.
WProofreader: How to manually enable for a WYSIWYG editor instance (with CKeditor 4 example)
Manual activation for WProofreader can be needed when autoSearch misses a CKEditor 4 instance; initializing it on the editor iframe enables spell and grammar checking.
Guidelines for Pull Requests and Code Reviews
Enforcing peer review on even small changes improves code health in multi-developer projects and makes PRs and CRs easier to manage.
Testing regular expressions visually
Complex regex patterns are hard to debug by inspection; visual editors highlight matches and capture groups to make validation easier.
A collection of useful design resources for developers
Design tools, UI inspiration, and asset libraries help developers build polished interfaces faster without starting from scratch.
Integrating or upgrading makandra-rubocop
Integrating makandra-rubocop into an existing Ruby codebase often means handling many current offenses, then fixing cops incrementally without blocking development.
Checking database size by row count
Quickly gauge which database tables are growing unnoticed by checking approximate row counts in PostgreSQL or MySQL.
Rails: Invoking a view helper from the console
Call view helpers from the Rails console via helper or an ActionView::Base instance when a helper depends on templates.
How to: Specify size of Selenium browser window
Set a consistent browser viewport for Selenium tests to avoid layout-dependent failures and mobile-versus-desktop behavior differences.
Fix error: rails console No such file to load -- irb/encoding_aliases.rb (LoadError)
Rails console fails after upgrading Ruby because spring tries to load a missing irb file. Updating binding_of_caller to 0.8.0 restores console startup.
How to enable Chromedriver logging
Chromedriver logging helps diagnose Selenium Chrome test failures by recording driver activity to a file or terminal. Service configuration or a manually started driver can enable verbose output.
palkan/isolator: Detect non-atomic interactions within DB transactions
isolator raises errors for non-rollbackable side effects inside DB transactions, such as HTTP calls, queued jobs, and emails.
The nitty-gritty of compile and link functions inside AngularJS 1 directives
AngularJS directive lifecycle hooks control template mutation and link-time behavior before and after child directives run, enabling DOM customization and coordinated initialization.
Bash script to list commits by Pivotal Tracker ID
Quickly list Git commits tied to one Pivotal Tracker story ID, making related changes easier to spot with a small Bash helper.
Convert SCSS to SASS
Convert .scss files to indented Sass syntax from the command line with sass-convert, including whole directories.