Plurrrr

Thu 10 Feb 2022

Adding a user to the docker group

At my work, after I had installed Docker I added myself to the docker group as follows:

sudo usermod -aG docker ${USER}

This makes is possible to run docker without sudo. Next, I did:

su - ${USER}

To get a new shell in which I had been added to the docker group. I verified this using:

groups

And indeed as expected the group docker was listed.

How Postgres Stores Rows

Out of curiosity, I was trying to understand how PostgreSQL stores the data onto the disk and there are a few interesting things that I have noticed that might be useful for application developers. In this post, I will try to go into the implementation level details and map out how PostgreSQL row storage really works.

Source: How Postgres Stores Rows, an article by Ketan Singh.

Perl list processing is for hashes, too

In general, I urge you to work through the Perl documentation’s tutorials on references, lists of lists, the data structures cookbook, and the FAQs on array and hash manipulation. Then dip into the various list-processing modules (especially the included List::Util and CPAN’s List::SomeUtils) for ready-made functions for common operations. You’ll find a wealth of techniques for creating, managing, and processing the data structures that your programs need.

Source: Perl list processing is for hashes, too, an article by Mark Gardner.