makandra dev
ishadeed.com

Table Of Contents Flexbox wrapping Spacing Long content Prevent an image from being stretched or compressed Lock scroll chaining

dev.to

In my case [...] the catalog is an XML that contains all kinds of possible products, categories and vendors and it...

We are using Spring in our tests for sequential test execution but not for parallel test execution. And Rails requires...

We had a card that described how to install multiple mysql versions using mysql-sandbox. Nowadays with the wide adoption...

moncefbelyamani.com

The linked article points out that COUNT queries might be unexpectedly slow in PostgreSQL. If you just need to know...

markodenic.com

Table of content for the linked article: 1. The `loading=lazy` attribute 2. Email, call, and SMS links

To attach files to your records, you will need a new database column representing the filename of the file...

tableconvert.com

https://tableconvert.com/ is an online tool to convert tables between different formats (e.g. json, markdown, csv).

makandra dev

In Ruby (almost) everything is an Object. While this enables a lot of powerful features, this concept might be confusing...

makandra dev

5.4.0 2021-02-01 Compatible changes Add geordi branch command that checks out a feature branch based on a story...

stackoverflow.blog

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

johnnunemaker.com

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

github.com

Minidusen lets you find text in associated records. Assume the following model where a Contact record may be associated with...

Sometimes you want to find the inverse of an ActiveRecord scope. Depending on what you want to achieve, this is...

We currently test most of our gems on Travis CI, but want to migrate those tests to Github Actions. This...

When loading a database dump created with pg_dump into your database, you might run into an error like

It sometimes happen that a database dump, that would want to insert into your development database, does not match the...

The sidekiq-rate-limiter gem allows rate-limiting Sidekiq jobs and works like a charm. However, it needs to be...

ActiveRecord provides the ids method to pluck ids from a scope, but what if you need to pluck Global IDs...

news.ycombinator.com

This is an extract from the linked article. It shows an approach on how to implement encrypted passwords with the...

When you use Sentry to monitor exceptions, an important feature is Sentry's error grouping mechanism. It will aggregate similar...

If you want to prevent that two processes run some code at the same time you can use the gem...

If you have a :string or :text field, you should pair it with a model validation that restricts its length...

postgresql.org

TL;DR PostgreSQL handles Rails 4+ text and string columns the same. Some libraries may still reflect on the column...