Open Helvetica alternatives

Free Helvetica substitutes with web-font support are scarce; Liberation Sans offers a high-quality, embeddable TrueType alternative with an @font-face kit.

Convert a TrueType (.ttf) font to web font formats

Licensing and browser support make custom web fonts tricky; converting a TrueType font to multiple formats and using @font-face helps.

Navigating through the browser history in a cucumber feature using selenium

Browser history navigation in Cucumber Selenium steps can be automated with window.history.back() through JavaScript when direct back-button control is needed.

Creating a multi-resolution favicon including transparency with the GIMP

A multi-resolution .ico favicon with transparency keeps browser tabs sharp and blends cleanly with different browser chrome.

How to access a dmcrypt-encrypted partition from outside your system

Manual access to an encrypted Linux partition from a live system can expose the contained LVM volumes for mounting or repair.

How to check your file system's integrity with fsck

File system corruption can go unnoticed until boot or data loss; fsck can force a read-only integrity check before changes are made.

Type text into Javascript prompt dialogs in Capybara/Selenium

Automated tests need a way to enter text into JavaScript prompt dialogs in Capybara/Selenium. Browser dialog handling can block workflows unless the prompt input is filled correctly.

Browser support for box-shadow

Cross-browser box-shadow support varies by browser version, with differences for multiple shadows, inset shadows, spread radius, and vendor prefixes.

Fix Capistrano warnings: Missing public directories

Capistrano deployment warnings can appear when Rails asset pipeline apps lack empty public subdirectories. Placeholder files like .gitkeep suppress the missing-path errors.

Scroll a textarea to a given line with jQuery

Scrolling a textarea to a specific line depends on pixel line height and can drift when wrapped lines change the visual line count.

Convert primitive Ruby structures into Javascript

Ruby values can be embedded safely in Javascript responses by serializing them to JSON, avoiding manual quoting and escaping problems.

Git: Change the text editor used to enter commit messages

Set Git's commit-message editor globally by changing core.editor in ~/.gitconfig; useful when the default editor is inconvenient or unavailable.

Uncaught exception in PassengerServer client thread exception: Cannot accept new connection: Too many open files

Passenger fails to accept new connections when the process reaches the open file descriptor limit, often due to too many running instances or too low per-process limits.

zClip :: jQuery ZeroClipboard

Lightweight jQuery clipboard-copy plugin built on Zero Clipboard, using an invisible Flash movie compatible with Flash Player 10 and below.

fnando/i18n-js

Rails I18n translations become available in JavaScript clients through a small library for sharing locale data outside the server.

CodeMirror

JavaScript browser code editor with syntax highlighting and optional indentation support for many languages.

xterm: Have a black background by default

Set xterm’s default colors in ~/.Xresources to avoid black text on white backgrounds; xrdb applies the settings to the current X session.

How to fix Passenger "Unexpected end-of-file detected" error

Passenger can fail with a misleading EOF error when the app spawner exits unexpectedly, often because a gem is missing. bundle install usually resolves it.

Validate attachment presence using paperclip

Paperclip attachment presence validation depends on has_attached_file being declared first; conditional validation with :if also works.

LibreOffice Calc: How to paste cells without overwriting other cells

Calc pastes normally overwrite existing spreadsheet cells; inserting clipboard cells instead shifts surrounding cells down or right.

Building Gem 'RedCloth' with Bundler and GCC 4.6

RedCloth can fail to install through Bundler on older GCC toolchains; adding a build flag suppresses warnings during compilation.

Issue with an escaped "equals" sign in the development log email representation

Quoted-printable encoding turns = into =3D in development email logs, which can make token values look longer than they are.

Shell script to deploy changes to production and not shoot yourself in the foot

A geordi command streamlines safe production releases by comparing master and production, confirming the merge, then pushing and deploying migrations with Capistrano.

Move page breaks in LibreOffice Calc

Printed spreadsheet areas in LibreOffice Calc can be adjusted by moving page breaks in preview and changing sheet scaling settings.