Tips And Tricks For Print Style Sheets
Print output often loses links, QR codes, and image quality. CSS print styles can add link URLs, better graphics, and browser preview support.
Interactive generator for gradients, borders, noise textures and box shadows
Create CSS gradients, borders, noise textures and box shadows visually, then copy ready-to-use CSS or SASS output.
Browser Hacks: CSS Rules to Target Specific Browsers And Versions
CSS hacks can target specific browsers or browser versions to work around rendering bugs and compatibility issues without abandoning robust styles.
About progamming with Multi-Touch, Touch- and Mouse-Events in the webbrowser
Touch-capable devices make it important to handle mouse and touch input together in web apps, including multi-touch browser events.
Ruby 1.9 or Ruby 2.0 do not allow using shortcut blocks for private methods
&:test works for private methods in Ruby 1.8 but raises NoMethodError in Ruby 1.9 and 2.0.
Different behavior for BigDecimal#floor in Ruby 1.8 and Ruby 1.9
BigDecimal#floor returns different types in Ruby 1.8 and 1.9 because it depends on Float#floor; a backport restores the Ruby 1.9 behavior on Ruby 1.8.
How to copy your „Google Chrome“ or „Chromium“ profile without creating an online account
Moving a Chrome or Chromium profile to a fresh system is possible by copying the local profile directory instead of creating an online account.
How to: Ruby heredoc without interpolation
Ruby heredocs interpolate by default; single-quoted heredoc markers disable interpolation and keep backslash escapes literal.
Ensure reloading of favicons
Browsers often cache favicons too aggressively, so a site can show an outdated icon or one from another local project. Adding a version query string forces a fresh reload.
Loading dumps via SSH, unpacking and sourcing them, all with a progress bar
Load a compressed MySQL dump directly from a remote server over SSH with a progress bar, without copying or unpacking the file first.
Capistrano: Bundler stalls and asks for "Username"
Capistrano deployments can stall at a Username: prompt when Bundler fetches a gem from a broken GitHub :git URL and receives a 404.
The Startup Toolkit
Practical crash courses for founding a startup, raising funding, and testing ideas before building too much.
Test xpath expressions in your browser
Test XPath queries directly in the browser console to inspect page elements without extra tools; Safari, Chrome, and Firefox support this in different ways.
How to find out your Ubuntu's release codename or version
Find the Ubuntu release codename or version from system files or lsb_release when you need the exact distribution name for troubleshooting or support.
SFLPhone won't start
SFLPhone can fail to launch when a stale PID file makes the daemon look already running; removing ~/.cache/sflphone/sfl.pid usually fixes it.
Firefox 22 to Stop Eating Third-Party Cookies
Firefox 22 blocks third-party cookies by default, limiting advertiser tracking across sites and giving visited websites control over cookie setting.
MongoMapper for Rails 2 on Ruby 1.9
MongoMapper support for Rails 2.3.x on Ruby 1.9 via a forked gem branch; compatible with Ruby 1.8.7, REE, and Ruby 1.9.3.
"Module.const_defined?" behaves differently in Ruby 1.9 and Ruby 1.8
Ruby 1.9 changes Module.const_defined? to search ancestors by default, so code checking constants can return different results than on Ruby 1.8.
Extracting the conditions of a named scope in Rails 2.3
Named scopes in Rails 2.3 can hide reusable query filters; extracting their conditions makes them easier to inspect and reuse in other queries.
Fix error "invalid byte sequence in US-ASCII" in .js.erb files
Ruby 1.9 can raise invalid byte sequence in US-ASCII in .js.erb files when templates contain UTF-8 characters; adding @encoding: UTF-8 sets the template encoding.
How to silence UTF-8 warnings on Rails 2.3 with Ruby 1.9
Ruby 1.9 triggers UTF-8 regexp warnings in Rails 2.3.16+ from ActiveSupport; a monkey patch in config/initializers suppresses them.
Firefox introduces PDF viewer
Firefox now renders PDF files directly in the browser, which can change how embedded documents appear to users and affect applications that rely on PDF handling.
A regular expression that will never match
Need a stable regex result that matches nothing? /(?!)/ returns a valid Regexp object that never matches.