Why am I doing this? I've been complaining: the public cloud is too expensive. A typical server costs about 150USD a month. And because I use a lot of Azure PaaS services, my current business needs to cause me to spend more than 500USD (3000 CNY) per month. In addition, the datab...
Brief This article introduces about how I configure my local Minecraft client. This post is for Java edition. Not Bedrock(mobile) edition! Step 1 Install Java Run the following command with admin: powershell winget install Microsoft.OpenJDK.17 Or download it here: https://docs.mi...
This article helps you change the following items if your cloud provider didn't do that for you. Rename server, (optional) join AD domain. Create your own account instead of Administrator. Disable Administrator login. Change remote desktop default port. Disable IIS dangerous prot...
Before starting, you need to make sure that you are NOT running under Administrator account! Administrator account can NOT start store apps. After starting new Windows Server, start a new PowerShell session with Administrator privilege. Run the following commands: powershell func...
This article raises questions about the phenomenon of "excessive measures" (often referred to as "adding layers on top") currently observed in epidemic prevention efforts. It argues that simply increasing the number of health codes does not reflect precise control measures; instead, it creates administrative obstacles and wastes resources. The author points out that traditional health codes, which are binary (green/red), fail to quantify risk levels. Consequently, the article proposes establishing a dynamic infection probability model based on spatio-temporal trajectories and contact density, known as a "Safety Score" system. This system calculates the degree of spatio-temporal overlap between an individual and confirmed cases, and recursively updates each person's infection probability by incorporating nucleic acid test results, thereby replacing static administrative codes. This quantification mechanism enables precise epidemic prevention: individuals with low risk can move freely, while those with high risk automatically trigger enhanced monitoring and nucleic acid screening. Furthermore, multiple negative test results can significantly lower an individual's risk score. The author emphasizes that while strict epidemic prevention is necessary, AI and big data should be leveraged to improve execution efficiency, replacing simple and crude "one-size-fits-all" policies to achieve scientific control at a lower social cost.
This article provides a detailed guide on setting up a Windows 11 cloud PC from scratch on a Vultr server. First, use the DISM tool to mount the `install.wim` image and inject the necessary drivers, then commit the changes and unmount the image. Next, use disk management tools to shrink the C drive and create a new E drive partition, then extract the Windows 11 system files to this partition. The core step involves using the `bcdedit` command to configure a new boot entry, setting the system boot path and recovery options to ensure that Windows 11 boots correctly after a reboot. After rebooting, connect via VNC to complete the initial setup (OOBE). During this process, be sure to select an offline account and set a strong password to avoid restrictions on Remote Desktop. Once you reach the desktop, enable the Remote Desktop service to connect via RDP. Finally, it is recommended to delete the old system partition, change the default port 3389 for remote connections to enhance security, and immediately create a system snapshot. This snapshot can serve as a template to quickly and batch-deploy independent Windows 11 cloud PCs for family or friends, enabling access from any device anytime, anywhere.
Recently, I have a repository with a lot of markdown files. Anduin2017/HowToCook: 程序员在家做饭方法指南。Programmer's guide about how to cook at home (Chinese only). (github.com) I installed some markdown lint plugins. However, there are some customized need for me to lint files. I think it...
When I search this topic from Google, I always get results with 'How to write C program in VS Code'. But what I was working on is an editor, which allows the user to open VS Code to edit a folder. My UI is like this: So what should I do to open the folder in VSCode? Code is below...
Recently, I was addicted to Minecraft. And I hosted a server. In order to backup the server automatically, I have tried many solutions. Git solution Git solution requires a lot of CPU when compressing the objects. And may impact the game performance since Java itself requires a l...
Sometimes, we need to check if the input is valid. Usually, we may do this: // Bad example: // Requires a lot of duplicate code. Bad architecture. if (string.IsNullOrWhiteSpace(InputArgument.TargetMachine)) { throw new ArgumentException($"Invalid input argument! Target Machine: '...