All Articles

Abhith Rajan on Programming, The Web, Open Source, .NET, The Cloud and More.

GatsbyJS - Add Google AdSense
January 05, 2020 · 2 min read

Make use of GatsbyJS SSR APIs to integrate Google Adsense

.NET Core API Gateway Ocelot - Logging HTTP Requests & Response Including Headers & Body
December 26, 2019 · 5 min read

Setup Ocelot API Gateway in ASP.NET Core and configure HTTP request and response logging including headers and body.

SQL Server - Delete Duplicate Rows
December 04, 2019 · 2 min read

Delete duplicate records from a SQL server table without primary keys or any unique columns.

Angular - Add Custom Font
November 12, 2019 · 2 min read

A short article about how to add custom font files to your Angular projects.

C# - Convert DateTime to Long and Vice Versa
October 29, 2019 · 2 min read

Transform datetime to long or long to datetime in C#.

Gatsby - See All Generated Pages
October 05, 2019 · 1 min read

See all the pages generated by Gatsby.

Azure - Configuring End-to-End SSL for IIS Website by using Application Gateway
September 24, 2019 · 3 min read

This article brief about the steps involved in making an end to end HTTPS website which hosted in a VM IIS, in Azure and the traffic need to be routed via Application Gateway.

C# - Get Last N characters from a string
September 22, 2019 · 2 min read

A simple C# extension method which use Substring to get the last N characters in a string.

ASP.NET Core - Return 500 (Internal Server Error) or any other Status Code from API
September 16, 2019 · 3 min read

A good REST API will respond with proper HTTP status codes. In ASP.NET Core, returning status code is easier than you might think.

C# - Get Web.Config Connection String in a Class Library
September 15, 2019 · 2 min read

If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager