Never forget about people who lost life in war. May the dead rest in peace.

马太福音 7:7-8 7 祈求就必得着(路11:9-13,13:24)“你们祈求,就给你们;寻找,就寻见;叩门,就给你们开门。  8 因为凡祈求的就得着,寻找的就寻见,叩门的就给他开门。 Matthew 7:7-8 7  “Ask and it will be given to you; seek and you will find; knock and the door will be opened to you.  8  For everyone who asks receives; the one who seeks finds; and to the one who knocks, the door will be opened.

abstract, virtual / override, static new

Call memory with abstract, virtual, override, statice new keywords. abstract: An abstract class is a class that is declared abstract —it may or may not include abstract methods. Abstract classes cannot be instantiated, but they can be subclassed. virtual / override The virtual keyword is used to modify a method, property, indexer, or event declaration …

Protected: Mail footer

There is no excerpt because this is a protected post.

Working with Nginx

All command have to run at nginx.exe folder. An example of nginx.conf See demo server configuration in nginx.conf Set auto-startup with WinSW.exe Windows 可以通过手动修改注册表设置启动项,感觉有些麻烦,还是找个工具。找到工具 WinSW ,它可以将任何应用包裹并作为一个 Windows 服务管理。 WinSW 作为一个全局工具使用: 下载 WinSW.exe 或 WinSW.zip 。 新建 myapp.xml 运行 winsw install myapp.xml [options] 安装服务。 运行 winsw start myapp.xml 开启服务。 运行 winsw status myapp.xml 检查服务是否启动和运行。 拷贝WinSW.exe到Nginx文件夹 新建WinSW.xml文件,并加入以上配置 管理员运行WinSW.exe将服务加入services.msc中

Letsencrypt & Certbot

Normally, we can use Let’s Encrypt to request a https certificate. This certificate will have 90 days available before expiry. First, we need to have a Certbot tool in our system. Please check the link below to require a script to setup your certbot environment. https://certbot.eff.org/instructions?ws=nginx&os=windows Download the installation package for your current system. Once …

OpenSSL on Windows

OpenSSL can do SELF certify https certificate. Setup OpenSSL with Environment: 1, Download openssl from https://slproweb.com/products/Win32OpenSSL.html. Install openssl into system. 2, Have to set /bin into system path. Make sure that ‘openssl’ command can be run in terminal. 3, Use ‘openssl version’ in cmd to check the version. Generate Certificate: 1, Locate into a folder, …

FIX Remote Desktop Connection: Authentication error has occurred. The Function Requested is not Supported

The following error appeared on a Windows 7 based computer, when I tried to connect to a Server 2012 via the Remote Desktop Connection app: “An authentication error has occurred. The Function Requested is not Supported.“. At the same time, the Remote Desktop connection is successful from Windows 10 based PCs. Method 1. Disable Network …