2026

How to Use .env Files to Keep Your API Keys Out of Git

How to use .env files to keep API keys out of Git. Setup for Python, Node.js, and C#, plus what to do if you already committed a secret.

How to Get Your Claude API Key (Step-by-Step Guide)

Learn how to create a Claude API key, make your first API call, and understand pricing. A quick, practical guide for developers.

2021

How to find the Powershell version in Windows

How to find your PowerShell version using $PSVersionTable. Includes version history and Windows PowerShell vs Core.

How to Kill a Thread - C#

How to kill a thread in C# using Thread.Abort() and handle ThreadAbortException safely.

How to Replace Part of a String Using Powershell

How to replace text in a string in PowerShell using .Replace(), the -replace operator, and regex patterns.

How to Use OfType in LINQ - C#

How to use OfType in LINQ to filter a collection by type in C#, with practical examples.

How to Use SelectMany in LINQ - C#

How to use SelectMany in LINQ to flatten nested collections in C#, with real-world examples.

How to Use Where in LINQ - C#

How to use Where in LINQ to filter collections in C#, with method syntax and query syntax examples.

How to Use Select in LINQ - C#

How to use Select in LINQ to transform collections in C#, with method syntax and query syntax examples.

How to Hash a String - C#

How to hash a string in C# using MD5, SHA256, and other algorithms from System.Security.Cryptography.

Uncaught RangeError: Maximum call stack size exceeded

How to fix 'Uncaught RangeError: Maximum call stack size exceeded' in JavaScript. Common causes and solutions.

How to Use Implicit and Explicit Casting - C#

The difference between implicit and explicit casting in C#, with examples of when each is needed.

How to Box and Unbox Variables - C#

Boxing and unboxing in C# explained. How value types convert to reference types and back again.

How to Throw Multiple Exceptions at Once, Using AggregateException - C#

How to throw multiple exceptions at once in C# using AggregateException to batch validation errors.

Why am I getting this exception? - C#

The 15 most common C# exceptions you'll encounter, with explanations and when each one is thrown.

How to detect if Powershell is installed - C#

How to check if PowerShell is installed on a Windows machine before running scripts from C#.

How to handle inner exceptions - C#

How to access and handle inner exceptions in C# using the InnerException property.

Catching the base class of an exception - C#

How to catch multiple exception types in C# using a single catch block for the base Exception class.

How to create custom exceptions - C#

How to create custom exception classes in C# by inheriting from the Exception base class.

Using finally after catching exceptions - C#

How try, catch, and finally blocks work together in C# to handle exceptions and clean up resources.

How to re-throw an exception - C#

How to rethrow an exception in C# without losing the original stack trace, using throw vs throw ex.

How to catch exceptions - C#

How to catch exceptions in C# using try-catch blocks, with examples for handling specific exception types.

How to throw exceptions - C#

How to throw exceptions in C# using the throw keyword, with examples for different exception types.

Creating code sandboxes for 50+ languages using Replit

A look at Replit as an online sandbox for running C# code directly in the browser.

Creating asynchronous tasks, using async and await - C#

How to use async and await in C# to write non-blocking code, with practical examples.

Animate scrolling to an element in Javascript

How to smoothly scroll to an element in JavaScript using scrollIntoView with the behavior option.

Importing and exporting csv files with Powershell

How to import and export CSV files in PowerShell using Import-CSV and Export-CSV commands.

Copying files using the cp command - Bash

How to use the cp command in bash to copy files and directories.

Changing the URL hash without scrolling in Javascript

How to change the URL hash in JavaScript without the page scrolling to the anchor element.

Listing files and directories with ls - Bash

How to use the ls command in bash to list files and directories, with useful flags explained.

Import data from a text file into Powershell

How to read and import text file content into PowerShell using Get-Content.

Changing directory with cd - Bash

How to use the cd command in bash to navigate directories, with shortcuts and tips.

Get the path relative to the script location - Powershell

How to get the current script path in PowerShell using $PSScriptRoot and $MyInvocation.

Git - Remove unreachable objects using git prune

How to use git prune to remove unreachable objects from your repository, with git fetch --prune and git gc.

Creating a new directory using mkdir - Bash

How to use the mkdir command in bash to create directories, including nested folders with -p.

Adding single and multi-line comments in Powershell

How to write single-line and multi-line comments in PowerShell using # and <# #> syntax.

How to repeatedly start a service that failed to stop - Powershell

How to retry stopping and restarting a Windows service in PowerShell when it fails to stop in time.

Using Ray.so to make great looking code images

How to use Ray.so to create beautiful, shareable images of your code snippets.

Automatically schedule a git merge using GitHub Actions

How to use GitHub Actions to schedule automatic pull request merges on a specific date.

How long does my code take to execute? - Javascript

