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

AI

The AI Prompt That Diffs Two Versions of a Config File and Explains Which Changed Setting Would Actually Cause a New Production Symptom

- 10.11.26 - ErcanOPAK comment on The AI Prompt That Diffs Two Versions of a Config File and Explains Which Changed Setting Would Actually Cause a New Production Symptom

πŸ€– The AI Prompt That Diffs Two Versions of a Config File and Explains Which Changed Setting Would Actually Cause a New Production Symptom A production incident that started ‘sometime after the last deploy’ often comes down to one line in a config file that changed among dozens of unrelated ones, and scanning a diff […]

Read More
CSS

CSS: Fix an @scope Block’s Lower Boundary Silently Excluding the Exact Element You Meant to Style Because the Boundary Selector Also Matched That Target Element Itself

- 10.11.26 - ErcanOPAK comment on CSS: Fix an @scope Block’s Lower Boundary Silently Excluding the Exact Element You Meant to Style Because the Boundary Selector Also Matched That Target Element Itself

🎨 Fix an @scope Block’s Lower Boundary Silently Excluding the Exact Element You Meant to Style Because the Boundary Selector Also Matched That Target Element Itself @scope (from) to (boundary) limits a rule’s reach to elements inside the scoping root but outside anything matching the boundary selector, and that exclusion applies to any element matching […]

Read More
Windows

Windows 11: Fix Clipboard History (Win+V) Losing Every Item on Restart Because It’s Only Ever Stored in Memory, Not on Disk

- 10.11.26 - ErcanOPAK comment on Windows 11: Fix Clipboard History (Win+V) Losing Every Item on Restart Because It’s Only Ever Stored in Memory, Not on Disk

πŸͺŸ Fix Clipboard History (Win+V) Losing Every Item on Restart Because It’s Only Ever Stored in Memory, Not on Disk Clipboard History, opened with Win+V, keeps a running list of recent copies entirely in memory for the current sign-in session β€” it was never designed to write that history to disk, so a restart, sign-out, […]

Read More
SQL

SQL Server: Fix a Deadlock Graph Showing Two Identical Queries Blocking Each Other Because a Missing Index Forces a Full Table Scan Lock Instead of a Row-Level Lock

- 10.11.26 - ErcanOPAK comment on SQL Server: Fix a Deadlock Graph Showing Two Identical Queries Blocking Each Other Because a Missing Index Forces a Full Table Scan Lock Instead of a Row-Level Lock

πŸ—„οΈ Fix a Deadlock Graph Showing Two Identical Queries Blocking Each Other Because a Missing Index Forces a Full Table Scan Lock Instead of a Row-Level Lock A deadlock between two sessions running what looks like the exact same UPDATE statement, each targeting a different single row by primary key, shouldn’t normally deadlock at all […]

Read More
HTML

HTML5: Fix the Browser’s Native Form Validation Message Never Appearing Because a novalidate Attribute Left on the Form From Earlier Testing Was Never Removed

- 10.11.26 - ErcanOPAK comment on HTML5: Fix the Browser’s Native Form Validation Message Never Appearing Because a novalidate Attribute Left on the Form From Earlier Testing Was Never Removed

🧩 Fix the Browser’s Native Form Validation Message Never Appearing Because a novalidate Attribute Left on the Form From Earlier Testing Was Never Removed Adding a novalidate attribute to a form element is a common temporary step while testing a custom JavaScript validation flow, since it suppresses the browser’s own built-in validation messages β€” required-field […]

Read More
JavaScript

JavaScript: Fix structuredClone Throwing on an Object That Worked Fine With JSON.stringify Because It Contains a Value structuredClone Explicitly Refuses to Clone

- 10.11.26 - ErcanOPAK comment on JavaScript: Fix structuredClone Throwing on an Object That Worked Fine With JSON.stringify Because It Contains a Value structuredClone Explicitly Refuses to Clone

⚑ Fix structuredClone Throwing on an Object That Worked Fine With JSON.stringify Because It Contains a Value structuredClone Explicitly Refuses to Clone structuredClone and JSON.stringify/JSON.parse are often reached for interchangeably as a quick way to deep-copy an object, but they handle values neither can meaningfully represent in completely opposite ways: JSON.stringify silently drops a function […]

Read More
Photoshop

Photoshop: Fix an Entire Document Suddenly Looking Flat and Washed Out Because Proof Colors (Ctrl+Y) Got Toggled On by a Stray Keyboard Shortcut

