https://halfblood.pro/Half-Blood ProgrammerStories from Lex Li on technologies and anything else he likes. 2024-03-16T18:33:57-04:00 Lex Li https://halfblood.pro/ Jekyll © 2024 Lex Li /assets/img/favicons/favicon.ico /assets/img/favicons/favicon-96x96.png PySNMP and Home Assistant2024-03-16T00:00:00-04:00 2024-03-16T00:00:00-04:00 https://halfblood.pro/pysnmp-and-home-assistant/ Lex Li Home Assistant is a popular open-source home automation platform. It is able to integrate with a wide variety of devices and services, and it is also able to monitor and control SNMP devices. The integration is done through the PySNMP library, which is a pure-Python SNMP library. When we decided to ship PySNMP 6.0, we intentionally brought a lot of breaking changes to adapt to new Python 3.12... Running Go Web Apps on IIS with HttpPlatformHandler2024-02-09T00:00:00-05:00 2024-02-09T00:00:00-05:00 https://halfblood.pro/running-go-web-apps-on-iis-with-httpplatformhandler/ Lex Li HttpPlatformHandler can help IIS host Java/Python/Node.js/Go applications, so in this post we wil see how to configure a Go/Echo web app on IIS and troubleshoot the common issue. Basic Go/Echo Setup At the beginning, we will start by installing Go on this machine, winget install GoLang.Go After that we will start to make a sample application, cd C:\ mkdir test-go cd test-go go mod init ... How to Use ANTLR 4 on .NET in 20232023-09-10T00:00:00-04:00 2023-09-10T00:00:00-04:00 https://halfblood.pro/how-to-use-antlr-4-on-net-in-2023/ Lex Li I once blogged heavily about how to use ANTLR on .NET, and you can find all related posts in here. And my last blog post on ANTLR was in 2017. You can still learn something useful from the old post. Today it is time to provide some important update. Runtime Responsibility Moved Sam Harwell has been maintaining ANTLR 4 C# runtime for many years under a dedicated GitHub repository. My projec... VS Code IIS Extension for Sphinx Users2023-05-22T00:00:00-04:00 2023-05-22T00:00:00-04:00 https://halfblood.pro/vscode-iis-extension-for-sphinx-users/ Lex Li If you use VS Code to author Sphinx sites, you might find the reStructuredText extension a good companion to help highlight the syntax and preview the pages. One limitation of that extension is it cannot help you host the site locally, so you need to set up a web server separately. This post introduces a new VS Code extension that can help you host Sphinx sites on IIS easily. Install the Exte... The Rough History of IIS HttpPlatformHandler2023-04-07T00:00:00-04:00 2023-04-07T00:00:00-04:00 https://halfblood.pro/the-rough-history-of-iis-httpplatformhandler/ Lex Li Due to various misinformation around this IIS out-of-band component, I think it’s worth the while to write about its history so you know what others are talking about and how some of them made mistakes. The Start of Windows Azure When Microsoft entered the cloud computing market, it was a big challenge to support non-Microsoft technologies on Windows Server so that this platform can expand i...