stackoverflow.blog

A rough guide how to implement a REST API. The discussion here includes some interesting points as well: Timestamps: ISO8601...

live.julik.nl

The linked article provides a good overview of the various concurrency primitives in Ruby, and what's changing in Ruby...

When you repeat a subpattern with a *, + or {...} operator, you may choose between greedy, lazy and possessive modes. Switching modes...

getbootstrap.com

Recently I made an upgrade from Bootstrap 3 to Bootstrap 4 in a bigger project. Here are some tips how...

Consider the following models and form models: class Parent < ApplicationRecord has_many :children, class_name: 'Child', foreign_key: 'parent_id...

When running an older version of docker-compose you might see the following error: ERROR: Version in "./docker-compose.yml" is unsupported...

makandra dev

Rails 6 includes a WYSIWYG editor, Action Text. It works out of the box quite well, but chances are that...

johnnunemaker.com

PostgreSQL has partial indexes. With a partial index you tell Postgres to only index rows matching a given query.

makandra dev

There are several tools for DNS debugging which offer you more or less information. Most of the time the more...

Rails supports alert and notice as default flash types. This allows you to use these keys as options in e.g...

makandra dev

I just finished migrating a project from the Asset Pipeline to Webpacker, this is what my diff to master looks...

The Truemail gem (not to be confused with truemail.io) allows validating email addresses, e.g. when users enter them into a...

TinyMCE is a WYSIWYG editor which is quite customizable. Add a custom button to the tinyMCE toolbar and tell tinyMCE...

When testing with Cucumber / Caypbara, iframes are ignored, so you can't interact with them. To interact with your iframe...

Ruby's String#split returns an array of substrings from the given string. Usually, this is missing the split characters...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

makandra dev
howvideo.works

This is an informational site about video and how it works. We started by talking about Playback, next we added...

github.com

Liquid Prompt gives you a nicely displayed prompt with useful information when you need it. It shows you what you...

thoughtbot.com

While both the alt attribute and the figcaption element provide a way to describe images, the way we write for...

mtlynch.io

Why improve your code reviews? Improving code review technique helps your reviewer, your team, and, most importantly: you.

IRB 1.2 (shipped with Ruby 2.7, but works on 2.5+) brings pretty syntax highlighting and multiline cursor navigation. However, pasting...

tekin.co.uk

Git diffs show the surrounding contexts for diff hunks. It does so by applying regular expressions to find the beginning...

You need to install the official plugin, it is not bundled with RubyMine by default. Example: Setup a watcher...

curl-to-ruby is a handy tool that converts your curl command to ruby code that uses the Net::HTTP...