Creating records in specs can be so fast that two records created instantly after one another might have the same...

Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...

class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...

Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...

Use reorder to replace an existing order clause with a new expression.

ruby.about.com

The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...

# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.

Though nowhere to be found in the official docs, this works just fine. describe Facebook::Post do it_behaves_like...

By default git diff highlights whole lines as changes. To diff on a word-by-word basis you can say...

Yesterday, Rails fixed a security issue (CVE-2014-3514) in Rails 4+. It was possible to use .where...

These two addons will change your life: Search as list This will always open search results in the list views...

Microsoft Exchange service administrators can enable Exchange Web Services (EWS) which is a rather accessible XML API for interacting with...

ozmm.org

require 'net/http' module Cheat extend self # the magic ingredient def host @host ||= 'http://cheat.errtheblog.com/' end def http @http ||= Net...

support.skype.com

Unfortunately, the hidden emoticons are some of the most expressive and useful ones. Hidden codes (skype) (ss) (call) (talk)

Due to network or hardware failures, it can happen that one of your cronjobs will not run at the time...

makandra dev
input.fontbureau.com

Customizable font for programming.

When you don't only have a favicon.ico in your project but also PNGs of different sizes and backgrounds, you...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...

The adjust-hue function of Sass allows you to change a color's hue, but only relative to its current...

If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...

In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...

When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...

As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...

RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...