Wednesday, October 03, 2007

Using PsExec to Execute PowerShell on a Remote System and Return "PowerShelly" Results

Precision Computing - Using PowerShell and PsExec to invoke expressions on remote computers

"While eagerly awaiting PowerShell’s upcoming remoting functionality, many people turn to Sysinternals’ PsExec tool to build their own version. However, PowerShell seems to hang when called via PsExec on the remote machine. This has come up on the SysInternal forum (http://forum.sysinternals.com/forum_posts.asp?TID=10823) among other places, and is caused by the same issue outlined here: http://www.leeholmes.com/blog/UsingMshexeInteractivelyFromWithinOtherPrograms.aspx.

To work around this problem, you can give some input to the Powershell process. But to give it input, you need to use cmd.exe:

psexec \\server cmd /c "echo . | powershell dir 'c:\program files'"

...

And to make it even more PowerShelly, the –OutputFormat of XML lets you get back an XML representation of your command’s output. On your local system, PowerShell converts your output back to deserialized objects. From there, you can continue to manipulate the output with the object-oriented goodness you’ve come to expect of us... "

I thought this was pretty darn cool. Cool enough that I immediately had to try it out... :)

In short, this post shows you how to use PsExec to run PowerShell on a remote computer returning the results to a local instance of PowerShell. (PsExec and PowerShell needs to be installed on the local machine and PowerShell on the remote machine).

Why would you want to do this?

I'm thinking aggregating information and/or doing stuff across a number of machines and providing centralized/combined results.

Hum... Now I'm thinking about all the cool stuff I can do with this... :)

Monday, October 01, 2007

Halo 3 How To's from Bungie

Bungie.net - Halo 3 How-To

Forge, Saved Film, AV Calibration, Networking, Matchmaking, Campaign Scoring and more How To's on Bungie.Net.

I want to remember to show these to my Halo 3 Trainer (i.e. my son ;)

What I'd like to see is "How To not have your butt handed to you by your teen age son", "How To play if you're an early Gen X'er and not suck at it", etc...  :|

(via .net DEvHammer - Halo 3 How-to on Bungie.NET)

Halo 3 - Is he or isn't he?

My son and I are having an argument as to the fate of Master Chief... Is he or isn't he? (I won't say more to avoid spoiling it if you haven't finished it yet).

I say he isn't (There's no way... The quote "If only it were so easy..." and that there's no evidence says to me he isn't.)

My son says he is.

 

What do you think?

Saturday, September 29, 2007

TFS Power Tools, v1.3 (September 2007 Release), with Two New Tools, TFS Best Practices Analyzer and Work Item Templates

Microsoft Downloads - Microsoft Visual Studio 2005 Team Foundation Server Power Tools - September 2007 release

"...

The Microsoft Visual Studio 2005 Team Foundation Server Power Tools is a set of enhancements, tools and command line utilities that improve the Team Foundation Server user experience. This release includes everything from the previous Power Tools release and includes two great new tools: the Team Foundation Server Best Practices Analyzer and Work Item Templates.

  • Team Foundation Server Best Practices Analyzer (TFS BPA) – TFS BPA is a diagnostic tool that performs the following functions: gathers configuration information from a Team Foundation Server deployment, performs specific tests on the Team Foundation Server deployment, analyzes the collected information according to specific rules, reports the findings as information, warning, or error messages, and lastly provides links to articles to resolve warning and error messages.
  • Work Item Templates - Work Item Templates feature that supports the ability to create, apply, capture, and set default work item templates. This feature adds additional menu items to the Team Work Item Templates menu.

..."

Glad to see the plural, "Power Tools," now. (Stupid nick picky thing I know, but the formal "Power Tool" name just bugged me...)

For more information on the two new features check out bharry's WebLog - September TFS Power Tools Released (in which he also notes that this is the last TFS Power Tools for VS2005)

 

Related Past Post XRef:
Team Foundation Server Power Tool, Process Template Editor Tip - If you open a *.WIT file and it appears as a normal XML file, instead of in a Designer...
Microsoft Visual Studio 2005 Team Foundation Server Power Tool (formerly known as Power Toys) - V1.2, February 2007

Friday, September 28, 2007

A Short Introduction to .Net Satellite Assemblies (aka Resource DLL's, Language DLL's, Localization DLL's, etc)

CodeProject - Satellite Assembly and Implementation Details

"Microsoft released the .NET Framework and common language runtime model, targeting high productivity in software development. Their goal was to create an enriched user experience with easy-to-use products.

Satellite assembly comes into the picture when we develop an application, which is localized on a specific culture. Throughout this article we will explain the use and implementation details of satellite assembly.

... 

But in order to talk about localization, we must know about resource files. Resource files are nothing but a key and textual, value collections specific to each language. Therefore, we will have to create a resource file for each language that we plan to support. The .NET Framework classes will retrieve language-specific details from these multiple language resource files based on the chosen language context.

..."

Another localization option for .Net developers...

 

Related Past Post XRef:
Project Localizer - An Interesting way to Localize your Project

Wednesday, September 26, 2007

Insert Binary Data into a SQL Server 2005 Column Straight from T-SQL (via OPENROWSET(BULK...) )

Thinking outside the box - Insert binary data like images into SQL Server without front-end application

"I came across this solution for some months ago on another forum.
It is very handy, so I thought i should share it.

CREATE TABLE myTable(Document varbinary(max)) 
INSERT INTO myTable(Document) 
SELECT * FROM
OPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB)"

[Post Leached in full]


A handy SQL Server 2005 tip...


Related BOL links OPENROWSET (Transact-SQL), Importing Bulk Data by Using BULK INSERT or OPENROWSET(BULK...)

Tuesday, September 25, 2007

Spell Checking (During Code Analysis) Included in VS2008

The Visual Studio Code Analysis Team Blog - New for Visual Studio 2008 - Spelling rules

"Surprisingly, one the biggest requests for Code Analysis in Visual Studio 2005 was to include the spelling rules that shipped with the FxCop standalone. We had Microsoft consultants tell us that they actually had trouble moving some customers from FxCop to Code Analysis because they were not included. Apparently teams care about spelling. :)

Well, we've listened and I'm glad to tell you that we are shipping the following rules in Visual Studio 2008:

IdentifiersShouldBeSpelledCorrectly
CompoundWordsShouldBeCasedCorrectly
ResourceStringsShouldBeSpelledCorrectly
ResourceStringCompoundWordsShouldBeCasedCorrectly

These new rules (along with the rest of the previously FxCop-only rules) now cause the analysis in Visual Studio 2008 to become a true superset of what is available in FxCop.

..."

Nice! (Not that I have spelling problems... :|  )

(via InfoQ - Spell Checker Added to Visual Studio 2008)

Monday, September 24, 2007

Managed DVR-MS Fun

Stephen Toub - Fun with DVR-MS (now on my blog)

"...

DVR-MS files are created by the Stream Buffer Engine (SBE) introduced in Windows XP Service Pack 1, and are used by Media Center for storing recorded television. In this article, I’ll demonstrate how you can use DirectShow to work with and manipulate DVR-MS files. In the process, I’ll show you some useful utilities I’ve created for processing DVR-MS files, and will provide you with the tools and libraries you’ll need to write your own. So, open Visual Studio .NET, grab some popcorn, and enjoy the ride.

..."

This article is just about everything you need to know (well at least get you started) playing, transcoding, reading the metadata and editing DVS-MS (Media Center recorded content) files in C#, with some P/Invoke along for the ride.

