ariejan.net

Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...

makandra dev

Sometimes it seems a favicon does not work because your browser displays an old version or (in case of local...

calc() lets you mix CSS units. Ever wanted to give an element "the container's width minus 20px on each...

tl;dr: Do not use merge! for session hashes. Use update instead. Outline Let's assume you're modifying the...

Don't Google this, you will lose all will to live. Instead use Object#isEqual() from Lodash or Underscore.js:

github.com

MongoMapper is a MongoDB adapter for Ruby. We've forked it so it works for Rails 2.3.x applications running...

If you need to capture signatures on an IPad or similar device, you can use Thomas J Bradley's excellent...

apidock.com

If you have an integer and want to use it to represent an element's position (like "1st" for 1...

validates_uniqueness_of is not sufficient to ensure the uniqueness of a value. The reason for this is that in...

Calling bundle update GEMNAME will update a lot more gems than you think. E.g. when you do this...

github.com

Awesome color schemes for RubyMine, Sublime Text 2 and other editors. To install the themes into your Rubymine, copy intellij...

The way MySQL's FULLTEXT tokenizer splits text into word tokens might not always be what you need. E.g. it...

josh.github.io

li.active a:link Example output (specificity): | 0 | 2 | 2 | See also: https://www.codecaptain.io/tools/css-specificity-calculator

While you are probably using will_paginate to paginate ActiveRecord scopes, it can actually paginate plain Ruby arrays. The resulting...

When doing a git blame, git will blame the person who added or removed white space in a line (e.g...

Our old solution for cronjobs, the "craken" plugin, is no longer maintained and does not work on Rails 3.2+.

You know that you can force absolute URLs throughout a response. Now you want to modify URLs similarly, but only...

Xfce gives you a million options to configure your panels. Together with Xfce's sometimes arcane configuration UI, this can...

Global keyboard shortcuts can be configured in two separate panels in the Xfce Settings manager: Shortcuts related to managing windows...

In Rails 2, when calling instance_eval or instance_exec on a scope, the scope will fetch its records from...

Icon fonts like Font Awesome are infinitely scalable, look great on high-DPI displays and will give your app a...

If you're using the Capybara webdriver, steps sometimes fail because the browser hasn't finished loading the next page...

Browser rendering engines are very slow at rendering large box shadows. I had a situation where a complex layout with...

makandra dev
github.com

Show failing specs instantly. Show passing spec as green dots as usual. Configuration: # spec/spec.opts (.rspec for rspec 2) --require rspec/instafail...