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

AI

The AI Prompt That Audits Your Outbox Pattern Implementation for Messages Published Before the Transaction That Wrote Them Actually Commits

- 02.11.26 - ErcanOPAK comment on The AI Prompt That Audits Your Outbox Pattern Implementation for Messages Published Before the Transaction That Wrote Them Actually Commits

πŸ€– The AI Prompt That Audits Your Outbox Pattern Implementation for Messages Published Before the Transaction That Wrote Them Actually Commits A transactional outbox writes an event row into an outbox table in the exact same database transaction as the business change it represents, then a separate relay process reads unpublished rows and sends them […]

Read More
Kubernetes

Kubernetes: Fix a Vertical Pod Autoscaler Recommendation That Never Actually Applies Because It’s Running in Off Mode Instead of Auto

- 02.11.26 - ErcanOPAK comment on Kubernetes: Fix a Vertical Pod Autoscaler Recommendation That Never Actually Applies Because It’s Running in Off Mode Instead of Auto

☸️ Fix a Vertical Pod Autoscaler Recommendation That Never Actually Applies Because It’s Running in Off Mode Instead of Auto A VerticalPodAutoscaler’s updateMode field has three meaningfully different behaviors: Off only computes and exposes a recommendation through .status.recommendation without ever touching a running pod, Initial applies the recommendation only to pods created after it was […]

Read More
C#

C#: Fix a Source-Generated Regex Partial Method Silently Falling Back to a Different Culture Than the Pattern Was Written and Tested Against

- 02.11.26 - ErcanOPAK comment on C#: Fix a Source-Generated Regex Partial Method Silently Falling Back to a Different Culture Than the Pattern Was Written and Tested Against

πŸ”§ Fix a Source-Generated Regex Partial Method Silently Falling Back to a Different Culture Than the Pattern Was Written and Tested Against The [GeneratedRegex] attribute on a partial method lets the compiler generate a fully compiled regex implementation at build time instead of constructing one at runtime, and its options argument accepts the same culture-sensitive […]

Read More
Asp.Net Core

ASP.NET Core: Fix Output Caching’s Vary-By-Query Rule Silently Caching Two Different Responses Under One Key Because Query String Keys Are Compared Case-Sensitively

- 02.11.26 - ErcanOPAK comment on ASP.NET Core: Fix Output Caching’s Vary-By-Query Rule Silently Caching Two Different Responses Under One Key Because Query String Keys Are Compared Case-Sensitively

βš™οΈ Fix Output Caching’s Vary-By-Query Rule Silently Caching Two Different Responses Under One Key Because Query String Keys Are Compared Case-Sensitively ASP.NET Core’s Output Caching middleware lets a policy vary the cached entry by specific query string parameter names via SetVaryByQuery(“category”), building the cache key by looking up that exact parameter name in the incoming […]

Read More
Docker

Docker: Fix a Compose Stack Silently Reusing a Stale Anonymous Volume Because a Service Was Renamed Without Renaming Its Volume

- 02.11.26 - ErcanOPAK comment on Docker: Fix a Compose Stack Silently Reusing a Stale Anonymous Volume Because a Service Was Renamed Without Renaming Its Volume

🐳 Fix a Compose Stack Silently Reusing a Stale Anonymous Volume Because a Service Was Renamed Without Renaming Its Volume A volume declared under Compose’s top-level volumes: section gets its actual Docker-level name from the volume’s own key (or an explicit name: field) β€” never from whichever service happens to mount it. Rename a service […]

Read More
Git

Git: Fix git diff –color-moved Silently Failing to Detect a Moved Block Because Reindentation Changed Every Line’s Leading Whitespace

- 02.11.26 - ErcanOPAK comment on Git: Fix git diff –color-moved Silently Failing to Detect a Moved Block Because Reindentation Changed Every Line’s Leading Whitespace

πŸ”€ Fix git diff –color-moved Silently Failing to Detect a Moved Block Because Reindentation Changed Every Line’s Leading Whitespace git diff –color-moved highlights lines that were moved rather than changed by matching blocks of identical lines between the old and new side of a diff, and its default mode requires an exact character-for-character match, including […]

