Hi there

I’m a software engineer from Europe/Riga. Learn more about me there. Currently the all content in this blog is temporary garbage for the sake of making/testing Hugo.

2024 Mar 25

Looks like my little starter blog is working. At least there is some activity around it. After all the things I went back to rewriting my infra components to Podman Quadlets 1 by utilizing Ansible. I think, I figured out general pattern. Yet, I’m not quite happy how do I handle network creation. I need to encapsulate it into single generic role instead writing the same network role in every collection....

2024 Mar 25 · Dzintars

NixOS vs Ansible

My opinion on this is still not stable or true and I might change my mind later when I will really try NixOS. I see the constant hype around the NixOS and one of the main selling points is its reproducibility. Under the Ansible, you configure only whats in your playbooks. And it’s easy to mess around the system bypassing the Ansible. In NixOS that’s not the case. If you make any add-hock changes on NixOS and then run nixos-rebuild all your crafted changes will be gone because they are not in your NixOS config....

2024 Feb 28 · Dzintars

My Note Taking System

Why For a long time I didn’t care about the note taking too much, thou, I was writing long MS Word documents with the ideas of the project, user stories and other things. It all changed when I switched to the Linux. Because Linux was pretty much new to me, I had a lot to learn and remember. So, gradually I started to write my little runbooks to document the steps I took to get to the point B....

2024 Feb 24 · Dzintars

How to Integrate Google Analytics Into Hugo PaperMod Theme

As I’m setting up my shiny new blog, I stuck at Google Analytics integration. It looks like official PaperMod lacks some documentation on this topic. So… there is what worked for me. Don’t use analytics.google.SiteVerificationTag directive. Use only googleAnalytics: G-xxxxxxx directive. Create new file in layouts/_internal/google_analytics.html and paste the entire code snippet you got from GA property setup page. Basically that’s it. This partial will be automatically included in every Hugo page....

2024 Feb 22 · Dzintars

My CLI Centric Workflow

For a very long time I was Windows only user. Nor did I liked it, nor did I hated it. I just was somewhat above average user. But it all ended when I started to work with Go and Kafka Go library which I needed to cross-compile for an Linux system. And it was pain. CygWin, MinGW an a lot of gymnastics around it. In parallel I was trying to be in the “microservices” hype train....

2024 Feb 21 · Dzintars

Websockets and Kafka

Why I had this idea about the highly reactive collaborative web application. After messing around I ended up with PoC which consisted of bunch of Go services and on top of that I somewhat implemented CQRS architecture. How front wss srp General idea was that websocket is used as protocol. Custom message format is created and synchronized between TypeScript and Go with help of Protocol Buffers, gRPC and few gRPC extensions....

2024 Feb 21 · Dzintars

2024 Feb 21

Tinkering with my Hugo blog I’m still not sure what will I do with it, but… at least this will be done. I picked Hugo as it seems simple enough for my current needs. Just drop some markdown and you are done. Sounds good. I don’t even plan to customize default theme for now as typography looks good, theme is supported. Like… there is everything I need. Most important goal for me is to start accumulate some content....

2024 Feb 21 · Dzintars

My Personal Productivity Environment

This post is a public draft, which may or may not be completed. As new thoughts come to mind, I may improve this article over time. PC Monitor setup I’ve been everywhere. From a single tiny 15" laptop to 4 screens + TV. But currently I’m at two monitor setup and even seriously considering one 32" 4K monitor setup. The thing about the multi-monitor setup is that it is misleading feeling about boosted productivity, because you “control” more things at once....

2024 Feb 21 · Dzintars

SPA Front page application

About the Project It’s a SPA-style web application based on a bunch of buzzword technologies, most importantly Web Components. The idea behind choosing web components was to accumulate a bunch of reusable components that would be framework-agnostic over time. At the time of creating the project, React was the only framework that didn’t support web components, but times might have changed since then. TODO: Add some images TIL (Today I Learned) Redux features: Thinking in terms of “features” helped me come up with a better code structure....

2024 Feb 19 · Dzintars

About

So, I am Dzintars Klavins. A guy from Riga / Latvia / Europe. Wannabe full-stack software engineer. :) According Myers-Briggs personality test 1 result - INFJ-T (Advocate). Yes, I think in general people can be categorized in several categories. :) How did I ended up there? Since 2007 I am more or less close to software engineering. From 2007 to 2011 I was a product owner for in-house intranet for local postal and courier company....

2024 Feb 15 · 4 min · 807 words · Me