Tech Musings
Author

Tech Musings

Capturing thoughts and reflections while coding.

64
Articles
0
Likes
410
Views
0
Comments
Recent Articles

Latest from Tech Musings

64 recent articles
Tech Musings
Tech Musings
Sep 3, 2026 · Frontend Development

Why `!b` Becomes `_a_b`: uni-app Compiler Bug with Variable `b`

The uni-app mini-program compiler (alpha) incorrectly replaces `!b` with undeclared `_a_b` when a local variable is named `b`, causing a runtime ReferenceError only when specific data triggers the condition; the bug evades build, TypeScript, and ESLint checks, and is fixed by renaming the variable.

DebuggingReferenceErroralpha version
0 likes · 24 min read
Why `!b` Becomes `_a_b`: uni-app Compiler Bug with Variable `b`
Tech Musings
Tech Musings
Aug 31, 2026 · Cloud Native

Securing DeepSeek Harness in Multi-Tenant Containers: Removing Filesystem Plugins to Reduce Attack Surface

The author details removing filesystem tool plugins from DeepSeek Harness (DSH) to secure multi-tenant container deployments, covering plugin architecture, overlay-based disabling, impact on 6 tools, real-model attack testing showing bash as a residual channel mitigated by sandbox fail-closed behavior, and resource metrics showing negligible savings.

DeepSeek HarnessMulti-tenancyYAML overlay
0 likes · 15 min read
Securing DeepSeek Harness in Multi-Tenant Containers: Removing Filesystem Plugins to Reduce Attack Surface
Tech Musings
Tech Musings
Aug 20, 2026 · Fundamentals

Four JMH Cases Reveal How Java JIT Optimizes at the Assembly Level

The article walks through four carefully designed JMH benchmarks—method inlining, SIMD vectorization, lock elimination, and a Netty AsciiString regression—to show how JVM JIT optimizations appear in assembly, explain the performance impact (up to 1500×), and demonstrate how to diagnose and fix real‑world issues using assembly analysis.

AssemblyJITJMH
0 likes · 19 min read
Four JMH Cases Reveal How Java JIT Optimizes at the Assembly Level
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.

LinuxNettyNetworking
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.

Container DeploymentDockerDocker Compose
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.

CachingGZIPHeFeng Weather
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.

APIBackendFile Upload
0 likes · 11 min read
Evolving RagFlow Text Upload: From Placeholder Files to Direct Temp‑File Upload