Dynamic PGO in .NET 7

With .NET 7 release, the .NET team has released dynamic PGO functionality for JIT in CoreCLR. Static PGO was already there with .NET 6 release, but with 7, we have both Static and dynamic PGO. Static PGO is by default on in .NET 6 and 7, the dynamic PGO we have to opt into with the flag. But before we enable it, let’s understand quickly what PGO means itself and what’s the difference between its static and dynamic variants....

May 7, 2023 · 3 min · Shreyas Jejurkar

How to set the memory limit for docker container

Docker is a popular tool for packaging and deploying applications in containers, which are lightweight and portable execution environments. One of the key benefits of using Docker is the ability to limit the resources that a container can use, such as CPU and memory. This can be useful for optimizing the performance of your containers and ensuring that they do not consume too many resources on the host machine. To set a memory limit when running a Docker container, you can use the --memory flag followed by the amount of memory you want to allocate to the container....

December 29, 2022 · 2 min · ShreyasJejurkar

Create a keyboard shortcut for pulling changes in git in Visual Studio Code

If you are a web developer or a software engineer, it’s most likely you are using Visual Studio code as your code editor. Yeah, it’s fantastic and easy to use. But I wondered when I found that there is no default shortcut key for most used options in git workflow, which pulls changes from upstream. So I decided to have a shortcut for pulling changes from upstream for both the current branches and different branches and also I though I should write a blog post around this just to let people know how to do that....

December 29, 2022 · 2 min · ShreyasJejurkar

How to - Hide Prefetch request from Network Tab in Chrome DevTools

If you are a Web developer and working on a Full Stack application, you might have notice that the browser ( in my case Chrome) does send prefetch requests to your API endpoints before the actual API calls. This is actually useful to improve performance but this can be very confusing when you are debugging applications from the front-end to the back-end and monitoring API calls in the network tab. Prefetch requests just clutter the network tab and we miss our actual XHR request to see what is happening....

September 17, 2022 · 1 min · ShreyasJejurkar

List of Podcasts channels for .NET C# developers

Just like I have aggregated YouTube channels for .NET developers, with this post I will be sharing the list of podcasts channel that you can consider listening to in order to keep up to date with .NET and related stuff. Because taking screen time off is important but learning and curiosity should not be stopped. The Unhandled Exception Podcast Adventures in .NET The .NET Core Podcast Null Pointers no dogma podcast DevTalk with Kerry W....

April 7, 2022 · 1 min · ShreyasJejurkar

List of YouTube channels for .NET C# developers

Following is the list of youtube channels that I have aggregated for .NET C# (Csharp) developers. I personally follow them every day and subscribed. Please note that this does not represent any kind of ranking. I would suggest going through them one by one looking at their content and playlist section and if you are interested give them a sub! Along the time, I will keep this list updated, if I missed someone, please let me know in the comment section below!...

January 24, 2022 · 1 min · ShreyasJejurkar

How to - Change last git commit message.

In today’s post, I will walk you through the steps needed to change the last commit message in git version control. If you don’t know, git is a very popular, distributed version control system often used in software development to intelligently manages code changes which are done by several people in a large software project. Most often I face the problem where I need to change my commit message after I make a commit with a bunch of changes....

April 25, 2021 · 2 min · ShreyasJejurkar

Clean Architecture with C# .NET

Today, in this post I will walk you through the basics and important concepts related to Clean architecture with .NET. What is Clean Architecture Clean architecture is the next iteration of the very well know architecture patterns that we used to see in the past like Hexagonal, Onion, and Screaming architecture. This architecture is by no means a silver bullet or first-class solution to all architecture problems or complexities that we face today....

April 22, 2021 · 6 min · ShreyasJejurkar

How to fix - Could not found one or more components. please reinstall the application error.

Recently I was working on one of the projects where I was using SQL Server 2014 as a database and Visual Studio 2019. And suddenly I started getting the above error when I tried to open SQL Server 2014. I tried repairing the installation of SQL Server 2014 via the installer, but it did not work, and I was getting the same error as before. So I got into thinking, like what I did before I was getting this error, then I realized that I have deleted the “Visual Studio 2010” folder from my Program Files (x86) folder....

April 16, 2021 · 2 min · ShreyasJejurkar