If you use Liquibase in your project, at some point you might want to add index to your tables. Something like: But you would get an error, saying that “CREATE INDEX CONCURRENTLY cannot run inside a transaction block”. After some googling you find…
Category: <span>Programavimas</span>
I want to install Home Assistant on my Raspberry Pi and I have followed the official instructions: https://www.home-assistant.io/installation/raspberrypi/#install-home-assistant-core However, I had very little luck. So, I had decided to make my own instructions on how to install Home Assistant on Raspberry Pi. First…
If you want to split unit and integration tests in Kotlin and Gradle, do the following: And, that’s it 🙂 If unit tests fail, integration tests won’t be run. Problem solved 🙂
Raspberry Pi ships with a bit old version of Python – 3.9. What to do, if you want to upgrade to the newer version? The only way is to download sources and compile ’em. In my case, I want to upgrade to Python…
Home Assistant is a great tool if you want to automate your home. However, there are slight issues with it. Based on official installation instructions, we see that we should run the Docker container or our Raspberry Pi as follows: Note the –network=host…
nvm is a great tool if you want to have multiple NodeJS versions . But what if you want to have nvm as a Docker image and use it? Well, you can do something like this in your Dockerfile:
I have encountered the following problem: Nasty thing. It says, that HikariCP can not acquire a new database connection and it gave up after some 30 seconds. Where is the problem? Let’s try to simulate the problem. We want to query database and…
A while ago we’d created docker-compose.yml for Kafka and Zookeper. Today I’ve noticed the problem with the old configuration – it looks like it does not work properly with Test Containers. So, I have replaced the old configuration with Confluent’s Kafka and Zookeeper:…
I’m helping to write a Java library (JAR file) which result is just one @Configuration file that integrates Redis. But the problem became – how to test it? It turned out, that it’s not so easy to figure out which dependencies to use…
A Semantic versioning is a simple and popular concept these days. As we all (?) use Git in our daily life, it would be great if we could create Git tags based on Semantic versioning, right? Well, this little script could help us:…