C#:- Compiler Error – “The entry point of the program is global code; ignoring ‘Main(string[])’ entry point”

Background Let us go with our old stand by. HelloWorld.   Language Language - C Script Code Output Output Image Using tio.run c / gcc compiler Output - Text   Language - C# C# - Without Class Definition Outline Let us convert our c code to C#. Code Changes Import c:- #include <stdio.h> Include stdio.h … Continue reading C#:- Compiler Error – “The entry point of the program is global code; ignoring ‘Main(string[])’ entry point”

PowerShell:- Datatype – Array – Declaration & Initialization – Bug ? – Patrick Meinecke Response

Background A quick feedback on our last post.   Referenced Work PowerShell:- Datatype – Array – Declaration & Initialization Link Source Code Control GitLab PowerShell - Array - Declaration & Initialization - Sample - nameList Link Bug Report Microsoft PowerShell An Uninitialized declared array leads to string concatenation #17313 Link Feedback Patrick Meinecke ( SeeminglyScience … Continue reading PowerShell:- Datatype – Array – Declaration & Initialization – Bug ? – Patrick Meinecke Response

PowerShell:- Datatype – Array – Declaration & Initialization

Background In this post let us consider how to declare, initialize, populate, and iterate an array. Introduction We have a few avenues for declaring an Array in PowerShell. Our options are:- PowerShell @() String Array .Net System.Collections.ArrayList Script Outline Array Declare Array Declare And Initialized An Array [string[]]$nameListInitialized = $null; Declare An Array [string[]]$nameListInitialized; Populate … Continue reading PowerShell:- Datatype – Array – Declaration & Initialization

Jeffrey Snover:- Employment Versus Courage

Background In brief, most people are not worth listening to. For the sake of heaven, Jeffrey Snover is one of those on the rare other side.   Twitter Link Courage is a key characteristic of future leaders and previous employees. Replies M3 Sweatt ( @m3sweatt ) Consequences ( Link )  Courage is not always rewarded … Continue reading Jeffrey Snover:- Employment Versus Courage

Powershell:- Function – Invocation – Error – ParameterArgumentTransformationError

Background Last evening I wanted to make a function out of a piece of Powershell Code Block, but ran into an error. Let us quickly go over the error.   Script Code   Error Error - Image Error - Text Error - Explanation The error reads:- Cannot process argument transformation on parameter 'ch'. Cannot convert … Continue reading Powershell:- Function – Invocation – Error – ParameterArgumentTransformationError

Search Text On The Terminal

Background For us who spend a lot of time on the command line in terminal node, we always have to sort through data returned through applications. The find and grep command comes in handy. Text File Let us use a simple text file. namelist.txt   Search Platform MS Windows findstr command Outline Display File Pipe … Continue reading Search Text On The Terminal

Powershell:- Get Machine Name

Background I needed to confirm a machine name. It is easy to do so via accessing the machine and running a few system commands. But, want to do so programmatically, as well. Choices Here are some of the options for getting a machine name in PowerShell. Get Computer Name Using Environment Variables .Net Class System.Environment … Continue reading Powershell:- Get Machine Name

Programming Languages:- Repeat Characters

Background When programming one will have to use various datatypes and consult API for each of the data types.   DataTypes Number/Integer Arithmetic String Concatenation Length Character Repeat   Character For instance, if we will like to place an underline against a title, we will get the length of the title, and repeat the underline … Continue reading Programming Languages:- Repeat Characters

Powershell:- String Across Multiple Lines

Background While programming, occasionally there will be a need to have string contents that exceed a single line. In this post, we will discuss some of the tools that Powershell offers.   Outline Here String String Concatenation Using Plus Sign   Options Here String Basic Code   Output Image Text   with whitespace before the … Continue reading Powershell:- String Across Multiple Lines

DOS – Batch – Error – “was unexpected at this time”

Background Let us pull in real quick and talk about a DOS ditch that is easy to get ensnared in.   DOS-Batch Original Code Output Output - Image Output - Text Revision Outline The error is due to the presence of the ? in the rem statement We have to escape the question ( ? … Continue reading DOS – Batch – Error – “was unexpected at this time”