Working with PowerShell Core on Linux
Here are some useful notes I have been updating whenever I have some new findings.
Installation
First thing first, here is the official documentation on installing pwsh or pwsh-preview on Linux OS.
A known issue
This is a known issue that pwsh will hang after executing any external command if $TERM
is screen
, i.e. you are running pwsh inside a screen
. However, according to the GitHub comment, it seems screen
is to blame.
Though this does not limit its usage with other system utilities, I’d like to know if readers like you have some handy solution… Comment below! Continue reading “Working with PowerShell Core on Linux”
Since LLVM / Clang already have Natvis visualization files ready in the repository…
All you need to do is to copy llvm.natvis and clang.natvis and paste them into your documents\Visual Studio 201x\Visualizers\
folder. Then you can see the content of DenseMap
and Decl
really easy in Visual Studio debugger.
A conscise guide to building ccls on Windows with MSVC
ccls is an awsome LSP implementation on C/C++/OC written by MaskRay. It also has a plugin on VSCode, providing intellisense on these languages. In this post I’m demonstrating a simple approach to configure and build ccls with MSVC on Windows. Continue reading “A conscise guide to building ccls on Windows with MSVC”
A concise guide to building LLVM & Clang on Windows with MSVC
So, let’s say you want to use clang to do some AST analysis on Windows. You did a simple search, and downloaded the installer from LLVM project site. Everthing went well, until you found there is something missing in the installed LLVM headers folder Continue reading “A concise guide to building LLVM & Clang on Windows with MSVC”
A journey with Application Insights
Recently I have been trying to enable Application Insights (AI) on my simple SPARQL query UI on ASP.NET Core 2.1, with reference to quick-start guide on Microsoft Docs. After completing the configuation and trying out the website locally, I believe everyting worked fine. Though the SLA guarantees the delay of telemetries should be under 2 hours, actually I can see the requests in my development environment on Azure dashboard in less than 10 minutes. Continue reading “A journey with Application Insights”
Take a peek at the internals of Git
https://git-scm.com/book/en/v2
Chapter 10
Some text adventure games
Found it somewhere by a friend, by accident…
Try WikiClientLibrary on Xamarin Workbooks!
I’ve noticed that MS announced their first pre-release for Workbooks, which allows you to experiment with .NET Framework / .NET Core / Xamarin / WPF in a Jupyter-like fashion. It’s like an enhanced version of C# interactive window.
What is really an improvement, is that you can add reference to NuGet packages in a similar way as you are working with a full C# project, so it exhibit a chance for me to play with WikiClientLibrary. Hopefully, it might give Wiki contributors some convenience on automated edits, such as word-replacement in batch.

Security transparency & sandboxed AppDomains
[This article is still a WIP. Updates may follow.]
Recently I am working on a C# sandbox for C# code, and come across a lot of buggy situations. Here I am just trying to sort them out. Continue reading “Security transparency & sandboxed AppDomains”