Posts

My ToDo List for 2024 (daily updates)

waffarx cash back

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.

How to write "Happy New Year" in Coptic

TLDR 🔗 In short, Happy New Year is Ⲟⲩⲣⲟⲙⲡⲓ ⲙ̀ⲃⲉⲣⲓ ⲛ̀ⲛⲟⲩϥⲣⲓ which is pronounced as ourompi em beri en nofri. Translating Happy New Year in Egyptian language 🔗 phrases pronunciation literal meaning suitable ⲛⲟⲩϥⲣⲓ ϣⲁⲓ noufri sai / noufri shai happy feast ❎ Ⲟⲩϣⲁⲓ ⲛ̀ⲛⲟⲩϥⲣⲓ ousai en noufri (have a) beneficial/happy feast ❎ Ⲟⲩⲣⲟⲙⲡⲓ ⲙ̀ⲃⲉⲣⲓ ⲛ̀ⲛⲟⲩϥⲣⲓ ourompi em beri en noufri happy new year ✅ Finally, Ⲟⲩⲣⲟⲙⲡⲓ ⲙ̀ⲃⲉⲣⲓ ⲛ̀ⲛⲟⲩϥⲣⲓ. I usually post about programming and software development.

[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.

What specs make an image beautiful?

Wanna take a beautiful photo to post it on your Facebook? or you wanna take a beautiful photo of a product to post it on social media to attract product sales? Wanna take a photo of a group of tourists to post it on your social media pages of your tour company? or wanna take a beautiful selfie to post it on instagram? Here are some unknown simple secrets of a beautiful image taken or created.

Tags: marketing

All Keyboard Shortcuts in Windows OS

Using keyboard shortcuts are faster than using the mouse. Pressing Ctrl + P is faster than moving the mouse, then click on file menu, then moving the mouse to print and click on it. The problem with keyboard shortcuts is that you don’t know which key combinations are used for what, and you did not train yourself to use them. So I collected all keyboard shortcuts used in Windows 7, 8, 10 and 11 in this one post.

keyboard shortcuts in Microsoft Word

Using keyboard shortcuts makes you more efficient and productive as it speed you up. Pressing some key combinations is faster than clicking and moving then click by mouse. So, all IT-related specialists and programmers tend to train themselves to touch typing which is typing faster. In Microsoft Word, there is a keyboard shortcut for almost every function and action. Microsoft Word is one of the Microsoft Office suite. MS Word is designed to be a rich text editor to be used to write books, researches, reports, text documents, .