I have created one custom command. That command is used when i need to generate some specific file. When i run setup:upgrade command then i give me error like “Area code not set“. Below is code example. $this->state->setAreaCode(Area::AREA_FRONTEND); if ($input->getOption(self::GENERATE_NEW_MENU)) { $output->writeln('<info>Generating static navigation:<info>'); $generated = $this->abcModel->generateNavigation(1); if ($generated) { […]
Monthly Archives: October 2023
I’m trying to setup my first server, I have been doing some actions on it that I will summarize, and when i came back later there has been some changes, I don’t know if it was caused by me by accident, or the result of an attack : this is […]
Let’s say my WSL instance has an eth0 IP address of 172.18.240.175. If I’m inside the container I can connect to port 80 without issue (eg. php -r "fsockopen('127.0.0.1', 443);") but, outside of the container but whilst still on the Windows 11 WSL host, I am unable to connect. php […]
When I run netsh int ipv4 delete excludedportrange protocol=tcp startport=61600 numberofports=100 in Windows Command Prompt (as administrator) I get: That response is unhelpful. Wondering if someone else can shed light on it.
I have a failing hard drive, I need to recover the remaining files. Some are listed in windows explorer, some are not but the drive hangs when I try a bulk transfer. What is the best way to recover these files?
About a year ago I installed this wireless adapter on my desktop PC to try to improve my performance on WiFi: https://www.amazon.com/gp/product/B0B4VH4G1C/ It seemed to work pretty well, but I recently moved to a new house and the adapter can no longer detect any networks (“No Wi-Fi networks found”). When […]
In earlier versions of macOS, I was able to set the screensaver from a shell script using a command like this: defaults -currentHost write com.apple.screensaver moduleDict -dict moduleName Drift path /System/Library/Screen\ Savers/Drift.saver type 0 In 10.14, however, it seems like while the system still writes to that property, setting the […]
Suddenly my feed on LinkedIn is full of “Suggested Posts” that I’ve no interest in. How do I hide them? The support page only recommends selecting “I don’t like this subject” or “I don’t like this author” but I want to get rid of them completely.
I have a folder I want to symlink (note that this doesn’t have to be a symlink specifically, a junction or similar also works) somewhere. In that folder, there are a couple of subfolders and a bunch of files. The folder is often updated with new files added. Is there […]