CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

PowerShell – Script blocks and Invoke-Command

In our previous articles, we have discussed PowerShell Scripts and PowerShell Functions. PowerShell provides Script blocks also to group the commands and invoke them when required. In this article, we will discuss PowerShell Script blocks. Script block in PowerShell Script blocks are the group of related PowerShell commands and will be executed on demand. Script […]

Microsoft Project – Understanding Task types

Microsoft Project uses Task types when scheduling the project. Task types are important to understand, to understand how the Project deals with different fields when scheduling the project. One important thing to remember is, Task types apply to Automatic Scheduled tasks only. Fixed Duration, Fixed Units and Fixed Work are three different Task types, we […]

PowerShell – Scripts and Defining Parameters

So far we have discussed about PowerShell cmdlets; and we have discussed these commands with working examples. The commands were executed at the PowerShell command window. Does it possible to add these commands to a file and execute them from the prompt? Yes, this is where Scripts comes into the picture. PowerShell Scripts Scripts are […]

Microsoft Excel – Rounding Numbers to the Specified number of digits

We have discussed rounding the numbers using CEILING and FLOOR functions through my previous Article “Microsoft Excel – CEILING and FLOOR functions“. Excel provides another set of functions; provides a similar kind of functionality to round the numbers. Through this article, we are going to discuss these functions. ROUND, ROUNDUP and ROUNDDOWN functions in Excel […]

PowerShell – Automatic Variables – $HOST, $HOME, $PWD and $ERROR

PowerShell provides another set of Automatic variables to allow us to get the information about the home directory, present working directory, host details, and error details. In this article, we will discuss these variables. The $HOST Automatic Variable This variable contains the current host application object for PowerShell. Below displays the details of the host […]

C# – How to use string interpolation?

String interpolation is useful to create formatted strings in a more readable form. C# uses the symbol “$” to represent the given string as an interpolated string. String interpolation allows us to use the variables within the string, and variables will be replaced with the actual values at the time of execution. This gives better […]

Python – Customize Truth Value testing

We have discussed Truth Value testing in our previous Articles “Python – Truth Value Testing” and “Python – Truth Value Testing for Class objects“. Through this article, we will discuss customizing Truth Value testing. We can customize Truth value testing by defining __bool__ and __len__ functions. Initially, Python verifies the definition of _bool_ function; if […]

Scroll to top