In this blog, I will briefly introduce how to use C to manage InfluxDB data. InfluxDB is a time series database designed to handle high write and query loads. It is an integral component of the TICK stack. InfluxDB is meant to be used as a backing store for any use case involving...
To start a process and get the output, it might be simple. (Do NOT COPY!!! Wrong code!!!) csharp var process = new Process { StartInfo = new ProcessStartInfo { FileName = bin, Arguments = arg, CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, WorkingDirectory = path...
This article provides an in-depth analysis of the critical role of PPI (Pixels Per Inch) in application development and monitor selection. Since the vast majority of desktop applications are designed based on the 96 PPI standard, using Fractional Scaling when a monitor's PPI is not an integer multiple of 96 can result in blurry images or jaggies. The article points out that when selecting a monitor, one should calculate its PPI to ensure it is close to an integer multiple of 96 (such as 96, 192, or 288), thereby achieving clear and appropriately sized text display through 100%, 200%, or 300% integer scaling. For macOS users, the 72 PPI standard should be referenced, ensuring the PPI is an integer multiple of 72. The article demonstrates how to calculate the optimal scaling ratio based on resolution and size using examples such as LG OLED, Surface Studio, and the Apple Studio Display, and provides C# code to assist in the calculation. Finally, it emphasizes that while PPI and scaling ratios are core parameters for ensuring text clarity and appropriate size, other performance metrics such as color accuracy, refresh rate, and HDR support must also be considered when purchasing a monitor. This article aims to help resolve issues of text being too large or too small and scaling blur, rather than providing a sole standard for selection.
As individuals, it's important to have a way for others to easily verify our identity. One of the best ways to do this is by using a digital certificate for signing. Digital certificates can do many things, such as signing code. Certificates are split into two parts, public and p...
This article provides an in-depth analysis of the significant flaws in the traditional Windows Win32 application ecosystem, particularly concerning permission management, file system isolation, and user maintenance costs. It points out that the lack of modern sandboxing mechanisms and unified standards leads to system instability and frequent security vulnerabilities. The author argues that the UWP architecture should have been the perfect solution to these problems. Through its robust store distribution, virtual file system, strict permission controls, and automatic update mechanisms, UWP achieved a dual reduction in burden for both developers and users, while also possessing cross-platform potential. However, UWP ultimately perished due to commercial failure: initial applications were of low quality and functionally incomplete, Microsoft's own product experience was subpar, the existence of multiple implementation approaches for the same functionality led to ecosystem confusion, and high development barriers limited application scenarios. These factors ultimately caused developer attrition and market shrinkage. As Microsoft abandoned UWP and shifted towards the MAUI framework, which reverts to the Win32 model, Windows has lost an opportunity for a modern application framework. This has left behind a system characterized by functional redundancy, fragmented user experience, and difficult maintenance, which is regrettable.
Recently I just bought a Thrustmaster TCA airbus throttle. You can buy it here. I want to use this throttle to control the fan speed of the server in my data center. <iframe height="600px" src="https://anduins site.player.aiur.site/pxl 20221121 015946930 265.mp4" </iframe Super e...
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...
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: '...
A extension class for string to add GZip features. Copy the following code to your project first. using System; using System.IO; using System.IO.Compression; using System.Text; public static class GZipExtensions { private static byte[] Zip(string str) { var bytes = Encoding.UTF8....
Background Reference: c Why should Console.WriteLine be avoided in library code? Stack Overflow Do not use the Console class to display output in unattended applications, such as server applications. Calls to methods such as Console.Write and Console.WriteLine have no effect in G...