JDK invalid target release

Suppose we just run into this error: And you use IntelliJ IDEA. The thing is that you need to double check at least four places that you have chosen the proper JDK version. Step #1 First things first, make sure that you have JDK 21 selected under File -> Project Settings -> Project -> SDK: […]

READ MORE

Golang pgconn.errTimeout context canceled

Suppose you just received the following error: during database operation attempts in your Go app. Obviously, the first thing you need to check is your query, its performance, and timeout values. You might miss some index creations, etc. If everything is ok with your query and it’s working well and constantly faster than that timeout […]

READ MORE

How to manually give app permissions MacOS

In this article you’ll find the answers to these questions: Some MacOS versions have pretty annoying bug, which is that applications just don’t requesting necessary permissions. Option #1. Install last system updates First things first, you need to double check that you have the most recent MacOS version. If you already have, or if you […]

READ MORE

AWS Developer Associate DVA-C02 learning path

Suppose you want to pass the AWS Developer Associate certification. It is required to have some hands-on experience, even in order to understand some concepts in the courses. If you don’t have it, consider creating some sort of cloud-based pet-project. After you got familiarize yourself with base services like EC2, S3 and Lambda, I highly […]

READ MORE

Golang struct reflection

Suppose we want to know all possible information about the fields of the Go struct. We can get all this stuff using reflection. In this article you’ll find the answers to these questions: You can use this piece of code to get this information from the structure using reflection and print it in tabular form. […]

READ MORE

DataDog log search syntax

Suppose we want to find some log entry in DataDog. In this article you’ll find the answers to these questions: First of all, there is an official doc: https://docs.datadoghq.com/logs/explorer/search_syntax. However, from my point of view, this page is not entirely clear; there are still a number of blind spots. There are two types of searches: […]

READ MORE

Terraform lock loss

Suppose your Terraform plan or apply processes are stuck in the state of: Or you were faced with an error: The reason most likely is that you had a Terraform plan or apply process stop after acquiring the lock but before its release.Thus, it is left in a locked state. Every new try is going […]

READ MORE

How to run Linux x86_64 binary on ARM-based Mac M1

Suppose you want to: Honestly, I don’t know, why this option is never mentioned in the internet. We need just to create an empty Docker container (based on Linux image), mount the local directory with your binary and just run it! No QEMU, no Parallels, no RosettaVM or other stuff needed. Just follow these steps. […]

READ MORE