The CSS property z-index is not as global as you might think. Actually, it is scoped to a so...
SVG files are often much larger than necessary, containing comments, metadata, hidden elements etc. Optimize them with this tool.
Just run git show branch:file. Examples: git show HEAD~:bin/command git show origin/master:../lib/version.rb
Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...
Capybara-screenshot can automatically save screenshots and the HTML for failed Capybara tests in Cucumber, RSpec or Minitest. Requires Capybara...
Rails includes a way to see what an e-mail will look like. Integration to RSpec All you need to...
You can do so much more than console.log(...)! See the attached link for a great breakdown of what the developer...
When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...
One of the many useful features of TextMate is autocompletion of words. If I were in TextMate right now, I...
A great two-part article about various hacks you can use to create great-looking screen designers when you're...
Rails migrations allow you to use a change method whose calls are automatically inverted for the down path. However, if...
For our production servers we use Passenger as a Ruby application server. While it is possible to use Passenger for...
In a JavaScript console, type this: > 9112347935156469760 9112347935156470000 Ooops. And that's not a float! This occurs because JavaScript uses...
Creating records in specs can be so fast that two records created instantly after one another might have the same...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
Capybara will fail to find tags that are missing an href attribute. This will probably happen to you every now...
Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...
Safari on iOS accepts an apple-touch-icon favicon that is used for stuff like desktop bookmarks. Always define a...
When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...
better_errors is an awesome gem for enhanced error pages in development, featuring a live-REPL for some light debugging...
Your development machine is usually on a very good network connection. To test how your application behaves on a slow...
By default, Rails' validates_uniqueness_of does not consider "username" and "USERNAME" to be a collision. If you use MySQL...
When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...
Using git checkout - you can switch back to the branch you previously worked on. (master) $ git checkout foobar