Posts


Other Views: By Month | By Category | By Tag Cloud


VS Code - Favorite Extension - markdownlint

In this series, we are taking a look at some of my favorite VS Code extensions.

Extension in VS Code are invaluable to speed up your work and make you more productive.

In this post, we are going to look at Markdown Lint which provides Markdown/CommonMark linting and style checking for markdown files.

Markdownlint has make my markdown output much more predictable and easier for others dev to follow.

Read More


VS Code - Favorite Extension - Path Intellisense

In this series, we are taking a look at some of my favorite VS Code extensions.

Extension in VS Code are invaluable to speed up your work and make you more productive.

In this post, we are going to look at Path Intellisense which autocompletes file names.

Read More


VS Code - Favorite Extension - FoldPlus

In this series, we are taking a look at some of my favorite VS Code extensions.

Extension in VS Code are invaluable to speed up your work and make you more productive.

In this post, we are going to look at Fold Plus which enables you to quickly expand or collapse sections within a file.

Read More


VS Code Favorite Extension Series - Add Only

Extension in VS Code are invaluable to speed up your work and make you more productive. In this series, we are taking a look at some of my favorite VS Code extensions.

In this post, we are going to look at Add Only to quickly add or remove a .Only to your tests.

Read More


ASP.NET - Health Checks - Generic Endpoint

In the previous post in the series, we have implemented our health checks that return a json response and allow us to selectively run the health checks based on tags.

In this post, we are going to build on the previous post and update our endpoint mappings to use a generic endpoint builder so that we only have our filters and json response code in a single place.

Read More


ASP.NET - Selectively Run Health Checks

In part 1 we create our basic ASP.NET Core health check and then in part 2 we changed from plain text “Healthy” or “Unhealthy” to a json response that let us know the stauts of each health check.

In our previous post, we have only have a single health check so it has been ok to have all health checks run when we hit our health check endpoint. However, if we had multiple health checks we are going to want to be able to run them by themselves as well as run the whole suite.

In this post, we will are going to add the ability to selectively run our health checks and create endpoints that will run either a set of health checks or all of the health checks.

Read More


ASP.NET - Health Checks - Generate Better Response Than Just Text

In our previous post, we added a simple health check to our ASP.NET Core application. Although we only added a single health check, you can add multiple health checks and have multiple run as once. Regardless if you run a single or multiple health checks, the implementation out of the box, just returns a “Healthy” or “Unhealthy” string, which is not overall helpful to know which component actually failed.

In this post, we are going to update our health check response to return a json record that will let us know the status of each health check that is run as well as the overall health status of the application.

{
    "status": "Healthy",
    "duration": "00:00:00.0066738",
    "info":
    [
        {
        "key": "ExampleHealthCheckAsync",
        "description": "Health Msg Here.",
        "duration": "00:00:00.0010113",
        "status": "Healthy",
        "data": {}
        }
    ]
}

Read More


ASP.NET Core - Add Health Checks

If your ASP.NET Core application communicates with any 3rd party systems, it is beneficial to have health checks to determine if your connection to the 3rd party system is healthy, degraded, or unhealthy.

With ASP.NET Core, Microsoft references Microsoft.AspNetCore.Diagnostics.HealthChecks package implicitly for ASP.NET Core apps. This means that everything you need architecture wise is available and you just need to create your actual health check code.

Read More


Hugo - Add Google Analytics

It is really helpful to understand how your site is performing with respect to which posts are getting the most views, how long are people staying on your site, where in the world they are viewing your site from and where did your traffic come from.

To get analytics for this site, I am using Google Analytics which is free.

In this post, we will enable Google Analytics on our Hugo site.

Read More


Hugo - Set Default Front Matter When Creating Post

Did you know that when you create a new post in Hugo that you can set the default front matter set for you?

I didn’t know either until after I had done over 50 posts where I created all of my posts files and front matter by hand. Whereas I could have had Hugo create the files for me and set default front matter that I wanted.

In this post, we will look at how you can also set your default front matter for your post.

Read More