How to overwrite and reset constants within Cucumber features
Cucumber feature tests can temporarily replace global constants and restore them after each scenario, including newly created constants, without warning noise.
Upgrading Ruby from 1.8.7 to 2.3.5
Ruby 2.3.5 migration from 1.8.7 needs gem updates, syntax fixes, and test adjustments to resolve compatibility errors across Rails apps.
Rails index route for resources named after uncountable substantives
Uncountable Rails resources break normal route helpers and form handling. resource can still expose the index action through a special _index_path helper.
How to create a Basic Auth header value
Basic Auth sends credentials as a Base64-encoded username:password string in the Authorization header; Ruby can generate it with Base64.strict_encode64.
Ruby: Reading and writing CSVs
Ruby can read and write CSV files with the standard CSV library, and smarter_csv makes imports more convenient when converting rows into hashes.
CSS: How to find out the rendered font in chrome
System-specific font fallbacks can make text look different across machines; Chrome DevTools can reveal the actual rendered font in the Computed panel.
Live CSS / view reloading
Automatic browser refresh for stylesheet and view changes reduces manual reloads during front-end work and keeps page updates visible immediately.
Puma: How to force a single threaded boot in development
Single-threaded Puma in development avoids overlapping requests and noisy console output when debugging. Setting -t 0:1 makes other requests wait.
Cucumber: How to find unused step definitions
Cucumber can list step definitions separately, helping detect dead or duplicate steps before cleanup. --dry-run and --format stepdefs reveal candidates, but nested step calls can look unused.
Machinist blueprints: Do not set associations without blocks
Association values in Machinist blueprints need blocks so Project.make runs per blueprint instance, not once at parse time when RSpec loads.
How to upgrade Rails: Workflow advice
Upgrading Rails across major versions needs staged updates, compatible Ruby and gem versions, and repeated checks in console, server, tests, and config defaults.
How to: Use Ace editor in a Webpack project
Ace editor adds syntax highlighting and auto-indenting for in-browser code editing, with a working brace setup for Ruby on Rails Webpacker and Webpack 2.
byebug / ruby-debug: Find out current debugger position
l= shows the current file and line in byebug or ruby-debug; where and backtrace print the debugger call stack.
SVGOMG allows optimizing SVGs with a live preview
SVG files often need manual size and markup cleanup when the build pipeline does not handle them. SVGOMG runs SVGO in the browser with live preview and easy export.
Rubymine FileType mismatch
RubyMine can misclassify a Ruby file as plain text after a filename without extension was created first, leaving syntax highlighting disabled.
Exception notifier: How to provide custom data to fail mails
Custom data can be attached to ExceptionNotifier fail mails from foreground or background jobs; overridden sections settings may hide it unless data is included.
How to: expand an element's cover area beyond its container
Make a section stretch past a centered container to the viewport edges without hacks like huge negative margins or clipping; ::before and ::after extend the clickable and colored area.
Katapult 0.5.0 released
Katapult 0.5.0 adds deployment support for Opscomplete, template copying to target apps, and improved Webpack-based deployment.
How to find a Google API project by project number
Inactive Google API projects can be hard to identify when notification emails mention only a project number. The Console search and dashboard hide that number, so locating the right project requires checking settings.
How to access before/after pseudo element styles with JavaScript
Pseudo-element styles are hard to inspect directly, but getComputedStyle can read ::before and ::after values for testing and color checks.
jQuery: How to remove classes from elements using a regular expression
Removing classes by exact name is easy; removing unknown classes by pattern needs class list filtering or a removeClass callback.
Fixing "identify: not authorized"
Ubuntu disables PDF processing in ImageMagick because Ghostscript has had security issues; re-enable it only when Ghostscript is current and maintained.
Disable the Java plugin in browsers to avoid drive-by attacks
Java browser plug-ins can enable drive-by attacks when sandbox escapes are exploited. Disabling Java in every browser reduces exposure even if Java remains installed.
MySQL: Do not use "WHERE id IN (SELECT ....)"
MySQL subquery filters in WHERE id IN (SELECT ...) can force repeated scans and hurt update performance; a JOIN or preloaded id list is faster.