Difference Between Full Virtualization and Paravirtualization

AmitDiwan
Updated on 02-Mar-2021 05:17:13

3K+ Views

In this post, we will understand the differences between full virtualization and paravirtualizationFull VirtualizationThis process was introduced by IBM in the year 1966. It is considered to be the first software solution for server virtualization. It uses binary translation and a direct approach method.In this, the guest OS is fully isolated using the virtual machine from the virtualization layer and hardware.Examples of full virtualization include Microsoft and Parallels systems.The virtual machine permits the execution of the instructions in addition to running the unmodified OS in a completely isolated method.It is considered to be less secure in comparison to paravirtualization.It uses ... Read More

Difference Between Flood Fill and Boundary Fill Algorithm

AmitDiwan
Updated on 02-Mar-2021 05:11:06

3K+ Views

In this post, we will understand the differences between flood fill algorithm and boundary fill algorithm. They are area-filling algorithms, and they can be differentiated based on whether a random pixel has the region's original colour or not.Flood-fill algorithmIt is also known as seed fill algorithm.It calculates the area that is connected to a given node with respect to a multi-dimensional array.It works by filling up or recolouring a specific area that contains different colours in the inside part, and hence, the boundary of the image.It is represented by a picture that has a neighbourhood which has borders and has ... Read More

Difference Between for and foreach in PHP

AmitDiwan
Updated on 02-Mar-2021 05:08:19

5K+ Views

In this post, we will understand the differences between 'for' and 'foreach' loops in PHP −The 'for' loopIt is an iterative loop that repeats a set of code till a specified condition is reached. It is used to execute a set of code for a specific number of times. Here, the number of times is the iterator variable.Syntax:for( initialization; condition; increment/decrement ) {    // code to iterate and execute }Initialization: It is used to initialize the iterator variables. It also helps execute them one at a time without running the conditional statement at the beginning of the loop's condition.Condition: ... Read More

Difference Between Greedy Method and Dynamic Programming

AmitDiwan
Updated on 02-Mar-2021 05:04:41

757 Views

In this post, we will understand the differences between the greedy algorithm and dynamic programming methods.Greedy algorithmIt is an algorithmic paradigm that builds up on a solution in parts, step by step. The next step is chosen such that it gives the most obvious and immediate benefit.Problems that involve choosing local optimal values will help in choosing the global optimal values/solution to the problem. Such ate the problems associated with greedy algorithm.There is no surety that a greedy algorithm would lead to an optimal solution.An optimal choice is made at every stage of the problem, i.e the local optimal solution.It ... Read More

Difference Between Prim's and Kruskal's Algorithm

AmitDiwan
Updated on 02-Mar-2021 05:02:09

1K+ Views

In this post, we will understand the differences between Prim's and Kruskal's algorithms.Kruskal's algorithm for Mininum Spanning Tree (MST)When a connected and undirected graph is given, a spanning tree of such a graph is the subgraph which is a tree that connects all of the vertices.A single graph can have multiple spanning trees.A minimum spanning tree (MST) (also known as minimum weight spanning tree) for a weighted, connected and undirected graph is a spanning tree that weighs less than or equal to the weight of every other spanning tree.The weight of a spanning tree is determined by adding the weights ... Read More

Difference Between Object and Class in C++

AmitDiwan
Updated on 02-Mar-2021 04:57:52

926 Views

In this post, we will understand the difference between an object and a class with respect to C++ programming language.Classes in C++It is a building block of code in C++ that helps implement object oriented programming.It is a type that is defined by the user.It holds its own data members and member functions.These data members and member functions can be accessed by creating an instance of the class.They can be used to manipulate the variables and can be used to define property to tell how the objects in a class have to act.It can be understood as a blueprint for ... Read More

Difference Between C# and C++

AmitDiwan
Updated on 02-Mar-2021 04:56:56

584 Views

Let us first learn about C# and C++ −C# is a general-purpose object-oriented programming language.It is considered as a pure object-oriented programming language.It is pronounced as 'C sharp'.It was developed by Anders Hejlsberg and his team at Microsoft.Memory Management is done automatically by the garbage collector.It is the language's duty to automatically delete the object once its objective is completed.It is windows specific, i.e. it can't be used on all systems.It doesn't support multiple inheritance.The pointers in C# can only be used in the unsafe mode.It is considered as a high-level language.Once the code is compiled, it gets converted into ... Read More

Update Specific Node of XML File Using PowerShell

Chirag Nagrekar
Updated on 01-Mar-2021 12:09:27

7K+ Views

To update the specific XML node using PowerShell, we first need to select that node with the attribute with SelectSingleNode() method.We have below the XML file from the link stored in SampleXml.XML on C:\Temp location.https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v=vs.85)In this example, we are going to update Autor and Genre properties of the Book having attribute Id = ‘bk102’$xml=[xml](Get-Content C:\Temp\SampleXML.xml)$node=$xml.SelectSingleNode("//book[@id='bk102']")The above commands will load the XML file and select node with attribute value ‘bk102’.$node.genre='Non-Fiction' $node.author='Dell James' $xml.Save("C:\Temp\SampleXML.xml")The above commands will update the genre and author property.Read More

Check Azure VM Power State Using PowerShell

Chirag Nagrekar
Updated on 01-Mar-2021 10:51:55

8K+ Views

To check if the VMs are running, deallocated, or stopped using PowerShell, we need to use the - Status parameter.If you write only the Get-AzVM command to get the VM details, it won’t show up the Azure VM power status default.ExampleTo check the Azure VM Power Status, Get-AzVM -statusOutput The above command will show the Power State for all VMs for that particular subscription. For different subscriptions, you need to change the subscription and run this command.To get the VM Power State for the specific ResourceGroup, use the ResourceGroup name parameter.ExampleFor example, Get-AzVM -ResourceGroupName TestVMRG -StatusThe above command will retrieve all ... Read More

Get List of Shared Folders Using PowerShell

Chirag Nagrekar
Updated on 01-Mar-2021 10:49:21

8K+ Views

Get-SmbShare gives all the shared folders on the local system.PS C:\Temp> Get-SmbShare Name    ScopeName    Path       Description ----    ---------    ----       ----------- ADMIN$    *       C:\Windows    Remote Admin C$        *       C:\ Default    share DSC       *       E:\DSC E$        *       E:\           Default share IPC$      *                      Remote IPC Shared1   *       E:\ExtractExampleTo ... Read More

Advertisements