Sometimes you want to test migrations with production or staging data. Dumping single tables makes sense if a complete dump...
On OSX (real or inside Browserstack), you need different keystrokes for your favorite special characters than you'd use on...
Presentation about optimizing Ruby on Rails apps. From Nico Hagenburger (homify's lead frontend developer).
Isolate scopes offer three kinds of variable binding. One of them is &, allowing to bind a property of the isolate...
...to attach an IAM policy like the one below to the user: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3:ListBucket" ], "Resource": [ "arn:aws:s3:::bucket1", "arn:aws:s3...
There is no built in possibility to convert a float to an integer. You have to use an inline_template...
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...
To check the currently running PG version from your Rails application (e.g. Rails console on your production server), simply do...
When you're nesting setTimeout(f, 0) calls, your browser will silently increase the delay to 5 milliseconds after the...
Hint You're not able to control which redis replica will chosen for the failover. Connect to your sentinel instance...
We're using Middleman for some static sites like our blog. Despite being very similar to Rails, Middleman does not...
Piwik is the leading open-source analytics platform. As such, it is an alternative to Google Analytics. Since it is...
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
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...
...or you can create a helper method that creates a string from an UTF-16 hex sequence: class String def self.from_utf16_hex(sequence) parts = sequence.scan(/..../) parts = parts.map { |part| part.to...
For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...
When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...
Because systemd is the greatest thing ever it's not enough to stop the libvirt service. You need to disable...
Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic...
So you downloaded a theme for Chrome a while ago and don't remember which one it is?
This service gives you a kind-of standard color name for any hex code. This is useful if you want...