Read More
AI

The AI Prompt That Turns a Homeowner’s Stack of Contractor Renovation Quotes Into One Apples-to-Apples Comparison Table

- 02.11.26 - ErcanOPAK comment on The AI Prompt That Turns a Homeowner’s Stack of Contractor Renovation Quotes Into One Apples-to-Apples Comparison Table

πŸ€– The AI Prompt That Turns a Homeowner’s Stack of Contractor Renovation Quotes Into One Apples-to-Apples Comparison Table Renovation quotes from different contractors almost never itemize the same way β€” one bundles materials and labor into a single line, another breaks out permits and disposal separately, a third quotes an allowance for fixtures that isn’t […]

Read More
Asp.Net Core

ASP.NET Core: Fix a Minimal API’s Request Delegate Generator Silently Falling Back to Reflection Binding Because One Parameter Type Isn’t Source-Gen Compatible

- 02.11.26 - ErcanOPAK comment on ASP.NET Core: Fix a Minimal API’s Request Delegate Generator Silently Falling Back to Reflection Binding Because One Parameter Type Isn’t Source-Gen Compatible

βš™οΈ Fix a Minimal API’s Request Delegate Generator Silently Falling Back to Reflection Binding Because One Parameter Type Isn’t Source-Gen Compatible The Minimal API Request Delegate Generator is a Roslyn source generator β€” the default for Native AOT publishing β€” that pre-compiles each endpoint’s parameter-binding and response-writing logic at build time instead of building it […]

Read More
AI

The AI Prompt That Reviews Your Pagination Cursor Design for Cases Where a Deleted Row Shifts Every Later Page

- 02.11.26 - ErcanOPAK comment on The AI Prompt That Reviews Your Pagination Cursor Design for Cases Where a Deleted Row Shifts Every Later Page

πŸ€– The AI Prompt That Reviews Your Pagination Cursor Design for Cases Where a Deleted Row Shifts Every Later Page Offset-based pagination recalculates each page as a fresh slice of whatever rows currently exist, so a row deleted (or inserted) between two page requests shifts every row after it by one position β€” a client […]

Read More
CSS

CSS: Fix an initial-letter Drop Cap Overlapping the Line Below It Because the Property Ignores the Paragraph’s Own Line-Height

- 02.11.26 - ErcanOPAK comment on CSS: Fix an initial-letter Drop Cap Overlapping the Line Below It Because the Property Ignores the Paragraph’s Own Line-Height

🎨 Fix an initial-letter Drop Cap Overlapping the Line Below It Because the Property Ignores the Paragraph’s Own Line-Height The initial-letter property sizes a drop cap by a count of lines it should visually span (initial-letter: 3 2;, for instance), computing that size from the font’s own metrics and the specified line count β€” not […]

Read More
SQL

SQL Server: Fix a Linked Server Query Pulling an Entire Remote Table Across the Network Because the Provider Can’t Push a Simple Predicate Down to It

- 02.11.26 - ErcanOPAK comment on SQL Server: Fix a Linked Server Query Pulling an Entire Remote Table Across the Network Because the Provider Can’t Push a Simple Predicate Down to It

πŸ—„οΈ Fix a Linked Server Query Pulling an Entire Remote Table Across the Network Because the Provider Can’t Push a Simple Predicate Down to It A query against a linked server is only as efficient as the provider’s ability to translate a local WHERE clause into something the remote engine can filter with before sending […]

Read More
Photoshop

Photoshop: Fix the Color Sampler Panel Reading the Wrong Value Because It’s Still Showing 8-Bit Numbers on a 16-Bit Document

- 02.11.26 - ErcanOPAK comment on Photoshop: Fix the Color Sampler Panel Reading the Wrong Value Because It’s Still Showing 8-Bit Numbers on a 16-Bit Document

πŸ–ŒοΈ Fix the Color Sampler Panel Reading the Wrong Value Because It’s Still Showing 8-Bit Numbers on a 16-Bit Document Each readout in the Info panel, including every placed Color Sampler, has its own independently configurable display mode β€” 8-bit (0–255), percentage, or Actual Color β€” set through the small eyedropper icon next to that […]

