Thursday, December 9, 2021

HowTo : PowerShell | Lesson Zero

Lesson 0 | HowTo : PowerShell


Intro to my PowerShell-teaching blog-series


What Is PowerShell?

To my understanding at the initial writing of this, PowerShell is a scripting language native from Microsoft Windows Operating System (OS)

If most or all of that directly-above sentence read like a foreign language to you --> I recommend reading up on #ComputerProgramming or better yet #CodeNewbie over on Twitter or similar social media platform

Or, for a less social-source, I highly recommend W3Schools.com, either diving first into HTML (IMO coding) or JavaScript (IMO programming), both of which fall under the "software" umbrella


Who Uses PowerShell?

First & foremost: I use PowerShell!

I have never been officially tasked with writing it professionally, but I have used it at nearly each job I have held since graduating college/roundOne

I also use PowerShell as a hobby {=

For some examples of my go-to PowerShell tricks & shortcuts, I encourage you to browse code over on my GitHub at My Directory Tools

Beyond my fingertips . . . I am honestly not sure who else for sure uses PowerShell

I think it gets some buzz among IT folks in administration roles in business, since it can automate a lot of mundane computer-based tasks


When Could You Use PowerShell?

Whenever you have a computer!

Preferably a Windows OS (WinOS) machine

But PowerShell Core is available to cross-platform use, for non-WinOS people

Sadly, tho, I have not yet dabbled in PowerShell Core so if you lack access to a WinOS machine and wish to try PowerShell Core --> you will need to find another teaching source


Where?

Anywhere that computer will effectively run . . . so like, probably definitely not in a hot tub!


Why Bother Learning PowerShell?

I am so glad you asked!

Allow me share my joys that have blossomed from learning PowerShell

Granted, you likely will not find the same use cases of PowerShell that I have, but these may serve as some ideas of PowerShell's power

I first laid eyes on PowerShell while working for North American Communications (NAC) as a "data processor"

For that job, I had to run many many computer programs, clicking incessantly on my work computer

One of my co-workers started to train me how to handle some of his regular monthly tasks, and during that breakdown, he doubled-clicked a strange icon on his desktop which triggered a spree of windows opening then closing

When all was said & done, the files that had been in a folder were now in their appropriate destination folders with fresh new names to meet our department file naming conventions

My co-worker explained that he had run a PowerShell script so that the computer would do the repetitive annoyance of renaming & moving those files

He explained how this method reduced the chance of error

Consider having to rename & move 50 computer files, each laborious one after the other

Each rename & move opened the door to small mistakes

Then compound having to repeat that process each month

No human is capable of batting a perfect 100% for very long like that

But!

By setting up that script once & debugging the script, the process becomes almost fool-proof

PowerShell had me hooked

I began diving into online blogs & tutorials, testing what other steps I could automate with PowerShell

After several months of tweaking & learning, I had some of my simple tasks, which used to take me about an hour or two, down to a mere click of a button & typing in the answer to a few prompts

Wow, did I feel like some type of fancy big-shot

Outside of work, I wrote a PowerShell script to analyze NFL player stats to assist my fantasy football draft selections

That was probably my favorite PowerShell project - combining my passion for statistical analysis & PowerShell


How Can YOU Learn PowerShell?

Is it not obvious??

You, my curious reader, can learn PowerShell by staying tuned for future posts in this impending blog-series {=

Wednesday, December 8, 2021

AutoBio - Part Two

Part Two of Auto Biography

Kindergarten Drama

Recap of Part One

I shared my oldest memory - technically what I am currently convinced is my oldest memory

In that memory, I ride with my mom to get my first ever pair of eye glasses

While I remember the ride there for unbeknownst reasons (likely something to do with the funky thoughts bouncing in my brain), my mom has told me a time or two that she remembers the return trip home from getting my eye glasses

For any who may be curious, I now excitedly wear contact lenses!

Elementary School

A quick catch-up for any asking themselves, "what does elementary school mean?"

To any others who know, I encourage you to jump to the next bold print

In Martinsburg, PA, USA, in the year 1999, young humans around 5 years-old were sent to "elementary school"

This name, elementary, covers grades kindergarten thru 5th grade

Following 5th grade, I progress to "middle school" for grades 6 thru 8, then wrapped up my public education in "high school" for grades 9 thru 12

Should you have any other questions or confusions about elementary school, please hesitate not to ask in the comments below or toss me some other form of digital communication [e.g. Tweet, email]

My Elementary School: Martinsburg Elementary School (MES)

I agree, that is not a creative or awe-inspiring name

But the name is true & logical

Martinsburg Elementary School, MES, resides beside a very small local air port

By small, I mean that this air port is known more for the rotate attempt at its restaurant de jour more than any actual departing flights

The runway did make for some cool recess moments as planes would either glide in or out of the runaway!

Kindergarten Setting

Ms / Mrs Reed taught my kindergarten class - the proper marital-status pronoun escapes me presently

About 20 other energetic 5-ish year-olds joined me each morning for the learning-packed session

I mention only morning because MES kindergarten dismissed the students around lunchtime (I'm struggling to recall if it was a pre- or post-lunch dismissal), which accounted for only a half-day when compared to the length of the 1st - 12th grade school days

Most days, before being dismissed, we were given a small snack, the lights would be turned off, and we would watch a short TV program

The Drama

One eventful day, during snack & TV time, I sat beside an eye-catching fellow kindergartener - a girl

For her own safety (and my laziness preventing my reaching out to get her consent), her name will be changed to Stephania, or Steph for short

So there I sat beside Steph with a chocolate cookie-wafer-thing in hand, lights off, with some kiddie TV show playing

Enter the drama that would follow Steph & I for many years to come

I remember her spontaneously leaning over to kiss me on the cheek

Bewildered, I saw no other course of action but to reciprocate

However, she claims this minor cheek-kiss was all my doing, with her never reciprocating, & it taking place out in the hallway outside of class

Should I ever gain abundant access either to a time machine OR a device with crystal-ball-like memory-playback capability, I will painstakingly review each day of kindergarten to track down THAT moment, thus determining who tells the truer tale

By the way, this debate between Steph & me continued thru most, if not all, of our years in elementary school

Wednesday, December 1, 2021

AutoBio - Part One

Time for a story - my story

At least, as much of it as i can recall
& up to "the now"
since i've never dabbled in future-gazing

This story will be free-form
Meaning i do not have an outline nor a plan
So imma go where the tale takes me

I was born in the year 1993
A prime number, for sure

My childhood home was flocked by corn & sheep
So u could say it was rather rural

My mom & i settled with her parents initially
Eventually we moved up the hill to our own trailer

By moving up the hill
Mom & i lived even close to the cemetary
We joke how they're the quietest 300+ neighbors

Alrighty - that ought to set the stage
Now on to some of my earliest memories

B.T.W. what is ur earliest memory?

I was not born with crystal-clear vision
No, naturally, my eyes paint a blurry picture

I cannot be certain,
But the phrase "stop sitting so close to the TV"
Vaguely rings a bell from those early years

When I was maybe 4 or 5
Definitely before i went to kindergarten

Mom & i pack into our car & away we go!
Off to pick up my first pair of glasses

As we travel, odd thoughts race . . .
- Im headed off to school soon
- I hear they put signs on the bathrooms
- What if i read the signs WRONG
- Causing me to go into the girls' bathroom
- . . .

Not sure why or how
But clearly i already feared embarrassment
At a mere 4 ~ 5 years of age

But that is all the details my brain has held
My mom on the other hand
She can remember the return trip

Exclamations of wondrous sights
How clear, how easy to see
Shouted from me, her young son

Even today, im amazed
How small chunks of ... stuff
Can turn my naturally blurry picture
Into an HD portrait!

Ive upgraded to contact lenses
Over those clumbsy glasses

But the sentiment remains the same
Vision is by far my favorite sense

/* Addendum
The above tale
was typed on my LG Velvet
explaining the strange style
end of addendum */

Future-Proof Your Career Path

I have some harsh news for us "simple folk" of central PA & across these United States many jobs today will die off they will ...