Ernesto blogas Posts

In order to know how long it takes to get a response from external system, we could use curl: If you don’t need to see response, add -o parameter: curl -o /dev/null -s -w ‘Total: %{time_total}s\n’ ‘http://www.example.net/some/url/here’

Programavimas

You have two versions of JDK – let’s say Java 11 and Java 17 installed on your Mac. And you want to switch between default version – how could you do that? It’s simple. First of all, let’s figure out what Java versions…

Programavimas

Ar pastebėjote, kad kai kurios prekės parduotuvėse sumažėjo ir pabrango? Pavyzdžiui:– Šokoladas, kurio plytelė buvo 100 g, dabar sveria 90 g arba 80 g.– Kefyro buvo 1 litras, o tapo 0,9 kg.– Vištienos krūtinėlė buvo supakuota po 500 g, o dabar – po…

Finansai

Programavimas

I use Kafka in my Docker Compose file. My docker-compose.yaml looks like this: Unfortunately, when I start and restart Kafka’s instance in Docker Compose I was constantly getting random errors. After some googling, I found that KAFKA_ADVERTISED_HOST_NAME is deprecated – please see https://github.com/wurstmeister/kafka-docker/wiki/Connectivity…

Programavimas

Programavimas

I have just posted an article on Zedge blog on Medium about Kotlin’s extension functions. If you’re interested, please take a look: https://medium.com/zedge/extension-functions-in-kotlin-44563d7880f5

Programavimas

I have just posted a blog in Zedge blog on Medium about using PostgreSQL databases in Live environments. If you want to know how to add a column to PostgreSQL database and not cause a downtime of the database, please take a look…

Programavimas

You have a running Kubernetes deployment with pods and want to restart all of them. How could you do that? If you have Kubernetes 1.15, simply try:

Programavimas

Paskutiniame blogo įraše apie investavimą (https://www.ernestas.info/2020/10/30/truputis-investavimo-teorijos/) aprašiau kelias teorijas, susijusias su investavimu. Ir žadėjau, kad vėliau parašysiu, ką galima su tomis teorijomis nuveikti 🙂 Deja, viskas truputį pasikeitė, nes pakeliui atsirado įdomi tema, kuri net labai susijusi su investavimu – “aktyvūs” ir “pasyvūs”…

Finansai