This article from the FreeBSD Handbook suggests that editing /etc/rc.conf enables DHCP. Unfortunately, some times this seems not sufficient.
We have a big flat screen TV (Samsung LE46c650l1kxxu) in our conference room. Configuring it properly, we were encountering some...
If you use Nginx with SSL and get an intermediate certificate with your certificate you have to do this:
Attached is a working config to deploy an application with Capistrano that needs to monitor Resque workers with God.
Vim allows recording a batch of commands as a macro. This is handy if you need to do the same...
Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...
To avoid sending e-mails containing sensitive data unencrypted I strongly suggest you enable a confirmation dialog. Enigmail can show...
The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...
tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...
When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...
This post is not about devops, it's not about lean startups, it's not about web scale, it's...
Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...
Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...
I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...
To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end
If you are in the middle of a file and want to scroll, but don't want to move your...
This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...
When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...
The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...
Resque comes with its own dashboard (Resque server) that you can mount inside your Rails 3 application with #config/routes.rb:
Note: While the solution in this card should still work, we prefer another solution now: Hide your Selenium browser window...
Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...
This note describes how to kick a user out of a Rails application after she hasn't requested an action...
When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...