Development Hints from Bulgaria
Tuesday, January 6, 2026
Library, “Injecting factory” and best practices for extending a library
Library has that structure: class X that hold references to other classes, that hold references to other classes and few more layers. Class hierarchy is “tree-like” structure.
I look for best way for refactoring – flexible enough to prevent people forking it. I cannot find any best practices on that problem.
Over years I use to solve it by “Injecting Factory” – Factory pattern where parent object is being injected (DI) in factory method. I cannot find any documentation on such approach and I need some feedback on it (e.g. theory or possible problems).
I describe it with an example with Car:
Thursday, January 1, 2026
Clover boot loader cannot boot from NVMe / PCIe disk - solved
Clover boot loader software could not find your NVMe partitions because it comes with no NVMe driver.
The solutions of the issue is easy - you should just download that driver (it's universal NVMe driver) and copy it to Clover boot partition in a specific directory.
Wednesday, March 12, 2025
Programming Chinese Remote Control for Garage Door or Barrier
Sometimes programming, resetting, clearing remote control for a garage door or a barrier fails even if we follow instructions from manual strictly. Symptoms of remote control are:
- RC ignores the commands
- RC looks as it has manufacturing defect.
We have found how to workaround the failure!
Our solution could work when all these conditions are true:
- you have never been bale to program your RC in the way manual states
- LED indication works fine (battery is not dead)
The reason
The issue seems Chinese manufacturer wired buttons differently.
The solution
Wednesday, December 25, 2024
Google Gemini blocked by Google Workspace - Sovled
Error message:
"I can't use Google Workspace because required Gmail settings are off. Turn on these settings, then try your prompt again."
Solution - deactivation and activation solves it:
Tuesday, October 3, 2023
Disadvantages of Modern Sleep mode (S0)
S0 sleep and overheating
Lets check requirements for DELL for using the only supported Sleep on its new computers.
https://www.dell.com/community/en/conversations/xps/faq-modern-standby/647fa2d5f4ccf8a8de87e727
Information about power consumption during different Standby Sleep modes here.
S0 sleep and battery
During S0 sleep your computer still uses power. And it uses significantly more power than in S3 sleep. Your CPU is active. Your disks are active. Your network hardware could be active all the time.
So what happens when you use your PC, your battery enters in critically low level, your computer enters into sleep and you connect it to adapter after few days?
Sleep is not visible from Shut down menu?
The problem
You have installed graphics video card drivers. They work fine and updated. But "Sleep" is still missing from "Shutdown" menu?Well known causes and solutions
You still have the issue?
Sunday, June 18, 2023
Solution when WhatsApp does not restore chat backup
WhatsApp does not restore my backup - Troubleshooting
Step 1 - Ensure you have a backup from your old device - stored into Google Drive
- If you haven't got Google Drive backup, log into the old device, and create a new Backup
- Google Backup needed. It will not work with local backup.
Step 2 - If Backup is ignored on your new device, you need to uninstall WhatsApp and install it again.
- Uninstallation - Ensure that you remove all App Data
- This will remove all chat history from your new device
- You could not merge chat history from the old device and chat history from the new device.