Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Day: November 6, 2026

Wordpress

WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta

- 06.11.26 - ErcanOPAK comment on WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta

πŸ“ WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta Multilingual plugins that work by duplicating each post into a parallel translation create a brand-new post row for every language, and WordPress’s featured image is stored as post meta pointing at a specific attachment […]

Read More
SQL

SQL Server: Fix an Always Encrypted Column Rejecting a Simple WHERE Equality Filter Because It Uses Randomized Instead of Deterministic Encryption

- 06.11.26 - ErcanOPAK comment on SQL Server: Fix an Always Encrypted Column Rejecting a Simple WHERE Equality Filter Because It Uses Randomized Instead of Deterministic Encryption

πŸ—„οΈ SQL Server: Fix an Always Encrypted Column Rejecting a Simple WHERE Equality Filter Because It Uses Randomized Instead of Deterministic Encryption Always Encrypted supports two encryption types per column: deterministic, which always produces the same ciphertext for the same plaintext value and therefore supports equality comparisons directly, and randomized, which produces different ciphertext every […]

Read More
Asp.Net Core

ASP.NET Core: Fix a Channel-Based Background Queue Processor Silently Stalling Forever Because an Unhandled Exception Inside the Reader Loop Ended the Task Without Restarting It

- 06.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a Channel-Based Background Queue Processor Silently Stalling Forever Because an Unhandled Exception Inside the Reader Loop Ended the Task Without Restarting It

βš™οΈ ASP.NET Core: Fix a Channel-Based Background Queue Processor Silently Stalling Forever Because an Unhandled Exception Inside the Reader Loop Ended the Task Without Restarting It A common pattern for a background work queue is a Channel paired with a BackgroundService whose run loop reads from the channel and processes each item as it arrives […]

Read More
Ajax

Ajax: Fix a Fetch Call Silently Reusing a Cached Response After a POST Because a Redirected GET Fallback Was Cacheable All Along

- 06.11.26 - ErcanOPAK comment on Ajax: Fix a Fetch Call Silently Reusing a Cached Response After a POST Because a Redirected GET Fallback Was Cacheable All Along

πŸ”„ Ajax: Fix a Fetch Call Silently Reusing a Cached Response After a POST Because a Redirected GET Fallback Was Cacheable All Along When a fetch POST request hits a server-side redirect, the browser automatically follows it by re-issuing the request as a GET against the new URL β€” and that GET, unlike the original […]

Read More
JavaScript

JavaScript: Fix Array.prototype.flat Not Flattening a Nested Array Returned From an Async Map Because the Outer Array Still Holds Unresolved Promises Instead of Arrays

- 06.11.26 - ErcanOPAK comment on JavaScript: Fix Array.prototype.flat Not Flattening a Nested Array Returned From an Async Map Because the Outer Array Still Holds Unresolved Promises Instead of Arrays

⚑ JavaScript: Fix Array.prototype.flat Not Flattening a Nested Array Returned From an Async Map Because the Outer Array Still Holds Unresolved Promises Instead of Arrays Array.prototype.map with an async callback doesn’t wait for each callback to resolve before moving to the next element β€” it immediately returns a Promise from every call, so the array […]

Read More
AI

The AI Prompt That Checks Your Feature Flags for a Stale One Still Gating Code a Previous Rollout Already Made Permanent

- 06.11.26 - ErcanOPAK comment on The AI Prompt That Checks Your Feature Flags for a Stale One Still Gating Code a Previous Rollout Already Made Permanent

πŸ€– The AI Prompt That Checks Your Feature Flags for a Stale One Still Gating Code a Previous Rollout Already Made Permanent A feature flag is meant to be temporary scaffolding β€” ramp a change out, confirm it’s healthy, then delete the flag and the old code path it used to gate. In practice the […]

Read More
Asp.Net Core

ASP.NET Core: Fix a FromForm Bound File Upload Coming Back Null Because the Request’s Content-Type Was application/json Instead of multipart/form-data

- 06.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a FromForm Bound File Upload Coming Back Null Because the Request’s Content-Type Was application/json Instead of multipart/form-data

