Huddled Masses
You can do more than breathe for free...
Browse: Home / Joel 'Jaykul' Bennett

Joel 'Jaykul' Bennett

Joel 'Jaykul' Bennett

Disabling Events in ShowUI

By Joel 'Jaykul' Bennett on 27-Jun-2011

Because some things just work better in WPF. Let’s say you had a form that collected a bunch of user input, and then had a button that would fire off some work. We’ll assume that you wanted to prevent people from firing off the work again before they know the results of the first time, [...]

Posted in Huddled | Tagged HowTo, PowerBoots, PowerShell, ShowUI, UserInterface, WinForms | 7 Responses

ShowUI: Handling Events and Producing Output

By Joel 'Jaykul' Bennett on 20-Jun-2011

Once you get past the basics of WPF and ShowUI, learning to use nested panels or grids to achieve the layouts you want, and start getting a grip on what controls are available by default, the next step to building useful user interfaces is going to be handling user interactions. In programming, we call those [...]

Posted in Huddled | Tagged HowTo, PowerBoots, PowerShell, ShowUI, UserInterface, WinForms | 2 Responses

ShowUI: the tutorial walkthrough

By Joel 'Jaykul' Bennett on 14-Jun-2011

Ok, let’s be clear: you’ve seen this before, and this isn’t going to be the last you’ll see of it, because we’ve got much more in store in ShowUI, but for the first release of ShowUI, it’s obviously time to update this simple walkthrough of building simple user interfaces in PowerShell! An introduction to ShowUI [...]

Posted in Huddled | Tagged PowerBoots, PowerShell, ShowUI, Tutorial, UserInterface, WalkThrough | 4 Responses

The problem with calling legacy/native apps from PowerShell

By Joel 'Jaykul' Bennett on 10-Mar-2011

This post is an explanation of the major problems with invoking native apps from PowerShell 2.0, and the simple work-around. There is going to be a little bit of code and then quite a bit of sample output (along with some pointers so you don’t have to play spot the differences). In order to avoid [...]

Posted in Huddled | Tagged Interoperability, PowerShell, Shell, Windows | 3 Responses

Goobye CardSpace, hello U-Prove. Does anyone care?

By Joel 'Jaykul' Bennett on 24-Feb-2011

This is just a short rant … so if you don’t care about federated identity, claims-based authentication, OpenID, CardSpace, etc … just skip it. Last week Microsoft publicly admitted that CardSpace is dead. There’s a story about it at Redmond mag which mentions that although they’ve decided not to release CardSpace 2.0, they’re not giving [...]

Posted in Huddled | Tagged CardSpace, Identity, Microsoft

PowerBoots (Next Generation UI) WPF for PowerShell slides

By Joel 'Jaykul' Bennett on 13-Feb-2011

I gave a LiveMeeting presentation on PowerBoots last week, and these are the slides. I’m sorry to say that the recording did not work out, so you’ll have to wait for the next time I present it to see the demos. Luckily, the demo scripts I used are mostly the samples which are available in [...]

Posted in Huddled | Tagged PowerBoots, PowerShell, ShowUI, UserInterface

Long-Path Module (Experimental.IO)

By Joel 'Jaykul' Bennett on 04-Feb-2011

Thanks to a late night on my part, and the efforts of the developers on the Microsoft BCL project who wrote the Experimental.IO LongPath assembly … with no further ado, I present a really basic module for dealing with long file paths. There’s no help yet, and very little error handling. But if you needed [...]

Posted in Huddled | Tagged .Net, IO, Path, PowerShell, Windows

More Custom Attributes for PowerShell (Parameter Transformation)

By Joel 'Jaykul' Bennett on 31-Jan-2011

I wrote a post awhile back about using custom attributes for PowerShell parameter validation but when I did it, I focused on the use of attributes to improve the error messages output by validation (specifically, by: ValidatePattern). There are many other things that can be done with custom attributes. However, PowerShell ships with two base [...]

Posted in Huddled | Tagged Attribute, C++, PowerShell, Transformation, Type Cast | 2 Responses

Parenthesis in PowerShell

By Joel 'Jaykul' Bennett on 22-Jan-2011

I was asked recently to clarify the different uses of parenthesis in PowerShell: I struggle with $myvar.foo vs. ($myvar).foo vs. ($myvar).foo() vs. $myvar.foo(); vs. $myvar.foo(1), etc., etc. How do I know which one to use for which case? And then how to put this output into a write-output statement? There are basically three ways of [...]

Posted in Huddled | Tagged PowerShell, Q&A, Syntax, Tips | 4 Responses

How to: Invoke PowerShell and use the results from C#?

By Joel 'Jaykul' Bennett on 06-Jan-2011

One of the questions that comes up a lot about PowerShell lately is how to use it from C#. For the sake of a simple example, I figured it’s past time I post the sort-of … Hello World of PowerShell hosting. I’m going to present this app plus a little bit more at the next [...]

Posted in Huddled | Tagged APIs, C++, PoshConsole, PowerShell, PowerShell Host, Sample Code | 2 Responses

« PreviousNext »

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • April 2012
  • February 2012
  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.