How to support multiligual links to tags and categories in Hugo ?
I faced this issue in my custom Hugo theme. I use kmt theme on this website you are reading on. It is bilingual. You find blog posts in English and their translations in Arabic. But when I click on a tag in the Arabic part of the website, it is 404 NOT FOUND ! what?! The problem is that the tag link is /tags/the-tag-itself but to work it needs to be /ar/tags/the-tag-itself.
How to remove all directories inside a specific directory?
How to remove directories in Terminal 🔗 To remove all directories inside a specific directory, you can use the rm command with the -r (recursive) option. This option ensures that the command removes directories and their contents recursively. Here is the command you can use: rm -r /path/to/your/directory/*/ This command will remove all directories and their contents inside /path/to/your/directory/. Make sure that you include a / at the end to tell that you want to delete directories not files.
Vulnerable WordPress Release Not Yet Fixed
Today, I checked my WordPress website inside my shared hosting > CPanel > WP toolkit. I ran into this screen. It says Fix vulnerability in security. I clicked on it. A security scanning process stated. After the scan completed, It stated that my current WordPress core release is vulnerable. It is affected by unauthorized blind server-side request forgery vulnerability. I clicked on mitigate to reduce the risk of the vulnerability if it is exploited.
How to Increase Timeout Limit in Mozilla Firefox ?
Sometimes, we need to increase timeout limit urgently to be able to load busy websites. So, In Firefox, navigate to the config page via this link about:config, then search for network.http.connection-timeout and set it as you like. That’s it. You are done. If you prefer watching video, here you go. I hope this post helps you. If you know a person who can benefit from this information, send them a link of this post.
How to Increase timeout limit in Google Chrome ?
Sometimes, we need to increase timeout for waiting for webpages to get from a busy server. But, unfortunately, Chrome has a hardcoded/predefined value for timeout for optimal loading. It can not be re-assigned not customized. If you urgently need to set a longer timeout for loading busy website, switch to Mozilla Firefox. In Firefox, you can navigate to the config page via this link about:config, then search for network.http.connection-timeout and set it as you like.
All About My Custom Hugo Theme KMT
Why Another Hugo Theme? 🔗 because there is no theme has all my specifications available. Why The Hugo Theme is Named Kmt? 🔗 I named my Hugo theme kmt after the name of my country. Objectives & Goals 🔗 speed page loading: surf the web at the speed of thought How to install Hugo theme Kmt ? 🔗 Install via git submodule Run this command while you are inside the folder of your Hugo site:
Social Media Buttons in Kmt Theme
source code sharing sites 🔗 GitHub GitLab CodeBerg video sharing social media 🔗 YouTube Tiktok Instagram text-only sites 🔗 Medium StackOverflow chatting apps 🔗 Telegram WhatsApp General Social Media 🔗 X Platform (formerly Twitter) (pka Twitter) Facebook LinkedIn Mastodon
My ToDo List for 2024 (daily updates)
I have too many goals I want to achieve in 2024. Here are the goals related to programming. Opensource Image to Text OCR app 🔗 I opensourced img2txt app on Github. You can install the app from Google Play or from Github releases . Features built in public 🔗 works offline (No need to internet access). using all the available OCR technologies which are (1) ML Kit, (2) Google Vision, and (3) Tesseract OCR.
Better Alternatives to Facebook Ads
There are too many challenges with Facebook ads such as difficulty of paying in Egypt due to limits on dollar spend. But there are too methods to cope with these challenges or avoid them. Method 1: Credit Card 🔗 If you don’t have credit card, go to your prefered bank and request a credit card backed by certificate deposit (CD). Use this credit card to pay your ads bill. Make sure your bills are below the monthly limit.
Should I use plain text files or sqlite database on my Android app?
I developed An android app to read the books of Pope Shenouda III in Arabic . I used plain text files as a storage. Each chapter of each book is a plain text file called for example a1.txt. I want to add more books quicker and it’s relatively easy and straightforward. But I also want to add search functionality. Searching in plain text files is not that hard! but search SQLite database is faster, efficient and overall better.