When you're writing specs for ActiveRecord models that use memoization, a simple #reload will not do: it 'updates on...

...downgrade Firefox because your Selenium tests broke after a Firefox upgrade, there is a better way that doesn't involve downgrading. Mozilla has stated that they will no longer provide...

...make a backup of your bookmarks. I didn't have to use it, but better safe than sorry. Download a release for your system from ftp://ftp.mozilla.org/pub/firefox/releases/5.0.1/

skorks.com

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

Accessing pseudo elements via JavaScript or jQuery is often painful/impossible. However, accessing their styles is fairly simple. Using getComputedStyle

Google Chrome has a subtle rendering bug that hits me once in a while. It usually occurs in sliders with...

When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...

First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...

Capistrano automatically logs each (successful) deployment into a file on your application servers. It is located at the root of...

api.rubyonrails.org

...especially handy because Rails puts some stuff in the params which does not really belong there IMHO. For instance there is a :format parameter that comes in the way when...

You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...

Our rspec_candy gem now gives you three matchers: be_same_number_as Tests if the given number is the...

This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.

Google Calendar integration into Thunderbird suddenly did not work any more for me. Thunderbird kept asking me for my password...

By default Haml will downcase and underscore the class name. So ForumPost will become forum_post. You can control the generated string by overriding the #haml_object_ref method...

...IBUS_ENABLE_SYNC_MODE=1 /home/arne/rubymine/bin/rubymine.sh This seems fix issues on RubyMine 8. The benefit of an extra launcher file is that you can upgrade RubyMine and don't have...

...SD-Card on my Mac, then I will see those nasty resource fork files (beginning with "._") for every file and folder on my car stereo. In most cases those resource...

makandra dev
smashingmagazine.com

Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. We’ll look...

Note: Consider not doing this. Use form models or vanilla methods instead. The :conditions option for Rails associations cannot take...

So you downloaded a theme for Chrome a while ago and don't remember which one it is?

Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...

if evaluator.name instance.first_name, instance.last_name = evaluator.name.split(' ') end end end Explanation: transient attributes behave like attributes, except that they aren't assigned to the record. By defining the transient...

Imagine you have a list you want to render inline on large screens, but stacked on small screens. high

Ruby's mathn library changes Fixnum division to work with exact Rationals, so 2 / 3 => 0 2 / 3 * 3 => 0...

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...