How to change the local disk name using PowerShell?

Chirag Nagrekar
Published on 25-Jan-2021 11:47:20
To change the local disk name using PowerShell, we can use the Set−Volume command. For example, we have Drive name F and its volume label is “New Volume” and need to change it to the “Temporary Storage” then we can change the label using its existing volume name or with ... Read More

Find maximum length sub-list in a nested list in Python

Pradeep Elance
Published on 25-Jan-2021 11:46:22
we often deal with nested lists when doing data analysis in python. In this article, we will see how to find out the longest list among the elements in a nested list and then print this along with its length.Using lambda and mapWe declare a nested list and give it ... Read More

How to change the Drive letter using PowerShell?

Chirag Nagrekar
Published on 25-Jan-2021 11:45:34
To change the drive letter using PowerShell, we can use the Set−Partition command but before that, we need to know which drive letter to change. You can check the drive letter using Windows Explorer, Get−Partition, Gwmi win32_Logicaldisk, or Get−CimInstance Win32_Logicaldisk command.Suppose we have an E: and we need to rename ... Read More

How to get the disk information using PowerShell?

Chirag Nagrekar
Published on 25-Jan-2021 11:45:06
To get the Windows disk information using PowerShell, we can use the WMI command or the CIM class command.With the WMI command, Gwmi Win32_LogicalDiskWith the CIM instance method, Get−CimInstance Win32_LogicalDisk You can see both the outputs are identical. Let’s use one of them.DeviceID DriveType ProviderName VolumeName Size FreeSpace -------- --------- ... Read More

How to install the Nuget Package using PowerShell?

Chirag Nagrekar
Published on 25-Jan-2021 11:43:06
Nuget is the package management tool for the .NET and it is similar to PowerShellGet, MSI packages which support several commands and packages to work with PowerShell.NuGet supports Install−Package, Update−Package, Find-Package, and Get−Package command and if Nuget package is not installed in your system, you may not find a package ... Read More

Creating a Proxy Webserver in Python

Pradeep Elance
Published on 25-Jan-2021 11:42:21
A proxy server sits in between the client and the actual server. It receives the requests from the client, send it to the actual server, and on receiving the response from the actual server it sends the response back to the client. There are many reasons to use the proxy ... Read More

Ways to use Where-Object in PowerShell

Chirag Nagrekar
Published on 25-Jan-2021 11:41:07
Where−Object or (alias: Where) in PowerShell is used to filter the data output provided through the Pipeline.There are two methods we can use the Where−Object for the pipeline inputs.a. ScriptMethod −In this method, we use ScriptBlock to filter the output with the Property name, value, and the comparison operator.Get−Service | ... Read More

Print all possible ways to convert one string into another string in C++

sudhir sharma
Published on 25-Jan-2021 09:57:10
In this problem, we are given two strings str1 and str2. Our task is to create a program to Print all possible ways to convert one string into another string. Problem Description: Here, we need to find all possible ways using which we can convert str1 to str2. While converting, we can perform ... Read More

Print BST keys in given Range - O(1) Space in C++

sudhir sharma
Published on 25-Jan-2021 09:55:32
In this problem, we are given two values k1 and k2 (k1 < k2), and the root of the binary search tree. Our task is to create a program to Print BST keys in given Range. Problem Description: We will print all the keys of the tree from n1 to n2 in ... Read More

Print cells with same rectangular sums in a matrix in C++

sudhir sharma
Published on 25-Jan-2021 09:54:12
In this problem, we are given a matrix mat of size mXn of integer values. Our task is to create a program to Print cells with same rectangular sums in a matrix.Problem description: We will be finding a cell in the matrix in such a way that the sum of sub-matrices ... Read More
Advertisements