View
Posted almost 4 years ago by Tobias Kraze.

On Ruby 1.9+, standard ruby character classes like \w, \d will only match 7-Bit ASCII characters: "foo" =~ /\w+/ # matches...

Posted over 7 years ago by Henning Koch. robots.thoughtbot.com

Braces and do/end are completely swappable—almost all the time. They have different precedence. It’s not often that anyone...

Posted 3 months ago by Emanuel De.

We already have some approaches on how to test file downloads withe selenium. Nonetheless here is another approach, which inspects...

Posted 4 months ago by Michael Leimstädtner.

In Rails, we usually have a mailer setup like this: class MyMailer < ActionMailer::Base def newsletter mail to: 'receiver@host.tld',

Posted about 7 years ago by Henning Koch.

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

Posted over 2 years ago by Tobias Kraze. medium.freecodecamp.com

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

Posted over 7 years ago by Dominik Schöler. github.com

Pour color on your Rails console with awesome_print. Turn confusing long strings into formatted output. Have objects and classes...

Posted 9 months ago by Dominik Schöler.

Cucumber has an output format that prints step definitions only. You can use this to find unused ones: Temporarily add...

Posted 9 months ago by Emanuel De.

We figured out, that ActiveJob Inline might lead to autoloading problems in development. The result was an exception when running...

Posted about 3 years ago by Dominik Schöler.

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

Posted 10 months ago by Dominik Schöler.

Ubuntu has decided to disable PDF processing because ImageMagick and the underlying Ghostscript had several security issues. When your Ghostscript...

Posted 11 months ago by Arne Hartherz. draw.io

draw.io is a web application that lets you draw flow charts and other diagrams. It works much nicer than office...

Posted 12 months ago by Emanuel De.

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

Posted over 2 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 over 5 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 over 1 year ago by Dominik Schöler.

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

Posted over 1 year 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...

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