PyTorch: trying to create a joint dataset with different transforms results in both datasets having same transform

Summary The core issue stems from a subtle naming conflict and shared mutable state in the user’s PyTorch data pipeline. Specifically, the variable names train_set and val_set are first assigned to the unmasked dataset subsets. However, later in the script, the variables train_set and val_set are accidentally reused when creating the masked dataset subsets. This … Read more

How to protect Raspberry Pi SD card using OverlayFS

Summary The goal is to protect the Raspberry Pi SD card from wear and tear by utilizing OverlayFS, a Linux feature that allows for a read-only root filesystem and a writable overlay. This is particularly useful when setting up a self-hosted Azure DevOps agent on a Raspberry Pi, as it involves repetitive tasks and configurations … Read more

Creating ResourceDictionary’s with custom/sorted items?

Postmortem: Unexpected App Crash Due to Misusing ResourceDictionary for Custom Collections Summary During recent app deployment, a UI page crashed on launch due to unhandled exceptions stemming from misuse of .NET MAUI‘s ResourceDictionary. Investigation revealed attempts to store custom class instances rather than supported resource types. Root Cause The crash occurred because: Developers attempted to … Read more

python function signature reuse with variations

Summary The problem at hand involves reusing a lengthy function signature in multiple functions with slight variations in internal code. The goal is to use first-class functions to reuse the signature and perform conditional branching based on the called function’s name. Root Cause The root cause of this issue is the inability to directly access … Read more

How to become Machine Learning Engineer

Summary To become a Machine Learning Engineer, one must go beyond just learning basic ML concepts, transformers, and LLMs. Building an end-to-end project requires a comprehensive understanding of the entire Machine Learning pipeline, including data preprocessing, model deployment, and system integration. This article aims to guide you through the process of building an end-to-end project … Read more

Web components – defer page rendering until after customElements.define() has been called to avoid FOUC

Summary The Flash of Unstyled Content (FOUC) problem occurs when using web components defined in ES6 modules, causing a brief flash of unstyled content before the custom element is rendered. This issue arises because modules are loaded with the defer attribute, which delays the execution of the script until the page has finished parsing. Root … Read more

Finding boxes in PDF file with Aspose.Pdf

Summary The problem at hand involves modifying an existing PDF file using Aspose.Pdf to find and manipulate non-input boxes within the document. The boxes are not part of the Forms collection, and each page’s Paragraphs collection is null, leaving the Contents collection as the potential source for accessing these boxes. Root Cause The root cause … Read more

What is this little square icon in the Jira description field?

Summary During routine usage of Jira’s description editor, an undocumented square UI icon was observed, presenting unexplained functionality. The mystery element showed visual state changes (black ↔︎ red lines) but provided no user-facing explanation, leading to confusion about its purpose and potential workflow implications. Root Cause Obscure, undocumented feature: The icon represents Jira’s experimental “Track … Read more

ava Has Modernized—But Verbosity Still Holds It Back

Summary The Java ecosystem has undergone significant modernization, thanks to its six-month release cycle, transforming it into a more modern and capable platform. However, verbosity and boilerplate code remain major concerns for developers, particularly when compared to other programming languages. This issue is evident in entity modeling using Spring Data or Micronaut Data with JPA, … Read more