For Windows, Linux, MacOS and Docker

Original Gopher image created by Renee French, used Gopher image created by Maria Letta
  1. part: you are reading it right now
  2. part: improving the service
  3. part: upgrade for web
  4. part: adding SSE
  5. part: simple javascript frontend functionality
  6. part: frontend — backend communication
  7. part: server-side logging
  8. part: run it all in docker
  9. part: adding database container
  10. part: database — service communication

Why would you want to create a service?

With Go programming language you can use the final executable the same way on Windows, Linux and MacOS (by generating proper executable). But you cannot install this executable as a service using standard system tools like sc.exe, systemd or launchd. …


If you don’t know, what and why this article is about, please read this article by Petr Jahoda.

Starting week three, it would be wise to make a quick summary of those 10 things, that made me raw foodist again.

  1. Stuffed nose.
  2. Smelling is getting worse.
  3. Bad left eye sight.
  4. Ear wax in the morning.
  5. Crust in eyes, in the morning.
  6. There is something problematic in my left elbow.
  7. There is also something bad with my thumb on my right foot.
  8. Starting haemorrhoids.
  9. Feeling like sh*t in the morning, about 2–3 days a week.
  10. Random drops in mental energy, once…

Few months ago, I did two benchmarks. The first one tested three database engines and the second one only PostgreSQL.

You can find those benchmarks in those two links below. Both articles are written by Petr Jahoda.

Because there were some ideas about this benchmark, I decided to make another one. This time, we will be testing PostgreSQL 13 only, on linux machine, using AWS, and the test will be using the same code as before.

We will have four tests:

  • database running natively, program running natively
  • database running in Docker, program running natively
  • database running in Docker, program running…


If you don’t know, what and why this article is about, please read this article by Petr Jahoda.

Starting week two, it would be wise to make a quick summary of those 10 things, that made me raw foodist again.

  1. Stuffed nose.
  2. Smelling is getting worse.
  3. Bad left eye sight.
  4. Ear wax in the morning.
  5. Crust in eyes, in the morning.
  6. There is something problematic in my left elbow.
  7. There is also something bad with my thumb on my right foot.
  8. Starting haemorrhoids.
  9. Feeling like sh*t in the morning, about 2–3 days a week.
  10. Random drops in mental energy, once…

If you don’t know, what and why this article is about, please read this article by Petr Jahoda.

Starting week one, it would be wise to make a quick summary of those 10 things, that made me raw foodist again.

  1. Stuffed nose.
  2. Smelling is getting worse.
  3. Bad left eye sight..
  4. Ear wax in the morning.
  5. Crust in eyes, in the morning.
  6. There is something problematic in my left elbow.
  7. There is also something bad with my thumb on my right foot.
  8. Starting haemorrhoids.
  9. Feeling like sh*t in the morning, about 2–3 days a week.
  10. Random drops in mental energy, once…

Photo by Louis Hansel on Unsplash

About twelve years ago, I decided to became raw foodist. A person, eating only raw fruits, vegetables, nuts and seeds.

The reason was simple. I was about 30 years old and had multiple health issues, the worst of them being uncontrollable shake in my right hand. The hand, I used for everything. Imagine yourself not being able to drink, eat, write or shake hand.

I spent about 4 years in different medical buildings with a uncomfortable result: “Deal with it, it will get worse as you age, we can prescribe you some drugs, but we are not sure they will…


After some years of making programs for all kind of tasks, I would like to share some performance tips, regarding to databases.
Because all those programs have one in common. They all communicate with different databases. Different programs, different programming languages, different kind of tasks, different databases.

But those tips are not “database based”, so this article is not about tuning your database, creating tables and setting up indexes.

Those tips are for those of you, who are making programs, that have to communicate with different kind of databases.

In this article, when I am writing “you”, sometimes I mean…


Photo by Volodymyr Hryshchenko on Unsplash

People often ask me, what is my secret.

How am I able to solve so different things so quickly and elegantly.
Things, they are struggling with, even for a long time.

And by the term different things, I mean almost anything.
Even things, I do not know anything about.

From my perspective, I am not doing anything special, but from the perspective of those others, I am doing something special.

This article may be a hint for you, to improve your life, but is also a summary for me, to remind me, what works and why.

Curiosity

If there is something…


Using Go as a programming language

Photo by M. B. M. on Unsplash

If you are trading Forex (or trading something at all), chances are, you heard about something named Monte Carlo Simulation.

In short, Monte Carlo Simulation is a program, that gives you some pseudorandom output (amount of pips, in this case) for given input (number of winning/losing trades, number of pips, …) .

But… you know…. an example would be better.

Example

Let’s say you paper traded 100 trades. You did it really well and you were absolutely honest with yourself.

You know, for sure, that if you traded those 100 trades in reality, the result will be exactly, what your paper…


Including network setup software and remote control

This article, this tutorial, was written because of one simple reason: I wasn’t able to find something similar anywhere else.

I wanted a complete set of instructions, how to change a newly unboxed Raspberry Pi into a device, that can be used in background for some other device with touch screen.

I wanted the result to look like what you can see below (Czech version). A device with a touch display and Raspberry Pi inside. I wanted a smooth boot into some “setup” screen where I can change network and set up a server address, that will be loaded automatically…

Petr Jahoda

Love programming, math, running and piano

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store