Read More
Ajax

Ajax: Fix a Fetch Request That Silently Replays Twice From a Service Worker Because Its Fetch Handler Calls respondWith on the Original Request Without Cloning It First

- 02.11.26 - ErcanOPAK comment on Ajax: Fix a Fetch Request That Silently Replays Twice From a Service Worker Because Its Fetch Handler Calls respondWith on the Original Request Without Cloning It First

πŸ”„ Fix a Fetch Request That Silently Replays Twice From a Service Worker Because Its Fetch Handler Calls respondWith on the Original Request Without Cloning It First Inside a service worker’s fetch event listener, event.request is a Request object whose body is a single-use stream β€” it can only be read once. A handler that […]

Read More
JavaScript

JavaScript: Fix a Tagged Template Literal Function Receiving a Different Strings Array Identity on Every Call Because a Loose Compiler Transform Recreates It Instead of Caching It

- 02.11.26 - ErcanOPAK comment on JavaScript: Fix a Tagged Template Literal Function Receiving a Different Strings Array Identity on Every Call Because a Loose Compiler Transform Recreates It Instead of Caching It

⚑ Fix a Tagged Template Literal Function Receiving a Different Strings Array Identity on Every Call Because a Loose Compiler Transform Recreates It Instead of Caching It The spec for tagged template literals guarantees that calling the same tag function from the exact same call site always receives the identical, frozen strings array object by […]

Read More
C#

C#: Fix a DateTimeOffset Subtraction Producing a TimeSpan That Silently Ignores a Daylight Saving Transition Between the Two Instants

- 02.11.26 - ErcanOPAK comment on C#: Fix a DateTimeOffset Subtraction Producing a TimeSpan That Silently Ignores a Daylight Saving Transition Between the Two Instants

πŸ”§ Fix a DateTimeOffset Subtraction Producing a TimeSpan That Silently Ignores a Daylight Saving Transition Between the Two Instants Subtracting two DateTimeOffset values correctly computes the real elapsed wall-clock duration between two absolute points in time, fully accounting for whatever UTC offset each value actually carries β€” that part genuinely works, even across a daylight […]

Read More
Windows

Windows 11: Fix Windows Backup Silently Skipping Every Installed Win32 Desktop App Because It Only Restores Store Apps and Settings

- 02.11.26 - ErcanOPAK comment on Windows 11: Fix Windows Backup Silently Skipping Every Installed Win32 Desktop App Because It Only Restores Store Apps and Settings

πŸͺŸ Fix Windows Backup Silently Skipping Every Installed Win32 Desktop App Because It Only Restores Store Apps and Settings The Windows Backup app, tied to a Microsoft account, captures personal files, a short list of Windows settings, and the Microsoft Store apps installed on a PC β€” then on a new or reset device, it […]

Read More
C#

C#: Fix a Generic Math Interface Constraint Silently Picking the Wrong Operator Overload Because Two Candidate Types Both Satisfy It

- 02.11.26 - ErcanOPAK comment on C#: Fix a Generic Math Interface Constraint Silently Picking the Wrong Operator Overload Because Two Candidate Types Both Satisfy It

πŸ”§ Fix a Generic Math Interface Constraint Silently Picking the Wrong Operator Overload Because Two Candidate Types Both Satisfy It .NET’s generic math interfaces let a generic method write code like T Add<T>(T a, T b) where T : INumber<T> and have + resolve through the interface’s static abstract operator β€” but static abstract interface […]

Read More
Windows

Windows 11: Fix the Paste as Plain Text Shortcut Silently Reverting to Full Formatting Because a Background App Reclaimed the Key Combination

- 02.11.26 - ErcanOPAK comment on Windows 11: Fix the Paste as Plain Text Shortcut Silently Reverting to Full Formatting Because a Background App Reclaimed the Key Combination

πŸͺŸ Fix the Paste as Plain Text Shortcut Silently Reverting to Full Formatting Because a Background App Reclaimed the Key Combination Ctrl+Shift+V works as a system-wide “paste as plain text” shortcut across many Windows apps, stripping source formatting on paste β€” but that combination is not a reserved OS-level binding. Any background app that registers […]

