Fix error UDPSocket.open: wrong number of arguments (0 for 1)

Updating selenium-webdriver can trigger UDPSocket.open argument errors on Ruby 1.8.7 when an incompatible backports version overrides core behavior.

grosser/rspec-instafail

Gem for instantly showing failing specs while continuing to run the rest of the suite, instead of aborting on the first failure.

Rails: Running specific migrations

Targeted database migrations in Rails use STEP and VERSION to run, redo, rollback, or revert a chosen migration without processing the full history.

Did you know 'tig status' ?

tig status provides a keyboard-driven GUI for git add -p, letting you stage or unstage whole files, chunks, and individual lines.

How to detect touch-capable browsers

Touch-capable browser detection is imperfect, but checking for touch events offers the best tradeoff when feature-based detection is needed instead of device detection.

Beware: Coffeescript "in" is not the Javascript "in"

CoffeeScript in checks array membership, not object properties; JavaScript in tests whether an object has a property. Use of for property lookup in CoffeeScript.

Block formatting contexts

CSS block formatting contexts isolate floats and clearing within a container, preventing layout interference between separate sections and enabling reliable two-column layouts.

LibreOffice Writer: Prevent a table row from being split across pages

Table rows in LibreOffice Writer can break across pages and columns, making layouts harder to read and control. Disabling row breaks keeps each row together.

RSpec: How to get a full backtrace

Use rspec -b to print a full backtrace for failing examples and make the origin of an error easier to trace.

Ruby: Find a hash key given it's value

Reverse lookup in a Ruby hash returns the first key for a given value, or nil when the value is absent. Hash#key is available in Ruby 1.9+.

Git: How to get a useful diff when renaming files

git diff treats moved files as delete/add pairs by default, hiding renames in reviews. -M or --find-renames makes the diff show file moves instead.

Angular + ui-router: Make links work in a new tab

Angular apps served from a subpath can break ui-router links in new tabs; a matching <base> href keeps generated URLs working.

hanklords/flickraw

Ruby library for simple Flickr API access with methods mapped to the official documentation and data returned in an intuitive format.

Preview Github-flavored Markdown from the bash with ianks/octodown

Preview GitHub-flavored Markdown locally from the terminal, useful when writing or updating README files for gems and projects.

greckout - a bash script to grep and checkout your git branches

Find and switch to a matching Git branch by typing a partial name, using a Bash helper that turns branch search results into checkout choices.

How to load an SQL dump from a migration

Importing a MySQL dump inside an ActiveRecord migration can fail because the default connection accepts only one statement per query. A separate Mysql2::Client with multi-statement support avoids the syntax error.

Why Learning to Code is So Damn Hard

Learning to code is difficult because beginners must pass through several distinct phases before they can work comfortably. Coping with each stage improves the chances of continuing.

Debugging "INTERNAL ERROR!!! wrong argument type StringIO (expected File)"

HAML breakpoints in helper methods can trigger INTERNAL ERROR!!! wrong argument type StringIO (expected File) while debugging. Moving the breakpoint into the HAML view avoids the issue.

Cucumber factory 1.10.0 released

Cucumber factory now infers the model class from the factory, so steps can use natural names like admin instead of user (admin).

RSpec: Only stub a method when a particular argument is passed

Conditionally stub one method call for a specific argument while keeping the original implementation for other inputs in RSpec mocks.

Capybara - The missing API

Capybara node methods for locating elements, filling forms, clicking controls, and checking page content from Cucumber steps.

Ubtuntu: "FATAL: Could not load /lib/modules/...-generic/modules.dep: No such file or directory"

Kernel modules cannot load because /lib/modules/.../modules.dep is missing for the running Ubuntu kernel, often after apt-get autoremove removed an older image.

One cause for "iptables: No chain/target/match by that name" on Ubuntu

iptables commands on Ubuntu can fail with “No chain/target/match by that name” when required kernel modules such as xt_multiport and xt_comment are missing.

Geordi 1.0 released

Geordi 1.0 consolidates Rails project commands into a single CLI with command lookup, dependencies, and new setup, update, console, shell, and test workflows.