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

HTML

HTML5: Fix a datalist Suggestion List Not Filtering as You Type

- 18.11.26 - ErcanOPAK comment on HTML5: Fix a datalist Suggestion List Not Filtering as You Type

🧩 HTML5: Fix a datalist Suggestion List Not Filtering as You Type The HTML specification leaves it up to the browser exactly how a datalist’s suggestions get matched against what the user has typed, and it doesn’t standardize whether that matching happens against an option’s value attribute or its visible label text. An option written […]

Read More
Wordpress

WordPress: Fix a Custom Field Resetting After Every Autosave

- 18.11.26 - ErcanOPAK comment on WordPress: Fix a Custom Field Resetting After Every Autosave

πŸ“ WordPress: Fix a Custom Field Resetting After Every Autosave WordPress’s autosave heartbeat fires every 60 seconds and saves a post revision in the background using its own AJAX request, which only posts the fields the editor actually serialized for that revision — not necessarily every custom field on the screen. A meta-box save handler […]

Read More
Docker

Docker: Fix a Healthcheck Marking a Container Unhealthy Too Soon

- 18.11.26 - ErcanOPAK comment on Docker: Fix a Healthcheck Marking a Container Unhealthy Too Soon

🐳 Docker: Fix a Healthcheck Marking a Container Unhealthy Too Soon A Docker HEALTHCHECK runs on a fixed interval starting from the moment the container starts, and every failed probe counts toward the unhealthy threshold unless a start period is configured. An application that genuinely needs real startup time — warming a cache, running migrations, […]

Read More
Windows

Windows 11: Fix Voice Typing Placing Punctuation in the Wrong Spot

- 18.11.26 - ErcanOPAK comment on Windows 11: Fix Voice Typing Placing Punctuation in the Wrong Spot

πŸͺŸ Windows 11: Fix Voice Typing Placing Punctuation in the Wrong Spot Windows 11’s Voice Typing can insert punctuation automatically by guessing sentence boundaries from pauses and intonation in your speech, rather than from the words themselves — which works reasonably well for slow, deliberate dictation but breaks down for natural speech with mid-sentence pauses, […]

Read More
Git

Git: Fix a Stash Pop Conflicting With Unrelated Untracked Files

- 18.11.26 - ErcanOPAK comment on Git: Fix a Stash Pop Conflicting With Unrelated Untracked Files

πŸ”€ Git: Fix a Stash Pop Conflicting With Unrelated Untracked Files A stash created with –include-untracked bundles untracked files into the stash alongside tracked changes, which is exactly what you want right up until a new, unrelated untracked file with the same path gets created in the working directory before you pop. Git refuses to […]

Read More
Photoshop

Photoshop: Fix the History Brush Reverting Past a Resize Step

- 18.11.26 - ErcanOPAK comment on Photoshop: Fix the History Brush Reverting Past a Resize Step

πŸ–ŒοΈ Photoshop: Fix the History Brush Reverting Past a Resize Step The History Brush paints pixels from whichever History state you’ve set as its source, but that source state and the document’s current canvas have to share the same pixel dimensions for the brush to paint cleanly. Resize the image with Image Size and every […]

Read More
SQL

SQL Server: Fix a View Returning Stale Data After a Schema Change

- 18.11.26 - ErcanOPAK comment on SQL Server: Fix a View Returning Stale Data After a Schema Change

πŸ—„οΈ SQL Server: Fix a View Returning Stale Data After a Schema Change A view defined with SELECT * doesn’t re-derive its column list on every query — SQL Server captures that list once, at the time the view is created or last refreshed, and keeps using it. Add a new column to the underlying […]

Read More
CSS

CSS: Fix an aspect-ratio Box Collapsing When Content Overflows

- 18.11.26 - ErcanOPAK comment on CSS: Fix an aspect-ratio Box Collapsing When Content Overflows

🎨 CSS: Fix an aspect-ratio Box Collapsing When Content Overflows aspect-ratio sets a preferred size relationship between width and height, but it isn’t a hard clamp on the box — other layout rules can still win. Inside a flex container, a flex item’s default min-height: auto lets its content push the box taller than the […]

Read More
Photoshop

Photoshop: Fix the Color Picker Clamping a Custom Swatch’s Hue

- 18.11.26 - ErcanOPAK comment on Photoshop: Fix the Color Picker Clamping a Custom Swatch’s Hue

πŸ–ŒοΈ Photoshop: Fix the Color Picker Clamping a Custom Swatch’s Hue The Color Picker always resolves a color into the active document’s current color space, not the space the swatch was originally built in. Save a vivid, saturated swatch while working in RGB, then open or convert the same document to CMYK, and selecting that […]

Read More
JavaScript

JavaScript: Fix Array.sort Reordering Equal Items Unexpectedly

- 18.11.26 - ErcanOPAK comment on JavaScript: Fix Array.sort Reordering Equal Items Unexpectedly

