Discussing the Linux Signal Mechanism in .NET Dumps

Discussing the Linux Signal Mechanism in .NET Dumps

1. Background 1. Storytelling When a <span>.NET application</span> crashes on Linux, we can configure some references to obtain the corresponding core file. After obtaining the core file, we can open it with windbg, and often see a message like this: <span>Signal SIGABRT code SI_USER (Sent by kill, sigsend, raise)</span>, as shown below: (1.1d): Signal SIGABRT … Read more

Linux Series: How to Use Heaptrack to Trace .NET Program Unmanaged Memory Leaks

Linux Series: How to Use Heaptrack to Trace .NET Program Unmanaged Memory Leaks

1. Background 1. Storytelling Previously, I shared an article about <span>unmanaged memory leaks caused by C# calling C code</span>. This was a deliberately induced positive leak. In this article, we will explore the root cause of the leak from a reverse perspective. This issue is relatively easy to handle on Windows, as many people know … Read more

pythonnet vs csnake: Bridging the Gap Between Python and .NET

pythonnet vs csnake: Bridging the Gap Between Python and .NET

❝ “You are Python, I am .NET; we can come together thanks to these two matchmakers!” Hello, dear readers in the AI technology circle! Today, we are going to discuss something hardcore yet essential—how to enable seamless coexistence between Python and .NET, the development languages from the Eastern and Western hemispheres. Pythonnet and csnake are … Read more

Original Vulnerability | .NET Deserialization Vulnerabilities in Industrial Control Systems

Original Vulnerability | .NET Deserialization Vulnerabilities in Industrial Control Systems

OriginalVulnerability 1. Coding Standards and Software Vulnerabilities Software vulnerabilities are often closely related to the lack of coding standards. If input validation, dependency management, and security design principles are ignored during development, even if the functionality is normal, security risks may be hidden. Taking the Java deserialization vulnerability as an example, the essence is that … Read more

Resolving Timeout and Disconnection Issues When Calling Third-Party HTTP APIs in .NET

Resolving Timeout and Disconnection Issues When Calling Third-Party HTTP APIs in .NET

In .NET development, calling third-party HTTP APIs is a common task. However, in practical applications, we often encounter issues such as request timeouts or connection disconnections. These problems can arise from various reasons, such as network latency, slow server responses, or unreasonable client timeout settings. This article will delve into the causes of these issues … Read more

How to Write Your Own .NET IoT Device Driver from Scratch

How to Write Your Own .NET IoT Device Driver from Scratch

This article will detail how to write a .NET IoT device driver from scratch using the NV3030B LCD device driver as an example. We will use the Raspberry Pi as the hardware platform and refer to the official .NET IoT Ili934x TFT LCD driver library. 1. Background In the previous article “Getting Started with .NET … Read more

A Comprehensive Guide to SIMD Acceleration of Numeric Types in C# (2024)

A Comprehensive Guide to SIMD Acceleration of Numeric Types in C# (2024)

In modern application development, performance optimization is a core requirement in many scenarios, especially when dealing with large-scale numerical computations. Single Instruction, Multiple Data (SIMD) technology significantly enhances computational efficiency by processing multiple data points in parallel. This article will delve into the fundamental concepts, core types, usage methods, performance benchmarks, and best practices of … Read more

Integrating OpenAI Real-Time Voice Chat with Linux Development Boards

Integrating OpenAI Real-Time Voice Chat with Linux Development Boards

This article introduces how to integrate OpenAI’s real-time voice chat interface with a Linux development board to achieve voice recognition and generation. This approach allows you to implement voice interaction features on a Linux development board, such as voice assistants and voice control. The content covers .NET knowledge, Linux audio processing, WebSocket communication, LCD display, … Read more

How to Write Your Own .NET IoT Device Driver from Scratch

How to Write Your Own .NET IoT Device Driver from Scratch

This article will detail how to write a .NET IoT device driver from scratch using the NV3030B LCD device driver as an example. We will use the Raspberry Pi as the hardware platform and refer to the official .NET IoT Ili934x TFT LCD driver library. 1. Background In the previous article “Getting Started with .NET … Read more

Lightweight Communication Protocol – MQTT

Lightweight Communication Protocol - MQTT

Introduction “MQTT (Message Queuing Telemetry Transport)” is a lightweight messaging protocol commonly used for communication in the Internet of Things (IoT) and sensor networks. It is designed to transmit data in low-bandwidth, unstable, or high-latency network environments, making it particularly suitable for communication between connected devices, especially in resource-constrained environments. This article will briefly introduce … Read more