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

Asp.Net Core

ASP.NET Core: Fix SignalR Silently Falling Back to Long Polling in Production Because a Reverse Proxy Buffers the Response and Breaks the WebSocket Upgrade

- 05.11.26 - ErcanOPAK comment on ASP.NET Core: Fix SignalR Silently Falling Back to Long Polling in Production Because a Reverse Proxy Buffers the Response and Breaks the WebSocket Upgrade

βš™οΈ ASP.NET Core: Fix SignalR Silently Falling Back to Long Polling in Production Because a Reverse Proxy Buffers the Response and Breaks the WebSocket Upgrade SignalR’s transport negotiation tries WebSockets first and only falls back to Server-Sent Events or long polling when the WebSocket handshake itself fails. A reverse proxy in front of the app […]

Read More
Photoshop

Photoshop: Fix the Object Selection Tool’s Bounding Box Excluding a Semi-Transparent Edge of the Subject Because Edge Detection Rounds Low-Alpha Pixels to Background

- 05.11.26 - ErcanOPAK comment on Photoshop: Fix the Object Selection Tool’s Bounding Box Excluding a Semi-Transparent Edge of the Subject Because Edge Detection Rounds Low-Alpha Pixels to Background

πŸ–ŒοΈ Photoshop: Fix the Object Selection Tool’s Bounding Box Excluding a Semi-Transparent Edge of the Subject Because Edge Detection Rounds Low-Alpha Pixels to Background The Object Selection Tool draws its initial bounding box using an AI edge-detection pass that scores every pixel’s confidence of belonging to the subject versus the background. For a subject with […]

Read More
Photoshop

Photoshop: Fix a Liquify Mesh Warp Partially Snapping Back on Reopen Because It Was Saved at a Different Preview Resolution Than the Document’s Actual Size

- 05.11.26 - ErcanOPAK comment on Photoshop: Fix a Liquify Mesh Warp Partially Snapping Back on Reopen Because It Was Saved at a Different Preview Resolution Than the Document’s Actual Size

πŸ–ŒοΈ Photoshop: Fix a Liquify Mesh Warp Partially Snapping Back on Reopen Because It Was Saved at a Different Preview Resolution Than the Document’s Actual Size Liquify’s Advanced Mode mesh deformation is stored relative to the document’s pixel dimensions and preview resolution at the moment you clicked OK. Reopening that same Smart Filter after the […]

Read More
AI

The AI Prompt That Turns a Neighborhood HOA’s Dense Bylaws Document Into a Plain-English FAQ Anyone Can Skim

- 05.11.26 - ErcanOPAK comment on The AI Prompt That Turns a Neighborhood HOA’s Dense Bylaws Document Into a Plain-English FAQ Anyone Can Skim

πŸ€– The AI Prompt That Turns a Neighborhood HOA’s Dense Bylaws Document Into a Plain-English FAQ Anyone Can Skim A homeowners’ association’s bylaws and covenants document can run forty to eighty dense pages of legal cross-references, and the actual answer to a specific question — can I put up a shed, do I need approval […]

Read More
Kubernetes

Kubernetes: Fix a Horizontal Pod Autoscaler Stuck at the Minimum Replica Count Because the Metrics Server Reports Zero CPU Since No Request Was Ever Set on the Container

- 05.11.26 - ErcanOPAK comment on Kubernetes: Fix a Horizontal Pod Autoscaler Stuck at the Minimum Replica Count Because the Metrics Server Reports Zero CPU Since No Request Was Ever Set on the Container

☸️ Kubernetes: Fix a Horizontal Pod Autoscaler Stuck at the Minimum Replica Count Because the Metrics Server Reports Zero CPU Since No Request Was Ever Set on the Container A CPU-utilization HorizontalPodAutoscaler computes its scaling percentage as actual CPU usage divided by the container’s requested CPU; when a Deployment’s container spec never sets resources.requests.cpu, the […]

Read More
C#

C#: Fix ConfigureAwait(false) Not Preventing a Deadlock Because the Blocking Result Call Happens Several Awaits Downstream in a Different Method

