View
Posted over 2 years ago by Dominik Schöler. iamvdo.me

Line-height and vertical-align are simple CSS properties. So simple that most of us are convinced to fully understand...

Posted 18 days ago by Dominik Schöler. superuser.com

Inspecting the source of an email does not always reveal the plain HTML source, but some encoded byte mess. In...

Posted 23 days ago by Tobias Kraze.

Jasmine has long standing support for writing asynchronous specs. In days gone by we used the done callback to achieve...

Posted 23 days ago by Tobias Kraze.

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

Posted 26 days ago by Tobias Kraze.

With ActiveType 1.2 you can modify associations (has_many etc.) after they have been defined. One common use case for...

Posted over 5 years ago by Dominik Schöler. faviconit.com

Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...

Posted about 1 month ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Posted about 1 month ago by Judith Roth.

If you get requests with values for formats like this: {:locale=>[:de], :formats=>["../../../../../../../../../../etc/services{{"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby...

Posted over 6 years ago by Henning Koch.

TLDR: Ruby class variables (@@foo) are dangerous in many ways. You should avoid them at all cost. See bottom of...

Posted almost 7 years ago by Arne Hartherz.

In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...

Posted 2 months ago by Tobias Kraze.

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

Posted 2 months ago by Dominik Schöler.

Resources Prose spec of the SameSite attribute, illustrated A sceptical view on the topic

Posted 2 months ago by Tobias Kraze.

When delivering non-public uploaded files (images, documents etc), one has to decide whether and how to do authorization. The...

Posted about 7 years ago by Arne Hartherz. jsfiddle.net

Consider this HTML: Click me! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe!

Posted over 2 years ago by Henning Koch.

In general, you should not put a block element inside an inline element. So don't do this: text

Posted about 6 years ago by Tobias Kraze.

For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...

Posted almost 9 years ago by Arne Hartherz.

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

Posted 3 months ago by Natalie Krehan.

Many mail clients do not support external style sheets. Some even require all styling inline, which means you'll have...

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