Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
To set the hostname of your Mac, run the following command in Terminal: sudo scutil --set HostName my-new-hostname.local
When you want to quickly boot from a drive or image in a virtual machine you do not need to...
Occasionally you need to do something directly on the server -- like having all records recalculate something that cannot be done...
ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...
Simply add --dry-run, like this: sudo apt-get install --dry-run something This is great if packages would get...
When installing RMagick you may get an error messages like this: Version 2.13.1: checking for Ruby version >= 1.8.5... yes
I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...
By default, Opera 11 hides any passed params and the URL's protocol until you focus the address bar.
The Ubuntu Documentation on LaTeX says, that the packages tetex are no longer supported. You can install the alternative texlive...
The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...
Note that you cannot currently use Ruby 1.9.2 with Rails 2 applications that use RSpec, so don't upgrade if...
ActiveRecord comes with a method touch which sets the updated_at timestamp to the current time. Unfortunately it also runs...
Add deprecation warnings and their solution or link to available solutions. Global access to Rake DSL methods is deprecated. Please...
Pie sometimes does not properly redraw elements upon changes. This often happens when the change comes from somewhere further up...
The attached RSpec matcher exist_in_database checks if a given record still exists in the database and has not...
Install OpenSSH Server: sudo apt-get install openssh-server To check if the server is running you should get no...
An overview of common vim commands, including: windows buffers undo/redo navigation bookmarks selection/whitespace clipboard shortcuts search/replace programming external filters
You can find ActiveRecord models by using a Range as its conditions: User.scoped(:conditions => { :id => 3..5 }) This will generate...
When you set both a record's association and that association's foreign key attribute, Rails does not realize you...
Pressing the ? key will display a list of keyboard shortcuts. Available shortcuts are: |search |/| |help|?| |add story|a| |toggle backlog...
MySQL's MIN and MAX functions are for aggregations only. This will not work and produce an error:
If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...
Although you can access many symbols using the AltGr key you may be missing some, like the en-dash (–) or...