- 05.11.26 - ErcanOPAK comment on C#: Fix ConfigureAwait(false) Not Preventing a Deadlock Because the Blocking Result Call Happens Several Awaits Downstream in a Different Method

πŸ”§ C#: Fix ConfigureAwait(false) Not Preventing a Deadlock Because the Blocking Result Call Happens Several Awaits Downstream in a Different Method ConfigureAwait(false) only prevents the deadlock-causing SynchronizationContext capture for the specific await it’s attached to. A classic UI-thread or ASP.NET-classic deadlock from blocking on .Result/.Wait() over an async call chain isn’t actually fixed by adding […]

Read More
Windows

Windows 11: Fix the New Context Menu’s Show More Options Entry Hiding an App’s Right-Click Command Because It Only Registered the Legacy Shell Extension

- 05.11.26 - ErcanOPAK comment on Windows 11: Fix the New Context Menu’s Show More Options Entry Hiding an App’s Right-Click Command Because It Only Registered the Legacy Shell Extension

πŸͺŸ Windows 11: Fix the New Context Menu’s Show More Options Entry Hiding an App’s Right-Click Command Because It Only Registered the Legacy Shell Extension Windows 11’s redesigned right-click context menu shows a short, curated list of commands by default and tucks everything else behind a “Show more options” entry that reopens the classic, Windows […]

Read More
C#

C#: Fix a Collection Expression Target-Typed to IEnumerable Allocating a Different Underlying Type Than You Expected at the Call Site

- 05.11.26 - ErcanOPAK comment on C#: Fix a Collection Expression Target-Typed to IEnumerable Allocating a Different Underlying Type Than You Expected at the Call Site

πŸ”§ C#: Fix a Collection Expression Target-Typed to IEnumerable Allocating a Different Underlying Type Than You Expected at the Call Site A collection expression like [1, 2, 3] target-typed to an interface — IEnumerable<T>, IReadOnlyList<T>, ICollection<T>, and similar — deliberately leaves the concrete implementation type unspecified; the compiler is explicitly allowed to choose whichever underlying […]

Read More
Visual Studio

Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site

- 05.11.26 - ErcanOPAK comment on Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site

πŸ› οΈ Visual Studio: Fix the Parallel Stacks Window Merging Two Different Threads Into One Box Because Both Happen to Share the Exact Same Call Site The Parallel Stacks window draws one box per distinct call stack, not one box per thread, and when two completely unrelated threads happen to be suspended at the exact same […]

Read More
SQL

SQL Server: Fix a Query Store Forced Plan Silently Stopping Enforcement Because a Schema Change Invalidated the Captured Plan

- 05.11.26 - ErcanOPAK comment on SQL Server: Fix a Query Store Forced Plan Silently Stopping Enforcement Because a Schema Change Invalidated the Captured Plan

πŸ—„οΈ SQL Server: Fix a Query Store Forced Plan Silently Stopping Enforcement Because a Schema Change Invalidated the Captured Plan Forcing a plan through Query Store pins a query to a specific, previously-captured execution plan by its plan ID. A schema change affecting any object that plan depends on — dropping or rebuilding an index […]

Read More
Docker

Docker: Fix BuildKit’s Cache Mounts Not Persisting Between CI Runs Because Each Job Spins Up a Fresh, Unrelated Builder Instance

- 05.11.26 - ErcanOPAK comment on Docker: Fix BuildKit’s Cache Mounts Not Persisting Between CI Runs Because Each Job Spins Up a Fresh, Unrelated Builder Instance

🐳 Docker: Fix BuildKit’s Cache Mounts Not Persisting Between CI Runs Because Each Job Spins Up a Fresh, Unrelated Builder Instance A RUN –mount=type=cache instruction persists its cache content inside BuildKit’s own cache storage, keyed to the specific builder instance that ran the build. Most CI providers’ default Docker setup starts a brand-new, ephemeral docker […]

Read More
Ajax

Ajax: Fix an XMLHttpRequest Progress Event That Never Fires Because the Response Is Missing a Content-Length Header

- 05.11.26 - ErcanOPAK comment on Ajax: Fix an XMLHttpRequest Progress Event That Never Fires Because the Response Is Missing a Content-Length Header

