If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...

Remember how Rails 2 came with an awesome feature that broke all code using Time.now or Time.parse? This behavior is...

When writing a piece of reusable code, you sometimes need to have separate code for Rails 2 and Rails 3...

While it might seem trivial to implement an invoice that sums up items and shows net, gross and vat totals...

Calling Time#utc, Time#gmt or Time#localtime will not create a converted copy. Instead these methods modify the receiving...

papercut.com

Retaliation is a Jenkins CI build monitor that automatically coordinates a foam missile counter-attack against the developer who breaks...

I recently browsed through the ActiveSupport code and found some nice stuff I did not know about: ActiveSupport::Callbacks

makandra dev

If you want to use the (badly implemented!) solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port...

Open up your "Base File.sublime-settings" (Preferences Menu → File Settings – User) in Sublime Text 2. Add entries for font_face...

Date::Performance is a gem that replaces various method in Ruby's Date class with fast C implementations. Unfortunately it...

Detecting if a Javascript is running under Selenium WebDriver is super-painful. It's much easier to detect the current...

Whenever you deploy using Capistrano, a new folder is created within the releases directory on the remote server containing the...

makandra dev
github.com

When you need to use diff in either some Ruby code or your Rails app, use the differ gem.

paperplanes.de

This post is not about devops, it's not about lean startups, it's not about web scale, it's...

en.wikipedia.org

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...

codeodor.com

Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails.

The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

Below you can find the hex color codes for the Color Graphics Adapter palette which used to be popular in...

makandra dev

I've recently encountered a weird problem with specs making lots of SOLR queries using the acts_as_solr plugin...

makandra dev
martinfowler.com

A common question in IT departments is whether to provide a capability by building custom software or by buying a...

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

My RubyMine (and it seems like many other Java GUI applications) crashes the Compiz window decorator almost every time on...

jwz.org

An ancient essay on software design that, after 20 years, should still guide you for every line of code you...