One of my very low priority "I want do to's" is to build a simple DVR-MS viewer.

Media Player is almost good enough for me, but it doesn't have a 30-second skip button. I love that feature. Media Center's replay is almost good enough (as it has forward and backward skipping), but it's the sorting capability doesn't fit my needs (whereas Media Player lets me sort my recorded shows well enough.).

I want to be able to order my recorded TV shows by original air date and have a 30 second (at least) forward skip feature. So being a programmer I thought I'd just write my own viewer.  ;)

I think Stephen's article gives me all the information I need to get started. Now all I have to do is resurrect my Media Center so I can get at my recorded shows... dogh!

Sunday, September 23, 2007

Another cool utility from xSQL - Object Search

xSQL Software - xSQL Object Search

"Free tool that locates database objects that meet search criteria.

  • Search on one or all databases
  • Support all types of database objects
  • Search the name or the definition
  • A range of search options
  • Export search results to csv files

xSQL Object Search is a free tool that provides for locating database objects by checking their names and/or definition against a search criteria. You can search on one or multiple databases simultaneously, select from various search options, search for all or specific objects types, export the results to output files and more.

..."

Niam of xSQL Software dropped me a note letting me know that their rock'n team has release yet another cool (and free) SQL Server utility...

 

Related Past Post XRef:
Free "Execute this/these T-SQL scripts in a translation" Utility from xSQL Software (aka "Query Analyzer is scary to users but they still need to execute T-SQL scripts" Utility...)
RSS Reporter for SQL Server V2 Released (with Custom Query Support & Database Size Feed)
RSSReporter - SQL Server Job Status via RSS Feeds

Friday, September 21, 2007

Another OwnerDraw Example - This Time Adding Red Squiggles to Text in a TextBox

Coded - Web Development and Programming Blog - Owner-drawing a Windows.Forms TextBox

"This article describes how SharpSpell is able to modify existing TextBox controls to display wavy red underlines below misspelled words.

Here’s an image to demonstrate what I mean:

SharpSpell - ASP.NET spell checker
(This image is borrowed from SharpSpell, but you get the point)

...

Now to use this class, you just need to instantiate it by passing a TextBox control to the constructor. Make sure you keep a reference to it at the module level so it doesn’t get eaten by the Garbage Collector.

CustomPaintTextBox customUnderlines = new CustomPaintTextBox(textBox1);

I haven’t really tested this stripped out version of the class, but it should work. Most of it is taken directly from the SharpSpell source code.

I hope this article helps you understand how to owner draw native Win32 controls using the .NET framework. If you have any questions please leave a comment."

This is a cool short C# article on owner drawing a textbox, providing a nice example of both text measuring and adding visual status indicators.

(via Larkware News - The Daily Grind 1234)

Thursday, September 20, 2007

Project Localizer - An Interesting way to Localize your Project

Code Project - Project Localizer

"Project Localizer is a tool to localize any kind of source file. What does it mean, exactly? The tool does two things:

  1. Replaces all strings in a source file with a specified expression, e.g.
    MessageBox.Show("I like you.");
    becomes
    MessageBox.Show(localizer["ILikeYou"]);  // XML localizer
    or
    MessageBox.Show(localizer.ILikeYou);  // hard-coded localizer

  2. Generates localizer files in any programming language using a predefined template, e.g. an XML file:
    <localizer>
    <language name="English">
    <string id="ILikeYou">I like you.</string>
    </language>
    </localizer>
    or a hard-coded localizer:
    interface ILocalizer
    {
    string ILikeYou { get; }
    }
    class EnglishLocalizer : ILocalizer
    {
    public string ILikeYou get { return "I like you."; }
    }
    ...etc.

Background


Sometimes a small project suddenly becomes a big project and we want to make it more global. If we were not provident enough to use resource files, we could come across tens of source files full of not localized (likely English) strings inside. So, we set our shoulder to the wheel and start to rewrite the whole code... Or we use some smart tool, like Project Localizer.

..."


This looks like a pretty interesting (and easy) way to localize a project. Using the XML localizer, it looks like you could easily add additional translations executed by others...


Now to look into a VB language template... ;)

Using OwnerDraw to Provide Item Wrapping in a ListBox.

Rahul Soni's blog - Never assume the obvious is true... - Enable wrap and change the color of Listbox items

"Problem description> You have a Listbox where you have a lot of items which are quite large and won't fit inside the width of your listbox. You don't want to enable Horizontal Scroll bar, since you have don't want your users to keep scrolling left and right in order to view the items. Now if you are able to achieve this, you will notice that it looks pretty ugly since you won't be able to figure out the difference between a wrapped item, and another item. So, you decide to color each item in such a way that item #1 is green, #2 is yellow, #3 is cyan, #4 is green again, and so on...

Have a look at the figure below. The first one is the normal listbox. The 2nd listbox below is the customized version. I think the 2nd one looks much better (although I guess, the color selection could have been much better) Smile
image

..."

I thought this was a pretty cool VB.Net example of tweaking the ListBox to provide wrapping via OwnerDraw and  handling the DrawItem and MeasureItem events.

Friday, September 14, 2007

Visual Basic Pack for Visual Studio 2005 SDK Now Available for Download

Microsoft Downloads - Visual Basic Pack for Visual Studio 2005 SDK

"This is the Visual Basic Pack for VS SDK 2005 V4 targeting VS 2005. It contains Visual Basic samples and wizards for creating VSIP packages using Visual Basic.

..."

VSX Team Blog - Visual Basic Pack for Visual Studio 2005 SDK

"...

Visual Basic Samples
As part of the Visual Studio product development team’s community initiative, the team has converted the samples included in the Microsoft Visual Studio 2005 SDK to the Visual Basic language. The new Visual Basic samples can be accessed from the Visual Studio SDK Browser.

Visual Basic Visual Studio Integration Package Wizard
A new wizard has been added that will assist in generating Visual Basic Integration Packages for Microsoft Visual Studio. The wizard can be accessed by choosing the new project type Visual Basic."

VB 2005 get's some VS SDK Sample love... (Okay, that just... doesn't sound right... )

 

Related Past Post XRef:
Visual Studio 2005 SDK version 4.0 Released
Visual Studio 2005 SDK V3 (September 2006) Released
Visual Studio SDK V2 RTM
"V2 of the VS SDK almost ready to ship"

[Humor] An example of over engineering?

Master the Business - Warning sign not needed

Washington Mutual Clearance Sign

I saw this, and besides having a good laugh, it reminded me of how so many software development projects/features/tasks get over engineered. (I admit, I'm just as bad sometimes... adding stuff "because we may need it one day"... but at least I KNOW and acknowledge I'm over engineering it. ;)

A very wise man once said, "Make everything as simple as possible, but not simpler."

MSXML4 is not being killed... (for now)

Microsoft XML Team's WebLog - We are NOT Killbit-ing MSXML4!

"...

In March , we posted our intention to killbit MSXML4 and encouraged users to move to MSXML6 and asked for feedback – And we received lots and lots of it. The summary is MSXML4 is still being used extensively and the suggested timeframe for killbit seemed aggressive for most customers. The lack of CAB for MSXML6 was also making the migration difficult.

So in the best interest of our customers , we have decided to NOT killbit MSXML4.

...

We would like to stress that MSXML4 will only be updated for security issues and is in a maintenance mode. Any/All functionality & performance improvements WILL ONLY be made in MSXML6...

