FakeStandard

FakeStandard @fakestandard

About: coding and decoding at work and life — 隨意筆記

Location:
Taiwan, Taipei
Joined:
Jul 12, 2022

FakeStandard
articles - 52 total

Fetch API — Understanding Request.cache

When a webpage sends a request, it usually uses HTTP Cache. The Request.cache property in the Fetch...

Learn More 1 0Nov 24 '25

Understanding HTTP Content-Type

The HTTP Content-Type header tells the server or browser what kind of data is begin sent and how it's...

Learn More 1 0Nov 13 '25

Using the Fetch API

Back in the day, we used XMLHttpRequest to call APIs. Nowadays, we use the Fetch API instead — it...

Learn More 1 0Nov 7 '25

A Practical Guide to .NET Automatic Memory Management

What these terms actually mean Automatic Memory Management Allocating Memory Releasing...

Learn More 1 0Oct 31 '25

A Practical Guide to .NET CLR, Managed and Unmanaged Code, and Interop

What these terms actually mean Common Language Runtime (CLR) Managed Code Unmanaged...

Learn More 2 0Oct 21 '25

Exploring .NET Dependency Injection Lifetimes with Real Examples

When we register services in the DI (Dependency Injection) container in .NET, the service instance...

Learn More 2 0Oct 10 '25

Create a Custom Middleware in .NET

Creating custom middleware in .NET is straightforward and powerful. Here's a quick step-by-step guide...

Learn More 1 0Oct 4 '25

Simplifying Graph API Authentication with C#

When I was working with Azure.Identity.ClientSecretCredential for authentication, I noticed something...

Learn More 0 0Sep 25 '25

I Didn't Understand Program.cs in .NET, So I Wrote This

When I created a new ASP.NET Core Web App (Model-View-Controller) project in .NET 8, I found there...

Learn More 1 0Sep 10 '25

How to Quickly Test SQL Server Connection from a Client

If you have a SQL Server environment and want to confirm if your client machines can connect to the...

Learn More 0 0Sep 9 '25

Can't Connect to SQL Server? Check If TCP/IP and Firewall Are Enabled

I tried to log in to SQL Server but got a following error A connection was successfully established...

Learn More 0 0Sep 8 '25

SQL Server Login Failed for 'sa' (Error 18456): How to Fix It?

When I tried to log in to SQL Server using the sa account, I encountered the following error Login...

Learn More 0 0Sep 8 '25

The Magic of Four Lines in .NET

When I created a new ASP.Net Core Empty project in .NET 8, I was surprised by how little code it...

Learn More 0 0Sep 5 '25

Perform CRUD on a database using Dapper

Dapper is a lightweight and agile ORM package for the .NET development platform. It allows executing...

Learn More 1 0Feb 12 '25

Often Misused File Upload ( 11503 ) Check the File Extension During Upload

After performing a source code vulnerability scan on the website, the report indicated the issue...

Learn More 0 0Feb 11 '25

TS - Array 元素上下移動、置頂置底和元素交換,你會嗎?

在操作 TypeScript 的 Array...

Learn More 0 0Nov 26 '24

[ASP.NET] Setting and Retrieving Custom Data from Web.config

In ASP.NET application, we can store dynamic data in the configuration file, specifically in...

Learn More 0 0Nov 25 '24

TS - Partial 用法及解析

Typescript 的 Utility Types 有很多,Partial 就是其中之一 Partial 的描述官方是這麼說的 Constructs a type with all...

Learn More 0 0Nov 23 '24

[PS] 用 PowerShell 查詢 .NET Framework 版本

當程式要佈署在具有 IIS 的主機上時,需安裝程式要使用的 .NET Framework 版本,但主機上究竟有沒有程式需要的版本,可以使用幾種方式查詢,最快的方法是使用 Power Shell...

Learn More 0 0Nov 12 '24

TS - 使用其他語法替代跳出 forEach 迴圈這件事

使用其他語法來替代中止 forEach 以達成目的 前篇談到如何中止 forEach...

Learn More 0 0Jun 6 '23

TS - 淺談 some 和 every 方法

淺談 Typescript 中的 some 和 every...

Learn More 0 0Jun 1 '23

TS - 如何跳出 forEach 迴圈

紀錄 Typescript forEach 如何跳出迴圈 C# 寫習慣之後要寫 TS 有些不習慣,在 TS forEach 中是不能使用 break 或 continue,只能使用...

Learn More 0 0May 24 '23

[MSSQL] SQL 新增完成後取得 PK

一開始學習 SQL 語法時不外乎是 CRUD,由於需求的關係,要將新增後產生的 PK 傳回到後端,或者是將 PK 拿去處理別的事,如果經驗值不夠或者還沒深入進階實務,會直覺地使用 SELECT 加上...

Learn More 1 0Apr 28 '23

[MSSQL] 使用 SQL 產生流水單號

近期開發專案需要使用 SQL 產生西元日期搭配流水號作為單號,例如 P221027001,若當天已經存在第一筆單號,則找到當日最大的單號,將流水號遞增產生下一筆單號,例如...

Learn More 3 0Nov 14 '22

Rename Task in Windows Task Scheduler

今天要記錄關於 Windows 內建功能—任務排程器(Task Scheduler) Task Scheduler...

Learn More 4 0Nov 8 '22

Same Tree

#100.Same Tree Problem statement Given the roots of two binary trees p and q, write a...

Learn More 3 0Nov 1 '22

Binary Tree Inorder Traversal

#94.Binary Tree Inorder Traversal Problem statement Given the root of a binary tree,...

Learn More 2 0Oct 31 '22

Remove Duplicates from Sorted List

#83.Remove Duplicates from Sorted List Problem statement Given the head of a sorted...

Learn More 4 0Oct 25 '22

Add Binary

#67.Add Binary Problem statement Given two binary strings a and b, return their sum as a...

Learn More 0 0Oct 24 '22

Plus One

#66.Plus One Problem statement You are given a large integer represented as an integer...

Learn More 1 1Oct 19 '22