You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...
Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...
For all late night coders: The program "redshift" changes your monitors' white balance according to your position on the planet...
Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...
When you load a dump for development, records may reference images that are not available on your machine.
Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. We’ll look...
Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...
Ruby 1.9 changed the default behavior of Module.const_defined? from what it was in Ruby 1.8 -- this can be especially painful when external code (read: gems) uses const_defined? to...
1.9.3 > Bar.const_defined? :FOO => true 1.9.3 > Bar::FOO => 42 To get the old behavior back, you need to pass false as a second option: 1.9.3 > Bar.const_defined? :FOO, false...
The exception_notification gem supports to provide custom data to e.g. the fail mail within foreground or background jobs. ExceptionNotifier.notify...
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
Capistrano recently had some API changes that can results in deploys not working when running with old deploy.rb files.
Note: In Rails 3+ you can use Array.wrap instead of the solution here. In the past you could use Array...
When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...
So you have multiple screens under Xfce and want to have one task bar on each screen, only showing applications...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...
Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...
wrap the text with a span use line-height for the spacing between lines ("margin")
This describes how to migrate an existing cucumber test suite to Spreewald. Add the gem Include spreewald into your cucumber...
You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...
...your Firefox versions because your Selenium tests break whenever Firefox updates, there is a better way that lets you keep an up-to-date Firefox. Mozilla has stated that they...
Many box shadows will make your app unusable on smartphones and tablets Designing Beautiful Shadows in CSS
If you use Angular 1.4+ together with Angular Animate, all ng-show, ng-hide, ng-class etc. are animated on...
...two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character. Solutions, in decreasing order of awesomeness: Don't have whitespace between two...
...you will never be able to negate the space exactly, leading to weird hairlines betwen elements (especially on high-DPI displays, where a pixel is not a pixel).