βš™οΈ ASP.NET Core: Fix a FromForm Bound File Upload Coming Back Null Because the Request’s Content-Type Was application/json Instead of multipart/form-data FromForm model binding reads from the request’s form data collection, which the framework can only populate when the incoming request’s content type is multipart form data or URL-encoded form data. If a client sends […]

Read More
C#

C#: Fix an init-Only Property Still Being Changeable After Construction Because Reflection Can Reach the Mutable Backing Field Behind It

- 06.11.26 - ErcanOPAK comment on C#: Fix an init-Only Property Still Being Changeable After Construction Because Reflection Can Reach the Mutable Backing Field Behind It

πŸ”§ C#: Fix an init-Only Property Still Being Changeable After Construction Because Reflection Can Reach the Mutable Backing Field Behind It An init accessor is a compile-time guarantee, enforced by the C# compiler at every call site that tries to assign the property outside of object initialization β€” but it compiles down to an ordinary […]

Read More
AI

The AI Prompt That Reads a Year of Utility Bills and Flags Which Months Had an Unexplained Usage Spike Worth Calling the Provider About

- 06.11.26 - ErcanOPAK comment on The AI Prompt That Reads a Year of Utility Bills and Flags Which Months Had an Unexplained Usage Spike Worth Calling the Provider About

πŸ€– The AI Prompt That Reads a Year of Utility Bills and Flags Which Months Had an Unexplained Usage Spike Worth Calling the Provider About A single high utility bill is easy to dismiss as “a hot month” or “we had guests,” but a genuine problem β€” a leaking pipe, a failing appliance drawing constant […]

Read More
CSS

CSS: Fix a Sticky-Positioned Element Scrolling Away Anyway Because an Ancestor Sets overflow to Anything Other Than visible

- 06.11.26 - ErcanOPAK comment on CSS: Fix a Sticky-Positioned Element Scrolling Away Anyway Because an Ancestor Sets overflow to Anything Other Than visible

🎨 CSS: Fix a Sticky-Positioned Element Scrolling Away Anyway Because an Ancestor Sets overflow to Anything Other Than visible position: sticky sticks an element relative to its nearest scrolling ancestor, but which ancestor counts as scrolling is decided by the overflow property, not by which element the page visually scrolls inside. Any ancestor with overflow […]

Read More
Visual Studio

Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It

- 06.11.26 - ErcanOPAK comment on Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It

πŸ› οΈ Visual Studio: Fix the Test Explorer Showing a Parameterized Test’s Last Run Result for Every Data Row Until You Expand the Group and Rerun It Test Explorer groups a parameterized test’s individual data rows under one collapsed node, and that collapsed node’s icon is a rollup Test Explorer computed and cached the last time […]

Read More
Photoshop

Photoshop: Fix Placed Smart Object Text Looking Blurry at 100% Zoom Because the Embedded Vector Layer Was Rasterized at a Lower Resolution Than the Host Document

- 06.11.26 - ErcanOPAK comment on Photoshop: Fix Placed Smart Object Text Looking Blurry at 100% Zoom Because the Embedded Vector Layer Was Rasterized at a Lower Resolution Than the Host Document

πŸ–ŒοΈ Photoshop: Fix Placed Smart Object Text Looking Blurry at 100% Zoom Because the Embedded Vector Layer Was Rasterized at a Lower Resolution Than the Host Document When a vector file β€” an Illustrator document, or a PDF β€” is placed as a Smart Object, Photoshop rasterizes a preview of it at import time for […]

Read More
Windows

Windows 11: Fix the Taskbar’s Battery Icon Showing the Wrong Percentage Because a Connected Bluetooth Accessory’s Battery Is Being Reported Instead of the Laptop’s

- 06.11.26 - ErcanOPAK comment on Windows 11: Fix the Taskbar’s Battery Icon Showing the Wrong Percentage Because a Connected Bluetooth Accessory’s Battery Is Being Reported Instead of the Laptop’s

πŸͺŸ Windows 11: Fix the Taskbar’s Battery Icon Showing the Wrong Percentage Because a Connected Bluetooth Accessory’s Battery Is Being Reported Instead of the Laptop’s Windows 11’s taskbar battery flyout can show multiple battery readings at once β€” the laptop’s internal battery plus any connected Bluetooth device that reports its own charge level β€” and […]