- 10.11.26 - ErcanOPAK comment on Photoshop: Fix an Entire Document Suddenly Looking Flat and Washed Out Because Proof Colors (Ctrl+Y) Got Toggled On by a Stray Keyboard Shortcut

πŸ–ŒοΈ Fix an Entire Document Suddenly Looking Flat and Washed Out Because Proof Colors (Ctrl+Y) Got Toggled On by a Stray Keyboard Shortcut View > Proof Colors, bound by default to Ctrl+Y (Cmd+Y on macOS), is a soft-proofing preview that simulates how the current document will look when converted to whatever proof profile is set […]

Read More
C#

C#: Fix an Object Pool Handing Back a ‘Reset’ Object That Still Fires an Event Handler From Its Last Use Because Reset Only Cleared Fields, Never Unsubscribed It

- 10.11.26 - ErcanOPAK comment on C#: Fix an Object Pool Handing Back a ‘Reset’ Object That Still Fires an Event Handler From Its Last Use Because Reset Only Cleared Fields, Never Unsubscribed It

πŸ”§ Fix an Object Pool Handing Back a ‘Reset’ Object That Still Fires an Event Handler From Its Last Use Because Reset Only Cleared Fields, Never Unsubscribed It A pooled object’s Reset method is usually written to clear the fields that represent its own data β€” set a counter back to zero, clear a list, […]

Read More
C#

C#: Fix int.Parse Throwing FormatException Only on a Server Configured for a Different Culture Because the Input’s Thousands Separator Doesn’t Match the Current Culture

- 10.11.26 - ErcanOPAK comment on C#: Fix int.Parse Throwing FormatException Only on a Server Configured for a Different Culture Because the Input’s Thousands Separator Doesn’t Match the Current Culture

πŸ”§ Fix int.Parse Throwing FormatException Only on a Server Configured for a Different Culture Because the Input’s Thousands Separator Doesn’t Match the Current Culture int.Parse and decimal.Parse called with no explicit IFormatProvider parse the input according to CultureInfo.CurrentCulture, which on a developer’s own machine is usually whatever locale their OS is set to, and on […]

Read More
Asp.Net Core

ASP.NET Core: Fix a Minimal API Endpoint Using AsParameters Never Binding a Nested Complex Property From the Query String Because AsParameters Only Treats Each Top-Level Property as Its Own Independent Parameter

- 10.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a Minimal API Endpoint Using AsParameters Never Binding a Nested Complex Property From the Query String Because AsParameters Only Treats Each Top-Level Property as Its Own Independent Parameter

βš™οΈ Fix a Minimal API Endpoint Using AsParameters Never Binding a Nested Complex Property From the Query String Because AsParameters Only Treats Each Top-Level Property as Its Own Independent Parameter The AsParameters attribute lets a minimal API endpoint accept a single parameter object whose public properties are each bound independently, exactly as if they’d been […]

Read More
Git

Git: Fix git pull Repeatedly Creating an Unwanted Merge Commit Because pull.rebase Was Never Configured and the Default Pull Strategy Is Merge

- 10.11.26 - ErcanOPAK comment on Git: Fix git pull Repeatedly Creating an Unwanted Merge Commit Because pull.rebase Was Never Configured and the Default Pull Strategy Is Merge

πŸ”€ Fix git pull Repeatedly Creating an Unwanted Merge Commit Because pull.rebase Was Never Configured and the Default Pull Strategy Is Merge Running plain git pull is shorthand for git fetch followed by git merge against the remote tracking branch, unless you’ve configured it to rebase instead. On a branch where you have local commits […]

Read More
AI

The AI Prompt That Pastes In Two Library Versions’ Changelogs and Tells You Exactly Which Breaking Change Is Causing Your Upgrade to Fail

- 10.11.26 - ErcanOPAK comment on The AI Prompt That Pastes In Two Library Versions’ Changelogs and Tells You Exactly Which Breaking Change Is Causing Your Upgrade to Fail

πŸ€– The AI Prompt That Pastes In Two Library Versions’ Changelogs and Tells You Exactly Which Breaking Change Is Causing Your Upgrade to Fail Upgrading a dependency across several minor or major versions at once means reading through every intervening changelog entry to find the one breaking change actually responsible for a new failure, when […]

Read More
Photoshop

Photoshop: Fix the Brush Cursor Shrinking to a Tiny Crosshair Instead of Showing the Real Brush Size Because GPU Acceleration Got Turned Off in Performance Preferences

- 10.11.26 - ErcanOPAK comment on Photoshop: Fix the Brush Cursor Shrinking to a Tiny Crosshair Instead of Showing the Real Brush Size Because GPU Acceleration Got Turned Off in Performance Preferences