⚑ JavaScript: Fix Array.sort Reordering Equal Items Unexpectedly Every modern engine’s Array.prototype.sort is specified to be stable, meaning elements the comparator treats as equal keep their original relative order — but that guarantee only holds if the comparator itself behaves like a real comparator. A comparator that subtracts a field which can be undefined for […]

Read More
Git

Git: Fix a Merge Driver Being Ignored for One File Type

- 18.11.26 - ErcanOPAK comment on Git: Fix a Merge Driver Being Ignored for One File Type

πŸ”€ Git: Fix a Merge Driver Being Ignored for One File Type A custom merge driver registered in .gitattributes only runs when Git actually performs a genuine three-way content merge on a matching file — if the file is flagged binary, or if only one side of the merge touched it at all (letting Git […]

Read More
Wordpress

WordPress: Fix the Classic Editor Toolbar Missing After an Update

- 18.11.26 - ErcanOPAK comment on WordPress: Fix the Classic Editor Toolbar Missing After an Update

πŸ“ WordPress: Fix the Classic Editor Toolbar Missing After an Update A core or plugin update bumps the version query string on every enqueued script and style so browsers know to fetch the new files instead of a cached copy — but that only works if nothing else is caching the admin screen itself. A […]

Read More
Ajax

Ajax: Fix a Long-Poll Reconnecting Before the Server Replies

- 18.11.26 - ErcanOPAK comment on Ajax: Fix a Long-Poll Reconnecting Before the Server Replies

πŸ”„ Ajax: Fix a Long-Poll Reconnecting Before the Server Replies Long polling works by holding a request open on the server until there’s new data or a timeout, with the client immediately sending a fresh request the moment the previous one resolves. If a separate event — the tab regaining focus, the browser reporting it’s […]

Read More
C#

C#: Fix a Struct’s Default Constructor Skipping Field Defaults

- 18.11.26 - ErcanOPAK comment on C#: Fix a Struct’s Default Constructor Skipping Field Defaults

πŸ”§ C#: Fix a Struct’s Default Constructor Skipping Field Defaults C# 10 allows a struct to define its own parameterless constructor, but that constructor only runs when code explicitly calls new MyStruct(). Both default(MyStruct) and array allocation like new MyStruct[5] bypass it entirely and zero-initialize the memory directly, which means any field default or setup […]

Read More
AI

The AI Prompt That Rewrites a Callback Chain Into Async/Await

- 18.11.26 - ErcanOPAK comment on The AI Prompt That Rewrites a Callback Chain Into Async/Await

πŸ€– The AI Prompt That Rewrites a Callback Chain Into Async/Await Converting a deeply nested callback chain into async/await is mostly mechanical, but the parts that actually matter — error propagation, which calls were running in parallel versus sequence, and what happens to a callback that fires more than once — are exactly the parts […]

Read More
AI

The AI Prompt That Explains a Cryptic Compiler Error in Plain Terms

- 18.11.26 - ErcanOPAK comment on The AI Prompt That Explains a Cryptic Compiler Error in Plain Terms

πŸ€– The AI Prompt That Explains a Cryptic Compiler Error in Plain Terms A raw compiler error often names the symptom at the exact line where the compiler gave up, not the actual decision a few lines up that caused it — which is why pasting the error alone into a general-purpose prompt tends to […]

Read More
Visual Studio

Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet

- 18.11.26 - ErcanOPAK comment on Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet

πŸ› οΈ Visual Studio: Fix IntelliCode Suggestions Stuck on an Old Snippet IntelliCode trains a small, repo-specific completion model from the patterns already in your codebase, and that model is cached locally rather than rebuilt on every keystroke. After a large rename, a deleted API, or a refactor that changes the dominant pattern in a file, […]

Read More
C#

C#: Fix a Deconstruct Method Never Matching a Pattern Switch

- 18.11.26 - ErcanOPAK comment on C#: Fix a Deconstruct Method Never Matching a Pattern Switch

πŸ”§ C#: Fix a Deconstruct Method Never Matching a Pattern Switch Positional pattern matching in a switch resolves against a type’s Deconstruct method using ordinary overload and extension-method lookup rules, which means a Deconstruct defined as an extension method only works for pattern matching where that extension’s namespace is actually in scope via a using […]

Read More
SQL

SQL Server: Fix a Temp Table Causing a Plan Recompile Every Call

- 18.11.26 - ErcanOPAK comment on SQL Server: Fix a Temp Table Causing a Plan Recompile Every Call

πŸ—„οΈ SQL Server: Fix a Temp Table Causing a Plan Recompile Every Call A stored procedure’s cached execution plan is partly built around the statistics of any #temp table it uses, and SQL Server automatically triggers a recompile whenever those statistics change enough between calls to make the cached plan look unreliable. A temp table […]

Read More
Asp.Net Core

Asp.Net Core: Fix JSON Source Generation Skipping a Derived Type

- 18.11.26 - ErcanOPAK comment on Asp.Net Core: Fix JSON Source Generation Skipping a Derived Type

βš™οΈ Asp.Net Core: Fix JSON Source Generation Skipping a Derived Type System.Text.Json’s source generator only emits serialization code for the exact set of types it’s told about at compile time through a JsonSerializerContext, which means polymorphic serialization of a base type needs every concrete subtype declared explicitly via JsonDerivedType. Add a new subtype later without […]

Read More
Kubernetes

Kubernetes: Fix an Ingress Rule Matching the Wrong Backend Service

- 18.11.26 - ErcanOPAK comment on Kubernetes: Fix an Ingress Rule Matching the Wrong Backend Service

☸️ Kubernetes: Fix an Ingress Rule Matching the Wrong Backend Service An Ingress controller doesn’t route purely by the order rules were declared in YAML — most, including the common NGINX ingress controller, merge every Ingress resource for a host into one internal rule table and pick the most specific matching path, regardless of which […]

Read More
Asp.Net Core

Asp.Net Core: Fix a Test Factory Hitting the Real Database by Accident

- 18.11.26 - ErcanOPAK comment on Asp.Net Core: Fix a Test Factory Hitting the Real Database by Accident

βš™οΈ Asp.Net Core: Fix a Test Factory Hitting the Real Database by Accident WebApplicationFactory is supposed to let integration tests swap a real database for an in-memory or SQLite one, but that swap only works if the test host is actually running under a distinct environment name. If the factory never sets EnvironmentName to something […]

Read More
C#

C#: Fix a Nullable Warning Silenced by an Unsafe Cast

- 18.11.26 - ErcanOPAK comment on C#: Fix a Nullable Warning Silenced by an Unsafe Cast

πŸ”§ C#: Fix a Nullable Warning Silenced by an Unsafe Cast Nullable reference type analysis is a compile-time, flow-based warning system, and an explicit cast like (string)maybeNullValue is one of the operations the compiler treats as an assertion that you already know better — it suppresses the nullable warning at that line without inserting any […]

Read More
Windows

Windows 11: Fix a Pen’s Input Lagging in Only One Specific App

- 18.11.26 - ErcanOPAK comment on Windows 11: Fix a Pen’s Input Lagging in Only One Specific App

πŸͺŸ Windows 11: Fix a Pen’s Input Lagging in Only One Specific App Most modern apps read pen input through the native Windows Pointer stack, which is tuned for low latency end to end, but some creative and CAD apps still rely on the older Wintab API through a compatibility bridge that translates pointer events […]

Read More
AI

The AI Prompt That Plans a Carry-On-Only Packing List

- 18.11.26 - ErcanOPAK comment on The AI Prompt That Plans a Carry-On-Only Packing List

πŸ€– The AI Prompt That Plans a Carry-On-Only Packing List A generic packing list treats every trip the same, which is exactly backward for carry-on-only travel, where the real constraint isn’t “what might I need” but “what fits in one bag and survives laundering twice.” A detailed prompt that front-loads trip length, climate, and laundry […]

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,056)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (979)
  • Get the First and Last Word from a String or Sentence in SQL (859)
  • How to select distinct rows in a datatable in C# (856)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (656)
  • Add Constraint to SQL Table to ensure email contains @ (612)
  • 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 (547)
  • Find numbers with more than two decimal places in SQL (477)

