How to extract assembly name from DLL file in C# 05-08-202330-07-2022 by Maytham Fahmi There are situations where you have a DLL file/s in a project that does not necessarily have the same name or you are downloading that DLL file/s from a third party or other sources that are not necessary again to have the same name. For this reason, I renamed Newtonsoft.Json.dll to 6b9aeacd-0521-444b-a5eb-a8c58b065c6e.dll and put it…. ShareTweetSharePin
Phone validation with C# 15-08-202208-07-2022 by Maytham Fahmi When a new or small business starts a new website or web application with an online form. In the beginning, the business is focused on one country, and so the phone validation might be simple, but soon or later the business will grow and validation of international phone numbers becomes complex. I have seen often…. ShareTweetSharePin
Send Notifications to Team Channel 04-05-2022 by Maytham Fahmi As a Software or DevOps Engineer, you often want to share automated notifications of critical updates, release status, or any other info on a Microsoft Teams channel. For example, I have previously automated the release information so stakeholders like Product Owners, Operations, and Management were able to follow on a Microsoft Teams channel a web…. ShareTweetSharePin
How to implement recursive KnapSack Algorithm in C# with real life Example – Part2 29-04-202212-04-2022 by Maytham Fahmi As we talked about in the last article, we used the recursive approach of KnapSack and we have had 2 drawbacks. It is heavy in running time and it is not possible to track the index of removed items. In this part, we will take the Dynamic part approach which will improve running time and…. ShareTweetSharePin
How to implement recursive KnapSack Algorithm in C# with real life Example – Part1 29-04-202206-04-2022 by Maytham Fahmi Imagine you have a little trolley with a maximum load of 200Kg (20000 gram), and you get one chance to transport rocks of different weights, each has a reward value from location A to location B, and you are not allowed to load more than 200Kg of rocks. You want to pick the most possible…. ShareTweetSharePin
How to create a simple PaC workflow with C# for GitHub actions 04-12-202216-03-2022 by Maytham Fahmi Time is moving fast and a lot of things happing within the Software Development and DevOps world. You have properly heard a lot about Pipeline As Code (PaC). IMO the idea behind Pipeline as code is to ensure that we can at any time recreate and redeploy our environment in the same way so that…. ShareTweetSharePin
How to .NET Core 3.0 Wpf application use Dependency Injection 08-02-202219-10-2019 by Maytham Fahmi I have recently come across this requirement to a project I am working on that requires Dependency Injection. For this we need to install/add nuget package to our Wpf project: In my case I created a class that I want to use for logging called it LogBase, so in my App.xaml.cs class add following, this…. ShareTweetSharePin
How to convert AI, EPS, PDF, PS to Image file in C#? 08-02-202210-08-2019 by Maytham Fahmi It is possible to convert AI, EPS, PDF and PS to image file of choice. This can be done different ways. I will show you how to do it using well recognized libraries for free. This requires 3 steps. We need a library that can read AI, EPS, PDF and PS. For this purpose, Download…. ShareTweetSharePin