Tech Musings
Author

Tech Musings

Capturing thoughts and reflections while coding.

69
Articles
0
Likes
613
Views
0
Comments
Recent Articles

Latest from Tech Musings

69 recent articles
Tech Musings
Tech Musings
Sep 29, 2026 · Product Management

From KISS to Feature Creep: How a Mini-Program Made Me the PM I Dislike

A developer advocating simplicity builds a mood-tracking mini-program but gradually adds photos, location, weather, travel logs, and anniversaries, illustrating how personal needs drive feature creep and the difficulty of product restraint.

KISS principleWeChat Mini Programdeveloper experience
0 likes · 5 min read
From KISS to Feature Creep: How a Mini-Program Made Me the PM I Dislike
Tech Musings
Tech Musings
Sep 17, 2026 · Backend Development

Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved

This article benchmarks Java 27's default Compact Object Headers against Java 8 and Java 27 with the feature disabled, using identical bytecode. In a Spring Boot authentication service, COH reduces per-session heap by ~300 bytes (10% total heap), with total upgrade savings of ~21%. Benefits scale with active small object count, while hashCode and locking remain fully compatible.

Compact Object HeadersGarbage CollectionHeap Analysis
0 likes · 25 min read
Java 27 Compact Object Headers: Real HTTP Benchmark Shows 300 Bytes/Session Saved
Tech Musings
Tech Musings
Sep 16, 2026 · Backend Development

FileMagic IOException on Excel Upload: The FileInputStream mark/reset Pitfall

FileMagic validation throws IOException on real Excel uploads because Tomcat's default FileInputStream lacks mark/reset support, unlike test ByteArrayInputStream; wrapping with BufferedInputStream fixes it, and regression tests must simulate real stream types to catch this.

Apache POIBufferedInputStreamEasyExcel
0 likes · 8 min read
FileMagic IOException on Excel Upload: The FileInputStream mark/reset Pitfall
Tech Musings
Tech Musings
Sep 8, 2026 · Backend Development

Secure Video Streaming with Nginx: Short-Lived Signed URLs & X-Accel-Redirect

This article details a secure video streaming architecture using short-lived HMAC-signed URLs and Nginx's X-Accel-Redirect to offload file transfer from the application, enabling efficient Range request handling and progress bar seeking while explaining mp4 moov atom placement requirements and common pitfalls.

HMACMP4 FaststartNginx
0 likes · 15 min read
Secure Video Streaming with Nginx: Short-Lived Signed URLs & X-Accel-Redirect
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.

ReferenceErroralpha versioncompiler bug
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.

Attack SurfaceDeepSeek HarnessLandlock
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.

JITJMHJava
0 likes · 19 min read
Four JMH Cases Reveal How Java JIT Optimizes at the Assembly Level