If you want to find the commits that touched a specific text in a file, use git log -S 'text...

Using the -U parameter you can change how many lines are shown above and below a changed section.

linuxquestions.org

Run dconf-editor (as your user) Go to org / mate / panel / objects / clock / prefs Change the key format to custom...

makandra dev
icomoon.io

Icomoon.io offers a free app to build custom icon webfonts. It offers downloads as webfont set (.eot, .ttf, .woff, .woff2...

davidverhasselt.com

Rails 5 / 6 / 7 Method Uses Default Accessor Saves to Database Runs Validations Runs Callbacks Updates updated_at/updated_on Respects Readonly...

github.com

We have released a new library Gemika to help test a gem against multiple versions of Ruby, gem dependencies and...

Same requests are recorded only once in vcr. Replaying a test fails, if you trigger the same request multiple times...

blog.johnnovak.net

Good article about what "gamma correction" means for color processing, and what "sRGB" actually means. You probably do not need...

blog.bigbinary.com

Rails 5 migration classes look like this now: class CreateUsers < ActiveRecord::Migration[5.0] Mind the [5.0] at the end.

When you are calling Bundler from your shell scripts, you might find it useful that a failed bundle call returns...

api.rubyonrails.org

ActiveSupport::Notifications provides an instrumentation API for Ruby. It is used throughout rails to publish instrumentation events that include information...

There is no build in functionally in jQuery and Prototype to extract params from a url. You can use this...

You want Spring for super-fast binstubs like bin/rails or bin/rspec which avoid Rails boot time. You want parallel_tests...

makandra dev

Sometimes you might need to nest a git-project inside another git-project. The right strategy is to use submodules...

makandra dev

Promises are the new way™ to express "Do this, and once you're done, do that". In contrast to callbacks...

Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...

Angular directives with isolate scopes have three different variable binding strategies, of which one is =. Example: # HTML # Coffeescript @app.directive 'panel...

If you need to modify (e.g. add 2px) a Sass variable that defines multiple values as one (e.g. for short...

To simulate Rails' to_sentence in your JavaScript application, you can use these few lines of CoffeeScript code: joinSentence = (array...

When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...

We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...

Resources Rails Guide: Internationalization API Guide to localizing a Rails application Locale-aware helpers in ActionView::Helpers::NumberHelper

Is your application doing something expensive every few seconds? Maybe an animated slider that rotates images? Maybe you are updating...