How to: Limit or disable textarea resizing in Chrome and Firefox

Textarea resizing in Chrome, Safari, and Firefox can disrupt layouts; limiting maximum width and height keeps the box controlled while still allowing optional user resizing.

Cucumber: Calling multiple steps from a step definition

Reusable Gherkin steps can be chained inside a new step definition with steps or step, but steps only processes lines starting with Gherkin keywords.

Install rabbitmq plugins (e.g. management plugin) on Ubuntu 12.04

RabbitMQ plugins on Ubuntu 12.04 require the full rabbitmq-plugins path because the binary is not in the default PATH.

Run specific version of bundler

Run an older Bundler release for compatibility when Rails or another project is pinned to a specific gem version.

Rails 3.1 gives you free down migrations

Rails 3.1 lets a single change migration run forward and backward automatically, while irreversible updates are skipped during rollback.

Setup your terminal to not scroll when there is new output

Stop the terminal from jumping back to the bottom when new output appears, so you can inspect logs or test failures without losing your place.

Ruby 1.8.7-p370 released

Final bugfix release for Ruby 1.8.7, with another year of security fixes before patches end.

Updated: Test a gem in multiple versions of Rails

Testing a gem across Rails versions is easier with shared app code and specs via symlinks, keeping one test setup aligned with current best practice.

has_defaults is now a gem

has_defaults is now a standalone gem; the old plugin is gone and plugins are unsupported in Rails 3.2+.

Err http://de.archive.ubuntu.com [...] 404 Not Found [IP: 141.30.13.20 80]

APT fails with 404 errors from an Ubuntu mirror while the network and server are fine; deleting the local package lists cache restores updates.

Consul 0.3.0 has a shortcut to quickly create an action map for CRUD controllers

Moderately complex authorization rules often need CRUD action mapping in controllers; Consul 0.3.0 adds :crud as a shortcut for the common edit/create/destroy mapping.

rake spec + rails_admin = weirdly failing specs

rails_admin specs can pass with rspec but fail under rake spec; setting ENV['SKIP_RAILS_ADMIN_INITIALIZER'] = 'false' in spec_helper restores the initializer.

How to deal with: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type [...] at

Puppet catalog compilation can fail with ArgumentError: Invalid resource type when plugin sync or environments are misconfigured. Missing Ruby files in /var/lib/puppet/lib can trigger the error.

Get the initial username which you used to login to your Linux system

Find the currently logged-in Linux user with whoami; use it in .bashrc to set different Bash prompts for root and normal users.

Difference between class_inheritable_attribute and class_attribute | martinciu's dev blog

class_attribute behavior in Rails can differ from the removed class_inheritable_attribute, especially when inheritable class state is needed across subclasses.

Rack dies when parsing large forms

Rack can reject large nested forms by miscounting input fields against its parameter limit, causing low-level Ruby errors or Rails error pages.

RSpec claims nil to be false

RSpec be_false matches nil, so a false check can pass unexpectedly. Use == false when the value must be exactly false.

Deal with error: Expected foo_trait.rb to define FooTrait

Rails autoloading can surface a misleading Expected foo_trait.rb to define FooTrait error after a mistake in an unrelated trait, making the real failure hard to locate.

Some useful Unicode chars

Handy Unicode symbols on Ubuntu help with quotation marks, dashes, and ellipsis input. Character map and compose key support make special characters easy to enter.

BigDecimal#inspect for people who aren't cyborgs

BigDecimal#inspect prints an unreadable internal form; returning BigDecimal#to_s makes values display like normal numbers.

Updated: Ruby doesn't sort strings with German umlauts correctly

Ruby string ordering can misplace German umlauts; natural sorting and locale-aware collation address the issue.

Don't use Ruby 1.9.2

Ruby 1.9.2 loads files very slowly, making Rails startup and test runs painfully long. Upgrading to 1.9.3 removes the bottleneck.

Order of multiple "rescue_from" statements might be unexpected

Multiple rescue_from handlers can shadow earlier ones, so a specific error handler may never run when a broader exception handler is declared later.

GNOME3 Notifications For Skype ~ Web Upd8: Ubuntu / Linux blog

GNOME desktop integration improves Skype pop-up alerts with better visibility and a cleaner look, including support for GNOME 2.