Posts

All About My Custom Hugo Theme KMT

My ToDo List for 2024 (daily updates)

waffarx cash back

Go pprof cheat sheet

As you know, “What is measured, improves”. So, if you can measure the performance of you application, you can improve it accordingly. Go programming language has pprof for measuring performance of your apps written in Go. Enable profiling in Go application 🔗 Default http server 🔗 If you are using the default http server handler, enable profiling like that. import ( _ "net/http/pprof" "net/http" ) //... return http.ListenAndServe(":8081", nil) Non-default server 🔗 If you are using a custom http server handler, enable profiling like that.

Choosing my distro: Ubuntu, NixOS, Elementary OS or Pop!_OS

I used Ubuntu for more than 8 years now. I tried Elementary OS, Pop!_OS, Kali Linux, Parrot OS, Linux Mint, Manjaro, .. and too many other distros. But today, I wanna decide what to use in my journey as a software developer and tech geek. I eliminated all other Linux distributions, and the list of choice is as follows with my reasons. Ubuntu: wholesome. Elementary OS: the great user experience (UX) of Pantheon desktop environment.

[fixed] Gnome Boxes can not install any linux distro with error message "no kvm"

I installed gnome-boxes via APT on my Ubuntu 24.04 LTS. I installed Windows 11 on it easily, but every time I try to install elementary OS or Nix OS or any other Linux distro I face an error message of “No KVM”. I run this command to fix missing dependencies. sudo apt upgrade --fix-missing but still GNOME boxes does not let me create a linux box yet. I run gnome-boxes from the command line and tried to install a Linux distro.

Swapy | A Javascript Lib to Drag to Swap Items In Any Framework

Swapy is a new Javascript library to make drag-and-drop to swap elements on the web page a breeze. It is framework-agnostic, and even works with Vanilla Javascript. Swapy works in React, Vue, Svelte, Solid, Angular, Qwik, and even vanilla JS. To experience the drag-and-drop to swap page items, check the lib website here . Swapy is opensource and its code is on Github. Check it out here . How to use swapy in vanilla javascript ?

[fixed] Top Right Corner is not responding to clicks on Ubuntu Linux

I have an HP laptop with Ubuntu 24.04 LTS installed on it. I use this laptop for software development especially CLI apps and web development. I faced a weird bug. I hesitated too many days before confirming it is a real bug/issue. I googled the problem and found too many people facing the same bug but they word it differently when they ask. Here is some wordings of the problem/bug 🔗 Right corner at Chrome not response to mouse click Top right area is not clickable in Ubuntu 23.

ls vs eza | which is more efficient and performant ?

ls is a command in the famous coreutils. It can be found on all POSIX-compliant operating system shells. The ls command is meant to list directory contents. Its codebase is written in C and it’s very old. eza is a modern commandline application which aims to replace ls. It is written in Rust programming language. The creator of eza claims that it is small and fast in the official code repository on Github .

How to improve OCR accuracy ? | my 5-year experience

my experience with OCR technologies 🔗 I created my 1st image to text converting app on Oct 6th 2018, so it was 5+ years ago. I have been improving, learning, rewriting, iterating, experimenting on OCR technology since then. I created all of these apps to extract text from images/photos: IMG2TXT: Image To Text OCR ( opensource ) IMG2TXT OCR App (discontinued) IMG2TXT Hindi / Indian OCR App (will be discontinued after the 1st app supports Hindi/Indian) IMG2TXT : Persian OCR App (will be discontinued after the 1st app supports Persian) After all these years, I have a simple thing to say “What is measured, improves”.

TimeGrid | Manage Your Store Products & Finance

The project is currently under heavy development. TimeGrid is a work-in-progress software system designed to run on all operating systems. This post is an early roadmap for TimeGrid. This post will be updated every month with more information, progress, and edits. Features and functionalities 🔗 point of sale (POS) customer relations management (CRM) time managements daily tasks and money records, show year, show month, show week, show day. docs/notes/brainstorming timers (such as pomodoro) Supported Platforms 🔗 Android phones Android Tablets iPhone (iOS) iPad (OS) Windows macOS Linux snapcraft flatpak appimage I hope you enjoyed reading this post as much as I enjoyed writing it.

How to Speed Up Website Page Load Time ?

optimize images 🔗 There are 3 main things you can do to images. modern image formats (avif, webp, .. ) image compression (lossy or lossless) image size My code to show image was this. <img src="img/sample-image.png" alt="image description is here" /> And refactored it into this. <picture> <source srcset="img/sample-image.avif" type="image/avif"> <source srcset="img/sample-image.webp" type="image/webp"> <source srcset="img/sample-image.webp" type="image/jpg"> <img loading="lazy" height="720" width="1080" src="img/sample-image.png" alt="image description is here"> </picture> What was that?

Go language | Tips & Tricks

I used Go language for almost 4 years now. I learned some tips and tricks dealing with Go projects. Make the compiler count the array elements 🔗 You don’t use arrays much in Go. Instead, you use slices, but when you do, if you’re tired of writing the number of elements in the array yourself, you can use […] and the compiler will count them for you: package main import "fmt" func main() { arr := [3]int{1, 2, 3} sameArr := [.