Styling SVGs with CSS only works in certain conditions

SVGs can be styled with CSS only when embedded inline; using them as images or sprites blocks styling, and IE support is limited.

Creating icon fonts with Icomoon

Custom icon webfonts need correct grid sizing, spacing, baseline, and backup handling; multicolor icons, blocked webfonts, and inline rendering add practical constraints.

Beware of rails' reverse_order!

reverse_order breaks on complex SQL sorting and can generate invalid queries in Rails 4; Rails 5 raises ActiveRecord::IrreversibleOrderError instead.

Master the chrome history and autocomplete

Address-bar suggestions can outrank bookmarks and recent sites in Chrome; SHIFT + DEL removes unwanted entries, and a custom history search restores easier access to recent pages.

AngularJS Cheat Sheet (PDF)

Quick reference for commonly used AngularJS features, useful when you need syntax and concepts at a glance.

Running awstats on a single logfile

Generate a one-time AWStats report from a single web log file by using a minimal config and disabling DNS lookups for faster output.

Git error: "badTimezone: invalid author/committer line - bad time zone"

Malformed commit timestamps can make git clone fail with badTimezone when strict object validation is enabled. Disabling fetch.fsckobjects works around the error.

Pexels: Free stock photos

Free stock photos for personal and commercial use without attribution, with permission to modify images.

Detecting if a Ruby gem is loaded

Activated gems can be checked through Gem.loaded_specs, and required libraries can be detected with defined? on a constant they define.

Ubuntu Mate: Get rid of F12 drop-down terminal

F12 on Ubuntu MATE can be reclaimed by stopping Tilda or disabling its autostart, preventing the drop-down terminal from intercepting the shortcut.

makandra/gemika: Helpers for testing Ruby gems

A library for testing a Ruby gem against multiple Ruby, dependency and database combinations, with shared local and CI setup for full permutation coverage.

Fix "libmysqlclient.so.20: cannot open shared object file: No such file or directory"

mysql2 can fail to load libmysqlclient.so.20 after a broken install; reinstalling the gem usually restores the missing client library link.

Sass: How to convert an RGBA color to its RGB look-alike

Convert an RGBA color into the RGB equivalent for a chosen background when transparency must be removed. A Sass rgba-to-rgb() helper can compute the blend automatically.

VCR fails if the same request is triggered multiple times

VCR records each request only once, so replaying repeated identical calls can fail unless allow_playback_repeats is enabled.

Heads up: "localhost" may be IPv6 on new linuxes

localhost can resolve to ::1 on newer Linux systems, which may affect firewall rules that assume 127.0.0.1.

What every coder should know about gamma

Gamma correction affects how colors are encoded and displayed, and sRGB defines a standard color space used by many systems.

Migrations are versioned in Rails 5 | BigBinary Blog

Rails 5 migration classes are versioned with ActiveRecord::Migration[5.0] so the migration API can evolve without breaking historical files in db/migrate.

List of handy Chrome plugins

Useful browser add-ons for measuring page distances, inspecting Google Analytics events, and formatting JSON responses during debugging.

Bundler returns different error codes depending on what went wrong

Failed bundle calls return different exit codes depending on the problem type, making shell-script error handling more precise.

Measuring sql query time of a piece of code using ActiveSupport::Notifications

Measure database time for a Ruby code block by collecting sql.active_record events and summing their durations with ActiveSupport::Notifications.

How to disable material design in Google Chrome

Chrome's desktop Material Design UI can look poor on some window managers or GTK themes; switching the flag to Non-Material restores the old appearance.

Hack of the day: One-liner to run all changed Cucumber features

Run only modified or new Cucumber feature files from git status, reducing test time by avoiding unchanged specs.

How to use Haml in your helpers

Rendering helper output with content_tag can get clumsy; Haml::Engine lets helper methods build HTML fragments more readably, with access to other helpers and locals.

Isolate Side Effects in Ruby

Side effects are necessary but make Ruby code harder to test and reason about; isolating them reduces coupling and keeps core logic predictable.