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

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

Reading user input in console applications is usually done using Kernel#gets. Stubbing that can be a bit hairy.

When testing Ruby code that prints something to the terminal, you can test that output. Since RSpec 3.0 there is...

to create a Gallery that has a name and has_many :images, which in turn have a...

makandra dev
thecssninja.com

Sometimes you want to preload images that you will be using later. E.g. if hovering over a an area changes...

Edit /etc/default/bind9 and change OPTIONS="-u bind" to OPTIONS="-u bind -d 50 -g" Restart BIND and you'll see...