Angular + .NET (Azure AD BFF): Handling 401 due to token expiry without losing unsaved form data (auto-save to DB only)

Summary This incident centers on 401 Unauthorized responses caused by Azure AD cookie expiration in an Angular + .NET BFF architecture. Because the frontend stores no tokens locally and the session cookie silently expires, long‑running form sessions lead to data loss when auto‑save or submit calls fail. The user is redirected before the backend can … Read more

How to convert the “\t” string to ‘\t’ character in c

Summary Converting the string “\\t” to the actual tab character (‘\t’) in C requires understanding escape sequence interpretation and string literal behavior. The issue arises because “\\t” is treated as a literal backslash followed by a t, not as a tab character. Root Cause Literal interpretation: The string “\\t” is stored as two characters: ‘\ … Read more

How to trigger eSIM installation on Android from Flutter using an activation code (similar to iOS universal link)

Summary The goal is to trigger eSIM installation on Android from a Flutter application using an activation code, similar to how iOS universal links work. Key requirements include opening the native Android eSIM installation flow, passing the activation code automatically, and avoiding native eSIM provisioning logic implementation inside the app. Root Cause The main challenge … Read more

Backend for Frontend (BFF) – Spring Boot vs Node JS

Summary The decision to use Spring Boot or Node.js for a Backend for Frontend (BFF) layer in a web application architecture involves weighing the pros and cons of each technology. Key considerations include security, performance, and development complexity. While Node.js is a popular choice for BFFs due to its fast development cycle and lightweight nature, … Read more

JP2 image metadata copying for cv2 treatment

Summary The problem at hand involves preserving metadata from JP2 images when processing them with OpenCV (cv2), which discards metadata by default. The goal is to find a suitable Python module that can extract and reattach metadata for further use in other software that relies on this metadata. Root Cause The root cause of this … Read more

Github branches overwritten. How to revert?

Summary The issue at hand is a critical loss of data in a GitHub repository due to a force push that overwritten all branches with a single file, effectively wiping out the previous code. The key challenge here is to recover the lost commits without local copies of the old commits. Root Cause The root … Read more

What is isDirty?

Summary The Laravel framework provides a convenient way to handle user profile updates and product management through its Eloquent ORM and route model binding features. However, understanding how these features work behind the scenes is crucial for effective development. This article aims to clarify the isDirty() method, email verification, and route model binding in Laravel. … Read more