Rails 2: Calling instance_eval on a scope will trigger a database query

Calling instance_eval or instance_exec on a Rails 2 scope loads its records from the database. The issue is fixed in Rails 3+.

How to find out a pixel's transparency with Gimp

Need the alpha value of a PNG pixel in Gimp? The color picker can reveal transparency information for a clicked pixel.

How to change the mouse pointer in Xfce

Xfce lacks a graphical cursor selector, so the mouse pointer theme must be changed from the terminal with update-alternatives and a new login session.

imgAreaSelect - image selection/cropping jQuery plugin

jQuery plugin for selecting a rectangular area of an image and adding cropping or photo note interactions in web apps.

Freetile.js

jQuery plugin for packing page content into a dynamic, responsive layout that uses screen space efficiently.

Zeus promises to make rails development faster

Rails app boot and test startup become slow as gems grow; Zeus preloads the app so console, server, generate, and specs run in under a second.

A jQuery plugin for producing bar charts from tables.

Converts HTML tables into bar charts with a jQuery plugin, offering several variants for displaying tabular data visually.

Capybara 2.0 has been released

Capybara 2.0 breaks compatibility with 1.x and drops Ruby 1.8 support. It changes Rails integration test conventions, element matching, and RSpec syntax.

Andand and SimpleDelegator

andand does not cooperate with SimpleDelegator; the call can skip the decorator and reach the wrapped object. Overriding andand in the delegator restores the intended chaining.

Using sets for many-to-many relationships

Reduces database storage for many-to-many links when the same combinations repeat often. Works only for simple join records without extra attributes or callbacks.

uninitialized constant MysqlCompat::MysqlRes (NameError)

A MysqlCompat::MysqlRes NameError often follows a system library change, especially switching from MySQL to MariaDB. Reinstalling the MySQL gems usually restores compatibility.

Xfce: How to change the default program for a file extension

Changing a file extension’s default opener in Thunar lets all matching files open in the preferred app instead of the wrong one.

How to move a window to the next monitor on Xfce, Mate and other X Window Managers

Move the active window to the next monitor in Xfce, MATE, and other X window managers using a small script with xdotool and wmctrl.

Setup an Ubuntu mirror that enables local release upgrades

Local Ubuntu release upgrades need mirrored meta-release files and do-release-upgrade packages from proposed repositories to avoid falling back to the public archive.

How to set the default monospace font on Xfce (Xubuntu)

Applications that use the generic Monospace family ignore terminal font settings. A fontconfig override in ~/.fonts.conf can map it to a preferred font.

CSS: Vertically center with display: table-cell

Vertically centering arbitrary block children inside a fixed-size container can be done with display: table-cell and vertical-align: middle.

Carrierwave: Auto-rotate tagged JPEGs

Tagged JPEGs from cameras can appear sideways when CarrierWave ignores orientation metadata. auto_orient corrects rotation before other processing steps.

Writing Fast, Memory-Efficient JavaScript

JavaScript engines such as V8 are optimized for speed, but memory use still affects performance in large applications. Understanding engine behavior helps reduce browser overhead.

Rubygems: Rebuild native extensions

Native Ruby gems can break after system library or distribution upgrades, causing warnings, segfaults, or missing shared-object errors. gem pristine --all rebuilds compiled extensions and resets gems to a clean state.

query_diet now support Rails 3

query_diet now works with Rails 3, with installation differing slightly from older versions.

Get all associations of an ActiveRecord class

List every Active Record relationship on a model and inspect each association’s name, class name, or type via reflection.

Subtle Patterns Preview

Preview Subtle Patterns textures on a site without swapping images or changing CSS.

Keyboard Navigation Plugin for Safari, Chrome and Firefox with a rich feature set

Keyboard-driven web navigation reduces mouse use and can speed up common browser actions, with selector-based element picking for command-line-minded users.

Taming icon fonts for use in Rails views

Icon fonts are awkward to use directly in Rails views; helpers and Sass mixins make icon classes, labels, and styling easier to manage.