Install FreeBSD Download a suitable image from this site Select File > New… to and follow the instructions, choose the .iso...

If you need to strip carriage return characters from a text file, you can use Vim: vim file.txt

Internet Explorer 5+ is aware of conditional comments that let you target HTML for selected versions of IE. For example...

If you want to play music or sounds from a browser, your choice is to use either Flash or the...

We often have a separate production branch that lags a bit behind the more cutting edge main branch. Sometimes you...

You can seriously speed up deployments with Capistrano when using a local git repository on the server you are deploying...

Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...

When storing floating-point numbers such as prices or totals in an SQL database, always use a DECIMAL column. Never...

When deploying an application with "cap deploy" by default [1] you only deploy your code but do not run migrations...

Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...

nex-3.com

Sass now comes with user-defined functions, keyword arguments, list manipulation. Haml and Sass are now two separate gems.

slides.html5rocks.com

Awesome presentation for the new HTML5 features we will get to play with. This presentation should probably be viewed in...

You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...

Partials always define a local variable with the same name as themselves. E.g. when you are in _recent_users.html.erb, a local...

If you want to convert a README.rdoc file to HTML, say this from a shell: rdoc README.rdoc

ActiveRecord gives you the :include option to load records and their associations in a fixed number of queries. This is...

linux.die.net

Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...

The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you...

If there is some weird margin at the top of your page for no apparent reason, chances are one of...

Within an event handler, there are multiple methods to cancel event propagation, each with different semantics. event.preventDefault() Only prevents the...

joemaller.com

Google’s Font Directory and API for web fonts could have a transformative effect on how we read the web...

When you write a custom RSpec matcher a good place to store them is to create one file per matcher...