View
Posted over 1 year ago by Emanuel De.

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

Posted about 3 years ago by Emanuel De.

TL;DR Debugging problems with javascript errors in cucumber tests is sometimes easier in the browser. Run the test, stop...

Posted about 6 years ago by Henning Koch.

In Ruby, classes and modules are called constants. This card explains how Ruby resolves the meaning of a constant.

Posted over 1 year ago by Natalie Krehan. developer.mozilla.org

Browsers' printing methods usually don't print background colors. In most cases this is the desired behavior, because you don...

Posted almost 2 years ago by Dominik Schöler.

Sometimes, the IRB prints a warning during boot: irb: warn: can't alias source from irb_source. Explanation

Posted almost 2 years ago by Arne Hartherz.

Boot partitions from installations prior to the 16.04 era are terribly small. When you install updates and encounter errors due...

Posted almost 2 years ago by Henning Koch.

You need to update a lof gems. Make sure you don't have any version constraints in your...

Posted almost 2 years ago by Henning Koch.

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

Posted about 2 years ago by Henning Koch.

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

Posted about 2 years ago by Arne Hartherz.

When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...

Posted over 2 years ago by Dominik Schöler. relishapp.com

In most projects I know, Cucumber test suite speed is not an issue. Of course, running 350 features takes its...

Posted over 2 years ago by Henning Koch.

Slides for Henning's talk on Sep 21st 2017. Understanding sync vs. async control flow Talking to synchronous (or "blocking...

Posted over 2 years ago by Michael Leimstädtner.

If you are using PDFKit / wkhtmltopdf, you might as well want to use custom fonts in your stylesheets. Usually this...

Posted over 2 years ago by Dominik Schöler.

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

Posted over 2 years ago by Dominik Schöler.

Dump this method into your Ruby console to quickly print data in columns. This is helpful for e.g. comparing attributes...

Posted over 2 years ago by Emanuel De.

Example: Require awesome_print in the console while it is not in Gemfile or .gemspec. require 'awesome_print' => LoadError: cannot...

Posted almost 3 years ago by Judith Roth.

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

Posted about 3 years ago by Henning Koch.

So you're getting this failure when running bundle install on an older project: Your Gemfile.lock is corrupt. The following...

This website uses cookies to improve usability and analyze traffic.
Accept or learn more