Monitoring a folder with subfolders for newly added files using python

Summary A file‑monitoring pipeline failed to detect newly added files in a dated folder hierarchy because the implementation relied on periodic polling and naive directory scans. The system missed events, processed files late, and occasionally reprocessed old files. The core issue was the absence of a real-time filesystem watcher capable of tracking deep subfolder structures. … Read more

Index name in Oracle

Summary This incident stemmed from an Oracle metadata lookup that failed to detect an existing index because the wrong column was queried. As a result, the application attempted to recreate an index that already existed, causing repeated failures. The underlying issue is a misunderstanding of how Oracle names and exposes indexes—especially system‑generated ones. Root Cause … Read more

Next.js webpack error on first run (port 3000) but works on second run (port 3001)

Summary Issue: Next.js 14 project fails on the first run (port 3000) with a webpack error but works on the second run (port 3001). Root Cause: A race condition in webpack’s module resolution caused by concurrent server starts. Impact: Delayed development workflow and confusion for engineers. Fix: Prevent concurrent server starts or clear webpack cache … Read more

Why do I get a “fast forward rejected” when I push a second time?

Summary A “fast forward rejected” error on a second push happens when your local branch’s history no longer matches the remote’s history. Even if you are the only developer, Git can still detect divergence when the remote branch contains commits your local branch does not—often caused by non-fast‑forward updates, rebases, or detached‑HEAD pushes you forgot … Read more

How to serve the index.html file using Spring inside a directory without typing index.html in the URL

Summary This incident centers on Spring Boot failing to serve nested index.html files generated by a Next.js static export using trailingSlash: true. Although Next.js correctly outputs /page/index.html, Spring Boot does not automatically map /page to /page/index.html unless explicitly configured. The result is a mismatch between how Next.js expects static pages to be resolved and how … Read more

Does a const-qualified member function promise not to modify the object? How is this legal?

Summary This incident examines a subtle but important misconception about const‑qualified member functions in C++. Although many engineers assume that const means “the object cannot be modified”, the language actually guarantees something weaker: a const member function promises not to modify the object’s logical state unless the programmer explicitly circumvents the type system. The example … Read more

Using Microsoft.Win32.Registry in a custom MSBuild task shipped via NuGet

Summary A custom MSBuild task attempted to read from the Windows Registry while targeting .NET Standard 2.0, causing MSBuild to load the .NET Standard stub version of Microsoft.Win32.Registry. That assembly contains no platform-specific implementation, leading to a PlatformNotSupportedException at runtime. Root Cause The failure occurs because: MSBuild running on .NET (Core/SDK-based) loads the .NET Standard … Read more

universal site-init under snap emacs

Summary This incident centers on a long‑standing workflow for deploying a universal Emacs site-start.el across multiple machines. The approach—placing a shared initialization file somewhere on the default load-path—breaks under Snap-packaged Emacs 30.2 on Ubuntu 24.04, because Snap’s confinement model prevents modifying or extending directories inside the Snap environment. As a result, the expected multiuser initialization … Read more