Say you have an RGBA color that you need as a non-transparent color because of reasons. Basically, this is...

You know those helper methods that just render some HTML but look weird because of content_tags all over the...

makandra dev

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

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

Isolate scopes offer three kinds of variable binding. One of them is &, allowing to bind a property of the isolate...

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

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

css-tricks.com

The linked article shows what current browsers do when you click a link like this: 1-562-867-5309

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

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

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

makandra dev
phrogz.net

...The and tags both come with some non-default behavior that you know from other tags.

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

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

Processes in Linux might be put into Swap ("virtual memory") occasionally. Even parts of a single process might be removed...

makandra dev
css-tricks.com

All new browsers support the new object-fit CSS property. It allows to specify how an element behaves within its...

makandra dev
stackoverflow.com

IE has a "Compatibility Mode" for old browsers. You can keep IE from offering it (and fix some other things...

Converting string characters to or from their integer value (7-bit ASCII value or UTF-8 codepoint) can be done...

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

makandra dev
browsercookielimits.squawky.net

TL;DR If you want to support most browsers, then don't exceed 50 cookies per domain, and don't...

Spreewald gives you the within meta step that will constrain page inspection to a given scope. Unfortunately, this does not...