If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...

Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...

ui-patterns.com

In order to lower friction and the hurdles to pass, users need to be provided with a reason to trust...

skorks.com

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

This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...

tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...

support.google.com

The old Chrome downloads bar had several advantages over the new subtle downloads dropdown: see all (many, at least) downloads...

...After('@chrome320x480') do Capybara.use_default_driver end You can use either chromium or chrome beta (as of 2012.05 the Version "19.0.1084.41 beta" works), or any other member of the family...

...bart@simpson.com" and the password "secret" When I sign in as "bart" Then I should bee on the home page And "logout" should be reachable

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

Instead, I'm now using a "full" selector to avoid the broken behavior: page.find('.message:nth-of-type(1)', :text => 'Hello World').text => "Hello World" page.find('.message:nth...

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

has_many :holidays validates_numericality_of :holiday_count end class Holiday < ActiveRecord::Base belongs_to :region after_save :update_holiday_count_in_region after_destroy :update_holiday_count_in...

region.update_attribute :holiday_count, region.holidays.count end end Note that there are probably better days to implement the holiday_count mechanism, but humor me for the sake of the...

If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...

...Rails booting a few seconds. In your binstubs, there should be something like this: begin load File.expand_path("../spring", __FILE__) rescue LoadError end Change it as follows. running_in_parallel...

...ENV.has_key?('TEST_ENV_NUMBER') || ARGV.any? { |arg| arg =~ /^parallel:/ } begin load File.expand_path("../spring", __FILE__) unless running_in_parallel rescue LoadError end That's it. bin/rspec your_spec.rb will now boot...

...s #find method raises an error if nothing could be found. #first should behave like #find used to. i18n requires Ruby >= 1.9 -> Add gem 'i18n', '< 0.7.0' # 0.7.0 requires Ruby...

Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...

Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...

This is an awful way to test whether a number is shown on the screen: Then I should see "5...

Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...

makandra dev
smashingmagazine.com

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

This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...

Here is a hacky way to load dumps directly from the source server, without fully copying them over and extracting...

This is not an issue in newer versions of HAML (starting with 5.0.0), as the ugly-option was removed...

WProofreader is a spelling and grammar checking tool that integrates with textareas and numerous WYSIWYG editors. While it usually activates...