Given you store files on Amazon S3 and you need to stream those files out to people while you don...

Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:

StaticMatic is a nice tool to build simple static websites. In case you want to have some nifty styles on...

Trick: Do not use convert but mogrify: mogrify -resize 50% * This overwrites the original image file. In contrast, convert writes...

Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...

The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the...

When you get an error like this: Invalid gemspec in [/opt/www/foo-project.makandra.de/shared/bundle/ruby/1.8/specifications/carrierwave-0.6.2.gemspec]: Illformed requirement ["# 1.1.4"] ... the machine's Rubygems needs to...

We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...

youtube.com

Interesting interview with DHH, where he talks about how they made the new Basecamp feel very fast without using a...

If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

With the the Ruby Tempfile class you can create temporary files. Those files only stick around as long as you...

This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...

Jedes nicht rein private Profil auf Social Media Portalen muss ein Impressum haben, das heißt insbesondere Unternehmen und Freiberufler (§ 5...

I was experiencing the following problem: It seems your ruby installation is missing psych (for YAML output). To eliminate this...

github.com

Internet Explorer until version 9 has some limitations when parsing CSS files Summarized, these are: Up to 31 CSS files...

github.com

No one wants to cry over regression issues in views; does testing HTML and CSS have to be such a...

When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...

You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...

This will make MySQL log all received queries so you can see for yourself what happens on the database level...

makandracards.com

The step we used in the past (Then "foo" should not be visibile) doesn't reliably work in Selenium features...

If you want to install rabbitmq plugins on Ubuntu 12.04 you can do this with: /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.1/sbin/rabbitmq-plugins This binary is not...

Check if you have puppetsync enabled on the master and client [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet...

In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...