KeyboardJS
JavaScript key binding library for handling single keys and key combinations in web apps.
Show MySQL process list without sleeping connections
Filter MySQL connections to hide idle sessions and focus on active or slow queries, with flexible sorting and column selection via information_schema.processlist.
Change how Capybara sees or ignores hidden elements
Capybara’s default hidden-element handling affects DOM queries globally, while :visible scopes visibility checks to one lookup. Driver-specific visibility rules differ between RackTest and Selenium.
Hack-fix Selenium::WebDriver::Element#select is deprecated
Temporary monkey patch for older Capybara and selenium-webdriver versions to suppress repeated deprecation warnings from Selenium::WebDriver::Element#select.
VirtualBox host IP address and hostname
VirtualBox NAT guests can reach the host at 10.0.2.2; vbox.srv is the matching hostname for shared folders and host web server access.
Customize path for Capybara "show me the page" files
Capybara's save_and_open_page files can clutter the Rails root when debugging Cucumber scenarios. Set Capybara.save_and_open_page_path to store them elsewhere.
Connecting the "sequel" gem to MSSQL via ODBC
Connecting Ruby applications to SQL Server through ODBC can unblock legacy setups when native adapters fail. sequel can use an existing ODBC DSN for database access.
Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7. on Ubuntu 10.10
RubyODBC fails to create an ODBC environment handle when connecting Ruby 1.8.7 on Ubuntu 10.10 to SQL Server 2005; rebuilding the gem with the correct unixODBC path restores connectivity.
Linux: Mount second encrypted HDD automatically without entering a password
Automatically unlocking and mounting a second encrypted HDD at boot avoids repeated password prompts by using a keyfile, cryptsetup, and mount.
MySQL shell: Enable UTF-8
MySQL sessions can default to ASCII, turning accented text into question marks or garbled output. SET NAMES 'utf8'; enables UTF-8 in the console.
Render Single-Line Markdown Text with Redcarpet
Markdown in single-line form fields can create unwanted block elements and broken display. Restricting formatting to inline text keeps input and output consistent.
Ruby, Ruby on Rails, and _why: The disappearance of one of the world’s most beloved computer programmers
A profile of _why and his influence on Ruby and Ruby on Rails, with a personal angle that makes programming culture approachable for nontechnical readers.
Capybara: Test that a string is visible as static text
Capybara text checks can match a <textarea> instead of rendered page text; filtering to visible static content avoids false positives.
Fix error: rails console - no such file to load -- readline
rails console fails with no such file to load -- readline when Ruby was built without readline support. Reinstalling Ruby with the readline development library available restores console input.
Bundler 1.1 has been released, is very fast
Bundler 1.1 speeds up dependency installation by fetching required metadata in seconds instead of waiting on source index updates.
Install the typhoeus gem with native extensions
typhoeus native extension builds fail when libcurl headers are missing; installing the libcurl3-dev package resolves the gem installation error.
responsive.is
Online tool for checking how a site renders across common desktop, tablet and phone screen sizes.
Sass: Use black or white foreground color depending on the lightness of the background
Colored buttons can keep readable text by switching between black and white based on background lightness. A simple Sass mixin uses @if and @else for this choice.
Find out your SSH key's fingerprint (e.g. to authenticate on GitHub)
ssh-keygen -lf prints a public key fingerprint for GitHub SSH key audits and similar authentication checks. Compare the fingerprint with the local key file before approving access.
Setup or update Passenger to use Ruby Enterprise
Passenger can be configured or upgraded to use Ruby Enterprise instead of MRI, then Apache is restarted with the generated module instructions.
Spec "content_for" calls in helpers
RSpec helper specs can leak content_for state between examples, making repeated checks fail. A fresh helper instance avoids stale instance variables.
RubyMine: Disable window animations
RubyMine window animations can be disabled in Appearance settings, reducing distracting UI motion. The option may no longer be available in newer versions.
Gherkin: Error during installation
gherkin gem installation can fail because native extension warnings are treated as errors. Disabling warnings with --with-cflags=-w lets bundle install succeed.
Debugging Google Analytics
Analytics tracking can be hard to verify in the browser; a Chrome extension swaps in a debug version and prints tracking details to the JavaScript console.