tug.dk

Gallery of fonts you can use without much hassle in LaTeX. The license of the fonts vary, but are all...

If you need to do calculations inside the database and can not use Ruby objects you may run into problems...

When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...

This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...

nokogiri.org

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

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

Occasionally some complex query must be processed on the database because building thousands of Ruby objects is impracticable.

apidock.com

E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...

This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.

makandra dev

You should never transmit sensitive data without encryption. Being logged in somewhere constitutes transmitting sensitive data. For Pivotal Tracker:

When you use will_paginage to paginate a scope, and you want to obtain the total number of records matched...

makandra dev
pidgin.im

If your pidgin IM fails to connect to ICQ, you may need to update it. The ubuntu default sources are...

makandra dev

This will stash all modifications that you did not git add: git stash -k Note that newly created (and non...

To only run the next two migrations: rake db:migrate STEP=2 To revert the previous two migrations:

makandra dev

The following initializer provides an :alias => "my_route_name" option to restful routes in your route.rb. This simply makes the...

makandra dev

If you need to revert only parts of one or several commits the following workflow can help:

As a user of Bundler you have spent significant time looking at this message: Fetching source index for http://rubygems.org...

Given this class: class Foo class Bar end end If you want to clean up this code with the modularity...

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 }

This note describes a Cucumber step definition that lets you test whether or not a CSS selector is present on...

skorks.com

Ctrl + R Search commands you entered previously. Press Ctrl + R again to search further back, Ctrl + Shift + R searches forward...