Silence specific deprecation warnings in Rails 3+
ActiveSupport deprecation warnings can be selectively hidden when a specific warning cannot be fixed and only certain messages should stay visible.
Removing MiniTest warnings from Rails 4 projects
MiniTest deprecation warnings in Rails 4 often come from older test gems using the outdated API; adding minitest can silence one warning, but some require gem updates.
patbenatar/jquery-nested_attributes
jQuery plugin for dynamically adding and removing ActiveRecord nested records in forms, simplifying repeated input for parent-child data.
Discarding cached SQL query results in ActiveRecord
ActiveRecord keeps SQL query results in a cache; clearing it for a single model with MyModel.connection.clear_query_cache forces fresh database reads.
A saner alternative to SimpleForm's :grouped_select input type
SimpleForm's :grouped_select can be awkward when you already have a flat collection and need grouped options. A group_by extension makes optgroup labels easier to derive.
Lightweight PDF viewer: MuPDF
Fast PDF reading with correct rendering for PDF 1.7 and tricky files that other viewers mishandle. Keyboard-driven use and basic mouse support are available, but printing is not.
A Ruby script that installs all gems it is missing
Ruby code can recover from missing dependencies by auto-installing absent gems and retrying require instead of aborting with LoadError.
Your First AngularJS App: A Comprehensive Tutorial
Beginner AngularJS development often involves routing and client-server data transfer issues. A hands-on introduction helps build a first working app with core concepts.
Caching in Rails
Rails 2.3 caching can speed up pages and views, but stale output and missing authentication hooks make cache strategy and invalidation tricky.
When using "render :text", set a content type
Rails render :text responses default to text/html, which is wrong for plain text and can trigger HTML middleware; set content_type or use render :plain.
Get the last leaf of a DOM tree (while considering text nodes)
Finding the terminal visible node in a DOM tree is tricky when text nodes matter; jQuery skips them, so last-element logic can point to the wrong place.
Chrome 34+, Firefox 38+, IE11+ ignore autocomplete=off
Modern browsers may ignore autocomplete="off", causing passwords to autofill on admin forms and new-user screens. autocomplete="new-password" or dummy fields can prevent unwanted fills.
About "unexpected '#' after 'DESCENDANT_SELECTOR' (Nokogiri::CSS::SyntaxError)"
Invalid CSS selectors can trigger Nokogiri::CSS::SyntaxError in Cucumber and Selenium, often when dynamic selector building inserts nil or malformed IDs.
YAML: Keys like "yes" or "no" evaluate to true and false
Unquoted YAML keys like yes and no are parsed as booleans, so string keys must be quoted to avoid silent hash changes.
Fix Rubygems error: undefined method `source_index' for Gem:Module
Ruby 1.8.7 can break with newer Rubygems releases, causing undefined method 'source_index' for Gem:Module; using a compatible Rubygems version restores gem management.
OpenStack nova resize "ERROR: Resize requires a change in size"
OpenStack Nova can reject resize with HTTP 400 when the target flavor has the same memory size as the current one; older versions contain this bug.
Bash output redirection
Bash file descriptor redirection separates standard output, error output and input, and combines them to silence or capture command output safely.
Strong params: Raise in development if unpermitted params are found
Unpermitted request data can slip into Rails controllers unless action_on_unpermitted_parameters is set to log or raise; development can fail fast on unexpected keys.
Mute Rails asset pipeline log messages
quiet_assets suppresses noisy asset pipeline messages in development logs, reducing clutter while keeping them available when needed.
Making media queries work in IE8 and below
IE8 and below ignore @media queries, leaving responsive layouts broken; Respond.js can polyfill support for older browsers without loading it for everyone.
Spreewald: Old-school cucumber steps, freshly pickled
Spreewald keeps Cucumber-style web steps available while adding reusable steps for emails, tables and time travel in a Ruby gem.
Disabling HSTS
Removing an HSTS policy requires sending Strict-Transport-Security: max-age=0 over HTTPS so browsers forget the site is HTTPS-only.
Retrieving the class an ActiveRecord scope is based on
Edge Rider adds #origin_class to relations, returning the underlying class for unscoped lookups across Rails versions.
Why you might not need MVC with React.js
React.js uses a virtual DOM to re-render only changed parts, making full-screen updates fast enough that subviews and MVC separation may be unnecessary.