We are working on the details on an updated MSXML4 release timeline and will update the community as soon as we have that timeline.

..."

So MSXML4 will still be around for a bit yet...

 

Related Past Post XRef:
Say Goodbye to MSXML4... Start planning your upgrade to MSXML6 now...

Capturing PRINT Statements Embedded in T-SQL Stored Procedures

SSIS Stuff - Capture PRINT messages from a stored procedure

"I recently helped with a customer issue where they had a long running stored procedure which output status messages periodically using PRINT statements. They wanted to capture these statements and output them into the SSIS log. Unfortunately, the Execute SQL Task doesn't support this (it's something we're considering for the future), but it's fairly easy to do through a script task.

...

The print statements return the messages as InfoMessage events, which we catch with our handler and turn into SSIS information events.

..."

I like to pepper PRINT statements in my T-SQL, using them for informational/feedback messages. So this post caught my eye...

The SqlInfoMessageEventHandler & InfoMessage nugget is one that I'll want to remember.

One thing to remember, PRINT statements are batched and are not sent to the output/client immediately. If you need an immediate message sent, use a raiserrror with a severity <= 10 and the "WITH NOWAIT" option.

Thursday, September 13, 2007

Another Free WPF DataGrid (This time from Infragistics)

Andrew Flick - Infragistics NetAdvantage for WPF Express (aka free grid)

"...This Express SKU is a fully functional version of our XamDataGrid and the expectation was set that we would do bug fixes and you could use our forums to ask questions about it, but we would not be adding any additional functionality. It was a gesture of good will to the MSDN subscriber to give them a DataGrid in WPF that had a stable feature set and could achieve the basic needs achievable by a simple datagrid.  (Of course, we also threw in the rest of the Grid features in the V1 release including: Outlook Group-By and the support of Hierarchical Data).

And It's now September, we're gearing up to ship our next iteration of the WPF product (download the XamChart CTP) and the Express Grid rises up again and we were faced with the question of what Product Management plans to do with it.  And the end result, is that we've decided to give it away for free to everyone [GD:Emphasis added] and recompile/test it with the latest hotfix already installed.  It's available now and you can grab it here.

..."

Another free (registration-ware) for everyone WPF DataGrid. Never hurts to have options...

Now all I need to do is start doing some WPF development...  ;)

 

Related Past Post XRef:
Xceed DataGrid for WPF 1.1 Released
Free Xceed DataGrid for WPF Now Available for Download
Free WPF DataGrid from XCEED (Coming Soon)

Lucene.Net & C# Indexing and Searching WinForm Example

ASPCode.net - C# and Lucene to index and search

"This sample will show you how to use Lucene from your .NET application to index and search content. There are some articles and samples to be found on the web, but it seems that they are a bit outdated. Myself I used Lucene version 1.4 something some year(s) ago and thought now that I needed it again I could just download the new dll:s and copy my existing code. Turns out they have made quite a few API changes.

..."

Extra and updated examples never hurt...

If you have plain text (or can get it, say via IFilter) and need or want full text indexing/searching, then Lucene.net deserves a look.

I've seen it used in a number of open source/free/etc projects and have always been impressed with its indexing speed and query performance.

