Scoping a sunspot solr search by text using a string field
Sunspot filtering cannot use text fields for scoping because they are tokenized; add a string field to match exact values like state names.
Git: When committing, check the diff
Review staged and unstaged changes before committing to avoid leftovers and bad edits; git commit -v adds the diff to the commit message buffer.
Impressumspflicht bei Facebook & Twitter: Schnelle Info und Abhilfe
Für nicht-private Social-Media-Profile ist ein Impressum Pflicht; fehlende oder schlecht auffindbare Angaben schaffen eine Abmahngefahr. Facebook und Twitter brauchen dafür eigene, leicht erreichbare Verlinkungen.
How to inspect controller filter chains in specs
Inspecting callback chains in controller specs helps verify before- and after-action behavior, especially when tests need to confirm filter order or presence.
ActiveRecord::SpawnMethods
ActiveRecord::SpawnMethods removes query parts from an existing scope chain, helping build cleaner variations without rewriting the whole relation.
SSL certificate problem, when trying to install the libyaml package
RVM certificate expiry can block libyaml installation with SSL verification errors; updating certificates with rvm get stable restores curl access and lets Ruby be rebuilt.
How to fix: Firefox uses incorrect fonts on all webpages, regardless of their CSS
Firefox may ignore your chosen fonts and render webpages with fixed fonts when page-defined font selection is disabled.
Rspec shared example group error: ensure_shared_example_group_name_not_taken
Rspec shared example groups can collide with spec file names like *_spec.rb, causing ensure_shared_example_group_name_not_taken when RSpec loads them as specs.
Understanding the Selenium error "Modal Dialog Present" (aka Selenium::WebDriver::Error::UnhandledAlertError)
Intermittent Cucumber failures can come from a leftover browser alert blocking Selenium commands after an unfinished AJAX request.
Rails, callbacks, workers, and the race you never expected to lose « Logical Friday
Delayed background jobs can run before a Rails record is committed, causing after_save logic to see unsaved state and fail unexpectedly.
How to Create CSS3 Ribbons Without Images - SitePoint
Pure CSS3 ribbon effects without image assets, using shapes and styling instead of graphics for decorative labels and banners.
MySQL: Can I speed up LIKE queries by adding an index?
MySQL can use an index for LIKE patterns with a fixed prefix, but leading wildcards still force a scan. Ancestry-based hierarchy scopes may need indexing; PostgreSQL can use trigram indexes for broader matching.
RubyMine: Accessing views and partials from controllers
RubyMine links controller methods to their views and partials through gutter icons, making navigation between Rails controllers and templates faster.
Mock the browser time or time zone in Selenium features
Selenium browser tests see real system time unless the client clock is patched; timemachine.js and Timecop keep browser time aligned, while TZ can align the process time zone.
Why stubbing on associated records does not always work as expected
Stubbing methods on associated records can fail because belongs_to returns an association proxy, not the target object; stub the caller or the association explicitly.
Git Landscaping
Cleaning up abandoned Git feature branches reduces repository clutter after merges and keeps the branch list manageable.
Asset pipeline: Reasons why your stylesheet is empty
An empty stylesheet often comes from viewing the asset pipeline manifest during development or from a Sass syntax error that prevents compilation.
Firebug tip: Log DOM Events
Firebug can record DOM events in the Console panel for debugging element interactions without adding custom code.
Test your CSS rendering output with GreenOnion
Front-end styling regressions are hard to catch in views and pages. GreenOnion stores browser snapshots and compares them with diff images or percentage differences.
ReText
Cross-platform WYSIWYG-style Markdown editing with live preview helps write and inspect formatted text quickly, including small always-on-top reference windows.
Twitter Bootstrap: Base CSS
Core bootstrap 2 styles for typography, code, tables, forms, buttons, and icons form the basic visual layer of a web interface.
jQuery 1.8 Released
jQuery 1.8 brings internal performance improvements, a faster selector engine, and bug fixes, while later 1.x releases begin dropping support for older IE versions.
Silencing Your Staging Environment - The Hashrocket Blog
Production data testing can accidentally email real users; rewriting recipient domains in ActionMailer prevents staging mail from reaching live inboxes.
Fix error: Missing the mysql2 gem
Rails can report a missing mysql2 gem even when it is bundled if database.yml still uses the mysql adapter; older Rails versions need mysql2 0.2.x.