Fix capistrano errors: "no such file to load -- net/ssh/authentication/agent/socket" or "uninitialized constant Net::SSH::KnownHosts::SUPPORTED_TYPE"

Capistrano can fail with net/ssh load errors or an Net::SSH::KnownHosts::SUPPORTED_TYPE constant error when paired with net-ssh 2.5.1. Upgrading to 2.5.2 restores compatibility.

MySQL 5.1: Switch to InnoDB Plugin for better performance

MySQL 5.1 can use the faster InnoDB Plugin instead of the built-in engine, improving performance without changing the file format.

Removing white space after links in HAML

Haml inserts unwanted spaces around inline links, leaving punctuation separated from the anchor. Several workarounds avoid the gap without adding a helper.

Howto properly use vertical-align to align elements vertically

Vertical centering with vertical-align depends on inherited line-height, and works reliably only when the container height is at least that value.

When using time zones, beginning_of_day / end_of_day is broken in Rails 2 for any Date or DateTime

beginning_of_day and end_of_day on Date and DateTime ignore Rails 2 time zones, so database queries can hit the wrong records.

Rails 3 routing: Be careful with matching routes *including their format*

Routing a dotted path can break Rails format detection, leaving format as html despite an XML constraint. Matching the route without the extension preserves the intended xml format.

Get Rid of That Code Smell – Duplication

Removing duplication often means finding repeated concepts rather than identical lines, since similar code can hide different intent and reuse can create false matches.

Aspect Oriented Programming in Ruby

Integrating cross-cutting concerns in Ruby can reduce duplication and keep logging, security, and other shared behavior separate from core business logic.

How to find out Your Ubuntu / Debian Linux is 32 bit or 64 bit

Checking whether an Ubuntu or Debian system is 32-bit or 64-bit helps match software and troubleshoot compatibility. uname -m reveals the machine architecture.

Fix error: can’t find executable rails

Rails fails to start when the rails executable points at a missing or half-installed gem set, often after an RVM mismatch or interrupted install.

Three quick Rails console tips

Rails console sessions can exercise routes, requests, and helpers without running the full app in a browser.

OCRA

OCRA packages Ruby source into a self-running Windows executable containing the interpreter, code, and dependencies.

How to fix: RubyMine does not remember last used monitor (on Ubuntu)

RubyMine can reopen on the wrong Ubuntu monitor after moving the window. Keeping the main window unmaximized once lets it remember the preferred screen.

salesking/king_dtaus

DTAUS and DTAZV remain common German bank transfer formats despite their obsolete floppy-disk origins. king_dtaus generates the required transfer text for banking software.

rspec_candy is now a gem

rspec_candy packages reusable RSpec helpers as a gem, making setup and updates easier for specs that need shared test utilities.

IE9: Linear gradients remove border-radius and inset box-shadows

IE9 filter-based gradients can wipe out rounded corners and inset shadows; using inset shadows on a solid background can mimic gradients without breaking the box.

You cannot use :before or :after on img in CSS

CSS pseudo-elements :before and :after do not render on img elements in browsers, so generated content cannot be added directly to images.

Use a special version of Chrome for selenium (and another for your everyday work)

Use a separate Chrome build for Selenium tests by pointing Selenium::WebDriver::Chrome.path at a binary from an environment variable, while keeping your normal browser untouched.

Set the accept-language of Chrome in selenium tests

Set browser locale in Selenium tests by configuring intl.accept_languages in a Chrome or Firefox profile, so apps render and negotiate language consistently.

jQuery File Upload

Upload files with a polished interface, progress feedback, previews, multi-file selection, and drag-and-drop support. Bootstrap-based by default, with a jQuery UI variant available.

When I give a button and a link the same styles, why is the link one pixel higher?

Buttons and links can look misaligned even with identical CSS because their default box models differ. Setting display, box-sizing, height, and line-height makes them line up.

Run Chrome in a specific resolution or user agent with Selenium

Testing web apps at mobile-like sizes or with a custom browser identity reveals layout and behavior bugs before release.

Manipulating the browser history - MDN

window.history lets web apps move backward and forward through browsing sessions and update the history stack with HTML5.

Fix error when embedding Bing maps

Embedding Bing maps can fail with p_elSource.attachEvent is not a function; disabling Firebug or using another browser avoids the JavaScript error.