Threat Modeling Tool corrupting .tb7 files, how to obtain prior version

Summary A critical bug in the latest Microsoft Threat Modeling Tool version causes corruption in .tb7 template files when adding new stencil attributes. This results in attribute lists being randomly duplicated across all stencils, rendering files unusable. Root Cause Binding defects in XML serialization logic: The tool incorrectly associates new attribute additions with existing stencils … Read more

Android NSD Service Discovery not working on first app start, but works after restarting the wifi

Summary Android NSD (Network Service Discovery) occasionally fails to detect Root Cause Uninitialized network support components prevent multicast packet reception on first app launch, leading to failed service discovery. Key factors: Multicast not enabled: The device fails to join the multicast group required for NSD on initial startup. Race condition: NSD initialization occurs before the … Read more

msck repair table sync partitions fails

Summary The MSCK REPAIR TABLE command is used to repair and sync partitions in Hive tables. However, in this case, the command spark.sql(“MSCK REPAIR TABLE table_name SYNC PARTITIONS”) fails with an InvalidObjectException when executed in a PySpark job, while it succeeds when run in Beeline. The key takeaway is that the issue lies in the … Read more

Reuse JS code between browser and server with dependency on pngjs

Summary The problem at hand is how to reuse JavaScript code between browser and server environments when there’s a dependency on pngjs, a library for working with PNG images. The goal is to move a new class, MyNewClass, into an existing module, MyExistingModule, in a way that allows the module to work seamlessly in both … Read more

Real-world Snowflake / dbt production scenarios?

Incident Report: Data Staleness Due to Undetected Incremental Model Failure in dbt-Snowflake Pipeline Summary Unreported failure in an incremental loading logic caused critical dashboards to display stale data for 72+ hours. Silent model execution without errors led to undetected data gaps in Snowflake. Root Cause A dbt incremental model failed to process new data due … Read more

How to make spark reuse python workers where we have done some costly init set up?

Apache Spark Worker Reuse Pitfall:ㄨ Optimizing Costly UDF Initialization Summary A PySpark deployment using Pandas UDFs with expensive initialization (e.g., ML model loading) failed to reuse Python worker processes, causing repeated costly setups. This occurred despite configuring spark.sql.execution.pyspark.udf.idleTimeoutSeconds solely – because Python worker factories forcibly terminate workers after a separate hard-coded 60-second timeout, even if … Read more

What does “[this]” mean when used with a function argument?

Summary A developer encountered confusion regarding the lambda capture [this] in a GoogleTest/GMock example. The syntax is a lambda capture in C++ that allows the lambda to access member variables/functions of the current object. This misunderstanding could lead to incorrect mocking logic, unsafe memory access, or test flakiness if misapplied. Root Cause Lambda capture semantics … Read more

Why does console.log(d) throw ReferenceError while window.d and this.d are undefined?

Summary The issue lies in understanding the execution context and how variable declarations are handled in JavaScript. When console.log(d) throws a ReferenceError, it’s because d is not defined in the current scope, despite window.d and this.d being undefined. This behavior seems counterintuitive, especially when considering the global object and the variable initialization process. Root Cause … Read more

IntelliJ – After “Show history” on a specific git repo, why did the git branche panel display the list of branch of ALL repo?

IntelliJ – After “Show history” on a specific Git repo, why did the Git branch panel display branches from ALL repositories? ## Summary A regression occurred in IntelliJ IDEA 2025.1 Community Edition where performing “Show History” on a module-specific Git repository incorrectly displays branches from **all repositories** in the workspace. This breaks the expected context-specific … Read more