Read More
SQL

SQL Server: Fix a Temporal Table Query Against a Point in Time Silently Missing Rows Because the System-Time Comparison Defaults to an Exclusive Upper Bound

- 02.11.26 - ErcanOPAK comment on SQL Server: Fix a Temporal Table Query Against a Point in Time Silently Missing Rows Because the System-Time Comparison Defaults to an Exclusive Upper Bound

πŸ—„οΈ Fix a Temporal Table Query Against a Point in Time Silently Missing Rows Because the System-Time Comparison Defaults to an Exclusive Upper Bound System-versioned temporal tables let you query historical state with FOR SYSTEM_TIME AS OF @asOfTime, which SQL Server implements internally as a range filter: a row qualifies only when ValidFrom <= @asOfTime […]

Read More
Visual Studio

Visual Studio: Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace

- 02.11.26 - ErcanOPAK comment on Visual Studio: Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace

πŸ› οΈ Fix the CPU Usage Profiler Reporting Zero Samples for a Hot Method Because Tiered Compilation Never Promoted It Past Quick JIT During the Trace The CPU Usage diagnostic tool in Visual Studio samples whatever code is actually executing during a trace, and for the first moments after a .NET process starts, that code is […]

Read More
Photoshop

Photoshop: Fix Generative Expand Leaving a Visible Seam Along the Canvas Extension Edge Because the Context Area Was Too Narrow for What It Had to Invent

- 02.11.26 - ErcanOPAK comment on Photoshop: Fix Generative Expand Leaving a Visible Seam Along the Canvas Extension Edge Because the Context Area Was Too Narrow for What It Had to Invent

πŸ–ŒοΈ Fix Generative Expand Leaving a Visible Seam Along the Canvas Extension Edge Because the Context Area Was Too Narrow for What It Had to Invent Generative Expand works by sending Adobe’s generative model a strip of real pixels around the edge of whatever area you’re extending the canvas into, and the model uses that […]

Read More
Wordpress

WordPress: Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call

- 02.11.26 - ErcanOPAK comment on WordPress: Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call

πŸ“ Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call A theme registers its own custom image sizes with add_image_size() hooked to after_setup_theme, and the Featured Image panel in the block editor, along with every template that calls wp_get_attachment_image( $id, ‘featured-hero’ ), simply […]

Read More
Git

Git: Fix a Commit Trailer Added With –trailer Silently Not Appearing Because an Older Git Version Ignores the Flag Without Raising an Error

- 02.11.26 - ErcanOPAK comment on Git: Fix a Commit Trailer Added With –trailer Silently Not Appearing Because an Older Git Version Ignores the Flag Without Raising an Error

πŸ”€ Fix a Commit Trailer Added With –trailer Silently Not Appearing Because an Older Git Version Ignores the Flag Without Raising an Error The –trailer flag on git commit is a convenience option that appends a properly formatted trailer line to the commit message, but it was only added in Git 2.33 β€” run on […]

Read More
Wordpress

WordPress: Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update

- 02.11.26 - ErcanOPAK comment on WordPress: Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update

πŸ“ Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update wp_nav_menu() accepts a ‘walker’ argument pointing at a custom Walker_Nav_Menu subclass that controls exactly how each menu item is rendered β€” dropdown carets, ARIA attributes, mega-menu wrappers, whatever markup the […]

Read More
HTML

HTML5: Fix a Search Input’s Native Clear Button Silently Firing No Input Event So Your Live-Filtered List Never Resets

- 02.11.26 - ErcanOPAK comment on HTML5: Fix a Search Input’s Native Clear Button Silently Firing No Input Event So Your Live-Filtered List Never Resets

🧩 Fix a Search Input’s Native Clear Button Silently Firing No Input Event So Your Live-Filtered List Never Resets An <input type=”search”> renders a built-in clear (“x”) button once it has text, and clicking it does clear the field’s value β€” but depending on the browser engine, that action can fire only a change event […]

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 @ (608)
  • 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