Posts

Showing posts from March, 2018

Generics - Basic

Image
Generics Definition Generics are the most powerful feature of C# 2.0. Generics allow you to define type-safe data structures, without committing to actual data types. This results in a significant performance boost and higher quality code, because you get to reuse data processing algorithms without duplicating type-specific code. [ MSDN ] Code Compare.cs public class Compare<DONTKNOWYET> {         public bool CompareData(DONTKNOWYET d1, DONTKNOWYET d2 )         {             if(d1.Equals(d2))             {                 return true;             }             return false;         } } Program.cs  class Program  {         static void Main(string[] args)         {       ...

Azure - RDP Windows Virtual Machine - Mac OS

Image
Problem Definition How to connect to Windows Virtual Machine from Mac OS. Prerequisites Access to Azure Portal -  http://portal.azure.com Windows Virtual Machine in Azure - If you don't have one follow this link and create one. Steps to setup RDP Go to APP Store on your Mac. Search "Microsoft Remote Desktop" At time of this Blog there are 2 version available from Micosoft ver 8\ver 10. I have so far used version 8 and it works pretty good but I will be using version 10 to explore. Ver 10 is on the right. Once app installation finishes you will see this your app. This is how it looks like: Steps to Connect to Existing Virtual Machine Log in to Azure Portal From the left side blade select "Virtual Machines" Look for the Virtual Machine you wish to connect to and make sure its status is Running. Open the virtual machine using Name link Click on Connect  There will be a RDP file downloaded t...

Azure - Set up Windows 2016 Server Virtual Machine - Step By Step

Image
Problem Definition Steps to set up Windows server VM in Azure. Prerequisites Access to Azure Portal -  http://portal.azure.com Steps Log in to Azure Portal From the left side blade select "Virtual Machines" Click "Add" button Usually in the recommended section you will find Windows Server, if not use search and type Windows and select Windows Server. In this example we are setting up a 2016 Server but you can pick any flavour of Windows Server you want. Pick option of Resource Manager unless you want to knowingly pick "Classic". Resource Manager option provided with flexibility of grouping resources together as logical units. You can easily control access for grouped resources any new unit will have same rules and policies applied as of group. Step#1(Basics): Enter details for you machine. Labels are very much explanatory what needs to be entered but in case of any confusion please leave a comme...