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

AI

The AI Prompt That Takes a Flaky Test’s Last Ten CI Runs and Narrows Down Exactly Which Assertion Inside It Is Actually Nondeterministic

- 11.11.26 - ErcanOPAK comment on The AI Prompt That Takes a Flaky Test’s Last Ten CI Runs and Narrows Down Exactly Which Assertion Inside It Is Actually Nondeterministic

πŸ€– The AI Prompt That Takes a Flaky Test’s Last Ten CI Runs and Narrows Down Exactly Which Assertion Inside It Is Actually Nondeterministic A flaky test’s intermittent failures across ten CI runs usually look like noise, but the actual nondeterminism is almost always confined to one specific assertion, not the whole test — timing, […]

Read More
Windows

Windows 11: Fix File Explorer’s Search Box Returning Zero Results for Files You Know Exist Because the Indexer’s Database Got Marked Corrupt and Quietly Stopped Rebuilding

- 11.11.26 - ErcanOPAK comment on Windows 11: Fix File Explorer’s Search Box Returning Zero Results for Files You Know Exist Because the Indexer’s Database Got Marked Corrupt and Quietly Stopped Rebuilding

πŸͺŸ Windows 11: Fix File Explorer’s Search Box Returning Zero Results for Files You Know Exist Because the Indexer’s Database Got Marked Corrupt and Quietly Stopped Rebuilding Windows Search relies on the Windows Search indexer maintaining a database of file metadata and content so File Explorer’s search box can answer instantly instead of scanning the […]

Read More
HTML

HTML5: Fix a details Element’s Open or Closed State Resetting on Every Re-render Because Client-Side Code Replaced the Element Instead of Toggling Its open Attribute

- 11.11.26 - ErcanOPAK comment on HTML5: Fix a details Element’s Open or Closed State Resetting on Every Re-render Because Client-Side Code Replaced the Element Instead of Toggling Its open Attribute

🧩 HTML5: Fix a details Element’s Open or Closed State Resetting on Every Re-render Because Client-Side Code Replaced the Element Instead of Toggling Its open Attribute The native <details> element tracks its own open/closed state as a plain boolean open attribute on the DOM node itself, toggled automatically whenever the user clicks its <summary>. A […]

Read More
SQL

SQL Server: Fix a Column Default of GETDATE() Returning the Identical Timestamp for Every Row of a Bulk Insert Because the Function Evaluates Once Per Statement, Not Once Per Row

- 11.11.26 - ErcanOPAK comment on SQL Server: Fix a Column Default of GETDATE() Returning the Identical Timestamp for Every Row of a Bulk Insert Because the Function Evaluates Once Per Statement, Not Once Per Row

πŸ—„οΈ SQL Server: Fix a Column Default of GETDATE() Returning the Identical Timestamp for Every Row of a Bulk Insert Because the Function Evaluates Once Per Statement, Not Once Per Row GETDATE() is evaluated by SQL Server’s query processor once per statement execution, not once per row the statement happens to produce — this is […]

Read More
Ajax

Ajax: Fix a File Upload Progress Bar Jumping Straight to One Hundred Percent Then Freezing Because the Reported Progress Only Tracks Bytes Sent, Never the Server’s Own Processing Time

- 11.11.26 - ErcanOPAK comment on Ajax: Fix a File Upload Progress Bar Jumping Straight to One Hundred Percent Then Freezing Because the Reported Progress Only Tracks Bytes Sent, Never the Server’s Own Processing Time

πŸ”„ Ajax: Fix a File Upload Progress Bar Jumping Straight to One Hundred Percent Then Freezing Because the Reported Progress Only Tracks Bytes Sent, Never the Server’s Own Processing Time The XMLHttpRequest upload progress event reports how many bytes of the request body have been transmitted to the server’s TCP connection — it has no […]

Read More
Asp.Net Core