πŸ”„ Ajax: Fix an XMLHttpRequest Progress Event That Never Fires Because the Response Is Missing a Content-Length Header The progress event on an XMLHttpRequest reports event.lengthComputable and a total byte count derived directly from the response’s Content-Length header. A server streaming a response with Transfer-Encoding: chunked and no Content-Length — because it genuinely doesn’t know […]

Read More
HTML

HTML5: Fix a Native dialog Element’s Backdrop Not Covering the Full Viewport Because a Transformed Ancestor Creates Its Own New Containing Block

- 05.11.26 - ErcanOPAK comment on HTML5: Fix a Native dialog Element’s Backdrop Not Covering the Full Viewport Because a Transformed Ancestor Creates Its Own New Containing Block

🧩 HTML5: Fix a Native dialog Element’s Backdrop Not Covering the Full Viewport Because a Transformed Ancestor Creates Its Own New Containing Block The native <dialog> element’s ::backdrop pseudo-element is normally promoted to the top layer when you call showModal(), and its backdrop covers the entire viewport. But an ancestor element with a CSS transform […]

Read More
Asp.Net Core

ASP.NET Core: Fix a Background IHostedService Never Receiving Its Cancellation Signal Because the App Was Stopped With a Hard Kill Instead of a Graceful Shutdown

- 05.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a Background IHostedService Never Receiving Its Cancellation Signal Because the App Was Stopped With a Hard Kill Instead of a Graceful Shutdown

