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 9, 2026

Kubernetes

Kubernetes: Fix a Pod’s Readiness Probe Passing While the Application Inside It Is Still Warming Up Because the Probe Only Checks That the Port Is Open

- 09.11.26 - ErcanOPAK comment on Kubernetes: Fix a Pod’s Readiness Probe Passing While the Application Inside It Is Still Warming Up Because the Probe Only Checks That the Port Is Open

☸️ Fix a Pod’s Readiness Probe Passing While the Application Inside It Is Still Warming Up Because the Probe Only Checks That the Port Is Open A readiness probe decides whether a Pod should receive traffic from a Service, and a probe configured as a plain tcpSocket check against the container’s port only verifies that […]

Read More
SQL

SQL Server: Fix NOLOCK Returning the Same Row Twice in One Query Because an Allocation-Order Scan Can Revisit a Page That a Concurrent Update Just Relocated

- 09.11.26 - ErcanOPAK comment on SQL Server: Fix NOLOCK Returning the Same Row Twice in One Query Because an Allocation-Order Scan Can Revisit a Page That a Concurrent Update Just Relocated

πŸ—„οΈ Fix NOLOCK Returning the Same Row Twice in One Query Because an Allocation-Order Scan Can Revisit a Page That a Concurrent Update Just Relocated The NOLOCK hint, or READ UNCOMMITTED isolation, tells SQL Server to read data pages without taking or honoring locks, which is usually understood as β€œmight see uncommitted data” or β€œmight […]

Read More
Git

Git: Fix a Rebase Silently Dropping a Commit Because git rebase’s Patch-Id Matching Treated It as a Duplicate of a Commit Already Upstream

- 09.11.26 - ErcanOPAK comment on Git: Fix a Rebase Silently Dropping a Commit Because git rebase’s Patch-Id Matching Treated It as a Duplicate of a Commit Already Upstream

πŸ”€ Fix a Rebase Silently Dropping a Commit Because git rebase’s Patch-Id Matching Treated It as a Duplicate of a Commit Already Upstream git rebase β€” particularly with fork-point detection β€” uses a patch-id, a hash computed from a commit’s diff content while ignoring its message and exact tree state, to detect commits already applied […]

Read More
Git

Git: Fix git bisect Blaming the Wrong Commit for a Regression That Actually Shipped in a Dependency Pinned by an Unrelated Commit In Between

- 09.11.26 - ErcanOPAK comment on Git: Fix git bisect Blaming the Wrong Commit for a Regression That Actually Shipped in a Dependency Pinned by an Unrelated Commit In Between

πŸ”€ Fix git bisect Blaming the Wrong Commit for a Regression That Actually Shipped in a Dependency Pinned by an Unrelated Commit In Between git bisect’s entire algorithm assumes whatever your good/bad check tests is a pure function of that commit’s own tree contents. If the actual regression lives in a third-party dependency β€” a […]

Read More
Windows

Windows 11: Fix a Mapped Network Drive Disappearing From File Explorer After Every Reboot Because Windows Restores Drive Mappings Before the Network Stack Finishes Initializing

- 09.11.26 - ErcanOPAK comment on Windows 11: Fix a Mapped Network Drive Disappearing From File Explorer After Every Reboot Because Windows Restores Drive Mappings Before the Network Stack Finishes Initializing

πŸͺŸ Fix a Mapped Network Drive Disappearing From File Explorer After Every Reboot Because Windows Restores Drive Mappings Before the Network Stack Finishes Initializing Windows restores drive mappings saved with β€œReconnect at sign-in” during the sign-in and startup sequence, but that restoration step can run before the network stack β€” DHCP lease renewal, domain controller […]

Read More
Photoshop

Photoshop: Fix a Layer Comp Restoring the Wrong Visibility State After a Later Layer Reorder Because Comps Record Visibility and Position, Not Stacking Order

- 09.11.26 - ErcanOPAK comment on Photoshop: Fix a Layer Comp Restoring the Wrong Visibility State After a Later Layer Reorder Because Comps Record Visibility and Position, Not Stacking Order

πŸ–ŒοΈ Fix a Layer Comp Restoring the Wrong Visibility State After a Later Layer Reorder Because Comps Record Visibility and Position, Not Stacking Order A Layer Comp snapshots a document’s layer visibility, position and layer styles so you can flip between saved states of the same file β€” but a comp never records the order […]

Read More
SQL