πŸ–ŒοΈ Fix the Brush Cursor Shrinking to a Tiny Crosshair Instead of Showing the Real Brush Size Because GPU Acceleration Got Turned Off in Performance Preferences The full-size, outline-shaped brush cursor Photoshop normally shows depends on ‘Use Graphics Processor’ being enabled under Edit > Preferences > Performance. When that’s off β€” because a driver update […]

Read More
Docker

Docker: Fix ‘No Space Left on Device’ Coming Back Right After a Prune Because BuildKit’s –mount=type=cache Build Cache Isn’t Touched by a Plain docker system prune

- 10.11.26 - ErcanOPAK comment on Docker: Fix ‘No Space Left on Device’ Coming Back Right After a Prune Because BuildKit’s –mount=type=cache Build Cache Isn’t Touched by a Plain docker system prune

🐳 Fix ‘No Space Left on Device’ Coming Back Right After a Prune Because BuildKit’s –mount=type=cache Build Cache Isn’t Touched by a Plain docker system prune A Dockerfile using BuildKit’s RUN –mount=type=cache,target=/path keeps a persistent cache (package manager downloads, compiler output) in its own dedicated cache storage, completely separate from the image layers, stopped containers, […]

Read More
C#

C#: Fix a StringBuilder Shared as a Static Field Producing Garbled, Interleaved Output Under Concurrent Use Because StringBuilder Was Never Designed to Be Thread-Safe

- 10.11.26 - ErcanOPAK comment on C#: Fix a StringBuilder Shared as a Static Field Producing Garbled, Interleaved Output Under Concurrent Use Because StringBuilder Was Never Designed to Be Thread-Safe

πŸ”§ Fix a StringBuilder Shared as a Static Field Producing Garbled, Interleaved Output Under Concurrent Use Because StringBuilder Was Never Designed to Be Thread-Safe StringBuilder’s documentation states plainly that an instance is not safe for concurrent use by multiple threads, but nothing about declaring one as a static field enforces that restriction at compile time […]

Read More
Asp.Net Core

ASP.NET Core: Fix a File Upload Endpoint Rejecting Anything Over 30MB Because Kestrel’s Own Request Body Size Limit Is Configured Completely Separately From IIS’s

- 10.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a File Upload Endpoint Rejecting Anything Over 30MB Because Kestrel’s Own Request Body Size Limit Is Configured Completely Separately From IIS’s

βš™οΈ Fix a File Upload Endpoint Rejecting Anything Over 30MB Because Kestrel’s Own Request Body Size Limit Is Configured Completely Separately From IIS’s An ASP.NET Core app hosted behind IIS actually has two separate layers that can each impose their own maximum request body size β€” IIS’s own maxAllowedContentLength in web.config, and Kestrel’s MaxRequestBodySize option, […]

Read More
SQL

SQL Server: Fix a Query’s Estimated and Actual Row Counts Wildly Disagreeing Because New Rows With Ascending Key Values Keep Falling Outside the Statistics Histogram’s Known Range

- 10.11.26 - ErcanOPAK comment on SQL Server: Fix a Query’s Estimated and Actual Row Counts Wildly Disagreeing Because New Rows With Ascending Key Values Keep Falling Outside the Statistics Histogram’s Known Range

πŸ—„οΈ Fix a Query’s Estimated and Actual Row Counts Wildly Disagreeing Because New Rows With Ascending Key Values Keep Falling Outside the Statistics Histogram’s Known Range SQL Server’s statistics histogram for a column records the distribution of values it saw as of the last time statistics were updated, with a defined upper bound β€” the […]

Read More
Kubernetes

Kubernetes: Fix a Pod Stuck in ContainerCreating Because a ConfigMap Volume’s subPath Key Was Deleted From the ConfigMap After the Pod Spec Was Written

- 10.11.26 - ErcanOPAK comment on Kubernetes: Fix a Pod Stuck in ContainerCreating Because a ConfigMap Volume’s subPath Key Was Deleted From the ConfigMap After the Pod Spec Was Written

☸️ Fix a Pod Stuck in ContainerCreating Because a ConfigMap Volume’s subPath Key Was Deleted From the ConfigMap After the Pod Spec Was Written Mounting a single key from a ConfigMap into a container with volumeMounts.subPath is convenient for dropping one config file into an existing directory without overwriting everything else in it, but that […]

Read More
Wordpress

WordPress: Fix Visitors Getting Logged Out Mid-Session on a Multi-Server Host Because the Authentication Cookie’s Secret Keys Differ Between Servers