(via DotNetKicks.com - C# and Lucene to index and search)

 

Related Past Post XRef: (I think that's all of them. Been following Lucene for a bit... :)
Using Lucene.Net to Index And Search C# Source
Lucene.Net 2.0 Final Released
DotLucene 1.9 Final Released
"DotLucene / Lucene.Net has moved to ASF"
Indexing Database Content with dotLucene
DotLucene: Full-Text Search for Your Intranet or Website using 37 Lines of Code
Lucene.Net 1.4.0 Beta build-001
Open Lucene.NET - The Open Source Search Engine
SourceForge.net: Lucene.Net core moved from SF
SourceForge.net: Project Info - Lucene.Net search engine

Wednesday, September 12, 2007

SuperList - Outlook Style Grouped List Control

CodeProject - Outlook Style Grouped List Control

"I've been a member of CodeProject pretty much since its inception in one form or another and have been meaning to post an article for a while, this is a great site and I'm glad that I can finally give something back.

I built the Superlist control whilst developing an RSS reader called FeedGhost. Although there are plenty of commercial grouped list controls available I wanted to have total control over the code and of course its usability. Superlist supports drag drop column customisation, grouping as well as handling thousands of entries smoothly. It's also highly customisable if you want to change its look and feel. In this article I'll explain how to use and extend the control in a demo project. If you download the source, you can find demo project under the Tests/SuperListTest directory.

Background

Before deciding to develop my own list control I spent a couple of weeks fighting the standard Listview, trying to get it to work the way I wanted, but I finally gave up when I couldn't get the selected items in the grouped visual order. We needed this in FeedGhost so that articles that the user multi-selected would be displayed in the same order in the corresponding HTML view.

I decided to write the control from scratch rather than basing it for example on the Grid controls..."

This looks like a pretty darn cool listview... I like how it's designed to easily handle thousands of entries (as well many of its other features).

(via WindowsClient.net - Outlook Style Grouped List Control)

Free "Execute this/these T-SQL scripts in a translation" Utility from xSQL Software (aka "Query Analyzer is scary to users but they still need to execute T-SQL scripts" Utility...)

xSQL Software - xSQL Script Executor

"Free utility that provides for transactional execution of T-SQL scripts

  • Execute multiple scripts at once

  • Support different transactional execution

  • Robust error handling

  • Command line options for batch execution

  • Simple and intuitive interface

Script executor is a small, free utility that allows you to run multiple T-SQL scripts at once against a Sql Server database. You can choose to run a single script file or a group of files identified by a pattern. You can select different script execution modes, run it interactively via the user interface or in batches via the command line options.

..."

If Query Analyzer is overkill or to scary to give to your users, but those same users need to execute one or more T-SQL scripts, then this little utility may come in handy for you.

In a very brief, quick and dirty test, it worked just fine for me, even where the T-SQL script contained a number of embedded GO statements...

It can also be used via the command line, which could come in handy too (the UI will help you with that in that you can set everything up in the UI and then click on the Show Command Line button to see the final/finished command line...which is a nice touch)

 

Related Past Post XRef:
RSS Reporter for SQL Server V2 Released (with Custom Query Support & Database Size Feed)
RSSReporter - SQL Server Job Status via RSS Feeds

Tuesday, September 11, 2007

Second Annual Simi Valley Freedom Walk, 9/11/2007

I just got back from the second annual Simi Valley Freedom Walk held at the Ronald Reagan Presidential Library and let me say that this year's was a great program.

Each of the speakers were outstanding and very "real." There were a number of heart felt moments during the speeches (that was NOT a tear in my eye... the wind blew some dust into it... oh, there was no wind?... um... well... still... yeah) that I still feel the effects of.

Corporal Leavey and Deena Burnett Bailey's speeches were extremely touching. They received standing ovations and deserved every second of them.

The entire program moved quickly and with a purpose. The organizers did a great job.

A great touch was the "Service Anthems" where the outstanding 1st Marine Division Band played a medley of military branch anthems and as a given service's was played, they asked that active members, veterans, people with serving family members, or who've lost family members in that service to stand and be recognized. That made us all a part of the program, to be able say thank you, to be thanked and to feel the strength and love of the community.

9/11/2001 still effects me deep in my gut, and while I wish it never happened, this was a great way to share the pain and to show the world we will not forget and we stand together as Americans...

Anyway...

I've uploaded my pictures now to a LiveSpaces Photo Album (cause there's a bunch of them and with the new Live Windows Photo Gallery it's so to do, and I like LiveSpaces Photo Album viewing experience ... ;)

Here's a select few of them...

The handbill

Simi Valley Freedom Walk 2007-1 Simi Valley Freedom Walk 2007-2

Corporal Leavey

DCP_2596

Deena Burnett Bailey

DCP_2600

During the Service Anthems...

DCP_2602

DCP_2610

  DCP_2621  DCP_2632  DCP_2657

Playing with the Panoramic feature in the Windows Live Photo Gallery..

DCP_2611 StitchDCP_2624 Stitch DCP_2652 Stitch

 

Never Forget

 

Related Past Post XRef:
Second Annual Simi Valley Freedom Walk
1st Annual Simi Valley Freedom Walk Pictures

Monday, September 10, 2007

Visual Studio Hyperlink to Code Addin

CodePlex - HyperAddin: A Visual Studio Addin which adds hyperlinking in your source code

"Visual Studio already had the ability to recognize and quickly navigate (with Ctrl LeftClick) to URLs embedded in the comments of the code. This is great, but what is really needed is a way of referring quickly and easily from one part of the code to another part of the code (or to architectural documents checked in with the code). That is exactly what the HyperAddin does: It makes creating and following hyper-links in your code trivial. Now you only have to explain something once in a comment and refer to it many times (got lots of overloaded methods? They should all refer to the 'master' that does the real work).

Hyperlinks in your source code are one of those features that once you have used it, you wonder how you ever got by without it. If you use Visual Studio, you really should try it. Anyone reading your source code (including yourself!) will thank you for it.

..."

vb:feeds - Hyperlink your source code -> Brad Adams - Hyperlink your source code

"...

Here are a few simple examples:

  • You can refer to a function or type (or any other symbol), but using code:name.  For example
        // In this comment I wanted to talk about the code:MethodTable::Unbox method.
// By Adding a code: hyperlink, readers can quickly navigate to it. Any name
// that can be found using the Edit.FindSymbol (Alt-F12) can be used. If you
// need to refer to an overloaded method, it is best to use an anchor (see below).


  • You can generate your own URL anchors by simply putting #name in the comment somewhere. For example.
        // #mytopic
//
// ...
// Somewhere else in the file you can refer to code:#mytopic. Now readers
// can quickly navigate to the #mytopic anchor.


  • Without further qualification, # anchors only work within a single  file. If you wish to refer to an anchor outside the current file (a common case), then you need to specify some programming symbol that is in the same file as your anchor.  For example:
        // I need to refer to #mytopic but it is not in the current file.  But I
// know that this anchor is related to the class 'MethodTable' and thus will
// be in the same file as that class definition by using code:MethodTable#mytopic
// I can refer to #mytopic anywhere in any code within the solution.

..."


That's pretty darn cool...


I really like the idea of being able to quickly navigate to specific code functions/methods/blocks/etc via easily added hyperlinks...

Sunday, September 09, 2007

Microsoft System Center Virtual Machine Manager (MSCVMM) 2007 Trial Available via VHD

Microsoft Downloads - Microsoft System Center Virtual Machine Manager 2007 VHD

"This download comes as a pre-configured VHD. This download enables you evaluate Microsoft System Center Virtual Machine Manager 2007.

...

System Center Virtual Machine Manager provides centralized administration of virtual machine infrastructure and enables increased physical server utilization and rapid provisioning of new virtual machines by the administrator and authorized end users."

I find it ironic that the Virtual Machine Manager trial is downloadable as a Virtual Machine...

Anyway, there's some pretty cool stuff on MSCVMM that I'd like to check out "one day." For me and my work life, the self provisioning and P2V sounds pretty cool.

Saturday, September 08, 2007

A Couple Vista/UAC/VB2008 How To's from VB Helper

Some Vista related how to's that I thought I may need...

 

VB Helper - Add UAC shields to buttons, menu items, and picture boxes in Visual Basic 2008

"This example shows how to add UAC shields to buttons, menu items, and picture boxes in Visual Basic 2008 ..."

Looks like it might also work for VB 2005.

 

VB Helper - Launch a program while requesting privilege elevation in Visual Basic 2008

"This example shows how to launch a program while requesting privilege elevation in Visual Basic 2008. ..."

Done using ProcessStartInfo, the runas Verb and UseShellExecute. Again, should also work in VB 2005.

 

Mark a program to run with elevated privileges by using its manifest in Visual Basic 2008

"This example shows how to mark a program to run with elevated privileges by using its manifest in Visual Basic 2008."

Definitely only VS/VB 2008

Friday, September 07, 2007

Media Center WebGuide Now Free

Windows Home Server Blog - WebGuide

"The Windows Media Center and Windows Home Server teams are excited to have Doug Berrett join Microsoft.  At CEDIA Expo we announced WebGuide for Windows Media Center is now available free from http://www.asciiexpress.com  The press release  about all of the great Windows Media Center news is available on the Microsoft web site.

What is WebGuide?   WebGuide allows you to remotely view live and recorded TV programs and to remotely schedule and manage your recorded television programs, music, pictures and videos on your Windows XP Media Center edition or Windows Vista Premium or Windows Vista Ultimate PC.  

..."

WebGuide

"WebGuide allows you to remotely view live and recorded TV programs and to remotely schedule and manage your recorded television programs, music, pictures and videos on your Media Center or Windows Vista PC. Install WebGuide on your Media Center PC and access it from any machine that has a web browser, including your cell phone or mobile device.

Convenient

Live streaming TV can be viewed on any web browser

Recordings can be scheduled from any web browser

"Place-shifting" for your personal media library, including TV, music, pictures, videos and DVD's

PocketPC and Smartphone enabled

Windows Vista ready

Easy

Installation takes only minutes

User-friendly MCE interface

Languages include Danish, Dutch, French, German, Hebrew, Italian, Norwegian, Spanish and Swedish

Fast

Live scheduling without delays

Search by show, date or time

Quick access to recent and upcoming recordings

..."

That's pretty darn cool (and free is nice too).

Time to resurrect my Media Center I think... :)

Looking Behind the Curtain to See the Magic Behind the New Windows Live Installer

www.istartedsomething.com - The cookie magic behind Windows Live Suite installer

"...

Unsatisfied with “it just works”, I decided to investigate further. I first analyzed the HTML to see what effect it had on the download link when I selected the different options, but no luck there, it pointed to the same “WLinstaller.exe”. To prove a point, I then downloaded the executable without going through the form to compare it with the other executable I already, it was the same. So if the executable didn’t change, then it can only be the website.

One more look at the HTML and specifically the Javascript reveals the secret, cookies. By clicking “Install”, the Javascript generated a unique cookie for me under the name of “wlxp” that contained sets of globally unique identifiers (GUID) which I now know are the references to the particular applications I selected.

..."

So that's how the main Get Live website (http://get.live.com/WL/all) communicates to the WLInstaller.exe on what options you selected.

Interesting. And looks like something that's easy to extend and is pretty flexible.

The only issue I see is for those who download and install without going through the website (I wonder if they would get some default apps pre-selected and installed? Or just a full list of the available applications to "Select any additional products you would like to install" frame and nothing automatically installed?)

Anyway, after a couple days, I'm still pretty darn happy with the install experience and the new set of Live applications (though I've only really used WLW).

