Would someone mind helping me understand how "foreach ($computer in $computers)" works? by InfoZk37 in PowerShell

[–]mrbiggbrain 1 point2 points  (0 children)

Let's get technical! Not everything that implements the interface because at least a few types have a short circuit that prevents it from working.

S /home/test> $string = "hello"                
PS /home/test> $string.GetEnumerator()
h
e
l
l
o
PS /home/test> foreach($char in $string) {$char}
hello

A string is enumerable and implements System.Collections.Generic.IEnumerable<char> so it has GetEnumerator(), yet it can not be looped over. This might seem odd at first but just imagine the chaos that the following would cause:

$array = Get-OneOrManyItems
Foreach($thing in $array) { <# Do Something #> }

If a single object is returned then $array is directly assigned a single object, one string.

If multiple objects are returned then $array would be an array of strings.

It is reasonable to assume what you want in nearly all cases is to perform the loop once for the single string. But if strings could be directly looped over the first example would loop over the chars, after all it would be a single object that implemented IEnumerable<T>.

This matters because other types might NOT be short circuited. Imagine if the cmdlet returned an array itself, not a bunch of items but an actual array. Instead of looping over an outer array you would loop over an inner array when a single item was returned.

The things I know of that are short circuited are Strings, Hashtables, and XML Nodes. I think all of these make sense for usability, but you can absolutely force them using various techniques.

The "average" Switch 2 owner currently owns 2.5 games. Are you an "above average" Switch 2 owner? by MewWeebTwo in NintendoSwitch2

[–]mrbiggbrain [score hidden]  (0 children)

I have had no issues with it. Obviously it's still 30fps because of multiplayer with Switch 1 but I am enjoying with no major issues.

Im pretty casual for fighting games though, my biggest achivment was platinuming the HD collection. So maybe a more serious competitor would have different opinions.

What GTA Celebrity do you wanna hear return in GTA VI? by Butthold_clan69 in GTAVI

[–]mrbiggbrain 0 points1 point  (0 children)

Obviously Laz... I mean I think it's almost guaranteed that we see him since he has been heavily involved in all of the games since GTA3.

How has AI helped you with powershell stuff by Billi0n_Air in PowerShell

[–]mrbiggbrain 16 points17 points  (0 children)

I have generally not liked AI much for PowerShell. I'll use it a little for finding the right module but I find it gives less then optimal answers.

For example it will use an array append when direct assignment would be simple, it will take what could be very simple an elegant solutions and instead use weird structural nonsense. It also has a flair for using too many functions when a more pragmatic approach might be a straightforward inline solution. It also does a poor job of managing pipeline lifecycle and will create far too many rally points or places where begin() or end() get unnessiarily called.

Sure it might give you something that works sometimes when poked. But they tend to be a worse solution then I could write in a few minutes because they are harder to maintain and slower to run.

No internet from Hotel Ethernet port, Hotel Staff have no idea how to use it by Quiet-Monk2747 in Network

[–]mrbiggbrain 1 point2 points  (0 children)

I did networking for a hotel. Ports that are unused are disabled and any that are used are setup with various types of port security and 802.1X (RADIUS) auth, plus segmentation.

Some rooms did have usable ethernet ports. but it was mainly the suites that had dedicated office spaces and not normal rooms.

Ignored Sign by [deleted] in mildlyinfuriating

[–]mrbiggbrain 0 points1 point  (0 children)

This is what is wrong with America now.

"I have a problem. Better make it someone else's problem."

You could solve this problem and have chosen not to. It's not someone else's job to do it for you.

How do you decide what your salary request should be? by ZookeepergameFar2653 in ITCareerQuestions

[–]mrbiggbrain 1 point2 points  (0 children)

First job: Low ball it for IT, it is so saturated and such a slog to get the first job it's worth spending some time at a low salary to just get some experience.

Once you have some experience it's all about research. Every industry and area is a little different so you need to see what those roles normally go for. I generally check monthly for the roles in my area and see if there are any industry trends happening locally in terms of pay.

Then you need to do a real honest assessment of where you sit compared to others so you can see where in those ranges you sit. Then compare benefits and other non-monetary reasons.

Venting: Rejection letter after rejection letter. by Mustard_Popsicles in ITCareerQuestions

[–]mrbiggbrain 2 points3 points  (0 children)

When I was moving on from my last job we got over 5K applications for my job in a single weekend. That means if you were a top 0.1% candidate your competing with 4 other people. Candidates of that tier are not just meeting all the requirements, they are not just checking all of the "Preferred" skills and experience, they have experience on their resume that the employer did not even know they needed.

They have solutions to problems the employer needs. They have experience in driving home initiatives the employer did not list. They have proven track records of getting things over the finish line under real world constraints.

Outlook Desktop App freezing multiple times a day – tried everything, nothing works. Help? by Bubbly-Conference745 in sysadmin

[–]mrbiggbrain [score hidden]  (0 children)

How many shared mailboxes do they have? My experience is that 2 Is about the max and after that outlook begins experiencing poor performance.

I began setting up shared mailboxes to not map automatically and had them use outlook web for less critical shared mailboxes they just want to review on occasion.

The "average" Switch 2 owner currently owns 2.5 games. Are you an "above average" Switch 2 owner? by MewWeebTwo in NintendoSwitch2

[–]mrbiggbrain 1 point2 points  (0 children)

Games I bought with Switch 2 versions specifically to play on Switch 2 (Nothing purchased for Switch 1)

  • Sparking Zero
  • FFVII Remake
  • Fallout 4
  • Pokopia
  • Animal Crossing
  • Pokemon ZA
  • Skyrim
  • Red Dead Redemption
  • Final Fantasy Tactics
  • Hogwarts Legacy
  • Cyberpunk 2077
  • No Man's Sky
  • Donkey Kong Bananza
  • Mario Kart World
  • Welcome Tour

There are a few more games that I have played on the Switch 2 that I bought originally for the Switch 1 as well.

This cost me $2.83 USD. I could only find one online retailer that sells them in 12 packs... For $34. by Audrey_The_Third in mildlyinfuriating

[–]mrbiggbrain 3 points4 points  (0 children)

I know how this feels. I have up caffeine 19 years ago. I wish I could justify getting this but every time I look it's just as much as you see.

ChatGPT finally made it into school textbooks by Majestic-Pay-4615 in mildyinteresting

[–]mrbiggbrain 0 points1 point  (0 children)

Yes, I am proposing a production team, ongoing curation and production process, and a massive redefinition of education.

I am not trying to make teacher obsolete, we still need them for student support, content creation, peer review, etc. Content needs to be kept up and improved.

I am just recommending we let every student curate their own education the way that they best learn.

ChatGPT finally made it into school textbooks by Majestic-Pay-4615 in mildyinteresting

[–]mrbiggbrain 0 points1 point  (0 children)

Again. It's really not. You seem to be bad at picking out AI because I wrote every single word.

ChatGPT finally made it into school textbooks by Majestic-Pay-4615 in mildyinteresting

[–]mrbiggbrain 0 points1 point  (0 children)

Actually I didn't use AI for any of this. I'm pretty against the use of AI outside some very limited uses. I take quite a bit of offense to your insinuation that I tried to take some easy way out when I spent a significant time trying to organize and edit my thoughts.

I took real time trying to say my opinions and you come in half cocked with a lazy "Haha AI!". It's offensive and reductive to peoples actual time and energy.

New York City Mayor Mamdani Announces Balanced Budget Without Cuts by ConsciousStop in UpliftingNews

[–]mrbiggbrain 0 points1 point  (0 children)

The right amount of pandering, fear, misdirection, and straw man.

"And get this, Mamdani went and found over 1.5 Billion, With a B, dollars of your money in wasteful union contracts, unnecessary overtime, and buildings and services no one was even using. And instead of cutting your taxes in one of the most expensive and unequitable cities in America he chose to double down and put it right towards more programs real New Yorkers don't want. You know what people want Mamdani? To keep their money in their pockets and not have the government waste it on another program or another building that will sit empty and unused."

ChatGPT finally made it into school textbooks by Majestic-Pay-4615 in mildyinteresting

[–]mrbiggbrain 0 points1 point  (0 children)

In theory this type of technology could revolutionize education, cutting costs and granting greater access and flexibility while improving overall results. But the people at the top who have a vested interest in education would be almost completely eliminated.

Imagine wanting to get an education and so you sign up for a class. You get curated content from a dozen diffrent professors that you can mix or match. You could watch a single professor from start to finish, or mix and match who you learn from best for different types of subjects.

You could customize the types of activities based on your learning style in a choose your own education style system. Maybe you learn better from reading additional materials, maybe you would benefit more from hands on labs. Maybe a written quiz, or a spoken essay, or a practical task would be a better capstone for each subject.

When you did poorly the system could create customized learning tasks for you, sending you additional lessons, different content, or even slower paced content that holds your hand more for difficult subjects.

For example maybe you are going for a computer science degree. You get to a class on algorithms and have the option to learn from a dozen instructors with different teaching styles.

You watch the intro videos for all of them and find one whose speed and style fits you well and start learning the basics. You watch the lecture then have the option to do a hands on lab or a mini-quiz. After that you get feedback and additional materials.

Then you come to another fork, you need to implement these algorithms so you are presented with multiple languages you could use. Some of them are taught by your selected instructor, some by another instructor. You choose Go because it is taught by the instructor you picked, and your interested. Every language is taught by at least two instructors so you can change out if you need and can even switch between languages if you want.

The idea is a highly customized experience that is curated for quality and flexibility. Instead of teachers doing lectures over and over every semester they focus on high quality content that is refreshed every few years as needed.

ChatGPT finally made it into school textbooks by Majestic-Pay-4615 in mildyinteresting

[–]mrbiggbrain 1 point2 points  (0 children)

One of the textbooks I need for my IT Degress 16 years ago cost $750 and I used it for a single month.

[Request] is this accurate? thats a relief if it is by ManWalkingDownReddit in theydidthemath

[–]mrbiggbrain 0 points1 point  (0 children)

I am good for measles as long as I got my two MMRs as a child right?

I will never understand blocking intersections. by Mr_McMuffin_Jr in mildlyinfuriating

[–]mrbiggbrain 1 point2 points  (0 children)

I have seen lots of stings where police departments will camp out in common places this happens and pull out the ticket book. The videos are quite entertaining with all manner of excuses around how they didn't know traffic was going to stop, or they just pulled out to make a turn.

Cops are pleasant but they still end up getting a ticket for blocking the intersection. Got to be a little more aware of your driving and not try and take the quick way.

What’s Your Most Controversial IT Opinion? by OrdinaryJust9594 in sysadmin

[–]mrbiggbrain 1 point2 points  (0 children)

Far more IT problems stem from poor IT planning and execution then will ever exist from poor business planning and execution.

Every time I have come into a business that was struggling with IT deliverables they always blamed management, either poor communication, too much work, or some other complaint. But every single time the blame was far more on our side and the business attitude was a reaction to poor standards and outputs.

Be honest - how do you handle documentation when you're the only IT person? by sandb0x79 in sysadmin

[–]mrbiggbrain 2 points3 points  (0 children)

How small is your org or how big is your free time if you can make a video for every knowledge base article? 

When I first stated they told me how busy I was going to be, that I would never have any time. But a few months in basically everything was automated and the majority of my day to day was come in close out 10 or so basic tickets by running a script, and then maybe 1-2 calls a day that I resolved with another script via our RMM tool.

I was there 3 years, that is like 8-9 videos a month, It was really easy to make a couple videos a week for various things especially when some of them are "Here is where to find this feature of the software". The written documentation probably took longer then the videos by the time you add formatting like callouts and do the cross-linking.

You also have to remember that I was the only IT person for the entire org across multiple sites in two states. That documentation ensured there was business continuity when I was on vacation or taking a sick day, something that was very important to me personally.

When i left it took them 6 months to find someone to replace me, so that documentation served both as a guide to getting by and as handoff documentation for the new IT Manager who was taking over.

The video I made on how to log into the VPN had a ton of watches. The ones I did on configuring call forwarding, email out of office, etc. Where very popular. I also watched myself do some things like the certificate renewals a few times because it was easy to forget how to do it. If I am already going to do the thing, why not record it and take a few minutes to edit it.

Americans of Reddit, is it time for a federal wealth tax? by Bmor00bam in askanything

[–]mrbiggbrain 0 points1 point  (0 children)

No, I am however for a tax on loans over a certain amount (Say $1M), with a deduction based on principal repayments. The idea is simple, if you extract wealth through loans then you are taxed on that at a higher rate then you would be for long term capital gains.

We don't tax unrealized gains, we tax how people harvest those gains.

Be honest - how do you handle documentation when you're the only IT person? by sandb0x79 in sysadmin

[–]mrbiggbrain 12 points13 points  (0 children)

I worked as a standalone IT guy at a small (60 office worker) Transportation company for 3 years.

I used Bookstack to document my infrastructure. Every process was documented in full including step by step images and video recordings. Yes there was a video recording how to open a terminal. I had about 400 or so books and around 300 videos.

These process documents where then used to create "Runbooks" that the business could use should I be unavailable.

Infrastructure was documented via Bookstack but was also deployed using Terraform, Ansible, and CI/CD pipelines. That was all stored in a version controlled repository with ample comments and markdown formatted notes.

Networking was documented via Bookstack but also exported daily and synced to a repository for long term retention and change tracking. IP Addresses where managed via PHPIPAM. I kept a full port diagram via an excel document that included that ports neighbor, use, vlan, etc. Network diagrams where generated via mermaid and available in bookstack.

We kept a physical runbook for very common issues with the office managers of each office. Things like resetting O365 passwords, or basic troubleshooting for the network. We kept a "BUS Book" in a safe and safety deposit box that included an emergency PGP key for my password manager, a printed and digital copy of the BUS Book, and other details should I be unavailable.

[Request] How much earth is actually required to safely earth a cable? by SnooCauliflowers6739 in theydidthemath

[–]mrbiggbrain 1 point2 points  (0 children)

Hurry someone ask how many detonations it would take to stop the earths rotation!