Tech Musings
Author

Tech Musings

Capturing thoughts and reflections while coding.

59
Articles
0
Likes
242
Views
0
Comments
Recent Articles

Latest from Tech Musings

59 recent articles
Tech Musings
Tech Musings
Jul 7, 2026 · Operations

Avoid Cloud TCP KeepAlive Pitfalls with Simple Linux Kernel Tweaks

The article explains why the default 7200‑second TCP KeepAlive idle time causes RSTs in cloud environments, demonstrates Netty configuration for finer‑grained keepalive settings, shares real‑world cloud‑networking failures, and recommends adjusting Linux kernel parameters as a reliable solution.

LinuxNettyTCP
0 likes · 6 min read
Avoid Cloud TCP KeepAlive Pitfalls with Simple Linux Kernel Tweaks
Tech Musings
Tech Musings
Jul 3, 2026 · Cloud Native

How I Uncovered Two Hidden Causes of Remote Docker Container Restarts

A remote Docker container kept restarting with no logs; by inspecting the ExitCode and analyzing build cache and file permissions, the author identified a polluted build layer that produced an empty binary and a UID mismatch on a mounted key file, then applied concrete fixes.

Build CacheContainer DeploymentDocker
0 likes · 13 min read
How I Uncovered Two Hidden Causes of Remote Docker Container Restarts
Tech Musings
Tech Musings
Jul 3, 2026 · Backend Development

Optimizing HeFeng Weather Integration: Icon Fonts, JWT Auth, Layered Caching, and Gzip

The article details a complete HeFeng weather integration for a mini‑program, covering front‑end icon‑font rendering, Rust‑based backend JWT authentication with Ed25519, three upstream API calls, a two‑tier cache for real‑time and historical data, gzip auto‑decompression, request‑timeout layering, and environment‑variable driven deployment configuration.

GzipHeFeng WeatherIcon Font
0 likes · 10 min read
Optimizing HeFeng Weather Integration: Icon Fonts, JWT Auth, Layered Caching, and Gzip
Tech Musings
Tech Musings
Jun 14, 2026 · Backend Development

Does Netty’s io_uring Make the 2× CPU Thread Rule Obsolete?

A benchmark on an 8‑core Linux 6.6 system shows that switching Netty from epoll to io_uring lets a half‑sized thread pool achieve 3 % higher throughput, more than double per‑thread efficiency, and a 67 % reduction in CPU migrations, challenging the traditional rule of using twice‑the‑core thread counts.

JavaNettybenchmark
0 likes · 21 min read
Does Netty’s io_uring Make the 2× CPU Thread Rule Obsolete?
Tech Musings
Tech Musings
Jun 10, 2026 · Backend Development

Evolving RagFlow Text Upload: From Placeholder Files to Direct Temp‑File Upload

The article compares two Java‑based integration methods for sending pure‑text documents to RagFlow—first uploading an empty placeholder file then adding chunks, and later writing the text to a temporary file and uploading it directly—detailing implementation, pitfalls, and why the latter is preferred.

Javaapibackend
0 likes · 11 min read
Evolving RagFlow Text Upload: From Placeholder Files to Direct Temp‑File Upload
Tech Musings
Tech Musings
Jun 5, 2026 · Frontend Development

How I Built a Mood‑Tracking Mini‑Program with Fuzzy Location, Backend Reverse Geocoding, and Manual Map Selection

This article details the step‑by‑step development of a WeChat mini‑program that adds location‑based check‑ins, covering fuzzy location retrieval, moving reverse‑geocoding to the backend for key protection, the failed attempt at precise GPS, and the final hybrid approach of fuzzy auto‑location combined with manual map point selection.

WeChat Mini ProgramchooseLocationgeolocation
0 likes · 6 min read
How I Built a Mood‑Tracking Mini‑Program with Fuzzy Location, Backend Reverse Geocoding, and Manual Map Selection
Tech Musings
Tech Musings
May 28, 2026 · Operations

EdgeRouter X PPPoE IPv6 Stalls: MTU 1492 vs Router Advertisement Prefix Overwrite Trap

Enabling IPv6 on an EdgeRouter X PPPoE link caused intermittent SSL time‑outs because the PPPoE MTU of 1492 conflicted with the client’s default MTU, and the router‑advertised link‑mtu overwrote the DHCPv6‑PD‑generated SLAAC prefix, stripping internal devices of a global IPv6 address; manually configuring both MTU and prefix resolved the issue.

EdgeRouter XIPv6MTU
0 likes · 10 min read
EdgeRouter X PPPoE IPv6 Stalls: MTU 1492 vs Router Advertisement Prefix Overwrite Trap
Tech Musings
Tech Musings
May 27, 2026 · Backend Development

How to Upload Images to Qiniu Cloud with Rust + Actix‑Web and Generate Signed Download URLs

This article walks through moving image storage from TiDB Cloud to Qiniu Cloud for a WeChat mini‑program, detailing a Rust + Actix‑Web backend that validates image format, deduplicates via SHA‑256 content‑addressable keys, creates upload tokens, performs idempotent multipart uploads, and builds hour‑aligned private download URLs with referer protection.

Actix-WebContent-Addressable StorageImage Upload
0 likes · 22 min read
How to Upload Images to Qiniu Cloud with Rust + Actix‑Web and Generate Signed Download URLs