unix.stackexchange.com

As described by the linked Stackoverflow answer, run these commands: sudo add-apt-repository ppa:git-core/ppa -y

github.com

You know that Devise offers RSpec test helpers for controller specs. However, in request specs, they will not work.

Cucumber raises a Cucumber::Ambiguous if more than one step definitions match a step. Our new cucumber_priority gem provides...

Spreewald 1.4.0 comes with this step: When I click on the element ".sidebar" We recommend to define a selector_for...

Spreewald 1.3.0 comes with these steps: Then I should see an element ".panel" Then I should not see an element...

makandra dev
stackoverflow.com

When there's a Gemfile.lock in your working directory that you cannot remove by either checkout, reset [--hard], stash, probably...

github.com

Live markdown previewer (with Github flavored syntax) for VIM. Will open a preview in your browser and update automatically on...

I had a very frequent cronjob that in rare cases could be relatively slow. To avoid multiple instances of this...

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

github.com

Ag (aka "the silver searcher") is a very fast replacement for grep. It will parse your .gitignore for additional speedup...

Lead by a discussion of this issue, I built in a middleware which answers those requests with [400] bad request...

Sometimes you just want to have a small web server that serves files to test something. Serve the current directory...

makandra dev
stackoverflow.com

git rebase -i -> mark your commit with edit git reset HEAD~ (remove the marked commit, but keep its...

While you usually do not need a Content-Type on GET request (which have a blank body), an external API...

relishapp.com

You can configure RSpec 3.3+ to raise an error when attempting to stub or mock a non-existing method. We...

bugs.ruby-lang.org

This is basically Ruby-native syntax for andand.

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

github.com

When a method has keyword arguments, Ruby offers implicit conversion of a Hash argument into keyword arguments. This conversion is...

This is a guide on how to effectively use Git when working on a feature branch. It is designed to...

Starting with Rails 4.0, when you get an exception reported via the ExceptionNotification gem, you will only see a very...

github.com

Rails 5 will introduce ActiveRecord::Relation#or. On Rails 4 and 3.2 you can use the activerecord_any_of gem...

bibwild.wordpress.com

While debugging an intricate issue with failed HTTP requests I have come to appreciate the more advanced features of the...

digitalocean.com

I recommend install Node.js using nvm. This way you can have multiple Node versions in your ~/.nvm. You also won...

It smells. Rethink your code design. Code example with makandra/has_defaults: class Post < ActiveRecord::Base has_defaults tags: [] # field in db...