PowerShell needs Shift operators …
So earlier today someone asked how they could tell if PowerBoots graphics would be hardware accelerated on their system … and I found the question painful to answer because the answer is that you take the high-order word of the RenderCapability.Tier property, and that indicates 0, 1, or 2 … where a higher number indicates [...]
Scriptable SSH from PowerShell
Just in the last week, I’ve seen at least four people asking about SSH from PowerShell, and at least three of those specifically were looking for something they could script. That is, they needed a way to make an SSH connection, and then run commands on the remote PC and do switches in their script [...]
PowerBoots: Loading XAML Windows in PowerShell 1.0 or 2.0
Awhile back I wrote a series of posts about WPF From PowerShell From PowerShell” which were about how you could load XAML in previous PowerShell 2 CTPs to create WPF user interfaces … a few people have mentioned loading XAML in PowerBoots, and a couple of people have posted other samples showing XAML even since [...]
PowerBoots and Attached Properties
WPF uses a concept called “Attached Properties” to handle certain things, like when you put controls into a DockPanel. Basically, anything you put inside a DockPanel has a property “Dock” which you can set … but because the property is actually defined by the DockPanel, it doesn’t show up in PowerBoots, so you can’t just [...]
PowerBoots: PowerShell GUIs are now multi-threading
Announcing the release of PowerBoots 0.1 This release of PowerBoots is the most exciting release software I’ve cranked out in awhile. It finally has almost all of the features that I have thought of so far (we’re still missing proper support for attached properties). You can create pretty much any WPF element, including ones I [...]
PowerShell Modules, Metadata, and Mysteries
I’ve finally finished the first public release of PoshWpf, and was getting ready to ship it as part of a new release of my PowerBoots module. The idea is that I need PoshWpf itself to be a stand-alone module so that it can be used in production with PowerShell 1.0, until such time as PowerShell [...]
Stupid PowerShell Tricks
So, last year around April, I wrote this module I called “HuddledTricks” ... it has a function for hiding windows, and another for showing them, along with a function called Wiggle-Mouse which, well, wiggles your mouse cursor (and one called Steady-Mouse to stop it). So anyway, today I was playing with something else and with [...]
Rage Against the Design
So we found a problem recently with a certain scripting language’s argument parsing: function Test-Argument($a) { $a.GetType().FullName } [Test 1]: Test-Argument 4 System.Int32 [Test 2]: Test-Argument .5 System.Double [Test 3]: Test-Argument "hello" System.String [Test 4]: Test-Argument Goodbye System.String [Test 5]: Test-Argument -42 System.String [Test 6]: Test-Argument (-42) System.Int32 Why can’t it properly parse [...]