To clear the query cache in your MySQL database manually, e.g. for database profiling, execute the following command in your...
So you added a new callback to your model that (e.g.) caches some data when it is saved. Now you...
Ruby's net/http is setup to never verify SSL certificates by default. Most ruby libraries do the same. That means...
You can use these step definitions: Then /^I should not see an error$/ do (200 .. 399).should include(page.status_code...
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt, it has gained a reputation for...
When you just went through a long debug-fest and infested your code with dozens of debug messages, it can...
Have you guys ever done the math on that? You asked or allowed for 24000 interruptions from literally every human...
Selenium has been the siren song that continually calls out to us. Unfortunately, in practice we’ve been unable to...
If your pidgin IM fails to connect to ICQ, you may need to update it. The ubuntu default sources are...
This document describes an agreement between web servers and search engine crawlers that allows for dynamically created content to be...
This is a bash script for those of you who need to install all gems for all projects (e.g. to...
Use this scope: class Stick named_scope :shuffled, lambda { last_record = last { :conditions => [ 'id >= ?', rand(last_record.id) ] } if last_record }
Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...
This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.
This returns the name (including path) of your current layout: response.layout => "layouts/admin" # inside views that are using the 'admin' layout...
I prefer the application that I'm currently working on to be reachable at http://localhost/. So when I switch...
When using form_for you can give the form's target URL either as a string or an array:
Note: We are talking about Machinist 1 here, Machinist 2 may have solved this or might require a different approach...
You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...
If you want to see how long your database queries actually take, you need to disable MySQL's query cache...
This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...
A good tool to generate strong passwords and secrets is "apg". You can get it with sudo apt-get install...
You need to install the following packages before you can build the Paperclip gem: sudo apt-get install imagemagick librmagick...