Moonglade

Modern Markdown blogging with AI-powered localization and search.

All Posts


Put your data center to work with GPU compute power!

This article details the configuration and deployment process for vGPU in a VMware Horizon environment. First, disable cluster DRS/DPM to prevent migration deadlocks. Then, add Q/C series vGPU devices that support CUDA to the virtual machine in VCenter. When installing GRID drivers on the Linux client, you must use deb/rpm packages instead of the runfile. Configure `gridd.conf` and the license Token, and verify the authorization status using `nvidia-smi`. When installing CUDA, strictly avoid using the system package manager. You must install it via the runfile and uncheck `cuda-driver` to prevent overwriting the GRID drivers. Finally, manually configure the PATH environment variable. To ensure cross-host migration capability, plan the GPU memory splitting scheme in advance (such as 1/8 or 1/3 splits), enable the `vGPU.hotmigrate.enabled` option, and ensure that BIOS settings on all hosts (such as ECC, IO MMU, and SR-IOV) remain consistent. After configuration is complete, you can install cuDNN for AI model training or utilize `h264_nvenc` for video hardware-accelerated encoding. Additionally, the article introduces methods for monitoring temperature via `nvidia-smi` to optimize fan noise, and provides a troubleshooting guide for driver version conflicts, license expiration, and BIOS configuration errors, aiming to help users build a stable and efficient GPU computing environment.

Views 948
Ai CUDA NVIDIA Python Server Tesla Ubuntu VMware Vsphere vGPU

Self-host an AI image generation system (based on Stable Diffusion) for your friends

This article introduces advanced usage tips for Stable Diffusion and secure deployment strategies. First, leveraging the PNG Info feature allows you to quickly view and reuse the specific parameters used during image generation; it is recommended to experiment with different combinations of Checkpoints and LoRAs to master stylistic patterns. Second, to address the security risks of exposing local services to the public internet, the article proposes a simplified yet secure UI configuration strategy: disabling VENV to reduce deployment complexity, installing xformers to optimize performance, and modifying startup parameters to hide sensitive directories. Core security measures include using config.json to disable dangerous tabs such as Settings and Train, utilizing ui-config.json to restrict batch generation, fix prompts, and hide the negative prompt input box, thereby preventing resource abuse and the generation of non-compliant content, while simultaneously using user.css to hide irrelevant buttons and simplify the interface. Finally, it is recommended to use FRPC in conjunction with a Caddy reverse proxy to securely expose the service to the public internet, enabling encrypted communication and automatic TLS certificate management, ensuring that friends can conveniently access your AI painting service while protecting privacy and data security.

Views 371
Ai Self hosting Server Stable Diffusion Tune Web

Does it still make sense to learn traditional software development techniques in 2023?

The article explores the balance between traditional software learning and new technologies in the era of AI-driven development. The author argues that while AI is disrupting classical software engineering—for instance, by using natural language to generate code, thereby replacing some static analysis tools—learning traditional programming fundamentals remains crucial. Just as understanding assembly language was necessary when learning object-oriented programming in the past, mastering AI-driven development in the future will also require a solid foundation of traditional engineering knowledge to handle complex system investigations and meet the demands of high-level positions. The author advises newcomers to dedicate 70% of their effort to the AI field, 20% to core traditional software engineering skills, and 10% to underlying principles, rather than completely abandoning the basics. Future requirements for engineers will be higher; only versatile professionals who possess both traditional proficiency and AI capabilities can avoid becoming low-end programmers who merely issue simple commands, thereby gaining an advantage in their career development.

Views 998
AI in Software Development Career Development in Tech Future of Programming Learning Strategy for AI Software Engineer Requirements Traditional Software Engineering

Comprehensive Guide to HDR!

This article provides an in-depth exploration of display optimization and development adaptation challenges associated with HDR monitors and SDR content. First, addressing the issues of excessive brightness and glare that may occur when displaying SDR content on HDR monitors, the article suggests adjusting the appearance of SDR content via Windows HD Color settings to map it to the SDR range, or utilizing SDR-to-HDR conversion technology to enhance contrast and color. The specific choice depends on the user's preference for visual realism or visual impact. Second, the article analyzes methods for identifying HDR images, noting the need to check metadata such as the BT.2020 color space, high color depth, and non-linear transfer functions. It also emphasizes that standard drawing tools do not support HDR, and professional software is required for editing. In terms of conceptual clarification, the article distinguishes between HDR10 (a video format standard) and HDR1000 (a display maximum brightness specification), pointing out that viewing high-brightness videos on low-brightness displays results in a loss of detail. Finally, the article discusses software adaptation, noting that standard applications such as Office do not require specific HDR adaptation, whereas video, gaming, and professional design software must support HDR pixel formats and frame buffers. It also corrects the misconception that sRGB is being replaced, clarifying that HDR aims to enhance dynamic range and color gamut, rather than completely replacing the sRGB color space.

