what is use of javascript ? where we actually use it in web development?

Summary This postmortem examines a common beginner misunderstanding: treating JavaScript as a mysterious or isolated technology rather than a core pillar of modern web systems. The confusion usually appears when new developers ask what JavaScript is “used for” or “where it fits” in web development. JavaScript’s breadth makes it easy for newcomers to feel lost, … Read more

bigquery SELECT query failling when converting zero values to NULL using CAST

Summary Issue: BigQuery SELECT query fails when converting zero values to NULL using CAST and NULLIF. Context: Cleaning weather data by replacing incorrectly stored 0 values with NULL in numeric columns like wind_speed and visibility. Outcome: Query fails due to incorrect usage of CAST with NULLIF. Root Cause Primary Cause: NULLIF returns NULL when the … Read more

Laravel View Composers with Layouts

Summary After migrating layouts from resources/views/components/layouts to resources/views/layouts, View Composers stopped passing data to the sidebar layout. The issue arose from incorrect view path references in the View::composer method. Root Cause The View Composer was registered with an incorrect view path, causing it to target a non-existent view. Laravel’s View Composers rely on exact path … Read more

Pass secret to script called by GitHub Actions workflow

Summary This incident centers on a GitHub Actions reusable workflow that needed to pass a repository‑specific secret into a dynamically supplied setup.py script. The workflow design prevented direct access to secrets.* inside the with: block of a reusable workflow call, causing failures, blocked outputs, and missing environment variables. Root Cause The failure occurred because GitHub … Read more

In Github projects how do I link an item to a pull request

Summary In GitHub Projects, linking an additional item to an existing pull request (PR) requires manual association. This issue arose when a PR solved an unintended backlog item as a side effect, necessitating a clear link for tracking. Key takeaway: GitHub Projects does not automatically link side-effect items to PRs, requiring manual intervention. Root Cause … Read more

How can I make a Docker container running on Windows (WSL2) accessible from a Raspberry Pi on the same network?

Summary This incident involved a Dockerized WASP node running inside WSL2 on Windows, which was unreachable from a Raspberry Pi on the same LAN, despite exposed ports. The root cause was not Docker itself but the WSL2 networking model, which isolates Linux containers behind a NAT interface that is not directly reachable from the LAN. … Read more

Wrapping IOBluetooth/CoreBluetooth with JNA/FFM

Summary Wrapping macOS Bluetooth functionality using JNA/FFM for Java involves bridging Objective-C classes and methods. The challenge lies in mapping Objective-C constructs like IOBluetoothDeviceInquiry and initWithDelegate to JNA interfaces. Key takeaway: Direct JNA interfaces for Objective-C classes require understanding low-level Objective-C runtime methods like objc_msgSend and NSClassFromString. Root Cause Objective-C and Java mismatch: Objective-C uses … Read more

How does `reverseLazy` defined as `for (value of iter) { yield* reverseLazy(iter); yield value; }` manage to reverse an iterable?

Summary The generator appears to “reverse” an iterable, but the behavior is actually an artifact of iterator exhaustion, recursive delegation, and JavaScript’s iteration semantics. The function does not truly reverse anything; instead, it repeatedly drains the same iterator until only the last value remains available, producing an output that looks reversed. Root Cause The core … Read more

How to keep AWS accounts tidy?

Summary Managing multiple AWS accounts across teams often leads to resource sprawl, including orphaned volumes, unused Elastic IPs, and forgotten infrastructure. Manual audits are reactive and inefficient, and third-party governance tools often involve billing intermediaries or percentage-based models, which we aim to avoid. This post explores best practices for automated AWS resource hygiene and cost … Read more

How to send a stomp error frame from a channel iterceptor in case of invalid subscribe requests (Spring WebSocket)

Summary Issue: Unable to send a STOMP ERROR frame from a ChannelInterceptor in Spring WebSocket when invalid SUBSCRIBE requests are detected. Root cause: Misunderstanding of Spring WebSocket message flow and improper use of ChannelInterceptor for sending ERROR frames. Impact: Clients do not receive error notifications, leading to confusion and potential security risks. Root Cause Incorrect … Read more