All Stories

C# - Get Last N characters from a string
September 22, 2019 · 1 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 · 1 min read

A good 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 · 1 min read

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

Using AutoMapper in a .NET Core Class Library
September 11, 2019 · 2 min read

Configuring and using AutoMapper in a .NET CORE class library is briefed in this article.

Dapper - Execute Multiple Stored Procedures
September 05, 2019 · 2 min read

Dapper provides extension methods to execute multiple queries within the same command. The same can be used to execute multiple stored procedures.

IIS - Disable CORS
August 14, 2019 · 1 min read

Disable CORS for IIS 10 website by allowing all origins in two simple steps.

Azure Web App - Web Deploy to a Sub-folder
July 30, 2019 · 2 min read

Follow this tutorial to configure web deploy from Visual Studio to a sub-folder in your azure web app (App Service).

Azure Web App - Missing MIME types
July 11, 2019 · 2 min read

If you are seeing "404 Not Found" for .woff, .woff2 or for .json files even if they exist on your azure web app, this is the post for you.

Best Laptop for Programming Under $2500 Dollars 2019
June 08, 2019 · 3 min read

Best laptop under 2500$ in 2019 with min spec of i7-9750H, RTX-2060 and Thunderbolt 3 support.

Create SQL Server Database From a Script in Docker-Compose
May 21, 2019 · 3 min read

Run a SQL Server container with database initialized from a script using docker-compose.