- 10.11.26 - ErcanOPAK comment on WordPress: Fix Visitors Getting Logged Out Mid-Session on a Multi-Server Host Because the Authentication Cookie’s Secret Keys Differ Between Servers

πŸ“ Fix Visitors Getting Logged Out Mid-Session on a Multi-Server Host Because the Authentication Cookie’s Secret Keys Differ Between Servers WordPress signs its login and authentication cookies using the AUTH_KEY, AUTH_SALT, LOGGED_IN_KEY, and related secret constants defined in wp-config.php, and a cookie is only considered valid by whichever server validates it if that server’s wp-config.php […]

Read More
AI

The AI Prompt That Checks a Vacation Itinerary for Layover Times Too Short to Realistically Make the Connection

- 10.11.26 - ErcanOPAK comment on The AI Prompt That Checks a Vacation Itinerary for Layover Times Too Short to Realistically Make the Connection

πŸ€– The AI Prompt That Checks a Vacation Itinerary for Layover Times Too Short to Realistically Make the Connection A booking site’s ‘valid’ connection β€” one that technically leaves enough minutes between the scheduled arrival and departure times β€” doesn’t account for which specific airports are involved, whether the connection requires a terminal change, or […]

Read More
Git

Git: Fix a Branch Refusing to Checkout Anywhere Else Because a Deleted git worktree Directory Is Still Registered in .git/worktrees

- 10.11.26 - ErcanOPAK comment on Git: Fix a Branch Refusing to Checkout Anywhere Else Because a Deleted git worktree Directory Is Still Registered in .git/worktrees

πŸ”€ Fix a Branch Refusing to Checkout Anywhere Else Because a Deleted git worktree Directory Is Still Registered in .git/worktrees git worktree add checks out a branch into a separate working directory while keeping the same repository’s object store and branch refs shared, and the main repository tracks that worktree’s existence in its own .git/worktrees […]

Read More
Windows

Windows 11: Fix a USB Drive Stuck on ‘This Device Is Currently in Use’ With Nothing Obviously Open Because Windows Search Indexer Is Still Scanning It in the Background

- 10.11.26 - ErcanOPAK comment on Windows 11: Fix a USB Drive Stuck on ‘This Device Is Currently in Use’ With Nothing Obviously Open Because Windows Search Indexer Is Still Scanning It in the Background

πŸͺŸ Fix a USB Drive Stuck on ‘This Device Is Currently in Use’ With Nothing Obviously Open Because Windows Search Indexer Is Still Scanning It in the Background Plugging in a USB drive that’s included in Windows Search’s indexed locations (or that Windows has decided to index automatically) kicks off a background scan of its […]

Read More
Ajax

Ajax: Fix a Request Silently Returning Stale Data Because the Browser Cached an Identical GET URL With No Cache-Control Header Telling It Not To

- 10.11.26 - ErcanOPAK comment on Ajax: Fix a Request Silently Returning Stale Data Because the Browser Cached an Identical GET URL With No Cache-Control Header Telling It Not To

πŸ”„ Fix a Request Silently Returning Stale Data Because the Browser Cached an Identical GET URL With No Cache-Control Header Telling It Not To A browser treats a GET request to a URL it’s seen before as a candidate for its ordinary HTTP cache, using the same heuristic caching rules it applies to any other […]

Read More
Visual Studio

Visual Studio: Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded

- 10.11.26 - ErcanOPAK comment on Visual Studio: Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded

πŸ› οΈ Fix ‘The Breakpoint Will Not Currently Be Hit’ Warning Appearing Even After a Clean Rebuild Because a Stale PDB From a Different Build Configuration Is Still Loaded The debugger matches a breakpoint to a running process by comparing the source file’s checksum against the sequence point information baked into the loaded PDB, not by […]

Read More
Wordpress

WordPress: Fix the REST API Returning 401 for a Valid Application Password Right After a Server Migration Because the New Host’s Default Rewrite Rules Strip the Authorization Header

- 10.11.26 - ErcanOPAK comment on WordPress: Fix the REST API Returning 401 for a Valid Application Password Right After a Server Migration Because the New Host’s Default Rewrite Rules Strip the Authorization Header

πŸ“ Fix the REST API Returning 401 for a Valid Application Password Right After a Server Migration Because the New Host’s Default Rewrite Rules Strip the Authorization Header WordPress Application Passwords authenticate REST API requests via a standard HTTP Basic Authorization header, but that header has to actually survive the trip from the web server […]

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