Month: April 2026
-
Post Views: 33 I recently wanted to add the function of the article to read on the blog. Add the historical pageview to the old article, and realize automatic counting of new visits at the same time, and there is no need to modify the core code of the theme, and do not rely on complex operations. After many times…
-
Post Views: 41 Interpret t Any constraint: Allows storage of any type.Explain the pointer structure of a unidirectional linked list.Constructor new:Shows how to initialize a generic node.
-
Post Views: 309 As a user who has long relied on VPN for overseas resource access and work communication, he has recently experienced the emergency situation of LetsVPN deactivated, from the alternative scheme to the final self-built Wireguard VPN It landed, stepped on a lot of pits in the process, and also accumulated reusable practical experience. This article will complete…
-
Post Views: 41 The background of the problem 2. The first pit: depend on download failure (502 bad gateway), you can refer to:GO TOUR slicing exercise to run the full record of the pit on the pit (from error report to successful operation) as shown in Figure 1 Error message: Error cause: Solution: 3. The second pit: the IDE still…
-
Post Views: 44 1. Reference:Optimization of List Interface Response Timeout . In Spatie\QueryBuilder , query SQL enforces index . achieve the following 2. The generated sql is as follows, in line with expectations. as shown in Figure 1
-
Post Views: 29 In Go language, errors are not an exception, but a value. By implementing the Error interface, we can create custom error types with rich context information. This article will combine Go Tour’s ‘exercise: errors’ exercise to explore how to implement a square root function that supports negative number detection, and reveal the ‘infinite recursion’ pit that is…
-
Post Views: 64 1. Background: Why do this environment In order to learn AI programming tools (such as Tongyi Spirit Code), I am going to implement a ‘Music Alarm Clock’ small project.Before starting coding, I set up a reusable python dev container development environment. 2. Description of the technology stack 3. Project catalog structure (core focus) music-alarm/├── .devcontainer/│ └── devcontainer.json├──…
-
Post Views: 54 1. When learning the ‘Comprehensive Spirit Code AI Coding Practical, AI Programmer User Guide’,I found the interface in the tutorial completely different from the one I currently use. There are two parallel windows in the tutorial: as shown in Figure 1 But in my current environment: as shown in Figure 2 So I have a few questions:…
-
Post Views: 63 Following the previous articleMaps word counting exercisesAfter this, another classic exercise in the introduction of Go language – using closure to implement the Fibonacci sequence generator. This question can not only consolidate the core usage of closed packages, but also deeply understand the characteristics of ‘function as the return value’ in the Go language. This article will…
