TechCorner

  • Dependency Injection and Interfaces with C#

    This is more of a beginners guide in understanding Dependency Injection (DI) with mainly C# and using very basics of Asp.net Web API project. In summary it is the difference between a class creating its own dependencies vs those dependencies are injected into the class from an external source. Interfaces are also a core concept…

  • How negative numbers are stored in computers

    Computers stores everything in Base 2 or binary format than Base 10 like what humans usually count with. This article is to brief how computer stores negatives numbers generally and the most prevalent approach of two’s complement. Understanding this will explain why a SByte in C# is -128 to +127. Overall we need a method…

  • Need for PSCustomObject in PowerShell

    PSCustomObjects are an essential part of PowerShell’s toolkit. PowerShell being a scripting language needed to provide users (mainly admins) ability to create objects for purposes like creating excel reports. Hashtable’s alone did not provide the flexibility like exporting to csv. Why PSCustomObject Being part of .net and Object Oriented programming paradigms ideally we need a…

  • How does git stores data

    Git developed by Linus Torvalds is the most widely used source control system. It empowers developers by managing different versions of source files and it provides lot of features to aid in development. Stash may be my favorite feature of all. Below summarizes how git stores data. The .git hidden folder Once we initialize git…

  • How to replace Microphone (Jabra Evolve2 30)

    My office Jabra headset got damaged. Water entered inside the microphone part and the usual techniques like hair dryers didn’t do the trick. Voice was not clear (sounded like I was in water) and it couldn’t be used in this condition. If you already have a basic setup to solder, this is a 2 dollar…

  • How to compare two large files and get difference

    PowerShell would be an easy approach with which two large readable files like (*.txt) can be compared. When the content in the file is 40 characters long and have 40 thousand lines to compare then usual techniques like excel VLOOKUP will fail. PowerShell’s Compare-Object command comes to the rescue in such scenarios. Compare-Object Compare objects…

  • What are class and objects in Object-oriented Programming

    Mainly there are two types of programming paradigms one being Functional and other is Object-Oriented (OOP). As the names suggests Functional approach emphasizes on pure functions (no state changes and shared data). OOP programming uses classes and objects to model the problem domain. Lets explain the differences through a small application. Requirement is to create…

  • How to use ZoomIt.exe

    If you have struggled with presenting your files and desktop over screen share and find the need to point, zoom or draw on the screen then ZoomIt can help. ZoomIt is a tool, part of Sysinternals tootkit. ZoomIt help to do effective presentation by zooming in a certain part of screen or to annotate on the screen. Download…

  • What is DNS and how name resolution works

    DNS stands for Domain Name System and essentially it is a phone book or contacts app for our computer. Understanding how name resolution happens at least at a high level is important to troubleshoot issues. It also helps in building larger systems which interacts with each other. What is DNS and Why we need? Humans…

  • How to change border color in Windows Explorer

    In Windows 11 and for certain themes, all windows screens like explorer had transparent borders and made it difficult to differentiate between two explorer screens on top of each other. Adding a certain colored border will help to differentiate more clearly and avoid accidental clicks.To set borders on Windows Explorer, you can follow the steps…

Categories