SQL Server: Fix the Optimizer Choosing a Table Scan Over an Existing Index Because the Column’s Low Cardinality Makes the Index Look Unhelpful

- 09.11.26 - ErcanOPAK comment on SQL Server: Fix the Optimizer Choosing a Table Scan Over an Existing Index Because the Column’s Low Cardinality Makes the Index Look Unhelpful

πŸ—„οΈ Fix the Optimizer Choosing a Table Scan Over an Existing Index Because the Column’s Low Cardinality Makes the Index Look Unhelpful SQL Server’s query optimizer estimates, for every candidate index, how many rows a seek through it would actually touch for the predicate in question, using that column’s statistics β€” not just whether an […]

Read More
AI

The AI Prompt That Converts an OpenAPI Spec Into Ready-to-Paste Example Requests for Every Endpoint It Describes

- 09.11.26 - ErcanOPAK comment on The AI Prompt That Converts an OpenAPI Spec Into Ready-to-Paste Example Requests for Every Endpoint It Describes

πŸ€– The AI Prompt That Converts an OpenAPI Spec Into Ready-to-Paste Example Requests for Every Endpoint It Describes Paste an OpenAPI or Swagger document β€” JSON or YAML β€” along with its full components/schemas section, and ask the AI to generate one ready-to-run example request per path-and-operation combination, filled in with realistic values actually pulled […]

Read More
Ajax

Ajax: Fix a fetch() Call Never Rejecting on a 404 or 500 Response Because fetch Only Rejects on an Actual Network Failure, Not an HTTP Error Status

- 09.11.26 - ErcanOPAK comment on Ajax: Fix a fetch() Call Never Rejecting on a 404 or 500 Response Because fetch Only Rejects on an Actual Network Failure, Not an HTTP Error Status

πŸ”„ Fix a fetch() Call Never Rejecting on a 404 or 500 Response Because fetch Only Rejects on an Actual Network Failure, Not an HTTP Error Status fetch()’s returned promise only rejects for an actual network-level failure β€” the request couldn’t be sent, DNS failed, CORS blocked it, the connection was aborted β€” and it […]

Read More
C#

C#: Fix a partial Method Silently Doing Nothing Because No Other File Supplies Its Body, and the Compiler Quietly Drops an Implementation-Free Partial Method Instead of Raising an Error

- 09.11.26 - ErcanOPAK comment on C#: Fix a partial Method Silently Doing Nothing Because No Other File Supplies Its Body, and the Compiler Quietly Drops an Implementation-Free Partial Method Instead of Raising an Error

πŸ”§ Fix a partial Method Silently Doing Nothing Because No Other File Supplies Its Body, and the Compiler Quietly Drops an Implementation-Free Partial Method Instead of Raising an Error A partial method declared in the older, implicitly-private void-returning form is explicitly allowed by the C# language to have no implementation anywhere else in the partial […]

Read More
C#

C#: Fix a record Type’s Generated Equals() Returning False for Two Instances With Identical Values Because One Property Is a Collection Compared by Reference

- 09.11.26 - ErcanOPAK comment on C#: Fix a record Type’s Generated Equals() Returning False for Two Instances With Identical Values Because One Property Is a Collection Compared by Reference

πŸ”§ Fix a record Type’s Generated Equals() Returning False for Two Instances With Identical Values Because One Property Is a Collection Compared by Reference A record type’s compiler-generated Equals() does structural, value-based comparison for its own declared properties β€” exactly the headline feature records are built around β€” but that structural comparison is only as […]

Read More
Asp.Net Core

ASP.NET Core: Fix an IValidateOptions Implementation Never Running on Startup Because Options Validation Only Triggers the First Time Something Actually Resolves IOptions

- 09.11.26 - ErcanOPAK comment on ASP.NET Core: Fix an IValidateOptions Implementation Never Running on Startup Because Options Validation Only Triggers the First Time Something Actually Resolves IOptions

βš™οΈ Fix an IValidateOptions Implementation Never Running on Startup Because Options Validation Only Triggers the First Time Something Actually Resolves IOptions Registering a class that implements IValidateOptions<T> doesn’t make ASP.NET Core eagerly check that options object at startup by default β€” options validation is lazy, wired to run the first time something actually resolves IOptions<T> […]

Read More
C#

C#: Fix an IAsyncEnumerable Enumerating Entirely Synchronously Because the Iterator Method Never Awaits Before Its First yield return

