How to find out the type of a model's attribute

Use ActiveRecord metadata to inspect a model field’s database type, such as integer, boolean, or datetime, without querying the value itself.

Alan Klement: Replacing The User Story With The Job Story

Feature definition for new teams and early products is often unclear when customer motivations and expected outcomes are hard to align. Job Stories apply jobs-to-be-done thinking instead of user stories.

pickadate.js

Mobile-friendly, responsive jQuery date and time input picking without jQuery UI; the associated field cannot be typed into directly.

An Illustrated Guide to SSH Agent Forwarding

SSH agent forwarding lets remote servers use your local SSH keys without copying them, reducing key exposure while enabling convenient hop-through access.

How to subscribe to Ruby security updates

Ruby security advisories and MRI release updates are published on ruby-lang.org, but no direct email subscription exists. An RSS-to-email service can deliver them by mail.

kickstarter/rack-attack

Rack middleware that blocks abusive clients and rate-limits requests with whitelists, blacklists, throttling, and request-based tracking.

MySQL: How to clone a database

Duplicate a MySQL database under a new name, including tables and data, by dumping the source and restoring it into a fresh schema.

Slice a nested hash

Recursively select whitelisted keys and nested subkeys from a hash with deep_slice, preserving only the allowed structure.

ftlabs/fastclick

Fast mobile taps suffer a 300ms click delay in browsers, making apps feel sluggish. FastClick removes the delay without changing existing click logic.

Force absolute URLs for parts of a view or controller

Generate full url_for links only within selected view or controller blocks, with temporary opt-out and optional fixed host. Asset URLs remain unchanged.

FooLimitExceeded Quota problem with OpenStack

OpenStack quota errors can mask the real limit being hit, such as RAM exhaustion, even when the message reports InstanceLimitExceeded.

Syn - a Standalone Synthetic Event Library

Synthetic user events for typing, clicking, moving, and dragging provide realistic interaction handling for tests and automation.

Float Label Pattern

Inline labels stay visible when users type, reducing lost context in form fields and keeping hints available without extra space.

Monitoring a network connection from a remote host

Network failures between a host and a single target can be isolated with ping checks and an automatic mtr report by email.

GlyphSearch: search for icons from Font Awesome, Glyphicons, and Ionicons

Finding the right icon across Font Awesome, Glyphicons, and Ionicons can be slow; GlyphSearch centralizes icon lookup for faster selection.

Don't use PDFKit v0.5.4 – it breaks on dead urls

PDFKit 0.5.4 can deadlock or crash on broken image links that raise ApplicationController::RouteError, preventing PDF generation and missing-image fallback.

Fix „command failed: /usr/bin/wkhtmltopdf ...“ using PDFKit middleware

PDF generation via wkhtmltopdf can fail on Passenger when the wrong binary is used or routing errors trigger deadlocks. Pointing PDFKit to a working local executable avoids the command failure.

How to set git user and email per directory

Separate Git identity by folder so commits use different author and committer names and emails in work, university, or home directories.

moger777/missingly

A DSL for handling method_missing hooks in Ruby, making dynamic method behavior easier to define and manage.

Mysql collate, searching case sensitive

MySQL string matching is usually case-insensitive; COLLATE can force case-sensitive comparisons with binary or case-sensitive collations like utf8_bin.

Ruby: The & operator

& changes meaning by context in Ruby, making runners.each(&:run) work through block conversion and to_proc handling.

Legacy docs for Font Awesome 3.2.1

Font Awesome 4 renamed every icon, making older icon- names hard to map during upgrades. A 3.2.1 icon list helps preserve compatibility with vendored fonts.

Texture Mixin for Sass

Sass plugin for creating tintable textures from Subtle Patterns by stripping the base color and supporting inverted variants.