Home – Datmt

  • Vietnamese Input on Arch Linux (Wayland/Hyprland)

    Vietnamese Input on Arch Linux (Wayland/Hyprland)

    Table of Contents1 Overview2 Setup key switching Overview Here is a quick tutorial to setup Vietnamese input in Hyprland. I strugged with bamboo and gave up. Luckily, there was a good alternative. First, install the following: Next, add the following to the hyprland config (~/.config/hypr/hyprland.conf) Still in hyprland config, add: Now, in your terminal, type:…

    Read More


  • Enable Colors For Logs With Logback Spring

    Enable Colors For Logs With Logback Spring

    Table of Contents1 Overview2 Configuration2.1 Pattern Breakdown3 Result3.1 On windows (intellij)3.2 On Linux server (viewing from windows)4 Conclusion Overview Checking log without color is hard. Enable color for your log messages would make things a bit easier. I’ll show you how to do that with logback in spring. Configuration First of all, you need to…

    Read More


  • Working With Kafka Topics & Messages

    Working With Kafka Topics & Messages

    Table of Contents1 Overview2 Setup3 Topic managements3.1 List topics3.2 Create a new topic3.3 Describe a topic3.4 increase partition count3.5 Delete a topic4 Publishing messages5 Consuming messages6 Conclusion Overview This post covers the fundamental, yet important operations that you or your applications interact with kafka. The main purpose of kafka, to me, is to delivery messages.…

    Read More


  • Create a Kafka Cluster With Docker

    Create a Kafka Cluster With Docker

    Table of Contents1 Overview2 Docker-compose Overview In order to start working with kafka, we need a cluster. The easiest way is to use docker. You can also download the binary files and run if you prefer. This is just one in many options Docker-compose Here I have a simple setup with some extra services (kafka-connect)…

    Read More


  • Kafka's Architecture Fundamentals

    Kafka's Architecture Fundamentals

    Table of Contents1 Overview2 Terminologies2.1 Broker/server2.2 Topics2.3 Partitions2.4 Replication factor2.5 Cluster3 Illustrations3.1 A cluster with 3 brokers, Topic T1 with 2 partitions and replication factor is 13.2 A cluster with 3 brokers, Topic T1 with 3 partitions and replication factor is 13.3 A cluster with 3 brokers, Topic T1 with 3 partitions and replication factor…

    Read More