Read More
C#

C#: Fix a Static Constructor’s Exception Permanently Locking the Type Because .NET Caches It Forever as a TypeInitializationException

- 06.11.26 - ErcanOPAK comment on C#: Fix a Static Constructor’s Exception Permanently Locking the Type Because .NET Caches It Forever as a TypeInitializationException

πŸ”§ C#: Fix a Static Constructor’s Exception Permanently Locking the Type Because .NET Caches It Forever as a TypeInitializationException The CLR guarantees a type’s static constructor runs at most once per process, and if that one run throws, the runtime doesn’t give the type a second chance β€” it wraps the original exception in a […]

Read More
Wordpress

WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight

- 06.11.26 - ErcanOPAK comment on WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight

πŸ“ WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight WordPress doesn’t run a real background scheduler by default β€” wp-cron.php is triggered opportunistically on an incoming page request, checking whether any scheduled task, including a post’s publish-at-this-time hook, is now due […]

Read More
C#

C#: Fix a Lazy Value’s Cached Result Getting Corrupted Because LazyThreadSafetyMode.None Let Two Threads Race Into the Factory at Once

- 06.11.26 - ErcanOPAK comment on C#: Fix a Lazy Value’s Cached Result Getting Corrupted Because LazyThreadSafetyMode.None Let Two Threads Race Into the Factory at Once

πŸ”§ C#: Fix a Lazy Value’s Cached Result Getting Corrupted Because LazyThreadSafetyMode.None Let Two Threads Race Into the Factory at Once LazyThreadSafetyMode.None exists specifically to skip all locking overhead, on the explicit assumption that the Lazy instance will only ever be accessed from a single thread β€” an easy detail to overlook when Lazy’s default […]

Read More
Windows

Windows 11: Fix a Pinned Quick Access Network Folder Going Gray and Unreachable Every Time the VPN Connection Drops

- 06.11.26 - ErcanOPAK comment on Windows 11: Fix a Pinned Quick Access Network Folder Going Gray and Unreachable Every Time the VPN Connection Drops

πŸͺŸ Windows 11: Fix a Pinned Quick Access Network Folder Going Gray and Unreachable Every Time the VPN Connection Drops A network folder pinned to Quick Access is really just a shortcut to a network path, and File Explorer keeps a live connectivity check against that path to decide whether to show it as available. […]

Read More
Git

Git: Fix git cherry-pick Applying a Commit Cleanly but Silently Dropping It as Empty Because the Patch Produced No Changes on Top of the Target Branch

- 06.11.26 - ErcanOPAK comment on Git: Fix git cherry-pick Applying a Commit Cleanly but Silently Dropping It as Empty Because the Patch Produced No Changes on Top of the Target Branch

πŸ”€ Git: Fix git cherry-pick Applying a Commit Cleanly but Silently Dropping It as Empty Because the Patch Produced No Changes on Top of the Target Branch git cherry-pick computes the diff a commit introduced relative to its own parent, then tries to apply that same diff on top of your current branch β€” and […]

Read More
HTML

HTML5: Fix a details Element’s Content Flashing Open for One Frame on Page Load Because a Script Toggles the open Attribute Before Hydration Finishes

- 06.11.26 - ErcanOPAK comment on HTML5: Fix a details Element’s Content Flashing Open for One Frame on Page Load Because a Script Toggles the open Attribute Before Hydration Finishes

🧩 HTML5: Fix a details Element’s Content Flashing Open for One Frame on Page Load Because a Script Toggles the open Attribute Before Hydration Finishes A details element renders closed by default unless the open attribute is present in the markup, and some frameworks set that attribute via JavaScript shortly after the initial HTML paints. […]

Read More
Photoshop

Photoshop: Fix a Gradient Map Adjustment Layer Looking Posterized in the Shadows Because the Document Is Still 8-Bit Instead of 16-Bit Per Channel

