Ruby: Debugging a method's source location and code
Find where a Ruby method is defined and inspect its implementation; Method#source_location reveals file and line, while method_source can return the method body.
Initiate SSL secured TCP connections to remote services
telnet and nc cannot open SSL-secured TCP connections to remote services; openssl s_client can test the connection and handshake.
Chart.js - a promising JavaScript charting library with MIT-license
Lightweight canvas-based charting for web apps with high configurability and broad browser support. A permissive MIT-licensed alternative to Google Charts and commercial libraries.
Comparing Rails' flash hashes will not respect their internal lists of used entries
Rails FlashHash comparisons ignore the internal used-entry state, so two flashes can look equal even when their next-request behavior differs.
Fix „rvm no such file to load -- openssl“ or "rvm no such file to load -- zlib"
Missing system libraries can break RVM Ruby installs, causing no such file to load -- openssl or zlib errors. Reinstalling the required dependencies and recompiling Ruby fixes the issue.
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.