Notes on software and the ideas behind it

Find the meaning
behind the code.

I’m Fred Yang. I write about software—how it works, why it behaves the way it does, and the ideas that make code easier to reason about.

Open the notebook

Working notes / 2026

Recently mapped

Architecture, reactivity, and the hidden relationships that shape frontend systems.

InfoPath

xsd maxOccurs="2" minOccurs="1"

XSD allow you to specified maxOccurs=”2” minOccurs=”1” in sequence and and element. What is the difference. Below is section
Follow the thread
asp.net

Debugging Form Authentication API in asp.net

FormsAuthentication.RedirectFromLoginPage(UsernameText.Text, false);
Follow the thread
Security

Improving the Performance of a Reusable Authorization Framework

<ul> <li> Batch authorization queries whenever possible to avoid frequent out-of-process round trips. For example, retrieve roles for multiple users in a single request. </li><li> Cache the authorization data close to where you will...
Follow the thread
Security

How to Change the Principal in an ASP.NET Application

protected void Application_AuthenticateRequest(Object sender, EventArgs e) { // Check whether there is a current user and that // authentication has occurred. if (!(HttpContext.Current.User == null)) { IIdentity CurrentUserIdentity = HttpContext.Current.User.Identity; // Check to see...
Follow the thread
Security

Impersonator

Please also reference this article http://blogs.msdn.com/jimmytr/archive/2007/04/14/writing-test-code-with-impersonation.aspx
Follow the thread