(via shahine.com/omar/ - Windows Live Suite Installer)

 

Related Past Post XRef:
Windows Live Suite Installer Released (Which includes Windows Live Writer Beta 3)

Vista Sidebar Gadgets for Developers

Oscar Berroteran - Sidebar Gadgets for Developers!!!

"Code Converter

 

MSDN Search Gadget

 

VS Recent Projects

..."

While I can't read the post, the pictures said it all...

Wednesday, September 05, 2007

Windows Live Suite Installer Released (Which includes Windows Live Writer Beta 3)

Jump into Windows Live (http://get.live.com/wl/all)

WindowLiveSuiteInstaller

As you've probably seen everywhere in MS land, today the Windows Live Suite Install came out.

And I have to say... It's pretty darn nice. It is very convenient and for me worked like a charm.

My only beef (a very very tiny one... mostly just a whine issue) is that on the web page I deselected Mail and the Toolbar. When the actual installer started Mail and the Toolbar where selected in the "additional products" section (see picture). I was confused about about 1/4 of a second, thinking that somehow Mail & Toolbar were still going to install or something.

Well as soon as I read the actual title of the area and the button text, I figured it out. But if I had been button happy, those could have been easily added. My whine is that if they were deselected on the web page, they should be deselected in the Installer. I DO like the fact that I get a second chance to install them. I think that's cool. I just wish their selection status reflected those that I selected on the initial web page. No blood, no foul and not a a big thing...

Besides that it worked great, and best of all no reboot was required (for me at least).

 

Included in the Suite is Windows Live Writer Beta 3. Which means it's time to update my Plugin installers (and tweak my Picture Post plug as it's broken again... sigh).

Lets see if WLW B3 can upload pictures to Blogger... Here it goes!

Update:
YEAH! Uploading photo's to Blogger/Picasa works! ROCK ON! Good job guys!

(via Windows Live Wire - Test drive the new Windows Live suite)

New Information on Creating Custom Reports for Team Foundation Server

Visual Studio Team System Developer Center - Getting Started With Custom Reports for Team System

"To better track your team's progress in Visual Studio 2005 Team Foundation Server, you can create reports that highlight the data that is most important for your project. By creating your own reports, you can drill down on specific information that is not analyzed by the default reports in Team Foundation Server. In addition, you can customize how your reports are run, displayed, and delivered to each member of your team.

...

Creating Reports

You can use the procedures in the following table to experiment with different approaches for creating a report.

Tool Source of Data Procedure

Excel

Analysis Services Database

How to: Create a Report in Microsoft Excel for Team System

Excel

Work Item Query

How to: Create a Work Item List

Report Designer

Analysis Services Database

How to: Create an Aggregate Report for Team System using Report Designer

Report Designer

Relational Database

How to: Create a Detailed Report for Team System using Report Designer

Managing Reports

After you have created your report, you can then share it and manage permissions and other properties of the report. For more information, see Managing Reports in Reporting Services for Team System and Managing Excel Reports for Team System in the Project Portal.

..."

Additional "How To" help for creating custom TFS reports.

(via Visual Studio Team System User Education - New Content Available on Creating Custom Reports)

 

Related Past Post XRef:
Free Guide to Creating, Modifying and Installing TFS Reports and Understanding the TFS Data Warehouse
Understanding the Team Foundation Server Data Warehouse
Sample TFS Reports

Tuesday, September 04, 2007

Wintellect's PowerCollections is now on CodePlex

Roger Dahlman's Blog - PowerCollections on CodePlex

"I have recently taken responsibility for the Wintellect PowerCollections project. Wintellect has decided that that is time to make this a community project on CodePlex so that the library can continue to grow with contributions from others.

You can access the PowerCollection's site at http://www.codeplex.com/PowerCollections.

The PowerCollections have been available for download from Wintellect for some time but I am sure that many are not aware of their purpose. In a nutshell, PowerCollections are a set of collection classes that that utilize .NET generics to add to the collection classes already available in .NET ...

...

Below is a list of the current collections in the library:

  • Set
  • OrderedSet
  • Bag
  • OrderedBag
  • BigList
  • Deque
  • MultiDictionary
  • OrderedDictionary
  • OrderedMultiDictionary

..."

Nice to see a good library continue to grow and improve... (and go OSS  :)

Related Past Post XRef:
"The C5 Generic Collection Library for C# and CLI"
Power Collections 1.0 Released
Power Collections version 1.0 is feature complete
Wintellect - Power Collections

ProcessExplorer v11.0 Released

Sysinternals Site Discussion - ProcessExplorer v11.0, AccessCheck Update, PageDefrag Article

"ProcessExplorer v11.0: We’re excited to announce the release of Process Explorer v11, which introduces major startup and UI performance improvements, new columns and process details for Vista I/O priorities, memory priorities, and Address Space Layout Randomization (ASLR) DLL and executable attributes, an enhanced security properties page that shows raw SID values, fully asynchronous thread symbol resolution, integration with UAC, and more!

..."

Microsoft Sysinternals - Process Explorer for Windows v11.0

"...

  • What's new in Version 11.0:
  • New treelist control for better UI responsiveness
  • Asynchronous thread symbol resolution on threads tab of process properties
  • More flags on groups in security tab and SID display
  • Thread IDs on threads tab
  • On-line search uses default web browser and search engine
  • Vista ASLR column for processes and DLLs
  • Vista Process and thread I/O and memory priorities in process and thread properties
  • Vista Process and thread I/O and memory columns
  • PROCESS_QUERY_LIMITED_INFORMATION support on process permissions on Vista
  • Run as limited user runs with low IL on Vista
  • Reports information for all object types on Vista
  • Show details for all processes elevation menu item on Vista
  • Supports replacement of task manager on Vista
  • /e to launch elevated
  • /s switch to select a process at startup
  • Compiled w/ASLR, DEP
  • Faster startup
  • Miscellaneous bug fixes and minor improvements

..."

