Regular expressions are on of the most powerful tools in a developer’s toolkit. But let’s be honest, regex kind of sucks to write. Not only is it hard to write, but it’s also hard to read and debug too. So how can we make it easier to use? In its …
mssql An error occurred while creating a new firewall rule Value cannot be null. (Parameter serverName)
You are receiving the following error message because your IP address (client or local) has not been added to the Azure firewall on the Azure SQL Server. Error: mssql An error occurred while creating a new firewall rule Value cannot be null. (Parameter serverName) If you want to grant access …
Integration Tests for WebClient with WireMock
Hi guys! Today we will learn how to do integration testing for Spring WebClient that invokes external REST APIs with WireMock and JUnit 5. As an example, we will implement a simple logic responsible for querying the GitHub API using coroutines. Nevertheless, I am pretty sure you will be able …
How to enable PowerShell in Github Codespaces?
Are you the one stuck with the below issue? Unable to find the PowerShell in the GitHub codespaces terminal. PowerShell is not available after installing the extension in the GitHub codespaces. Not comfortable with Bash. See the below image, the PowerShell option is missing in the CodeSpaces terminal and you’re …
Reactive Programming in Kotlin: A Step-by-Step Guide
In this article, we are going to tackle Reactive Programming in Kotlin. We will start with what exactly Reactive Programming is, how we could use it to our advantage, and what techniques we can use in Kotlin. I am going to explain everything in simple terms to make this article …
Failed to load API definition error in Swagger for ASP.NET Core
There are various reasons cause the swagger to fail to load the API definition and you will get the error shared in the below screenshot. Below are the possible reasons, Swagger misconfiguration Controller methods without HTTP verbs (HttpGet, HttpPost etc.) Same class name etc… Fig 1. Failed to load …
Adding Swagger to ASP.NET Core Web API Project
1. What is swagger? Swagger is an open-source set of rules and specifications. It is used for API documentation and testing the API endpoints. Swagger UI generates documentation based on the Swagger specification and provides an interactive UI for testing APIs and experimenting with different parameters and options. 2. How …
Guide to Strings in Python
A string in Python is a sequence of characters. These characters can be letters, numbers, symbols, or whitespace, and they are enclosed within quotes. Python supports both single (‘ ‘) and double (» «) quotes to define a string, providing flexibility based on the coder’s preference or specific requirements of …
The visual Studio component cache is out of date, please restart Visual Studio.
Problem statement: You may receive the following error when you try to open the New Query window in the Microsoft SQL Server Management Studio connected to the Microsoft SQL Server instance. Fig 1. The visual Studio component cache is out of date, please restart Visual Studio. Solution: Option 1: …