If you want to manually check if e-mail delivery works on a machine by sending an e-mail you...

The step definitions below allow you to write this in both Webrat and Capybara: When I follow "Download as PDF...

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...

Attached you can find an example ~/.ssh/config file which makes working with SSH more pleasant. It contains several tweaks:

makandra dev

Using VCR to record communication with remote APIs is a great way to stub requests in tests. However, you may...

makandra dev

Have you ever mistaken one Rails environment for another? The attached helper will help you to never do it again...

...In the [mysqld] section, add: log=/var/log/mysql.log Restart your MySQL daemon. On Ubuntu: sudo service mysql restart Note that your MySQL performance will suffer. But when you need to enable...

List flavors to show the ID and name, the amount of memory, the amount of disk space for the root...

My T410 has a NVIDIA graphics card (NVS 3100M). My BIOS configuration looks like this: NVIDIA Optimus is disabled in...

...keeping path and query params unchanged, change your Apache VHost to something like this: ServerName desired-host.com ServerAlias redirecting-host.com RewriteEngine On RewriteCond %{HTTP_HOST} !^desired-host.com$ RewriteRule ^.*$ http://desired-host.com%{REQUEST_URI} [R...

If you want to inspect the compiled code of your erb (or haml) templates, you can run the following code...

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

songit.posterous.com

RubyGems 1.6.0 has undergone some changes which may cause Rails 2.x applications to break with an error like this...

If you have many connections to your MySQL or MariaDB (as we have) you might want to filter the list...

maulwuff.de

The linked article provides a description of commonly found problems with TLS and hints on debugging / solving them.

To display a list of your current Git remotes and their endpoints, you can say git remote -v

If bundle install shows the following message for you ... Error Bundler::HTTPError during request to dependency API ... upgrade to Bundler...

Then /^I should get a response with status (\d+)$/ do |status| response.status.should include(status) end Capybara Then /^I should...

SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER...

When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...

This only works when you actually have a session ID (not the case for Rails' CookieStore, for example): request.session_options...

Passenger gives you the possibility to define in which environment your app should be started. This has to be added...

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...

When you run into time zone issues e.g. Given the time is "2011-11-11 11:11" but

...13...