Error installing ffi gem
Installing ffi can fail when the system lacks the libffi development package. Installing libffi-dev on Debian-based systems resolves the missing header/library dependency.
equalize.js
jQuery plugin for matching element heights or widths to create uniform layouts in grids, cards, and columns.
King of Nothing, the DCI paradigm is a scam
Frustration with DCI and Clean Ruby centers on ambitious promises that feel unfinished and oversold in large Ruby on Rails applications.
Git blame: How to ignore white-space modifications
git blame -w ignores whitespace-only changes, keeping authorship attribution on the original code instead of indentation edits. git diff -w does the same for comparisons.
Why your browser loses cookies when following hyperlinks from an Excel spreadsheet or Word document
Microsoft Office prefetches hyperlinks and opens the browser without cookies, so redirected links can lose session state. Returning 200 OK to Office user agents avoids the redirect path.
randym/axlsx · GitHub
Create XLSX spreadsheets in Ruby with charts, images, styling, auto column sizing, and schema validation; handles large files and eases migration from spreadsheet.
Consul 0.4.2 improves querying of nil powers
Consul 0.4.2 fixes unexpected behavior when querying powers that return nil, making predicate and bang methods return false or raise Consul::Powerless consistently.
occ/TraceKit · GitHub
JavaScript stack traces differ across browsers and often need normalization after unhandled exceptions. TraceKit provides a consistent representation for IE, Firefox, Chrome, Safari, and Opera.
Force GitHub Pull Requests to update the diff against its target branch
GitHub may keep stale PR diffs after merged commits from another branch remain listed. A forced no-op push can refresh the comparison against the target branch.
lorempixel - placeholder images for every case
Placeholder image generation for specific dimensions and topics is useful when building layouts, prototypes, or content mockups without final artwork.
Git: In an (interactive) rebase, find out which commit you are currently working on (until version < 1.7.9.5)
During an interactive git rebase, the current commit hash and message are stored in .git/rebase-merge, letting you inspect what is being applied and what remains.
Twinkle: Mark window as "demands attention" or show a text notification on incoming call
Incoming calls can be made more noticeable by marking the window as demanding attention or by showing a desktop notification bubble.
Responsive & Touch-Friendly Audio Player | Codrops
A responsive jQuery audio player plugin with touch-friendly controls and a CSS-only interface. No images are used in the UI.
jquery-timing - a jQuery plugin you should know about
Chainable timing helpers reduce nested callbacks in jQuery and keep animation and timeout code readable.
How to provoke Selenium focus issues in parallel test processes
Parallel Selenium scenarios can steal browser focus and make integration tests flicker. A dedicated focus loop helps reproduce and fix timing-sensitive failures.
Simple memory information widget for the Xfce panel (or anywhere else where you can run a shell command)
Small shell-based memory indicator for Xfce panels that reports usable RAM after cache is subtracted, with simple output for any command runner.
Git: Twelve Curated Tips And Workflows From The Trenches
Practical Git workflows for diffs, branch handling, history search, patching, rebasing, and selective stashing in everyday repositories.
Analyse TCP/UDP traffic with netcat
Inspect raw TCP or UDP data arriving on a port, such as an HTTP request, with nc and redirect the output to stdout or a file.
Git: Add all changes
Stage every modification, new file, and deletion in one command with git add --all, a fast way to prepare the full working tree for commit.
How to package a non-Ruby file into a gem
Non-Ruby assets can be shipped inside a gem, making shared files available alongside Ruby code without a separate distribution.
Custom bash autocompletion
Bash autocompletion can be customized for commands, reducing tedious typing with word lists, functions, glob patterns, or .bashrc completions.
Performance analysis of MySQL's FULLTEXT indexes and LIKE queries for full text search
MySQL text search performance differs sharply between LIKE and FULLTEXT; LIKE stays surprisingly fast on medium datasets, while FULLTEXT benefits from larger vocabularies.
How to test if an element has scrollbars with JavaScript (Cucumber step inside)
Detecting overflow in an element matters when layout must avoid hidden content and unwanted scroll bars; comparing scrollHeight and offsetHeight reveals whether content exceeds the visible area.
How to find out the currently focused DOM element with JavaScript
document.activeElement returns the currently focused DOM element and is useful for checking focus state in JavaScript or Selenium tests.