I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

We're adding a script console-for to open a remote Rails console with one command. Also have a look...

You probably need to activate X-Sendfile.

If you stub a method or set expectations with should_receive these stubbed methods may also yield blocks. This is...

To obtain a list of Passenger processes with their application directories and memory usages, you can say sudo passenger-memory...

github.com

When CoffeeScript was added to Rails 3.1 they forgot one very important part, the ability to use it when responding...

If you are connected with a network that forbids e-mail traffic but allows SSH, you can tunnel your e...

When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...

To check your apache2 config files for syntax errors run sudo apache2ctl configtest or shorter sudo apache2ctl -t

In order to request a SSL certificate from any dealer, you usually need a CSR certificate. As both the CSR...

crazylittlehacks.blogspot.com

I found a nice script on crazylittlehacks and modified it slightly. Put the attachment to /usr/local/bin, chmod +x and run...

Update: Staticmatic will not be further developed. They suggest to switch to middleman. If you need to make a static...

blog.jayfields.com

Deprecated ways to execute shell code in Ruby This is just a reference for legacy code. For new code, always...

You probably already manage servers you often connect to inside the ~/.ssh/config file. What is nice: you may define alias...

When your cucumber features grow massively over time, the test execution can take a lot of time.

Soon after having written our shell-for script, we wanted to easily get dumps of our productions machines, too. This...

makandra dev
github.com

After having written useful scripts into makandra notes for a long time, we’ve now tied them into a powerful...

api.rubyonrails.org

Wrapping a string in this class gives you a prettier way to test for equality.

makandra dev

Before installing chef, make sure curl is installed and sudo finds your gems setup chef-client: follow this guide

We regularly need to connect to the server in order to e.g. access the production console. Guessing the Capistrano deploy...

makandra dev

When you simply want to get to know Puppet, follow puppetlabs’ Learning Puppet Docs. They give you a handy introduction...

We recently decided to put static content for HouseTrip.com to Amazon Cloudfront for a faster user experience. This happens fully...