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

When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...

So you want your Ruby script to install missing gems instead of dying? Take this method: def installing_missing_gems...

If you get this error when you try to resize an OpenStack instance: # nova resize example 23 --poll

code-experience.com

React.js is a relatively new Javascript templating engine that has two-way-bindings like AngularJS or Batman. The interesting idea...

makandra dev

Spring is a Rails application preloader. When debugging e.g. the rails gem, you'll be wondering why your raise, puts...