Recent Articles

Understand CORS and Learn How to Enable it for Your ASP NET API

Browser security prevents a web page from making requests to a different domain than the one that served the web page. This restriction is called the same-origin policy. The same-origin policy prevents a malicious site from reading sensitive data from another…

How To Automatically Deploy ARM Templates To Azure Cosmos Emulator

The Azure Cosmos Emulator provides a local environment that emulates the Cosmos DB service. Having the Emulator running on your local development machine helps to develop and test your application easily. You no longer need to create an Azure subscription or…

How To Create An ARM Template For Cosmos DB

ARM Templates always overwhelmed me for its size and various attributes and values. After having discovered the ways to author them, these are less intimidating than before. I now use either the Visual Studio Resource Group Project or the ARM Tools…

Are You Using HttpClient in The Right Way?

When an ASP NET application needs to talk to an external service or API, it needs to make an HTTP Request. When using ASP.NET to build an application, HTTP requests is made using an instance of the HttpClient class. An HttpClient class acts as a session to…

How To Improve Your Online Reading - Why I Chose Diigo?

I have been a long time user of the free version of Pocket . I used it mostly to mark articles to read it later and occasionally get to it when I have the time. After attending the Building a Second Brain (BASB) workshop, I realized I have a significant gap…

How To Easily Generate Data For SpecFlow Tests

I have been playing around with SpecFlow for writing tests at one of my recent clients. SpecFlow is a .NET open-source framework for Behavior Driven Development (BDD). BDD aims to create a shared understanding of how an application must behave. The Getting…

How To Continuously Deploy Your .NET Core Azure WebJobs

WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app. Since this runs as part of the same instance as the Web App, there is no additional cost to use WebJobs. WebJobs…

Migrating My Blog From Hugo To Gatsby

I am migrating my blogs again. It is not the first time, so it's no surprise. I have migrated in the past from Blogspot to Wordpress.com , then to self-hosted Wordpress . It didn't end there. I moved again to a Static generator because I thought that's…