Process Explorer, aka "We Don't Need No Stink'n Task Manager"... (Or was it aka Task Manager++? Or Task Manager's Big Brother? Or the Task Manager of Christmas Future? )

(Yeah... sorry about that... It's been a long Monday...  ;)

NRTFTree - C# RTF DOM/SAX Like Parser

SourceForge - NRTFTree Library

"NRtfTree library is a set of classes written entirely in C# which may be used to manage (read and write) RTF documents in your own applications. A java port of the library can be found in http://nrtftree.sourceforge.net/ ..."

NRTFTree Library

"NRTFTree is an open source (GPL) [GD: As of the 0.3.0 release it's now LGPL] library written entirely in C# which may be used to manage RTF documents in your own applications.

NRTFTree will help you:

  • Open and parse RTF files.
  • Analyze the content of RTF files.
  • Add, modify and remove document elements (text, control words, control symbols...).

..."

NRTFTree provides both a DOM like and SAX like mode...

I use RTF quite a bit, mostly consuming and storing it. But in some cases I have to tweak the RTF and well that can be... um... fun... If/when I have play in RTF land again something like this library could come in handy.

Now being LGPL it's something I can use and contribute too (I'd likely need to create a COM Callable Wrapper for it and that would be cool to contribute... but that's for another day...).

(via dzone - NRtfTree Library 0.3.0 b1 released.)

[Humor] Now this is a No Parking sign...

LOL

(via Metroblogging Los Angeles -  Parking Lament)

Monday, September 03, 2007

Creating PowerShell Cmdlet's? Need Help with the Help? Check out the Cmdlet Help Editor

Windows PowerShell - New and Improved Cmdlet Help Editor Tool

"The latest version of the Cmdlet Help Editor has been posted on the same link. It contains a few fixes. I recommend you all upgrade to this version:

http://www.wassimfayed.com/PowerShell/CmdletHelpEditor.zip

..."

Windows PowerShell - Intoducing the Cmdlet Help Editor V1.0

"Cmdlet Help Editor enables you to create help topics for Windows PowerShell cmdlets in the XML format that Windows PowerShell reads. Help text created in Cmdlet Help Editor can be displayed immediately by a Windows PowerShell get-help command without any additional transforms or formatting.

By reflecting on a Windows PowerShell snap-in (PsSnapin) assembly, Cmdlet Help Editor creates a customized documentation interface that includes the cmdlets in the snap-ins, their parameters, and parameter attributes.

Cmdlet Help Editor was designed for Windows PowerShell cmdlet developers to make it easy to create excellent cmdlet help. This tool is made available free of charge, but it is not warranted or supported by Microsoft.

..."

When/if I start creating Cmdlet's, this will come in handy...

 

Related Past Post XRef:
Using VB.Net to Create a PowerShell CmdLet
VS2005 PowerShell VB & C# Templates (Project, Cmdlet & PSCmdlet)
VS2005 (C#) PowerShell Cmdlet New Item Template

XSLT and XSL-FO Task Based Reference Site

www.dpawson.co.ukFO Questions, &  XSLT Questions and Answers

I'll likely be using XSLT and possibly XSL-FO in my Blogger backup utility, so this caught my eye (since I have little practical experience using XSLT and none with XSL-FO).

What I like about this site is that it's not just a link site but a reference site. 

David Pawson (author of XSL-FO Making XML Look Good in Print) has put together this nice reference site, based on tasked based questions and answers.

For example, here is a couple entries from the XSLT - HTML page;

"1. How to use HTML as input documents?
2. Embedding HTML in XML documents using HTML dtd
3. HTML to XML conversion
...
5. How to embed HTML in XML
6. Including BR in an XSL template
...
10. HTML in XML
...
13. Parsing HTML as XML

..."

That's just a tiny bit of the information available...

(Joteke's Blog - Handy XSLT Reference Site focused on specific tasks)

Sunday, September 02, 2007

[Humor] It's not a Bug but an Undocumented ...

This photo gave me a good chuckle...

(via Virtual Earth / Live Map - Only 1 in 5 Program Managers can place the Capital of North Korea)

Image Resizer PowerToy for XP and Vista - Easy Resizing of Images, Pictures, Digital Photos, etc via Windows Explorer

Cum Grano Salis - Image Resizer Download Page

"(Note: When reinstalling, you may need to log off and on after the installation to have everything work properly)

1.0.831.0 - Fixed issues with setting defaults. 

1.0.801.0 - Added submenu for resizing quickly. 

1.0.0.0 - See initial blog post for more info." [Post leached in full]

Cum Grano Salis - Image Resizer for Vista (and XP) - Just a right click away from Explorer

"I don't know about you, but I am sorely missing the XP toy for image resizing. Windows XP had its power-toys, but Vista does not. And while some functionality has been baked into the shell, explorer right-click has not. On top of that, a feature I have been wanting for a while was also missing from the Power Toys (Copy Picture to clipboard).

Because of that, I created an Image Resizer app that is tailored to what I need.. For the purpose of this post, I shall use my daughter in the capacity of a lolcat

..."

My daughter was just asking me about resizing for emailing some of her photos. Right-clicking in Windows Explorer is just about at her comfort level...

(via The Road to Know Where - Microsoft Updates "Image Resizer" PowerToy)

Friday, August 31, 2007

Did You Know WinImage Can Convert VMDK's to VHD's (and back)?

Dugie’s Pensieve - WinImage VHD and VMDK interchange

"This popped up in conversation, so I thought it was worth mentioning again.

The mighty fine tool WinImage converts VHDs to VMDK and visa versa (VMDK to VHD) 

WinImage will also let you do a file level restore from your CompletePC (VHD) backup in Vista. ..."

Nice! WinImage rocks. And I have some VMDK's that need converting too... :)

Also it looks like it can also create a Virtual HD from a Physical HD (I need to queue up playing with this)

(via A Continuous Learner's Weblog - Links (8/30/2007))

 

Related Past Post XRef:
WinImage (Beta) Supports VPC VHD's

"Visual Basic 9.0 Feature Focus" - Excellent Introduction Series to New VB9 Features

B# .NET Blog - Visual Basic 9.0 Feature Focus - Introduction

"It seems a little weird for a C# MVP to start a series on VB 9.0 Language Enhancements, isn't it? However, I have a strong passion of the CL in CLR and CLS: Common Language. Therefore, I'll focus in this blog series on various language enhancements that ship with VB 9.0 as part of the .NET Framework 3.5 and Visual Studio 2008 release wave. If you're more of a CSharpish guy or girl, check out my C# 3.0 posts.

..."

For the last couple weeks Bart De Smet has been delivering a number of very cool posts on features coming in VB9. Each post is well written and provides a nice overview and introduction to the given feature.

If you're trying to wrap your head around all the new stuff coming in VB9, his posts are a good place to start...

Here's the list so far...

Visual Basic 9.0 Feature Focus - The If Ternary Operator

Visual Basic 9.0 Feature Focus - Nullable types

Visual Basic 9.0 Feature Focus - Partial Methods

Visual Basic 9.0 Feature Focus - Expression Trees

Visual Basic 9.0 Feature Focus - Lambda Expressions

Visual Basic 9.0 Feature Focus - Anonymous types

Visual Basic 9.0 Feature Focus - Object Initializers

Visual Basic 9.0 Feature Focus - Extension Methods

Visual Basic 9.0 Feature Focus - Implicitly Typed Local Variables

For the the future posts (and the other coolness he blogs about) make sure you click on through...

Thursday, August 30, 2007

Creating a Dynamic, Runtime, User Driven Query Builder with LINQ

The Visual Basic Team - Implementing Dynamic Searching Using LINQ

"A common requirement in forms-over-data applications is that users be able to search by any combination of fields to construct a dynamic query at run time.  For example, the search feature in this application allows the user to find all records that meet criteria defined on multiple columns:

This is easy at compile-time, but what if we want to check the date the order was entered instead of the date it was shipped?  In this case we’d have to write a separate query using order.OrderDate.  Doing this dynamically at runtime isn’t all that difficult if you’re just building up a SQL string, but how would we do this with LINQ?  Doesn’t LINQ require me to specify the criteria at compile time in order to construct the query?  Fortunately the answer’s no, LINQ supports constructing dynamic queries at runtime through the Expression Tree API and the Expression Compiler.

..."

This is a wheel that we seem to reinvent all the time, isn't it? A user driver query builder...

This post provides an interesting solution and uses many of the new cool VB9 features like expression trees, lambda expressions, LINQ, etc.

I'm going to queue this for a closer look when VS2008 RTM's.

Krypton Toolkit 2.6 Released

Krypton Toolkit

"Use the following link to download
http://www.componentfactory.com/downloads/KryptonToolkit260.zip

Toolkit Change Highlights
KryptonCheckBox control added
KryptonRadioButton control added
KryptonDataGridView control added
ToolTips added for button specs

..."

The cool free Krypton Toolkit continues to grow and improve...

 

Related Past Post XRef:
Krypton Toolkit 2.5 Released
Krypton Toolkit 2.2 Released
Krypton Toolkit (Free WinForm UI Controls) 2.0 Released
Krypton Toolkit 1.0.0 Released
Krypton Toolkit 0.9.0 (Free Office-Like UI Controls)

Wednesday, August 29, 2007

Play Lord of the Rings Online Free for the Next 7 Days...

LOTRO Warcry - Play The Lord of the Rings Online for Free!

"Turbine Launches 7-day Free Trial Program for the Hottest MMO of the Year

WESTWOOD, MA - August 29, 2007 - Turbine, Inc. has launched the official 7-day free trial of The Lord of the Rings Online(TM): Shadows of Angmar(TM) (LOTRO). Beginning today, fans in North America, Australia, and New Zealand can play the best online game for free by visiting http://trial.lotro.com.

...

Eligible fans can participate in The Lord of the Rings Online trial program and play the game for 7 days, free of charge. At the end of the trial, players will have the option to continue to play LOTRO, and keep the characters created during their 7-day free trial time, by purchasing the game either online or at retail. To participate in the 7-day free trial or to find out where to buy LOTRO, visit http://trial.lotro.com.

..."

You're just a 4GB download away from playing my current addition.

One of the coolest thing about LOTRO (and all Turbine MMO's to date) are the free updates. LOTRO has had two major free content/new features/additional stuff to do/etc releases since its release already. And the next one (aka Book 11) will include player and kinship housing (I miss not having my AC1 house... ;)

Note for Windows Live Writer Plugin Writers - The Paths Are Changing...

Writer DevZone -  Changes That Affect Plug-in Developers

"In an upcoming release of Windows Live Writer, we are changing the location that Windows Live Writer’s program files are installed into as well as the location of our registry settings. These changes could have an impact upon plug-in authors, though we have done our best to maintain backward compatibility. The following describes the changes in more detail and specifically discusses the impact that this will have upon existing plug-ins.

Installation Directory

In an upcoming release of Windows Live Writer, the location where Writer’s program files are installed will change. In previous betas, Writer the files would be installed to

<program files>\Windows Live Writer\

Starting in the next release, they will be installed to

<program files>\Windows Live\Writer\

...

Registry Key Paths

In addition, the registry path where plug-ins should register themselves will also be updated from

HKEY_LOCAL_MACHINE\SOFTWARE\Windows Live Writer\PluginAssemblies
or
HKEY_CURRENT_USER\SOFTWARE\Windows Live Writer\PluginAssemblies

to

HKEY_LOCAL_MACHINE\SOFTWARE\Windows Live\Writer\PluginAssemblies
or
HKEY_CURRENT_USER\SOFTWARE\Windows Live\Writer\PluginAssemblies

..."

About time to revisit our Plugin Setup's. I needed to tweak my setups anyway so it's no real biggie from my seat...

The good news is that it looks like a new WLW version is coming in the near future?

(via Writer Zone - Upcoming Changes May Affect Plug-in Developers)

Monday, August 27, 2007

MS Paint Development Video (Humor)

Full of I.T. - The Development of MS Paint

"This is hilarious.  It looks like one of the videos Microsoft creates internally as tongue-in-cheek fun ..."

This had me laughing way to hard for a Monday...

Sunday, August 26, 2007

Learn to Master your Inner Robot - Introductory Courseware for Microsoft Robotics Studio

Microsoft Downloads - Introductory Courseware for Microsoft Robotics Studio (1.5) CTP Sep 2007

"...

The robotics introductory courseware is a set of labs that can be completed individually or as part of an introductory course on robotics. The labs take you through common robotics concepts such as reading sensors, controlling actuators, designing simple behaviors, and having a robot interacting with its environment using Microsoft Robotics Studio.

Going through the labs you will learn how to write services for Microsoft Robotics Studio using a combination of Microsoft Visual Programming Language (VPL) and C#. While the labs are introductory, they do require basic knowledge of Microsoft .Net and C# to complete.

Many of the labs can be completed either using Microsoft Robotics Studio Simulation or actual hardware in the form of an iRobot Create. In Lab Tutorial 7 (C#) - Multirobot Coordination you will need two iRobot Creates or use Microsoft Robotics Studio Simulation to simulate the robots. In addition, some of the labs such as Lab Tutorial 5 - Using Vision to Estimate the Distance to an Object use additional sensors including cameras, microphones, and speakers that need to be plugged into your PC.

..."

I've not have a chance to check this out yet (my son has monopolized the machine with MSRS on it... stupid WoW... ;) but I thought it sounded pretty cool. I'll want to check this out when I get a chance (time to think up some chores or something... )

 

Related Past Post XRef:
Microsoft Robotics Studio (1.5) Released
Other Microsoft Products Released this past week, XNA Game Studio and Robotics Studio
"An Introduction to Programming Robots with Microsoft Robotics Studio"
Microsoft Robotics Studio June 2006 CTP Released

Creating a Reflector Addin? Check Out this Cool Walk Through from Jason Haley

JasonHaley.comWays to use .Net Reflector #2.1: Creating your own add-ins

"In this entry I walk through creating a Reflector add-in that exposes its own UI using a user control and works with the Reflector code model on a simple level.  This add-in will expose itself on the context menu of the assembly browser (enabled only in certain conditions) when clicked it will show the user control that uses the Reflector code model of the currently selected type to provide functionality to the user.

...

The final look of the control and context menu item is to be something like this:

BitFlagConverter ContextMenu

...

Summary
In this entry I’ve walked through how to create a Reflector add-in that provides its own UI via a UserControl and how to tie it into the context menu of the assembly browser. I’ve also walked through the more interesting parts of the logic that listens to a user’s selection in the assembly browser and some of how to determine what the current type selected is and its properties. We also looked at the field declarations on a type and touched on expressions with the field’s Initializer property. ..."

Jason has written up a great walk through for creating a Reflector addin. Besides the C# source for this simple but useful plugin he's also provided a nine page DocX version of walk though (making it easier to view it offline, print it, etc).

If you're interesting in creating a Reflector addin, you should check his post out. He put a good deal of work into this write up and it shows...

Friday, August 24, 2007

Genghis 0.8 Released

theADOguy - Genghis v0.8 Released

"URL: http://www.codeplex.com/genghis

I've been helping Chris Sells and the Genghis Group for a couple of years. I am proud to announce the newest build of Genghis (version 0.8) that includes all the features of version 0.5 ported to .NET 2.0. ..."

Genghis is a project I've been following for about a thousand years or so now (well since 9/2003 anyway).

New in 0.8 is

"...

  • CustomStateTreeView
  • FileSearchEngine
  • FindReplaceDialog
  • HeaderGroupBox
  • HtmlLinklLabel
  • ImageIndexEditor
  • InitialInstanceActivator
  • ListViewSorter
  • MappedDrives
  • MultiSdiApplicationContext
  • PathResolver
  • ScreenSaver
  • ScrollablePictureBox
  • SpashScreen
  • StatusBarExtender
  • SystemShares
  • TraceEx
  • UserResizablePanel
  • WebCommandLineHelper
  • XPThemedControls

..."

If you're doing WinForm 2.0 development then you should check out this project...

The license is very reasonable;

"...This license based on the open source zlib/libpng license. The idea was to keep the license as simple as possible to encourage use of Genghis in free and commercial applications and libraries, but to keep the source code together and to give credit to the Genghis contributors for their efforts..."

Related Past Post XRef:
Genghis Lives (on CodePlex)
Genghis Project Updated for .NET 2.0
Cool .Net Classes... The Genghis Project

Looking for XAML Clip Art? Then make sure you look for SVG files as well...

Daniel Cazzulino's Blog - How to get a gazillion XAML clipart for free

"You surely know XAML subsumes pretty much all of SVG, right?

SVG has been around for quite more time than XAML, and even if hasn't taken off as fast as many expected, at least I could find a huge collection of freely available clipart.

Now all I needed was a way to convert all that stuff that you can get in a single gigantic download if you want to XAML.

I wish it was always this simple: go download ViewerSvg :).

Not only does the tool work great, it also comes with a library you can use too :). So instead of using the UI, I used the library to create a very simple console application (Svg2Xaml project) that will convert one or more files (or every file it finds recursively in one or more folders) to XAML.

..."

I don't know nearly enough about XAML (i.e. I know next to nothing) so I found it pretty cool to see that it looks to be pretty simple to convert SVG into XAML...

Given my artistic skills, or lack there of, clip art is a must for me.   ;) 

Related Past Post XRef:
Open Clip Art Library

It's that time... Scott's Ultimate Developer and Power Users Tool List for 2007

Scott Hanselman's ComputerZen.com - Scott Hanselman's 2007 Ultimate Developer and Power Users Tool List for Windows

"Everyone collects utilities, and most folks have a list of a few that they feel are indispensable.  Here's mine.  Each has a distinct purpose, and I probably touch each at least a few times a week.  For me, util means utilitarian and it means don't clutter my tray.  If it saves me time, and seamlessly integrates with my life, it's the bomb. Many/most are free some aren't. Those that aren't free are very likely worth your 30-day trial, and perhaps your money.

...

This is the Updated for 2007 Version of my Original List and 2005 and 2006 List, and currently subsumes all my other lists. Link to http://www.hanselman.com/tools when referencing the latest Hanselman Ultimate Tools List. Feel free to get involved here in the comments, post corrections, or suggestions for future submissions in the HanselForums. I very likely made mistakes, and probably forgot a few utilities that I use often.

  • New Entries to the 2007 Ultimate Tools are in Red. There are dozens of additions and many updated and corrected entries and fixed links.

..."

Click through to http://www.hanselman.com/tools to see his outstanding and must read list...

Also this year we can all help him fight diabetes with a tax deductible donation to the American Diabetes Association via his Welcome to My Step Out to Fight Diabetes Web Page! 

Scott's blog and this list has been on the top of my reading list for many years... He asked, I gave...

 

Related Past Post XRef:
Scott Hanselman's 2006 Ultimate Developer and Power Users Tool List for Windows is Out
Scott Hanselman's 2005 Ultimate Developer and Power Users Tool List
Scott Hanselman's [2003] Ultimate Developer and Power Users Tools List

Paint.Net 3.1 Released

Paint.NET - Paint.NET v3.10 – Final release is now available!

"Well, it’s finally here! You can get it from the website, http://www.getpaint.net/ , or via Paint.NET’s built-in updater (Help -> Check for Updates). This release adds two new effects originally written by David Issel (”BoltBait”), support for the DDS file type originally written by Dean Ashton, as well as numerous small bug fixes and some visual fit and finish.

..."

A couple new features, some improvements and lots o' fixes...

Wednesday, August 22, 2007

Marshall Fixed Length TCHAR Strings between Managed and Unmanaged Code

Neil Cowburn - HOWTO: Marshal fixed-length strings

"On Monday I got an internal question about marshaling fixed-length strings between managed and native code. The scenario is you have a native struct with a member defined something like this:

typedef struct SOME_STRUCT {
    DWORD size;
    TCHAR entryName[20];
}

How can you marshal the TCHAR string in managed code? You marshal it as a UnmanagedType.ByValTStr and specify the size like this:

[StructLayout(LayoutKind.Sequential)]
public struct SomeStruct
{
    public int Size;
    [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 20)]
    public string EntryName;
}

...

On the other hand, if the native struct is defined like this:

typedef struct SOME_STRUCT {
    DWORD size;
    TCHAR *entryName;
}

You would marshal the TCHAR pointer as a UnmanagedType.LPTStr like this:

[StructLayout(LayoutKind.Sequential)]
public struct SomeStruct
{
    public int Size;
    [MarshalAs(UnmanagedType.LPTStr)]
    public string EntryName;
}" [Leached about 98% of the post, just in case and so I can find it again in the future... ]

I so needed this a few years ago. Had some unmanaged DLL's with struct's/TCHAR's that I needed to call with managed code. Caching here because I just KNOW I'll need this again sometime...

Tuesday, August 21, 2007

Moving TempDB on SQL Server 2005

Gregg Stark on SQL Server - Move TempDB Sql Server 2005

"I recently needed to move the TempDB on my Sql Server so I looked in Books Online and my initial thought based on what it said was that there is no way that will work.  Basically it says to find where the files are, and then move them to the new location followed by an alter statement to point the database at the new location.  Well of course this didn't work because the tempdb files are in use.  After thinking about it I just decided to try to alter the master database and point it at where I wanted the tempdb files to be and then just restart since Sql Server creates the tempdb again when you restart it.  Sure enough it worked.  Here are the steps I took.

..."

I seem to remember I had this issue/question, where I needed to move the SQL2k5 TempDB. I can't remember now if I ended up doing it this way, another way or gave up... Linking it here for future reference.

Monday, August 20, 2007

WinXP IE6 and WinXP IE7 VPC Images Refreshed

Microsoft Downloads - Internet Explorer Application Compatibility VPC Image

"...

A VPC hard disk image containing a pre-activated Windows XP SP2, and either IE6 or IE7 and the IE7 Readiness Toolkit.
This VPC image will expire on December 7, 2007.

..."

Two VPC/VHD's, one with IE6 and the other with IE7

 

Related Past Post XRef:
WinXP IE6 & WinXP IE7 VPC Images
WinXP SP2 IE6 VPC Image Refreshed
WinXP SP2 IE6 VPC Image

Sunday, August 19, 2007

URL File Downloader Project - Download Files, including HTML, Asynchronously

Scott Dorman - URL File Downloader for .NET Updates

"It's been a while since I wrote the first version of my FileDownloader article and class. Since that time, there have been a lot of positive comments about the article and a handful of feature requests. I finally made the time to update the classes and the article and resubmit it to The Code Project. This update has the following new methods and properties:

...
DownloadHtml
Gets or sets a value indicating if HTML pages should be allowed to be downloaded.
...
DownloadAsync
Begin downloading the file at the specified URL, and save it to the current folder.

..."

The Code Project - An easy-to-use URL file downloader class for .NET

"For one of my projects at work, I needed the ability to download a file from a given URL. Unfortunately, the methods provided by the WebClient class don't do anything more than download the data. I needed something that gave the ability to provide progress feedback and that was resumable.

As I started my searches on the web for any existing code, I came across two articles on CodeProject that helped get me very close to what I needed. The first article was by John Batte, while the second article by Phil Crosby was a derivation of his work. Using both of these articles as a starting point, I was able to make another derivation that accomplished my goals.

..."

This is a cool project that I am looking at using in my Blogger Backup utility... Both for the image backup feature and the "As it looks like on the blog" HTML backup option.