In this example we assume that not only the storage gem changes but also the file structure on disc.

As a web developer, you know Google Analytics (GA). Probably you've dropped the GA snippet into more than one...

makandra dev

For webpages to load fast it's recommended to optimize images. Ideally an image's file size should be as...

To make a local copy of an S3 bucket, I use the s3cmd command line tool. Configure access keys:

w3c.github.io

Here is how to use Chromedriver without libraries like selenium-webdriver. This can be useful for debugging. The following example...

If you want to make a screenshot of a website that works well in print or on a high-DPI...

rubylearning.com

This article will show you how to use throw and catch. It's a nice tool to break out of...

This is painful. Consider using Microsoft Office or switching careers. If you need to write < 20 letters consider doing it...

makandra dev

An end-to-end test (E2E test) is a script that remote-controls a web browser with tools like Selenium...

I frequently find myself needing a combination of group_by, count and sort for quick statistics. Here's a method...

If you want to ssh into your vagrant box without switching into the project directory and typing vagrant ssh, you...

You can use local copies of gems in your Gemfile like this: gem 'spreewald', path: '~/gems/spreewald' As soon as you...

These tools help you in checking websites globally: DNS Checker This tool allows for global DNS propagation checking. GeoScreenshot

jetbrains.com

RubyMine provides a visual tool for resolving merge conflicts locally. Follow Git > Resolve Conflicts in the context menu to open...

ImageMagick has a command line tool called identify which can read image metadata: >identify -verbose DSC00136.JPG Image: DSC00136.JPG Format: JPEG...

medium.freecodecamp.com

Collection of useful tools in the Chrome JavaScript console. Make the whole page editable This is not special to Chrome...

Plot graphs in Ruby WebGraphviz renders in your browser via JavaScript (to store the rendered graph, extract the SVG using...

This method will remove automatically installed packages that no other packages depend on any more. This, of course...

web.archive.org

xargs is a powerful bash tool that can take input from $STDIN and pass it to a given command. I.e...

If you are fine with the default console diff most of the time but only sometimes want to use an...

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

For some years Google Chrome has allowed you to add desktop icon for any web page by going to Tools...

Chrome's developer tools automagically choose vertical or horizontal panel layout, based on their width. You can disable that magic...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...