βš™οΈ ASP.NET Core: Fix a Background IHostedService Never Receiving Its Cancellation Signal Because the App Was Stopped With a Hard Kill Instead of a Graceful Shutdown IHostedService.StopAsync — and the CancellationToken passed into a BackgroundService‘s ExecuteAsync — only ever get signaled as part of the generic host’s graceful shutdown sequence, triggered by SIGTERM (or its […]

Read More
Windows

Windows 11: Fix Snap Layouts Disappearing From the Maximize Button Because a Third-Party Window Manager Registered Itself as the Default Handler

- 05.11.26 - ErcanOPAK comment on Windows 11: Fix Snap Layouts Disappearing From the Maximize Button Because a Third-Party Window Manager Registered Itself as the Default Handler

πŸͺŸ Windows 11: Fix Snap Layouts Disappearing From the Maximize Button Because a Third-Party Window Manager Registered Itself as the Default Handler Snap Layouts’ hover-over-the-maximize-button flyout is implemented by Explorer registering itself as the handler for that specific hover interaction. Several third-party window-tiling utilities — and some OEM-bundled “smart” window management tools — register their […]

Read More
SQL

SQL Server: Fix a Window Function’s ORDER BY Silently Changing Row Order in the Final Result Because It Only Controls Frame Calculation, Not Output Order

- 05.11.26 - ErcanOPAK comment on SQL Server: Fix a Window Function’s ORDER BY Silently Changing Row Order in the Final Result Because It Only Controls Frame Calculation, Not Output Order

πŸ—„οΈ SQL Server: Fix a Window Function’s ORDER BY Silently Changing Row Order in the Final Result Because It Only Controls Frame Calculation, Not Output Order The ORDER BY clause inside a window function’s OVER() — SUM(amount) OVER (PARTITION BY account ORDER BY txn_date), say — exists purely to define the order rows are considered […]

Read More
AI

The AI Prompt That Checks Your Database Migration for a Column Drop With No Backward-Compatible Rollback Step

- 05.11.26 - ErcanOPAK comment on The AI Prompt That Checks Your Database Migration for a Column Drop With No Backward-Compatible Rollback Step

πŸ€– The AI Prompt That Checks Your Database Migration for a Column Drop With No Backward-Compatible Rollback Step A migration that drops a column is one of the few migration types you genuinely can’t undo by just running it in reverse — the moment ALTER TABLE … DROP COLUMN finishes, that column’s data is gone, […]

Read More
CSS

CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It

- 05.11.26 - ErcanOPAK comment on CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It

🎨 CSS: Fix a :has() Selector Silently Matching Nothing in Production Because an Older Browser in Your Support Matrix Doesn’t Implement It The :has() relational pseudo-class lets a parent selector react to its own descendants — .card:has(img) styling a card differently when it actually contains an image — and shipped broadly across Chromium, Safari, and […]

Read More
C#

C#: Fix a Lambda That Looks Capture-Free Still Allocating a New Closure Every Call Because It Implicitly Captures This Through an Instance Method Call Inside It

- 05.11.26 - ErcanOPAK comment on C#: Fix a Lambda That Looks Capture-Free Still Allocating a New Closure Every Call Because It Implicitly Captures This Through an Instance Method Call Inside It

πŸ”§ C#: Fix a Lambda That Looks Capture-Free Still Allocating a New Closure Every Call Because It Implicitly Captures This Through an Instance Method Call Inside It A lambda that references no local variables and no fields directly can still implicitly capture this the moment it calls an instance method or reads an instance property […]

Read More
Wordpress

WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation

- 05.11.26 - ErcanOPAK comment on WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation

πŸ“ WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation The Styles panel in the Site Editor scopes a “Save” action to whatever block or template part context is currently active in the editor, not automatically to the site-wide theme.json-level styles. A […]

Read More
AI

The AI Prompt That Checks Your Soft-Delete Queries for a Forgotten WHERE Clause That Lets Deleted Rows Leak Back Into a Report

- 05.11.26 - ErcanOPAK comment on The AI Prompt That Checks Your Soft-Delete Queries for a Forgotten WHERE Clause That Lets Deleted Rows Leak Back Into a Report

πŸ€– The AI Prompt That Checks Your Soft-Delete Queries for a Forgotten WHERE Clause That Lets Deleted Rows Leak Back Into a Report A soft-delete pattern (a deleted_at timestamp or an is_deleted flag instead of an actual row removal) only works if every single read path across the codebase remembers to filter it out, and […]

Read More
Git

Git: Fix git grep Missing a Match Inside a File Because the Repository’s .gitattributes Marks That Path as Binary

- 05.11.26 - ErcanOPAK comment on Git: Fix git grep Missing a Match Inside a File Because the Repository’s .gitattributes Marks That Path as Binary

πŸ”€ Git: Fix git grep Missing a Match Inside a File Because the Repository’s .gitattributes Marks That Path as Binary git grep, like diff and most other text-oriented Git plumbing, skips any path Git’s attribute system considers binary — determined either by content-sniffing or, more commonly in a configured repository, by an explicit -diff/binary attribute […]

Read More
Wordpress

WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain

- 05.11.26 - ErcanOPAK comment on WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain

πŸ“ WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain A multisite network configured so every subsite reads from one shared uploads directory still serves those files through a rewrite rule mapping /wp-content/uploads/sites/<blog_id>/ paths back to the physical shared folder on […]

Read More
JavaScript

JavaScript: Fix Array.prototype.includes Returning False for NaN Because a Custom Equality Check Replaced Its Built-In SameValueZero Comparison

- 05.11.26 - ErcanOPAK comment on JavaScript: Fix Array.prototype.includes Returning False for NaN Because a Custom Equality Check Replaced Its Built-In SameValueZero Comparison

⚑ JavaScript: Fix Array.prototype.includes Returning False for NaN Because a Custom Equality Check Replaced Its Built-In SameValueZero Comparison Array.prototype.includes is specified to use the SameValueZero algorithm, which is the one built-in piece of JavaScript that actually treats NaN as equal to itself, unlike ===, so [NaN].includes(NaN) correctly returns true with no extra work. Code that […]

Read More
Git

Git: Fix git rerere Failing to Replay a Recorded Resolution Because the Conflict Markers Shifted Slightly on the Next Rebase

- 05.11.26 - ErcanOPAK comment on Git: Fix git rerere Failing to Replay a Recorded Resolution Because the Conflict Markers Shifted Slightly on the Next Rebase

πŸ”€ Git: Fix git rerere Failing to Replay a Recorded Resolution Because the Conflict Markers Shifted Slightly on the Next Rebase git rerere (“reuse recorded resolution”) records a conflict’s exact pre-image text alongside your resolution, then looks for that same exact conflict text again to auto-apply the fix. If the surrounding file changes even slightly […]

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