- 06.11.26 - ErcanOPAK comment on Photoshop: Fix a Gradient Map Adjustment Layer Looking Posterized in the Shadows Because the Document Is Still 8-Bit Instead of 16-Bit Per Channel

πŸ–ŒοΈ Photoshop: Fix a Gradient Map Adjustment Layer Looking Posterized in the Shadows Because the Document Is Still 8-Bit Instead of 16-Bit Per Channel A Gradient Map remaps every pixel’s luminance value to a position along a gradient, and in an 8-bit document that remapping only has 256 discrete luminance steps to draw from. When […]

Read More
Docker

Docker: Fix a Multi-Stage Build Silently Reusing a Cached Layer From an Older Base Image Because the Tag Was Updated Without Changing Its Name

- 06.11.26 - ErcanOPAK comment on Docker: Fix a Multi-Stage Build Silently Reusing a Cached Layer From an Older Base Image Because the Tag Was Updated Without Changing Its Name

🐳 Docker: Fix a Multi-Stage Build Silently Reusing a Cached Layer From an Older Base Image Because the Tag Was Updated Without Changing Its Name Docker’s build cache keys a FROM instruction’s layer to the base image’s digest at the moment it was last pulled locally, not to whatever the tag currently points to on […]

Read More
SQL

SQL Server: Fix a Query’s Actual Row Count Coming in Far Higher Than Estimated Because a Multi-Statement Table-Valued Function Always Reports the Same Flat Guess to the Optimizer

- 06.11.26 - ErcanOPAK comment on SQL Server: Fix a Query’s Actual Row Count Coming in Far Higher Than Estimated Because a Multi-Statement Table-Valued Function Always Reports the Same Flat Guess to the Optimizer

πŸ—„οΈ SQL Server: Fix a Query’s Actual Row Count Coming in Far Higher Than Estimated Because a Multi-Statement Table-Valued Function Always Reports the Same Flat Guess to the Optimizer A multi-statement table-valued function’s body is opaque to the query optimizer at compile time β€” unlike a view or an inline function, whose logic can be […]

Read More
Kubernetes

Kubernetes: Fix a Pod Stuck in Terminating for Minutes Because a preStop Hook Is Still Running Past the Default 30-Second Grace Period

- 06.11.26 - ErcanOPAK comment on Kubernetes: Fix a Pod Stuck in Terminating for Minutes Because a preStop Hook Is Still Running Past the Default 30-Second Grace Period

☸️ Kubernetes: Fix a Pod Stuck in Terminating for Minutes Because a preStop Hook Is Still Running Past the Default 30-Second Grace Period When a Pod is deleted, Kubernetes sends SIGTERM to each container and, if one is defined, runs its preStop lifecycle hook concurrently with that signal β€” but the hook isn’t given unlimited […]

Read More
Git

Git: Fix git stash pop Silently Leaving a Conflicted Stash Entry in Place Because an Automatic Merge Conflict Stopped It From Being Dropped

- 06.11.26 - ErcanOPAK comment on Git: Fix git stash pop Silently Leaving a Conflicted Stash Entry in Place Because an Automatic Merge Conflict Stopped It From Being Dropped

πŸ”€ Git: Fix git stash pop Silently Leaving a Conflicted Stash Entry in Place Because an Automatic Merge Conflict Stopped It From Being Dropped git stash pop is really two steps combined: apply the stashed changes, then drop the stash entry if the apply succeeded cleanly. When the apply step produces a merge conflict instead, […]

Read More
AI

The AI Prompt That Reviews Your Retry Logic for a Missing Idempotency Key So a Network Timeout Doesn’t Turn Into a Duplicate Charge

- 06.11.26 - ErcanOPAK comment on The AI Prompt That Reviews Your Retry Logic for a Missing Idempotency Key So a Network Timeout Doesn’t Turn Into a Duplicate Charge

πŸ€– The AI Prompt That Reviews Your Retry Logic for a Missing Idempotency Key So a Network Timeout Doesn’t Turn Into a Duplicate Charge A retry on a network timeout is only safe when the server can tell “this is the same request arriving again” apart from “this is a brand-new request” β€” and it […]

Read More
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (854)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (609)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (546)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (854)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com