The below code demonstrates how to create a base WPF GUI in PowerShell. Comments are in the code.
# Add the .NET Framework WPF to PowerShell
Add-Type -AssemblyName PresentationFramework
# Create the XAML Window and add to PowerShell variable
[xml]$xaml = @"
Title="PowerShell WPF" Width="640" Height="480">
# Use XML Node Reader to read XAML $xaml variable
$Window = [Windows.Markup.XamlReader]::Load((New-Object System.Xml.XmlNodeReader $xaml))
# Show the window
For some god-awful reason my Juniper Terminal Services Client likes to disappear from my taskbar on Windows 10. This results in having to use the Task Manager or a program like Process Explorer to “bring to front”. It only disappears…
I picked up a new (to me) Glock 19 Gen 3 at my local gun shop this week. I went to check it out at lunch and noticed some strange markings on the frame, slide and barrel. In addition to…
I stumbled upon this tomato sauce recipe a year ago and finally got around to trying it. The internet had nothing but positive things to say about the taste – and it was correct! This is the first time I…
Here is a SQL question you could expect to see in an interview: There is a table with an active column. It has been discovered that the values have been swapped around and need to be corrected. How would you…
The LimeSurvey RemoteControl API is a XML/JSON-RPC based web service available in LimeSurvey 2.0 that offers various API functions. The API allows for developers to control specific functionality of LimeSurvey from another application, without having to use the PHP language.…
Don’t have Visual Studio? Don’t worry. You can compile C# in a command prompt as long as you have the Microsoft .NET Framework installed. The program used to compile C# is csc.exe and is located at C:\Windows\Microsoft.NET\Framework64\v4.* on my installation (your location…
Cooking became one of my passions through necessity. Eating out can get expensive – fast! It was not until recently that I realized coding and cooking have a lot in common. MacGyver it It has been two weeks since you last…
Download the package (64 bit in my case).
Install the package and dependencies.
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb
In the event that a dependency did not install, you can force it via:
I have made Str, my PHP string library, available for install via Composer on Packagist! You can check out the source code on GitHub. Str provides convenient, object-oriented operations for string handling and manipulation. Str will yield code that is more readable in projects that…