We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

campaignmonitor.com

CSS support in major e-mail clients is horrible. This will give you an overview what you will not be...

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

makandra dev
stackoverflow.com

If your git index for some reason becomes invalid, no need to worry. Your index is corrupt when you see this error running usual git commands like git pull, git...

gist.github.com

Here is some JavaScript code that allows you to click the screen and get the clicked element's text contents...

...clone or #dup and you modify the copy, you will run into the following behavior: original_hash = { foo: { bar: 'original value' } } copied_hash = original_hash.dup copied_hash[:foo][:bar] = 'changed value...

darwinweb.net

Hopefully you are using Psych for everything, but if you have legacy Syck YAML files lying around you could be...

makandra dev
bootswatch.com

Free Bootstrap theme resembling Material Design. Bootswatch offers Sass and Less files, so the theme can easily be integrated into...

makandra dev
medium.com

...this file as your project grows. The problem here is that this file potentially becomes very complicated to manage over the time. That’s why it’s important to find...

blogmaverick.com

...BlackSwan competitor will appear and they will kick your ass. Their product will be better or more interesting or just better marketed than yours, and it also will be free...

makandra dev
github.com

Sometimes you need to run background jobs that you can't make important guarantees about - they may run out of...

makandra dev

When you have a hook in your Capistrano file that dumps your remote database, you might not want it to...

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

benmabey.com

...about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be used appropriately based on the situation. The majority of examples on rspec...

...You could also use social media buttons, but disable them by default. The rationale behind this is: Facebook, Google, Twitter, and similar will send information to their servers even when...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

lucaguidi.com

...shared and writable by threads. If incorrectly coordinated, those threads can lead to unexpected behaviors...

This is called "cherry-picking". git cherry-pick commit-sha1 Note that since branches are nothing but commit pointers, cherry...

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

After a recent Ubuntu update I didn't see the main menu bar of the RubyMine IDE (File | Edit | View...

I experienced a lot of issues with google chrome that made it almost impossible to work with it. Here are...

makandra dev
semaphoreci.com

...run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec rails runner 'ScriptRunner.go'" end becomes desc 'Run script' task :script do on primary :app do within current_path do

...user directly as an option to the server directive. Also, the roles syntax has become more ruby'esque, and the first server will by default be the primary one:

When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...