• 0 Posts
  • 32 Comments
Joined 1 year ago
cake
Cake day: July 10th, 2023

help-circle
  • This blog does a fairly straight-forward job on explaining the basics. For me, I learn best in an interactive 1:1 or well-constructed video, so ChatGPT was priceless. I could ask it stupid questions all day long, and after throwing some different ideas around I started to see the essential parts and just let my prior knowledge of PS, .NET, and C# WPF take it from there.

    At the end of the day, all that really matters is using the PresentationFramework assembly and creating a window:

    • Add-Type -AssemblyName PresentationFramework
    • Either use Visual Studio > WPF Project and make the UI you want. Take the XAML file and use PowerShell to get the raw content:
      • $Xaml = Get-Content -Path MainWindow.xaml -Raw
      • $SanitizedXaml = $Xaml -replace “bad syntax e.g. Foreground={x:Null}” "Foreground=“Transparent” # Certain XAML syntax is incompatible with PS XML
      • [xml]$XmlReader = [System.Xml.XmlNodeReader]::new($SanitizedXaml)
      • $Window = [Windows.Markup.XamlReader]::Load($XmlReader)
    • Or, use .NET-style syntax in PS directly:
    • Then show the window:
      • $Window.ShowDialog() | Out-Null


  • Python is always something I intend to learn but never get around to. Does it natively handle GUI for process tooling or does it require a third party? What makes PowerShell so useful to me is the native ability to create visual applications without the need to compile. I can create tools for my company that launches right out of ConfigMgr Software Center and other technicians can contribute without needing a programming background.

    At home I want to mess around with tooling for home services without having to resort to web development.


  • By far it’s the object pipeline. Having structured data makes it easy to automate workflows in a predictable way. With bash everything is a string, so everything has to be parsed. It’s tedious.

    It took about a year of steady use before I came to enjoy the syntax. It shines in a production environment with other cooks in the kitchen. I never got into the C style, I like my code human readable at a glance. It’s fine if everyone’s a sage but we have a team with a mixture of skill levels and for me PowerShell gets it right.











  • But that’s exactly it, from another person’s perspective he’s not taking away anything, he’s giving. This is what I’m trying to highlight here and all I’m getting are squawks about Trump is bad, my sister is bad. To some people Trump is restoring a desecrated country. They grew up their whole lives with a certain world view of good and evil, it’s not their fault religion twisted their minds, this is the nuance I’m pleading you to take notice but all you can give me are limp platitudes that most people are good and bad, but Trump and his supporters are bad bad. Not very enlightening, because it doesn’t say much about the real life people we’re discussing.

    Those people are not evil, though they may be doing evil. Just as you said, which means I expect you to acknowledge this point, “just because someone does good it does not make them good” works the other way around: just because someone does evil does not make them evil. This is why we need to find inroads with this group to create a space that can be shared peacefully by everyone. Calling them all bad and shutting down any effort to discuss only results in something even more horrifying, and frankly, evil: war.



  • You are simply wrong on all points here, with the exception of emotional clouding. There may be emotional clouding going on here, but it’s not with me and my sister. It’s with the left and Trump. It’s causing people like you to speak with insane antisocial rhetoric, and it’s what’s driving people further apart.

    So you can play the part of the stuck-up bitch, or you can open up to people and their complex lives and beliefs, and see that things aren’t as simple as you are trying to make them out to be.

    While I’m not orthodox, I’m well into the left wing of politics, and even I can see that Trump isn’t all bad. Few people that ever lived are all bad.



  • Your sister is not a good person.

    You are categorically wrong, and I’m trying to use this opportunity to shine a light on this part of you that is unable to see beyond what is black or white.

    You cannot reduce a person down to good or evil based on how they voted. It’s insane to think you can. It’s insane to think you can tell me the truth about my sister.

    This insanity is what the right sees when people like you talk, and it’s what is driving the wedge further and further in-between what would otherwise be cooperative groups who want the same basic things in life, with key differences that require rational compromises.



  • She really is, and the others who want to tar and feather any and all Trump voters could learn something knowing her.

    But your hunch is likely correct. Christian fundamentalists do not vote Democrat. Democrats support choice, and in their frame of reference God already chose and we don’t get a say. Abortion is a big one, despite there being nothing in the Bible to indicate a solid position on the matter.

    Aside from the religious dogma, I doubt she spends any time on the internet or listening to political punditry. With less information to go by, she probably sees the hate as a part of the left’s own orthodoxy and something that can be dismissed. As much as the left has going for it, there is some fierce orthodoxy and tone deafness that fuels the right wing’s disdain and drives their dismissal of us.

    Can you be culpable if you were not aware? I know that doesn’t fly in matters of law but I think a person can be forgiven to an extent if they don’t know the depths of a matter as well as others.