Asp.Net Core: Fix a Minimal API’s [FromBody] Parameter Deserializing With Every Property Null Because the Client Sends PascalCase Field Names While a Custom JsonNamingPolicy Expects camelCase

- 11.11.26 - ErcanOPAK comment on Asp.Net Core: Fix a Minimal API’s [FromBody] Parameter Deserializing With Every Property Null Because the Client Sends PascalCase Field Names While a Custom JsonNamingPolicy Expects camelCase

βš™οΈ Asp.Net Core: Fix a Minimal API’s [FromBody] Parameter Deserializing With Every Property Null Because the Client Sends PascalCase Field Names While a Custom JsonNamingPolicy Expects camelCase ASP.NET Core’s default Minimal API JSON configuration uses camelCase property matching unless something explicitly overrides it, but a project that configures its own JsonSerializerOptions to match a different […]

Read More
Git

Git: Fix git bisect Repeatedly Landing on a Commit That Builds and Tests Fine Because a Flaky Test Keeps Making Bisect Mark the Wrong Side as Good or Bad

- 11.11.26 - ErcanOPAK comment on Git: Fix git bisect Repeatedly Landing on a Commit That Builds and Tests Fine Because a Flaky Test Keeps Making Bisect Mark the Wrong Side as Good or Bad

πŸ”€ Git: Fix git bisect Repeatedly Landing on a Commit That Builds and Tests Fine Because a Flaky Test Keeps Making Bisect Mark the Wrong Side as Good or Bad git bisect automates a binary search over commit history by repeatedly checking out a midpoint commit and using your good/bad answer (or a script via […]

Read More
AI

The AI Prompt That Reads a Smoke Detector’s Model Number and Manual and Tells You Exactly When It’s Due for Replacement, Not Just Low on Battery

- 11.11.26 - ErcanOPAK comment on The AI Prompt That Reads a Smoke Detector’s Model Number and Manual and Tells You Exactly When It’s Due for Replacement, Not Just Low on Battery

πŸ€– The AI Prompt That Reads a Smoke Detector’s Model Number and Manual and Tells You Exactly When It’s Due for Replacement, Not Just Low on Battery A smoke detector’s low-battery chirp and its actual end-of-service-life are two completely different warnings, and most people only ever respond to the first one by swapping a battery […]

Read More
SQL

SQL Server: Fix TRY_CONVERT Returning NULL Instead of Throwing on a Clearly Invalid Value Because a Silent Conversion Failure Looks Identical Downstream to a Genuinely NULL Source Column

- 11.11.26 - ErcanOPAK comment on SQL Server: Fix TRY_CONVERT Returning NULL Instead of Throwing on a Clearly Invalid Value Because a Silent Conversion Failure Looks Identical Downstream to a Genuinely NULL Source Column

πŸ—„οΈ SQL Server: Fix TRY_CONVERT Returning NULL Instead of Throwing on a Clearly Invalid Value Because a Silent Conversion Failure Looks Identical Downstream to a Genuinely NULL Source Column TRY_CONVERT is deliberately designed to return NULL instead of raising a conversion error whenever the conversion would fail, which is genuinely useful when you expect some […]

Read More
CSS

CSS: Fix a grid-template-columns Track Set to 1fr Refusing to Shrink Below Its Content’s Intrinsic Width Because fr Units Resolve After the Browser Applies Each Track’s Content-Based Minimum, Not Instead of It

- 11.11.26 - ErcanOPAK comment on CSS: Fix a grid-template-columns Track Set to 1fr Refusing to Shrink Below Its Content’s Intrinsic Width Because fr Units Resolve After the Browser Applies Each Track’s Content-Based Minimum, Not Instead of It

🎨 CSS: Fix a grid-template-columns Track Set to 1fr Refusing to Shrink Below Its Content’s Intrinsic Width Because fr Units Resolve After the Browser Applies Each Track’s Content-Based Minimum, Not Instead of It An fr unit in grid-template-columns distributes available space proportionally among tracks, but that distribution happens only after the grid layout algorithm first […]

Read More
C#

C#: Fix a Local Function Failing to Compile Over a Span Parameter With a Cannot Use a Result of ref Return in This Context Error Because a Ref Struct Can Never Be Captured by Anything That Might Outlive Its Stack Frame

- 11.11.26 - ErcanOPAK comment on C#: Fix a Local Function Failing to Compile Over a Span Parameter With a Cannot Use a Result of ref Return in This Context Error Because a Ref Struct Can Never Be Captured by Anything That Might Outlive Its Stack Frame

πŸ”§ C#: Fix a Local Function Failing to Compile Over a Span Parameter With a Cannot Use a Result of ref Return in This Context Error Because a Ref Struct Can Never Be Captured by Anything That Might Outlive Its Stack Frame Span is a ref struct specifically so the compiler can guarantee it never […]

Read More
Wordpress

WordPress: Fix a Multisite Network’s Subsites All Showing the Same Uploaded Media Because the Switched Blog Context Was Never Restored After an Upload Hook Ran Against the Main Site

- 11.11.26 - ErcanOPAK comment on WordPress: Fix a Multisite Network’s Subsites All Showing the Same Uploaded Media Because the Switched Blog Context Was Never Restored After an Upload Hook Ran Against the Main Site

πŸ“ WordPress: Fix a Multisite Network’s Subsites All Showing the Same Uploaded Media Because the Switched Blog Context Was Never Restored After an Upload Hook Ran Against the Main Site WordPress Multisite shares the same PHP process and wpdb connection across every subsite in the network; switching which subsite is active for a block of […]

Read More
C#

C#: Fix IEquatable Being Implemented on a Type but Dictionary Keys Still Coming Out Duplicated Because GetHashCode Was Never Overridden to Agree With It

- 11.11.26 - ErcanOPAK comment on C#: Fix IEquatable Being Implemented on a Type but Dictionary Keys Still Coming Out Duplicated Because GetHashCode Was Never Overridden to Agree With It

πŸ”§ C#: Fix IEquatable Being Implemented on a Type but Dictionary Keys Still Coming Out Duplicated Because GetHashCode Was Never Overridden to Agree With It Implementing IEquatable on a type gives you a strongly-typed Equals method that a Dictionary or HashSet will use once it has already narrowed candidates down to a specific hash bucket, […]

Read More
Visual Studio

Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

- 11.11.26 - ErcanOPAK comment on Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build

πŸ› οΈ Visual Studio: Fix CodeLens Reference Counts Staying at Zero for an Entire Solution Because the Local CodeIndex Cache Under %LocalAppData% Never Finished Its Initial Build CodeLens relies on a background indexing service that builds and caches the solution’s full symbol-reference graph the first time a solution opens, storing that cache under the hidden .vs […]

Read More
Docker

Docker: Fix a Container Stuck in a Tight Restart Loop With Nothing Ever Printed in docker logs Because the Entrypoint Script Crashes Before Its Output Buffer Gets Flushed to Stdout

- 11.11.26 - ErcanOPAK comment on Docker: Fix a Container Stuck in a Tight Restart Loop With Nothing Ever Printed in docker logs Because the Entrypoint Script Crashes Before Its Output Buffer Gets Flushed to Stdout

🐳 Docker: Fix a Container Stuck in a Tight Restart Loop With Nothing Ever Printed in docker logs Because the Entrypoint Script Crashes Before Its Output Buffer Gets Flushed to Stdout Docker captures whatever a container’s PID 1 process writes to stdout and stderr, but a process that buffers its output — many scripting language […]

Read More
Photoshop

Photoshop: Fix Content-Aware Fill Producing an Obviously Repeating Tiled Pattern Because the Sampling Area You Left Selected Is Too Thin and Repetitive for the Algorithm to Draw From

- 11.11.26 - ErcanOPAK comment on Photoshop: Fix Content-Aware Fill Producing an Obviously Repeating Tiled Pattern Because the Sampling Area You Left Selected Is Too Thin and Repetitive for the Algorithm to Draw From

πŸ–ŒοΈ Photoshop: Fix Content-Aware Fill Producing an Obviously Repeating Tiled Pattern Because the Sampling Area You Left Selected Is Too Thin and Repetitive for the Algorithm to Draw From Content-Aware Fill builds replacement pixels by sampling texture, color and pattern from an area you designate around the selection you want filled, then stitching matching patches […]

Read More
Photoshop

Photoshop: Fix a Smart Object’s Layer Thumbnail Staying Outdated After the Linked File Changes Because Photoshop Caches the Preview Separately From the Linked Asset on Disk

- 11.11.26 - ErcanOPAK comment on Photoshop: Fix a Smart Object’s Layer Thumbnail Staying Outdated After the Linked File Changes Because Photoshop Caches the Preview Separately From the Linked Asset on Disk

πŸ–ŒοΈ Photoshop: Fix a Smart Object’s Layer Thumbnail Staying Outdated After the Linked File Changes Because Photoshop Caches the Preview Separately From the Linked Asset on Disk A Smart Object linked to an external file keeps two things in sync separately: the actual linked asset on disk, and a small rendered preview Photoshop stores in […]

Read More
C#

C#: Fix a Struct’s Property Mutation Silently Doing Nothing Because the Struct Was Copied Into a Temporary the Moment It Came Out of a LINQ Expression

- 11.11.26 - ErcanOPAK comment on C#: Fix a Struct’s Property Mutation Silently Doing Nothing Because the Struct Was Copied Into a Temporary the Moment It Came Out of a LINQ Expression

πŸ”§ C#: Fix a Struct’s Property Mutation Silently Doing Nothing Because the Struct Was Copied Into a Temporary the Moment It Came Out of a LINQ Expression A struct is a value type, so every time it’s read out of a collection by something that returns it by value — and LINQ’s Select, Where, and […]

Read More
Git

Git: Fix Every git push Failing With ‘shallow update not allowed’ After Cloning With –depth=1 Because the Remote Rejects Pushes Built on an Incomplete History by Default

- 11.11.26 - ErcanOPAK comment on Git: Fix Every git push Failing With ‘shallow update not allowed’ After Cloning With –depth=1 Because the Remote Rejects Pushes Built on an Incomplete History by Default

πŸ”€ Git: Fix Every git push Failing With ‘shallow update not allowed’ After Cloning With –depth=1 Because the Remote Rejects Pushes Built on an Incomplete History by Default A shallow clone created with –depth=1 deliberately omits almost all of the repository’s commit history, keeping only the most recent commit on each branch — it’s meant […]

Read More
Asp.Net Core

Asp.Net Core: Fix Output Caching Serving the Same Stale Page to Every Visitor Right After a Content Update Because No Cache Tag or Eviction Call Was Ever Wired Up to Invalidate It

- 11.11.26 - ErcanOPAK comment on Asp.Net Core: Fix Output Caching Serving the Same Stale Page to Every Visitor Right After a Content Update Because No Cache Tag or Eviction Call Was Ever Wired Up to Invalidate It

βš™οΈ Asp.Net Core: Fix Output Caching Serving the Same Stale Page to Every Visitor Right After a Content Update Because No Cache Tag or Eviction Call Was Ever Wired Up to Invalidate It The Output Caching middleware caches an endpoint’s entire rendered response keyed by its configured policy and serves that cached copy to every […]

Read More
JavaScript

JavaScript: Fix a Promise.allSettled Call Reporting Every Promise as Fulfilled Even Though One of the Underlying Fetches Actually Failed Because a catch Block Inside It Swallowed the Rejection and Returned an Ordinary Value

- 11.11.26 - ErcanOPAK comment on JavaScript: Fix a Promise.allSettled Call Reporting Every Promise as Fulfilled Even Though One of the Underlying Fetches Actually Failed Because a catch Block Inside It Swallowed the Rejection and Returned an Ordinary Value

⚑ JavaScript: Fix a Promise.allSettled Call Reporting Every Promise as Fulfilled Even Though One of the Underlying Fetches Actually Failed Because a catch Block Inside It Swallowed the Rejection and Returned an Ordinary Value Promise.allSettled resolves every entry strictly based on whether that specific promise settled by resolving or rejecting — it has no way […]

Read More
AI

The AI Prompt That Compares a Function’s Docstring Against What the Code Actually Does and Flags Every Place the Two Have Quietly Drifted Apart

- 11.11.26 - ErcanOPAK comment on The AI Prompt That Compares a Function’s Docstring Against What the Code Actually Does and Flags Every Place the Two Have Quietly Drifted Apart

πŸ€– The AI Prompt That Compares a Function’s Docstring Against What the Code Actually Does and Flags Every Place the Two Have Quietly Drifted Apart Docstrings and comments don’t get checked by any compiler or test runner, so they’re free to drift out of sync with the code they describe — a parameter gets renamed, […]

Read More
Wordpress

WordPress: Fix the WP REST API Returning a 403 for Every Authenticated Request From a Headless Frontend Because a Security Plugin Blocks Any Request Whose Referer Header Doesn’t Match the Site’s Own Domain

- 11.11.26 - ErcanOPAK comment on WordPress: Fix the WP REST API Returning a 403 for Every Authenticated Request From a Headless Frontend Because a Security Plugin Blocks Any Request Whose Referer Header Doesn’t Match the Site’s Own Domain

πŸ“ WordPress: Fix the WP REST API Returning a 403 for Every Authenticated Request From a Headless Frontend Because a Security Plugin Blocks Any Request Whose Referer Header Doesn’t Match the Site’s Own Domain Many WordPress security plugins add a firewall rule that rejects any request to wp-json whose Referer header doesn’t match the site’s […]

Read More
Kubernetes

Kubernetes: Fix a Pod Getting Evicted for Exceeding Its Ephemeral Storage Limit Even Though the App’s Own Writes Are Tiny Because a Sidecar Container’s Logs Share the Same emptyDir Volume

- 11.11.26 - ErcanOPAK comment on Kubernetes: Fix a Pod Getting Evicted for Exceeding Its Ephemeral Storage Limit Even Though the App’s Own Writes Are Tiny Because a Sidecar Container’s Logs Share the Same emptyDir Volume

☸️ Kubernetes: Fix a Pod Getting Evicted for Exceeding Its Ephemeral Storage Limit Even Though the App’s Own Writes Are Tiny Because a Sidecar Container’s Logs Share the Same emptyDir Volume A Pod’s ephemeral-storage limit covers everything written to any volume backed by the node’s local disk for that Pod, including an emptyDir volume shared […]

Read More
Windows

Windows 11: Fix the Taskbar’s Battery Percentage Disagreeing With the One Shown in Settings Because the Two Read Charge Level on Different Polling Intervals and the Taskbar’s Cached Reading Lags Behind

- 11.11.26 - ErcanOPAK comment on Windows 11: Fix the Taskbar’s Battery Percentage Disagreeing With the One Shown in Settings Because the Two Read Charge Level on Different Polling Intervals and the Taskbar’s Cached Reading Lags Behind

πŸͺŸ Windows 11: Fix the Taskbar’s Battery Percentage Disagreeing With the One Shown in Settings Because the Two Read Charge Level on Different Polling Intervals and the Taskbar’s Cached Reading Lags Behind The taskbar’s battery icon and the Settings app’s battery page don’t necessarily read the charge level at the same moment — the taskbar […]

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