Why your javascripts should be executed after the dom has been loaded
JavaScript that touches the DOM can run too early and fail before elements exist in the parsed tree. Waiting for DOM ready avoids timing bugs and missing nodes.
Git: Moving a commit between repositories
Move a single Git commit to another repository without adding a remote by exporting a patch and applying it in the target repository.
Associations named using a string cannot be included in a scope
String-based belongs_to associations break eager loading and scope includes in ActiveRecord, causing missing-association errors. Defining associations with symbols avoids the configuration error.
How to combine greps on log files opened with tail -f
Chaining grep with tail -f needs --line-buffered, otherwise matches may not appear immediately in a pipeline.
Git: Diff staged changes
git diff omits staged changes; git diff --cached shows the changes already added to the index and ready for the next commit.
How to create Excel sheets with spreadsheet gem and use number formats for cells like money or date
Create .xls files with the spreadsheet gem and apply number formats for currency and dates, including cell links.
Using Solr with Sunspot
Running Solr with Sunspot adds Rails search, but requires local setup, reindexing, error handling, and production configuration for a separate Solr server.
Opening images with 100% zoom in Photoshop
Photoshop has no preference for opening files at 100% zoom instead of fitting them to the screen. After opening, Ctrl-Alt-0 or the magnifier tool returns to full size.
HTML5 Please: Use the new and shiny responsibly
Check whether HTML5 features are ready for use and how to adopt them safely with polyfills, fallbacks, or native support.
Enabling view rendering for controller specs
Controller specs usually skip template rendering; integrate_views in RSpec 1 or render_views in RSpec 2 enables view rendering for specs that need it.
gammons/fake_arel - GitHub
Backport Rails 3 ActiveRecord querying and chained scopes to Rails 2, including where, order, and to_sql for scopes.
marcandre/backports - GitHub
Provides Ruby 1.9 features for Ruby 1.8 applications, easing upgrades and compatibility gaps without changing the runtime.
colszowka/simplecov - GitHub
Ruby 1.9 code coverage tool with configurable reporting and automatic merging across test suites; rcov remains for Ruby 1.8.
How to install a specific version of RubyGems (and how to downgrade)
Install a chosen RubyGems release for consistent behavior across servers; gem update --system can target an exact version and even downgrade.
jQuery UI Bootstrap
Bootstrap-styled jQuery UI theme with a cleaner look than the default jQuery UI appearance, useful when matching a modern UI without adopting the full Bootstrap framework.
New geordi script: migrate-all
Database migration and test preparation in Geordi migrate-all adapt to projects with or without parallel_tests, running the appropriate Rake tasks automatically.
Git: What to do when "git log" does not show commits that touch a file
git log can miss commits for a file after rename, delete, or re-add operations; --follow keeps the history visible across path changes.
A very brief primer to thinking in XPath
XPath query syntax for selecting nodes in XML and HTML can be hard to grasp at first. A concise primer makes the core ideas easier to remember.
How to revert features for deployment, merge back, and how to stay sane
Feature reverts can block deployment when unfinished work must stay out of production; consolidating reverts into a few commits makes restoring them after release easier.
How to organize and execute cucumber features (e.g. in subdirectories)
Cucumber feature files can live in subdirectories, but step definitions and support files need an explicit load path. Using -r features keeps subfolder runs working.
How to print Github wiki pages
Printing GitHub wiki pages is awkward without print styles, but Markdown pages can be rendered locally and printed from generated HTML.
Repeat an element on every printed page with CSS
Printing repeated headers, footers, or watermarks is inconsistent across browsers; position: fixed works in Firefox, Opera, and Internet Explorer, but not in WebKit browsers.
Improved gitpt now part of geordi
Generate Git commits from Pivotal Tracker stories with geordi 0.7, now including a setup wizard, colored story states, and bold highlighting for your own stories.