- 09.11.26 - ErcanOPAK comment on C#: Fix an IAsyncEnumerable Enumerating Entirely Synchronously Because the Iterator Method Never Awaits Before Its First yield return

πŸ”§ Fix an IAsyncEnumerable Enumerating Entirely Synchronously Because the Iterator Method Never Awaits Before Its First yield return An async iterator method returning IAsyncEnumerable<T> with yield return only actually becomes asynchronous at the points where it awaits something β€” the compiler-generated state machine behaves exactly like a synchronous iterator up until its first genuine await. […]

Read More
Asp.Net Core

ASP.NET Core: Fix a Custom ProblemDetails Field Disappearing From Every Error Response Because the Global Exception Handler Builds a Fresh ProblemDetails Object Instead of Extending the One a Filter Already Produced

- 09.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a Custom ProblemDetails Field Disappearing From Every Error Response Because the Global Exception Handler Builds a Fresh ProblemDetails Object Instead of Extending the One a Filter Already Produced

βš™οΈ Fix a Custom ProblemDetails Field Disappearing From Every Error Response Because the Global Exception Handler Builds a Fresh ProblemDetails Object Instead of Extending the One a Filter Already Produced ASP.NET Core’s exception handling middleware and any per-action exception filter that also produces a ProblemDetails response are two separate mechanisms that don’t automatically coordinate. If […]

Read More
Windows

Windows 11: Fix WSL2’s Clock Drifting Several Minutes Behind Windows After the Host Resumes From Sleep Because the Linux VM’s Clock Doesn’t Resync Automatically on Wake

- 09.11.26 - ErcanOPAK comment on Windows 11: Fix WSL2’s Clock Drifting Several Minutes Behind Windows After the Host Resumes From Sleep Because the Linux VM’s Clock Doesn’t Resync Automatically on Wake

πŸͺŸ Fix WSL2’s Clock Drifting Several Minutes Behind Windows After the Host Resumes From Sleep Because the Linux VM’s Clock Doesn’t Resync Automatically on Wake WSL2 runs inside a lightweight Hyper-V-based virtual machine with its own independent clock. While the Windows host sleeps, that clock effectively pauses from the VM’s point of view, and unlike […]

Read More
HTML

HTML5: Fix a label Wrapping a Custom Web Component’s Input Failing to Toggle It on Click Because Implicit Label Association Only Works With Native Form Elements

- 09.11.26 - ErcanOPAK comment on HTML5: Fix a label Wrapping a Custom Web Component’s Input Failing to Toggle It on Click Because Implicit Label Association Only Works With Native Form Elements

🧩 Fix a label Wrapping a Custom Web Component’s Input Failing to Toggle It on Click Because Implicit Label Association Only Works With Native Form Elements Clicking a native form control’s <label> works because browsers implement an explicit behavior: activating the label forwards the click to whichever form control it wraps or references via for/id, […]

Read More
Docker

Docker: Fix a Container’s Health Check Reporting Healthy Right Up Until an OOM Kill Because the Health Check Process Is Exempt From the Container’s Memory Limit

- 09.11.26 - ErcanOPAK comment on Docker: Fix a Container’s Health Check Reporting Healthy Right Up Until an OOM Kill Because the Health Check Process Is Exempt From the Container’s Memory Limit

🐳 Fix a Container’s Health Check Reporting Healthy Right Up Until an OOM Kill Because the Health Check Process Is Exempt From the Container’s Memory Limit A Docker HEALTHCHECK runs as a brief, separately exec’d process inside the container’s namespaces, and because it’s usually a tiny, fast command β€” a curl against a local endpoint […]

Read More
Wordpress

WordPress: Fix a Custom Post Type’s Entries Disappearing From the Site After a Theme Switch Because the New Theme’s functions.php Never Re-Registers That Post Type

- 09.11.26 - ErcanOPAK comment on WordPress: Fix a Custom Post Type’s Entries Disappearing From the Site After a Theme Switch Because the New Theme’s functions.php Never Re-Registers That Post Type

πŸ“ Fix a Custom Post Type’s Entries Disappearing From the Site After a Theme Switch Because the New Theme’s functions.php Never Re-Registers That Post Type A custom post type registered with register_post_type() inside a theme’s functions.php only exists for as long as that call actually runs β€” WordPress doesn’t persist a post type’s registration anywhere; […]

Read More
CSS

