How to make a dark mode with CSS Every time I learn some new piece of CSS I'm amazed at how flexible and powerful it is. Like how easy it is to tailor your site for your visitor's "dark mode" preference!
Add and subtract time from a DateTime structure in Erlang I was trying to add times in Erlang, but couldn't find an existing function, so I wrote my own.
Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement This error might look a little cryptic at first glance, but it's fairly descriptive in explaining what's wrong. You're likely to come across this one before your first cup of coffee.
Assign C# code to a variable and then run it Did you know most languages have a way to pass around code to other functions, so you can call (invoke) it in other parts of your application? In C#, it's called a delegate.
How can I find the state of NumLock, CapsLock or ScrollLock in WPF? If you're writing a WPF application and need to find the state of the Num Lock, Caps Lock, or Scroll Lock keys, you're in luck - there's a method for that.
What is the opposite of Any in LINQ? One of the many nice functions in LINQ is a single word that iterates through a collection, returning true if at least one item in the collection matches the condition you specify. But what's the opposite of the Any keyword in LINQ?
Create a TOTP 2FA code for your app I use 2FA on every site that supports it, but I'd never given much thought to how a 2FA code is generated. Let's learn how!