Google Chrome saves your profile data in ~/.config/google-chrome. To transfer the profile to for example a system you have setup...
When you use heredoc, string interpolation is enabled by default: x = "Universe" <<-MESSAGE Hello #{x} MESSAGE # => "Hello Universe"
Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...
TL;DR: You should generally use #size to count associated records. size Counts already loaded elements If the association is...
Given you use Capistrano together with bundler to automatically install your gems when deploying. I recently had the problem that...
Good collection of crash-course articles about founding a start up, getting funded, validating ideas, etc.
calc() lets you mix CSS units. Ever wanted to give an element "the container's width minus 20px on each...
tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...
Safari & Chrome Use $x() in your console: $x('//span') # selects all span elements Firefox There's an add-on.
Watch out when saying something like 1.year in Rails. The result is not a Fixnum and can cause unexpected errors...
So you want to know if you are on natty, precise, quantal, or something else? Check /etc/lsb-release. $ cat /etc/lsb-release
Mozilla has announced that, starting with Firefox 22, the popular open source web browser will begin blocking third-party cookies...
Ruby 1.9 changed the default behavior of Module.const_defined? from what it was in Ruby 1.8 -- this can be especially...
See attached link for a way to extract the conditions of a named scope in Rails 2.3.
This error can happen in Ruby 1.9. To fix it, add the following line to the top of your .js.erb...
Rails 2.3.16+ on Ruby 1.9 causes warnings like this: .../gems/activesupport-2.3.17/lib/active_support/core_ext/string/output_safety.rb:22: warning: regexp match /.../n against to UTF-8 string...
JavaScripts and CSS should be minified for production use. In Rails 3.1+ the asset pipeline will take care of this...
Prepare to explain customers what changed if your application renders PDF documents to users.
So you have a method returning a regular expression but one case that should not yield a matching Regexp object...
If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...
If others on a call (Skype, SIP, ...) can not hear you loud enough, your volume levels are probably too low...
So you're using multiple remotes that offer the same branch? $ git branch -a | grep my-branch remotes/something/my-branch remotes/origin/my-branch
You either have an old version of Mocha and an edge version of Rails 3.2, or you have a new...