CSS: Fix a background-image url() Built From a Custom Property Never Loading Because CSS Has No Way to Concatenate a var() Value Into Part of a url() String

- 09.11.26 - ErcanOPAK comment on CSS: Fix a background-image url() Built From a Custom Property Never Loading Because CSS Has No Way to Concatenate a var() Value Into Part of a url() String

🎨 Fix a background-image url() Built From a Custom Property Never Loading Because CSS Has No Way to Concatenate a var() Value Into Part of a url() String A CSS custom property can substitute an entire property value β€” including the whole url(…) function, assigned once to –icon and then referenced with background-image: var(–icon) β€” […]

Read More
AI

The AI Prompt That Turns a Parking Ticket’s Fine-Print Violation Code Into a Plain Answer for Whether It’s Worth Contesting

- 09.11.26 - ErcanOPAK comment on The AI Prompt That Turns a Parking Ticket’s Fine-Print Violation Code Into a Plain Answer for Whether It’s Worth Contesting

πŸ€– The AI Prompt That Turns a Parking Ticket’s Fine-Print Violation Code Into a Plain Answer for Whether It’s Worth Contesting Transcribe the ticket’s violation code, any statute number printed on it, and a plain description of what the sign, meter, or curb marking actually said at the time β€” then ask the AI to […]

Read More
Visual Studio

Visual Studio: Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link

- 09.11.26 - ErcanOPAK comment on Visual Studio: Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link

πŸ› οΈ Fix the Debugger’s “Just My Code” Silently Skipping a Breakpoint Set Inside a NuGet Package’s Source Because the Package Ships No Matching Source Link The “Just My Code” debugging feature filters out stack frames and breakpoints in anything Visual Studio doesn’t consider yours β€” specifically, code with no matching debug symbols it can resolve […]

Read More
AI

The AI Prompt That Turns a Garbled Stack Trace From a Minified Production Bundle Into Its Original Source Location

- 09.11.26 - ErcanOPAK comment on The AI Prompt That Turns a Garbled Stack Trace From a Minified Production Bundle Into Its Original Source Location

πŸ€– The AI Prompt That Turns a Garbled Stack Trace From a Minified Production Bundle Into Its Original Source Location Paste a minified production JavaScript stack trace alongside its matching source map JSON, and ask the AI to map each frame back to the original file, function name, and line β€” explicitly treating the source […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite Serving the Main Site’s Content Because a Shared Object Cache Key Collided Across Blog IDs

- 09.11.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite Serving the Main Site’s Content Because a Shared Object Cache Key Collided Across Blog IDs

πŸ“ Fix a Multisite Subsite Serving the Main Site’s Content Because a Shared Object Cache Key Collided Across Blog IDs A WordPress Multisite network shares one persistent object cache backend β€” Redis or Memcached, typically β€” across every subsite, and WordPress is built to prefix every cache key it writes with the current blog’s ID […]

Read More
JavaScript

JavaScript: Fix a Map Used as a Cache Growing Forever Because Object Keys Inserted Into It Are Compared by Reference, So Two Structurally Identical Keys Never Collide

- 09.11.26 - ErcanOPAK comment on JavaScript: Fix a Map Used as a Cache Growing Forever Because Object Keys Inserted Into It Are Compared by Reference, So Two Structurally Identical Keys Never Collide

⚑ Fix a Map Used as a Cache Growing Forever Because Object Keys Inserted Into It Are Compared by Reference, So Two Structurally Identical Keys Never Collide A Map lets you use objects as keys, unlike a plain object which coerces every key to a string, which looks like exactly what you want for caching […]

Read More
Photoshop

Photoshop: Fix the History Brush Painting Back the Wrong Snapshot After Switching Image Mode From RGB to CMYK Because the Mode Change Resets Which History State the Brush Points To

- 09.11.26 - ErcanOPAK comment on Photoshop: Fix the History Brush Painting Back the Wrong Snapshot After Switching Image Mode From RGB to CMYK Because the Mode Change Resets Which History State the Brush Points To

πŸ–ŒοΈ Fix the History Brush Painting Back the Wrong Snapshot After Switching Image Mode From RGB to CMYK Because the Mode Change Resets Which History State the Brush Points To The History Brush paints pixel data from a selected row in the History panel back onto the current canvas, referencing that state’s data as 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 (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)
  • 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 @ (607)
  • Average of all values in a column that are not zero in SQL (569)
  • 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 (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)

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