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

github.com

We have a new gem Minidusen which extracts Dusen's query parsing and LIKE query functionality. Minidusen can no longer...

makandra dev
ohshitgit.com

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation...

Capistrano is by default configured to exclude the gems of the groups development and test when deploying to the stages...

weareoutman.github.io

ClockPicker is a JavaScript and Bootstrap implementation of an Android-style time picker which looks and feels great. Unfortunately, it...

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

Things to check first Do you deliver fonts in a format that the target IE version understands? Did you double...

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

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

There's no user interface to give an AWS IAM user read/write access to a selected list of S3 buckets...

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

This pretty-prints a JSON object, with two spaces of indentation: JSON.stringify(object, null, 2)

Ruby's __FILE__ keyword returns the path to the current file. On popular for this are Ruby binaries: #!/usr/bin/env ruby...

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

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

PostgreSQL, unlike MySQL, treats strings as case sensitive in all circumstances. This includes comparison with = and LIKE collision detection in...

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