Views 1,220
Color Gamut DYNAMIC RANGE Display HDR HDR Technology RGB sRGB



My Computer's Overclocking Process - Unleashing the Full Performance of the Hardware

This article provides a detailed walkthrough of the complete process for PC hardware tuning and game performance optimization. First, it describes overclocking the graphics card using MSI Afterburner. While this increases the frequency, performance gains are limited by other bottlenecks and remain insignificant. Second, it covers optimizing Samsung SSD performance using SAMSUNG Magician, along with monitoring disk health and read/write speeds using CrystalDiskInfo and HDTune Pro. Regarding game settings, the article focuses on solutions for four common bottlenecks: for VRAM exhaustion, it recommends reducing render distance and texture quality to free up VRAM; for poor visuals, such as in Minecraft, it suggests installing third-party shader packs; for CPU bottlenecks, it advises enabling DLSS to utilize idle GPU power for frame generation; and for GPU bottlenecks, it recommends enabling DLSS or FSR while appropriately lowering settings like anti-aliasing. Additionally, the article suggests prioritizing the DirectX rendering engine. Finally, it emphasizes the importance of monitor calibration, including enabling HDR mode appropriately based on the display type (LCD, MiniLED, or OLED), adjusting SDR content brightness, enabling GSync to prevent tearing, and performing HDR calibration to achieve the best visual experience and smooth game frame rates.

Views 868
ASUS Geforce Intel NVIDIA Tune Turbo Windows

A Brief Home-Buying Guide (No Broker)

This article provides a detailed overview of the entire process for an individual to directly purchase a second-hand home. It emphasizes that, provided the buyer has sufficient down payment funds, the transaction can be completed within four to five business days without the need for an intermediary. The article recommends prioritizing a pure commercial loan to simplify the process and outlines the procedure in fourteen steps. First, one must understand local housing market policies and conditions, identify a target property, and negotiate the price. Subsequently, select a bank and sign a preliminary sales contract, then proceed to the Housing Administration Bureau with documents such as the household registration book and ID card to complete the online contract registration. Next, open a Type I bank account and increase its transaction limits. Apply for fund escrow and pay the down payment into the escrow account. During the loan stage, prepare documents including credit reports, bank statements, and proof of income, submit the application to the bank, and choose the equal principal and interest repayment method. After the loan is approved, visit the Housing Administration Bureau with the seller to pay taxes, sign the final contract, and process the real estate title transfer registration. Upon paying a small registration fee, the real estate ownership certificate can be collected. Finally, arrange for the scheduled withdrawal of housing provident fund to cover monthly mortgage payments, and send the registration certificate to the bank to complete the mortgage registration. Throughout the entire process, it is crucial to closely monitor bank account transaction records, ensuring that salary deposits, provident fund withdrawals, and mortgage repayment dates align to avoid the risk of default.

Views 739
Contract Signing Government Fees Mortgage Loan Property Registration Real Estate Tax Filing

A Game Experience with Separated Storage, Computation, and Display

Traditional PC games, constrained by their standalone architecture, suffer from several pain points: large games must be repeatedly downloaded across multiple devices, insufficient disk space forces frequent uninstallation and reinstallation, system reinstalls require cumbersome reconfiguration, and performance disparities between devices lead to fragmented user experiences. This article advocates for a modern architecture that separates storage, computation, and display: game data is centrally stored on a NAS or server, a high-performance host handles rendering and computation, and streaming technology transmits the video feed to portable display devices such as tablets or smartphones. This solution not only eliminates bandwidth waste and hard drive anxiety but also enables users to enjoy top-tier hardware performance on any terminal. Specific implementation recommendations include building a 10 Gbps wired network environment based on NFS or SMB protocols; the storage end can utilize a RAID6 hard drive array paired with NVMe caching, the computation end only requires a small-capacity solid-state drive for the operating system, and the display end connects via tools like Moonlight. Although this architecture requires slightly more complex initial setup, it completely eliminates the hassle of managing games across multiple devices, allowing users to run high-quality games smoothly in scenarios such as bed or on the go, making it an efficient solution for enhancing the gaming experience.

Views 594
Disk Game Gaming NVIDIA Steam Storage

The Death of UWP: A Framework That Was Technically Successful but Commercially Failed; What Should a Modern Operating System Really Provide? ★

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.

Views 1,714
C# Microsoft Microsoft Store UWP Windows Windows Development