Get color in the Capistrano output

Capistrano output can be colorized with capistrano_colors; Capistrano v2.13.5+ includes it, while older setups can load the gem manually.

Skype For Linux With Tabs Support Using SkypeTab NG

Adds tabbed chat windows to Skype on Linux and combines the main app and conversations into one window.

tanoku/redcarpet - GitHub

Ruby bindings for a fast Markdown parser, with custom renderers for arbitrary output formats.

Limiting CPU and memory resources of Paperclip convert jobs

Paperclip image conversions can spike CPU and memory during heavy uploads. ImageMagick resource limits and nice help reduce contention on Unix systems.

Error "The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying."

--deployment can fail even when Gemfile.lock is committed if an unexpected file or directory has been copied into releases.

Update: Aggregated RSpec/Cucumber test coverage with RCov

Aggregated test coverage for RSpec and Cucumber with rcov:all now supports Rails 2 and 3 and can ignore shared traits.

RCov: The difference between "code coverage" and "total coverage"

Code coverage can look misleading when blank lines and comments count against the ratio; RCov total coverage ignores them for a more useful metric.

Bugfix: Rails 2 does not find an association when it is named with a string instead of a symbol

Rails 2 can miss an association declared with a string name, causing "association not found" errors; using a symbol avoids the lookup bug.

Fix AssociationTypeMismatch

Rails AssociationTypeMismatch errors often come from selecting an associated object instead of its ID in a form field.

Internet Explorer to Start Automatic Upgrades across Windows XP, Windows Vista, and Windows 7

Automatic browser updates aim to phase out IE6 and IE7, while Windows XP remains limited to Internet Explorer 8.

Writing Ruby Scripts That Respect Pipelines

Ruby CLI scripts can break pipe chains when they ignore stdin, stdout, or exit codes. Careful stream handling keeps them composable in shell workflows.

How to deal with MethodNotAllowed errors

ActionController::MethodNotAllowed errors often come from reloads or broken JavaScript links, and can be handled by redirecting back or to a fallback URL with a flash message.

Make Less interpret the escape codes in a logfile

less can leave Rails logfile escape sequences unreadable; less -R preserves ANSI colors and other control codes while browsing logs.

Vendor-prefixed CSS Property Overview

Vendor-prefixed CSS properties support browser-specific features but can complicate cross-browser styling and maintenance.

Managing Rails locale files with i18n-tasks

i18n-tasks helps keep Rails locale files complete by finding missing and unused translation keys and reducing manual YAML bookkeeping.

Re-enable submit buttons disabled by the :disable_with option

Rails submit buttons with :disable_with can stay disabled after back navigation, leaving forms unusable until they are re-enabled on page unload.

Change image scaling algorithms with CSS

Non-standard CSS image scaling controls affect browser resampling and edge smoothness, but results are browser-specific and best avoided unless the target browser is certain.

Useful script to collect downloads from several sites

Keeps lecture documents and other downloadable files collected from multiple web pages without manual checking, using a configurable URL and CSS selector.

How to fix: "500 Internal Server Error" after adding Rack::Bug

Passenger and Apache can return 500 errors after adding Rack::Bug when the middleware is referenced as a string instead of loaded with require 'rack/bug'.

Request a gzipped response from a web server using Wget

Application servers often compress responses with gzip, but Wget downloads the uncompressed version unless Accept-Encoding: gzip is sent.

Embed Google Analytics code for some environments only

Google Analytics should run only in production to avoid polluting visitor statistics. Rails environment checks can gate the tracking snippet.

davetron5000/methadone - GitHub

Ruby framework for building command-line apps with parameter handling, utility classes, and Cucumber support for CLI testing.

How to fix "unknown role" errors in Capistrano recipes

Capistrano multistage recipes can fail with unknown role errors when a task targets a missing server group. Registering the role and skipping the task when no servers match prevents the failure.

Pick a random element from an array in Ruby

Choose one array element at random in Ruby with sample; weighted_sample can bias the result toward specific values.