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

makandra dev
select2.org

Select2 comes with AJAX support built in, using jQuery's AJAX methods. ... For remote data sources only, Select2 does not...

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

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

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

The rendered font often depends on the local font your system provides, therefore you often find a rule like below...

On recent/fresh installations of Ruby 1.8.7 you may encounter this error why calling any bundled binary (or just bundle exec...

The following snippet demonstrates how you could create excel files (with spreadsheet gem) and format columns so that they follow...

stackoverflow.com

With ngAnimate, you can easily animate certain events (see directive support). We'll make use of ngClass animations to style...

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

github.com

...where a Contact record may be associated with a Group record: class Contact < ApplicationRecord belongs_to :group validates_presence_of :name, :street, :city, :email end class Group < ApplicationRecord