whatsmydns.net is an online service that allows you to instantly perform a DNS lookup to check a hostnames current IP...
When your Solr seems to be started properly (a process is running with the correct data directory) but never responds...
When you put a Rake task into lib/tasks, but running it fails with... Don't know how to build task...
cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
Here is a way to create a duplicate of one database, with all its tables and their data, under a...
If you using gpg for your encrypted backup and it fails after you put it in crontab make sure you...
Random list of useful git commands for advanced users. I found some of them useful.
If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...
You can use fold: fold -sw 60 You can now paste your texts. fold will echo them back, word-wrapped...
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
The state_machine gem comes with a rake task that lets you generate PNG graphs from any model using state...
If you get an error "Adress already in use" with autossh check with lsof or netstat if something already listen...
class Errormaster CoffeeIsOut = Class.new(StandardError) # is prettier than class CoffeeIsOut < StandardError; end end Reference such an error class with Errormaster...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
If you have different users for different servers, don't use set :user. Encode the username into the server definition...
Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
Observed on Rails 2.3 and machinist 1.0.6 Like the title says, when you define the method empty? like in the...
When you don't know which options are available, but need to have an option selected, use this step.
There is a bug in Rails 3's dbconsole script, which makes the following command open a database console for...
There are many blog posts on encrypting backups, but none works for local drives. #How to Encrypt the external backup...
Microsoft provides virtual machine disk images to facilitate website testing in multiple versions of IE, regardless of the host operating...
Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...
Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...