programming

My ToDo List for 2024 (daily updates)

waffarx cash back

How to update Hugo Theme Kmt in my website ?

If you installed the KMT theme into your blog/website HUGO project via GIT, just use this command. git submodule update --remote This command will update all the submodules in your git project. But if you need to update kmt theme only, use this command instead. git submodule update --remote themes/kmt

How to install Hugo theme Kmt ?

Kmt is a minimal Hugo theme created by @AbanoubHA , yes it’s me, and named after the name of Egypt in the ancient egyptian language. Install via git submodule (recommended) 🔗 Inside the folder of your Hugo site run: git submodule add -b main --depth 1 https://github.com/abanoubha/gohugo-theme-kmt.git themes/kmt Add the theme’s directory to your config.yaml: theme: kmt or config.toml: theme = kmt Install via Hugo submodule 🔗 From your project’s root directory, initiate the hugo module system if you haven’t already:

All Code Editors & My Favourite One

Too many code editors are availabe out there. Some are open source and others are closed source. Some are CLI-based and others are GUI-based. Let’s talk about all viable options. Graphical User Interface (GUI) 🔗 CodeEdit 🔗 CodeEdit App for macOS is Open source, free, macOS-native experience and written in Swift with SwiftUI. It is a conceptual combination of TextEdit and XCode. It is currently an alpha software but it is very promising.

Extract Images From a Video – Android, Windows, Mac OS and Linux

Extract images from a video on Android 🔗 You can use the video player in your smartphone. While watching a video, tap to pause the video on the scene frame you want to capture, then click on control tools, then choose screenshot. That’s how you can get an image from a video on Android without any external apps or third-party apps. But if you need to extract many images from a video, use this app to extract one image for each second of the video.

Go’s compiler escape analysis – simple yet powerful concept for performance

Go’s compiler escape analysis is such a simple yet powerful concept for performance. It boils down to the difference between the stack and the heap. So let us explore that. When a function is invoked it gets a new frame in the stack with all its local variables tucked in next to each other, if we know anything about paging we know if the CPU reads one local variable from memory in that function we get a whole page and L cache it and chances that we have access to all functions variables are very high.

[fixed] Netlify: Error: Failed to Load Modules. Hugo Theme Submodule

I removed and re-added a submodule of themes/kmt Hugo theme. But when Netlify tried to deploy my updated web blog an error occurred. The error message is this. Error: failed to load modules: module "kmt" not found in "/opt/build/repo/themes/kmt"; either add it as a Hugo Module or store it in "/opt/build/repo/themes".: module does not exist The error says that kmt theme directory does not exists and it is true. But the problem is in my process of removal of old kmt theme.

How to effectively delete a git submodule

I need to remove a git submodule from my Hugo website. I installed a theme called kmt for my web blog, but I want to remove it now. It is nice to mention that the kmt hugo theme is open source and developed by me. To remove a submodule you need to: delete the relevant section from the .gitmodules file 🔗 [submodule "themes/ananke"] path = themes/ananke url = https://github.com/theNewDynamic/gohugo-theme-ananke.git -[submodule "themes/kmt"] - path = themes/kmt - url = https://github.

A new old way of phishing Facebook pages

Too many friends asked me about that stolen Facebook pages in the last week. Almost all these Facebook pages were stolen by phishing. Phishing is an old method of hacking by giving a visually identical Facebook page telling you that you need to give them some information because of anything. After you tell them the information including the OTP sent to your phone or e-mail, your account and/or your pages will be stolen.

FIX: Go Runtime : goroutine stack exceeds 1000000000-byte limit fatal error stack overflow

I was writing a CLI program to process some data. I need to call the same function again and again until I finish processing all data records. The number of records is 40,572,219 which is so big. I wrote the function like this. func dbAutoProcessData(db *sql.DB, inId int) { rows, err := db.Query(`SELECT * FROM tbl WHERE info LIKE '%something%' AND id > ? LIMIT 1;`, inId) if err != nil { log.

My Dream OS as a Software Developer

I am thinking of a better operating system. All operating systems right now need more improvement and development to improve usability and user experience. my dream operating system features 🔗 Thoughts on Basic Parts of OS I think the best OS may be just a linux distribution such as Ubuntu, with a desktop environment such as GNOME, COSMIC or PANTHEON. Then add some software tools for normal users and developers.