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

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

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

makandra dev
chir.ag

This service gives you a kind-of standard color name for any hex code. This is useful if you want...

The default Google Analytics might not work as expected with your Unpoly app. This is because your app only has...

tenderlovemaking.com

You can define methods using def or define_method. In the real world, there is no performance difference.

til.hashrocket.com

Apparently you can pash a second scope to a hash-condition and the whole thing will be evaluated as a...

makandra dev
thecodelesscode.com

The Codeless Code is a charming series of stories about monks and nuns at a programming monastery. Some stories to...

This is quite an edge case, and appears like a bug in Rails (4.2.6) to me. Update: This is now...

Note: This applies to plain Ruby scripts, Rails does not have this issue. When you work with Ruby strings, those...

makandra dev

If you have made any changes to a libvirt xml config file you have to reload is. One way is...