Categories

130 pages

Computer

Cross-machine computation time difference

The existing communication protocol within the group uses steady_clock as a timestamp to calculate the latency for each individual node. In a specific scenario, a message packet’s built-in timestamp was used, and this timestamp originated from another machine – resulting in an anomalous latency calculation.

As a side note: Gemini2.5 Pro shows promise of completely surpassing GPT-4.

Breadcrumb Navigation

Continuing AI’s random writing, Local Comic Browser, at the end, I discovered there was no return to homepage function; I extracted the issue and fed it to AI. The solution was to add breadcrumb navigation.

What is Breadcrumb Navigation?

Breadcrumb navigation is a common user interface design pattern typically used to help users understand their location within a website or application and provide quick paths to return to the previous level or homepage. Its name originates from the fairy tale Hansel and Gretel, where the protagonists used breadcrumbs to mark their path home.

WeChat Backup Tool Local Network Recognition Failed

I regularly clear out data on my phone, including photos and WeChat chat logs, backing them up to my computer. Previously, it worked seamlessly, allowing me to easily identify both my mobile phone and desktop PC within the same local network and directly back up the chat records to my computer. However, today everything has been failing.

Memory Layout and Binary Compatibility

C++ service crashed. The service depends on a static library for compilation. The static library made modifications, adding members to the header file and re-publishing the binary static library file. The service relies on the new binary library file, compiles and runs normally, but then crashes. The crash point appears fine, similar to the crashes caused by compiler upgrades – undefined behavior, an untrustworthy stack trace. Updating the service’s dependent header files allows it to mutate correctly, and running also works normally. A detailed explanation is needed, involving computer science knowledge, I suspect it’s related to memory layout, with examples for a thorough explanation.

10.243.52.68 also belongs to the local area network.

Continuing from the previous discussion, today we’ll be talking about local area network IP addresses. Last time, in order to synchronize code, the server configured a proxy, and the server and the desktop computer in the house were able to connect to the network. Within a local area network, the proxy program was deployed on the desktop, and the server accessed the internet through the proxy. Code synchronization was very slow, so it was abandoned. Half a month later, when verifying the code on the server, the Git code synchronization failed with a network error. Without much thought, I examined the error message.

Git Single Configuration Proxy

Accessing GitHub domestically is slow, and you can speed it up by configuring a proxy. There’s also another way: find a domestic hosting platform like CodeOcean or Coding. Configure the corresponding build pipeline to sync your code to GitHub.

I’ve been using ‘coding’ for many years – its interface is simple, and they recently released an announcement that the free version can no longer be used, requiring migration to Tencent’s new platform, cnb. Let me also complain a bit about Alibaba’s hosting platform; the entire interface design feels very dated/stuffy. It’s like eating a bowl of congee (班味 - ban wei).

Prometheus Monitoring System Histogram and Summary

Business systems designed monitoring metrics of type Summary, calculating the average duration: request_duration_milliseconds_sum / request_duration_milliseconds_count.

Reviewing the data, a particular interface was found to have very high average duration, and when examining the time series chart, the average duration suddenly increased – effectively, one request took a long time, which pulled up the overall average. The goal was to identify exactly when this request occurred, but due to the low number of requests within the period, the data retrieved remained empty.

Blog Translation Project Musings: Cultural Transmission, AI Programming

Cultural Propagation: Its ideological influence, subtle and pervasive. AI Programming: Not performing software design, resulting in a lot of rework.

Cultural Propagation

Initially, the project only supported English, Japanese, and Korean. Thinking it was just AI translation, we wondered if supporting more languages wouldn’t be a good idea. So, French, Russian, and Hindi were added. At this point, no problems were detected; when the program executed translations, formatting issues arose due to historical code problems, requiring re-translation of archived articles.