Welcome to my blog

👋 Hey there, Tech Wanderer Here!

I’m a code-slinging adventurer bouncing between different tech realms:

  • 🤖 Embedded Systems Explorer
  • 🏭 Industrial Control Wizard
  • 🏢 Smart Building Architect
  • 🌐 IoT Journey Surfer

Just your friendly neighborhood coder, trying to cram the vast universe of tech into my tiny human brain! 🧠✨

Since the world is way too big and my noggin’s way too small, I’m dumping my digital chronicles right here. Think of it as my techie brain’s external hard drive! 💾

Debugging life, one line of code at a time… 🐛✨


P.S. If my brain were a computer, it’d definitely need more RAM! 😅

Understanding Locks and Synchronization Mechanisms in Golang's sync Package

In Golang’s standard library sync, sync.Mutex is a basic mutual exclusion lock used to protect shared resources and prevent multiple goroutines from simultaneously accessing or modifying data. The sync package provides several types of locks and synchronization mechanisms. Here’s a comprehensive overview of the main lock types and their differences: 1. sync.Mutex (Mutual Exclusion Lock) sync.Mutex is the most basic lock type used to protect critical sections, ensuring only one goroutine can enter the locked area. ...

January 9, 2025 · 4 min

Kagi: The Search Engine That Actually Respects Your Brain (and Privacy!)

Beyond the Basic Search: Why Kagi is Your New Best Friend Hey there, internet explorers! Tired of drowning in ads and sponsored content every time you search for something? Let me introduce you to Kagi - the search engine that treats you like a human, not a walking wallet. 🎯 What Makes Kagi Special? No More Ad Maze Remember the last time you searched for a recipe and had to scroll past three screens of ads? Yeah, Kagi doesn’t do that. Zero ads. Nada. Just pure, delicious search results. ...

January 8, 2025 · 2 min

Ultimate Guide to Chocolatey

The Ultimate Guide to Installing Chocolatey Package Manager for Windows What is Chocolatey? Chocolatey (choco) is a powerful package manager for Windows that automates software installation, upgrading, and uninstallation. Think of it as the Windows equivalent of apt-get for Linux or brew for macOS. Prerequisites Windows operating system Administrator privileges Internet connection Installation Steps Step 1: Open PowerShell as Administrator Right-click on the Start menu Select “Windows PowerShell (Admin)” or “Windows Terminal (Admin)” Confirm the UAC prompt if it appears Step 2: Check Execution Policy Get-ExecutionPolicy If the policy isn’t set to RemoteSigned or Unrestricted, run: ...

January 7, 2025 · 2 min

Golang-sort

Looking for efficient ways to sort data in Go? This guide covers everything from basic sorting to advanced techniques! 🚀 Basic Sorting The sort package provides fundamental sorting capabilities. package main import ( "fmt" "sort" ) func main() { //sort int s1 := []int{8, 2, 6, 3, 1, 4} sort.Ints(s1) fmt.Println(s1) //sort int reverse sort.Sort(sort.Reverse(sort.IntSlice(s1))) fmt.Println(s1) //sort string s2 := []string{"aaa", "bbb", "6", "3", "1", "4"} sort.Strings(s2) fmt.Println(s2) //sort string reverse sort.Sort(sort.Reverse(sort.StringSlice(s2))) fmt.Println(s2) //sort float64 s3 := []float64{1, 1.2, 0, -1.9, -82.333, 99.11} sort.Float64s(s3) fmt.Println(s3) //sort float64 reverse sort.Sort(sort.Reverse(sort.Float64Slice(s3))) fmt.Println(s3) } 🎯 Object Sorting How to sort a list of objects by specific fields: ...

January 6, 2025 · 3 min

Sokit - A Powerful TCP/UDP Testing Tool You Should Know

Looking for an easy-to-use TCP/UDP testing tool? Sokit is a lightweight but powerful solution that helps you test network communications with ease. ✨ Key Features TCP/UDP Server simulation (supports both string and hex formats) TCP/UDP Client simulation (supports both string and hex formats) Data forwarding/proxy capabilities Cross-platform support (Windows & Linux) Clean and intuitive UI 🔗 Quick Links GitHub Repository Download Link 📖 Quick Start Guide Basic Server-Client Communication Launch two instances of Sokit - one as TCP Server (left) and one as TCP Client (right) Configure IP addresses and ports for both instances Establish the connection between them ...

March 21, 2024 · 2 min

How to hide the Console window when running a Golang compiled file

🎯 Ninja Ways to Hide Console Window in Go Ever wanted to make your Go applications look more professional by hiding that pesky console window? You’re in the right place! Let’s explore some ninja techniques to achieve this. 🥷 🚀 Method 1: The Quick Strike (-ldflags) The simplest way to hide the console window is using build flags. Think of it as a stealth mode for your app! go build -ldflags -H=windowsgui main.go Pros: ...

March 20, 2024 · 3 min