Video transcoding: Web and native playback overview (April 2020)

Posted About 4 years ago by Michael Leimstädtner.

Embedding videos on a website is very easy, add a tag to your source code and it just works...

Devise: How to allow only HTTP Basic Auth and disable the HTML sign-in form

Posted About 4 years ago by Arne Hartherz.

By default, Devise redirects to a sign-in form when accessing a route that requires authentication. If for some reason...

Heads up: Ruby's Net::HTTP silently retries a failing request

Posted About 4 years ago by Dominik Schöler.
engineering.wework.com

Ruby's Net::HTTP library repeats a failing request once, as long as it deems it idempotent (GET, HEAD etc...

Letting a DOM element fade into transparency

Posted About 4 years ago by Henning Koch.

You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...

Ruby: How to fetch a remote host's TLS certificate

Posted About 4 years ago by Arne Hartherz.

TLS/SSL certificates are often used for HTTPS traffic. Occasionally a service may also use their TLS certificate to support public...

Rails: Rest API post-mortem analysis

Posted About 4 years ago by Emanuel.

This is a personal post-mortem analysis of a project that was mainly build to provide a REST API to...

Structuring Rails applications: the Modular Monorepo Monolith

Posted About 4 years ago by Dominik Schöler.
medium.com

Root Insurance runs their application as a monolithic Rails application – but they've modularized it inside its repository. Here is...

Checklist: Using Carrierwave in a Rails project

Posted About 4 years ago by Emanuel.

This checklist should help you to check edge cases that are not part of the default Carrierwave configuration.

Always convert and strip user-provided images to sRGB

Posted About 4 years ago by Michael Leimstädtner.

Debugging image color profiles is hard. You can't trust your eyes in this matter, as the image rendering depends...

A Migration Path to Bundler 2+

Posted Over 4 years ago by Henning Koch.
eregon.me

Bundler 2 introduced various incompatibilites und confusing behavior. To add to the confusion, Bundler's behavior changed after the release...

Understanding grid sizes of (SVG) icons

Posted Over 4 years ago by Michael Leimstädtner.

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

Automated wordbreaks for long words

Posted Over 4 years ago by Jakob Scholz.

So I had the issue that User input (coming from many different sources and users) often contains the...

Resources for working with the Youtube API

Posted Over 4 years ago.

You can use the Youtube API to get data from youtube. Here are some resources and some things that are...

Bookmarklet to generate a Pivotal Tracker story from Zammad Ticket

Posted Over 4 years ago by Daniel Straßner.

This is a bookmarklet you can add to Chrome or Firefox which will allow you to create a story in...

Rails: Verify the CSRF token

Posted Over 4 years ago by Emanuel.

Rails uses a CSRF token in forms and AJAX requests to verify a user request. Internally it compares the injected...

Unicorn: How to force a single threaded boot in development

Posted Over 4 years ago by Emanuel.

Unicorn allows you to specify the maximum number of workers. In development this could be useful if you use a...

Guidelines for Pull Requests and Code Reviews

Posted Over 4 years ago by Emanuel.

Projects with more than one developer should always consider to enforce code review even for small changes to improves the...

A collection of useful design resources for developers

Posted Over 4 years ago by Emanuel.

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

Rails: Invoking a view helper from the console

Posted Over 4 years ago by Dominik Schöler.

There are a few ways to access view helpers from the Rails console. The easiest way is the helper shortcut...

Rails routing: Using constraints to avoid "Missing template" errors

Posted Over 4 years ago.

You can use constraints in your routes.rb to avoid getting errors when wrong routes are called. Instead, the user will...

How to enable Chromedriver logging

Posted Over 4 years ago by Arne Hartherz.

When using Chrome for Selenium tests, the chromedriver binary will be used to control Chrome. To debug problems that stem...

Bash script to list commits by Pivotal Tracker ID

Posted Over 4 years ago by Michael Leimstädtner.

The main benefit of our convention to prefix commits by their corresponding Pivotal Tracker ID is that we can easily...

Using CSS transitions

Posted Over 4 years ago by Dominik Schöler.

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

Rails: Do not load frameworks you don't need

Posted Over 4 years ago by Tobias Kraze.

Rails is split into a large number of (sub-) frameworks. The most important and central of those are activesupport (extends...