Garrett Serack: Open Source Development at Microsoft

View from deep inside Microsoft's Open Source Software Lab

Browse by Tags

Tagged Content List
  • Blog Post: When scripting goes bad…er, insane.

    Hi, my name is Garrett, and I have a problem. I love scripting stuff. And, I by stuff, I mean everything. Really, I often use it as an exercise to understanding whatever it is that I’m trying to learn—if I can automate it, I’ve got a strong feeling that I understand it. As you may or may not know, my...
  • Blog Post: Using JScript as a batch scripting language (Part III)

    Now that I’ve shown how to build a cool .Format() method for strings, we can put it to good use in a lot of places. In batch scripting, it’s really nice to be able to make nearly every call support replacement arguments in a consistent fashion. In cmd.exe batch scripts, we use %var% all over the place...
  • Blog Post: Using JScript as a batch scripting language (Part II)

    Last time, I wrote about synthesizing an #include facility along with handling environment variables in a trivial way. This time, let’s look at filling in a couple more gaps in JScript’s basic scripting functionality. What’s wrong with String? The String class in JavaScript/JScript is … ok. If you work...
  • Blog Post: VBScript: Betcha never thought of this one

    I mentioned in a previous post that I had to solve a little issue with the wonderful WMCMD.VBS script that Alex Zambelli maintains. Because of some occasional nastyness, when the script is done--successful or not-- it tries to kill it's own process, in case any of the WM Encoder objects gets hung up...
  • Blog Post: Where are the WS-* Protocols? (Part One)

    Logging into a Website When signing into a website using CardSpace, the website has the choice of accepting two card types, Personal Cards or Managed Cards. Personal Cards are ones that you create the claim values yourself, support only a fixed set of claims, and have the cryptographic keys and...
  • Blog Post: Detecting Information Card Support (CardSpace!) in a browser

    I hacked out this a few weeks back, and never got around to publishing it. I've not decided that this is the 'official' way to detect Information Card support in a browser, but it'll do until I can think of something better. I'd say something like, "see how it detects support in other browsers...
  • Blog Post: Scripting: Detecting the host architecture vs the process architecture

    I had some trouble lately with scripts running on a 64bit version of Vista, when they were run with a 32 bit parent host process. After figuring out what was wrong, I wanted to be able to detect if I was running a 32-bit script engine under a 64-bit OS. With a bit of crafty (crufty?) coding, I came...
  • Blog Post: Self compiling scripts for .NET languages: C#, VB.NET and JScript.NET

    Ok, these ones are pretty cool. It took me a few more hours than I thought, but it was worth it. The scripts in the zip file are javascripts which surround another language, and allow you to write .NET applications, but distribute simple text files as scripts. The C# and JScript.net wrappers...
Page 1 of 1 (8 items)