Make Playwright MS Edge screenshots stable and platform independent

Summary To achieve stable and platform-independent screenshots with Playwright MS Edge, it’s crucial to understand the factors affecting font rendering. Font rendering variations can lead to differences in screenshots between runs on the same machine and between different machines. Root Cause The root cause of the issue is attributed to: Font rendering differences due to … Read more

“Aggregate functions are not allowed in recursive common table expression” – but actually, they are?

Summary Recursive Common见到了 Table Expressions (CTEs) in SQL Server prohibit aggregate functions (MAX, SUM), TOP, or GROUP BY in the recursive term (the part referencing the CTE). However, a workaround using UNION ALL with an empty set (e.g., WHERE 1=0) unexpectedly bypasses this restriction. This post explores why the restriction exists, why the work parfoisaround … Read more

Android Java + Lombok + Kotlin

Summary A Java class using Lombok’s @Data annotation was converted to Kotlin, causing compilation errors because Kotlin code couldn’t access Lombok-generated getters/setters. Adding kapt for Lombok alone was insufficient due to build-process conflicts between Java/Kotlin annotation processing. Root Cause The error occurs due to toolchain misconfiguration: Lombok generates Java bytecode (getters/setters) during Java compilation. Kotlin … Read more

Can’t download any Visual Studio extensions (on different networks)

Summary The issue of being unable to download any Visual Studio extensions on different networks is a frustrating problem that can hinder development productivity. Key symptoms include the VS Installer showing loading icons eternally and the inability to update Visual Studio even after unchecking extensions. The Install button remains unavailable, and attempting to download the … Read more

App Review Stuck in ‘Waiting for Review’ When Integrating Google SignIn and IronSource SDK Together, but Works Fine Individually

Summary The issue at hand involves an iOS app that integrates GoogleSignIn and IronSourceSDK for login and in-app advertisements, respectively. When submitted for review with both integrations, the review process becomes stuck at “Waiting for Review”. However, when each integration is submitted individually, the review process completes without issues. Root Cause The root cause of … Read more

stream().map and ReferencePipeline.java

Stream Internals Deep Dive: Unraveling stream().map and ReferencePipeline.java Summary A developer encountered opacity in Java’s Stream API internals, specifically regarding the execution path of stream().map(). Despite consulting multiple resources (AI, books, courses), they found superficial explanations lacking insight into core classes like ReferencePipeline, Sink, and Spliterator. This highlights crucial gaps in mainstream Java education regarding … Read more

Yup schema validation of elements in array

Summary The problem revolves around validating arrays with varying validation rules for each element using Yup in a React project with React Final Form and Final Form Arrays. The challenge is to make some elements in the array required while keeping others optional, which seems impossible with Yup’s built-in array validation. Root Cause The root … Read more

How can I generate ZATCA-compliant e-invoices in Flutter/Dart?

Summary Generating ZATCA-compliant e-invoices in Flutter/Dart is a complex task that involves XML generation, QR code creation, and digital signing. To achieve this, developers can utilize a combination of packages and libraries. The dart_xml package can be used for XML invoice generation, while the qr_code package can handle QR code creation. For digital signing, the … Read more