Recent Posts

  • HTML5: Fix a datalist Suggestion List Not Filtering as You Type
  • WordPress: Fix a Custom Field Resetting After Every Autosave
  • Docker: Fix a Healthcheck Marking a Container Unhealthy Too Soon
  • Windows 11: Fix Voice Typing Placing Punctuation in the Wrong Spot
  • Git: Fix a Stash Pop Conflicting With Unrelated Untracked Files
  • Photoshop: Fix the History Brush Reverting Past a Resize Step
  • SQL Server: Fix a View Returning Stale Data After a Schema Change
  • CSS: Fix an aspect-ratio Box Collapsing When Content Overflows
  • Photoshop: Fix the Color Picker Clamping a Custom Swatch’s Hue
  • JavaScript: Fix Array.sort Reordering Equal Items Unexpectedly

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,056)
  • Get the User Name and Domain Name from an Email Address in SQL (981)
  • How to add default value for Entity Framework migrations for DateTime and Bool (979)
  • Get the First and Last Word from a String or Sentence in SQL (859)
  • How to select distinct rows in a datatable in C# (856)

Recent Posts

  • HTML5: Fix a datalist Suggestion List Not Filtering as You Type
  • WordPress: Fix a Custom Field Resetting After Every Autosave
  • Docker: Fix a Healthcheck Marking a Container Unhealthy Too Soon
  • Windows 11: Fix Voice Typing Placing Punctuation in the Wrong Spot
  • Git: Fix a Stash Pop Conflicting With Unrelated Untracked Files

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com