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

Can’t get access to PBIRS API “powerbiserver/reports/api/v2.0/reports”

Summary The issue manifests as a NullReferenceException in the authorization module when accessing the Power BI Report Server (PBIRS) API endpoint powerbiserver/reports/api/v2.0/reports (or specific CatalogItems) with a non-admin user. This results in an HTTP 500 Internal Server Error and an OData exception. The error disappears when the user is granted Full Admin rights to the … Read more

Strange stack trace from memory profile

Summary A developer observed a mysterious stack trace while profiling a large C++ service with AddressSanitizer (ASan). The trace showed massive memory consumption (259 MB) attributed solely to malloc called from operator new, with no visible user code in the call stack. This indicates that standard stack trace introspection is insufficient for allocations triggered by … Read more

Is it acceptable for Application Command Handlers to depend on Symfony framework interfaces in a CQRS / Hexagonal architecture?

Summary The question revolves around whether it’s acceptable for Application Command Handlers to depend directly on Symfony framework interfaces in a CQRS (Command Query Responsibility Segregation) and Hexagonal Architecture. Two approaches are presented: Option 1 (Pragmatic Symfony), where command handlers depend on Symfony interfaces, and Option 2 (Strict Hexagonal / Port + Adapter), which introduces … Read more

Does anybody know the exact storage limits or a workaround for running large datasets on Google Colab T4 instances?

Summary The issue at hand is the limited storage capacity of Google Colab T4 instances, which poses a significant challenge when working with large datasets like the NIH Chest X-ray 14 dataset. The dataset’s size (~42GB compressed) exceeds the available disk space on a standard T4 instance, causing storage issues during the extraction process. Root … Read more