How to measure JavaScript execution time using performance.now() to find slow code.

Passing multiple parameters into a function in Powershell

How to pass multiple parameters into a PowerShell function correctly, avoiding common syntax mistakes.

Delay Google Analytics to improve Pagespeed Insights score

How to delay loading Google Analytics to improve your PageSpeed Insights score without losing data.

Git - Compare two commits using git diff

How to use git diff to compare changes between commits, branches, and your working directory.

Creating objects using New-Object in Powershell

How to create objects in PowerShell using New-Object and PSCustomObject, with practical examples.

Git - Initialize a new repository using git init

How to use git init to create a new repository or reinitialize an existing one.

Differences between a budget and a spending limit in Azure

The difference between an Azure budget and a spending limit, and when each one applies to your account.

Git - How do I set config values in git?

How to use git config to set your username, email, editor, and other settings at local and global scope.

What is the difference between Ingress and Egress? - Azure

Ingress vs egress explained. What they mean in networking, cloud computing, and Azure traffic.

Git - Who can I ask about this change? Using git blame

How to use git blame to find out who changed each line of a file and when.

Git - What is the difference between rm and git rm?

How to use git rm to remove files from your repository, with --cached, --force, and undo options.

How to find and stop processes using Powershell

How to use Get-Process and Stop-Process in PowerShell to find and kill running processes.

Git - Tagging up commits using Git Tag

How to use git tag to mark specific commits as releases or milestones in your repository.

Add your IP address as an NSG rule in Azure using Powershell

How to add your IP address to an Azure Network Security Group using PowerShell.

Git - Temporarily store local changes using Git Stash

How to use git stash to temporarily save uncommitted changes and restore them later.

Getting your public IP address using Powershell

How to get your public IP address using PowerShell with a single command.

Git - Updating your repository with Git Fetch

How to use git fetch to download remote changes without merging them into your working branch.

Adding SVG to the background using inline CSS

How to use an SVG as a CSS background-image with inline data URIs. No external file needed.

Passing each element of an array into a function with Powershell

How to loop through an array and pass each element into a function in PowerShell using ForEach.

Git - Get up to date with Git Pull

How to use git pull to fetch and merge remote changes into your local branch.

Git - Upload committed changes using Git Push

How to use git push to upload local commits to a remote repository, including force push and tags.

Avoid downloading hidden images on mobiles

How to prevent images from downloading on mobile devices using CSS media queries and display:none.

Git - Save changes to your local repository with Git Commit

How to use git commit to save staged changes, write good commit messages, and amend previous commits.

Reducing the file size of Google Fonts for your website

How to reduce the file size of Google Fonts by subsetting characters and self-hosting for faster load times.

Where do I run Git Commands?

New to Git? Here's where and how to run git commands on Windows, Mac, and Linux.

Master the Dino Game on Google Chrome (by cheating)

Hack the Chrome dino game with JavaScript. Auto-jump, invincibility, and speed cheats using the browser console.

Git - Stage files with Git Add

How to use git add to stage files for your next commit, including interactive and patch modes.

Git - Grab a repository with Git Clone

How to use git clone to copy a remote repository to your local machine, with common options explained.

Getting and setting Execution Policy in Powershell

How to use Get-ExecutionPolicy and Set-ExecutionPolicy in PowerShell to manage script permissions.

Git - Create and delete branches using Git Branch

How to use git branch to create, list, rename, and delete branches in your repository.

Chaining Tasks with Continuation Tasks - C#

How to chain async operations in C# using ContinueWith and continuation tasks, with practical examples.

Git - Jump between branches using Git Checkout

How to use git checkout to switch branches, restore files, and navigate your commit history.

How to Get-Help in Powershell

How to use Get-Help in PowerShell to find documentation for any command directly from the terminal.

Whats the difference between Git Status and Git Log?

How to use git status and git log to check your working tree, staged changes, and commit history.

Difference between var, let and const in Javascript

The difference between var, let and const in JavaScript. When to use each, with examples.

Daily.dev - Software news I don't have to hunt for!

A look at daily.dev, the browser extension that replaces your new tab with curated developer news.

React: Getting Started - Pluralsight

My experience taking the React Getting Started course on Pluralsight as a Vue.js developer.

What's the difference between a function and a method in Javascript?

The difference between functions and methods in JavaScript, explained with clear examples.

Loading scripts disabled on this system - Powershell

How to fix 'ps1 cannot be loaded because running scripts is disabled on this system' in PowerShell on Windows.

Spawn threads by using ThreadPool - C#

How to use ThreadPool in C# to reuse threads efficiently instead of creating and destroying them each time.

Welcome to my new blog, using Gridsome!

Why I chose Gridsome and Vue.js to build my developer blog, and what I learned along the way.