SYSK 376: Utility to Add DateTaken as File Name Prefix

I like to view photo images (.jpg files) using Large or Extra Large Icons view in Windows Explorer.  Unfortunately, this view doesn’t give me a way to sort the files by DateTaken property…  So, as a workaround, I created a small application that uses the date/time as a file name prefix, thus, letting the Windows…

0

SYSK 375: Visual Studio Add-In for Managing Configuration Files Across Environments

One of common customer questions/requests I get is about industry best practices and recommendations on managing configuration file settings when deploying code across environments.    There are several options to change different configuration settings in web.config file based on whether the application is in a DEV, QA, STAGE or PROD environment, and, based on my…

2

SYSK 374: Role Based Authorization for WCF Services through Configuration Files

Traditionally, to implement role based authorization in .NET you would use PrincipalPermission attributes, e.g.:   [PrincipalPermission(SecurityAction.Demand, Name = “YourDomain\\User1”, Role = “YourDomain\\Role1”)] public void MethodX(…) {     . . . }   In my opinion, there are two problems with this approach:   1.    At development time you need to make a decision on which…

1

SYSK 373: How to Impersonate the Original Caller When Calling the WCF Service in ASP.NET by Configuration Only

If your WCF services use role based authorization, and you need to pass the identity of the end user (original caller), you have a few options:   1.    Use <identity impersonate=”true” /> in web.config   This is not my preference since there is quite a bit of overhead with doing security context switching for every…

0

SYSK 372: TFS – Enforcing Comments on Check-In & Violations Query

As many web sites point out, TFS uses policies to implement a requirement that developers provide comments when checking in code. The policy must be deployed to each developer (client machines).  The Team Foundation Server Power Tools include the Changeset Comments Policy, which allows you to verify that the Comments text box in the Check…

0

SQL Server Connection Leak Simulation Tool

Sometimes it’s necessary to test application performance in low available resource situations…  I’ve seen tools that simulate low available memory, do network throttling, etc., but I have not come across one that simulates a lot of SQL Server connections being in use…   Attached is such a tool.  I’m providing both, source code and the…

0

SYSK 370: The Performance Cost of Extension Methods

First, for those who may not be familiar with this feature, .NET 3.5 allows developers to add methods to existing types without using inheritance or partial classes by creating static methods that can be invoked by using instance method syntax.   When I first heard about this feature, it reminded me of the decorator pattern…

1

SYSK 369: What’s Taking So Much Hard Drive Space? … or Getting ‘True’ Folder Size

If, from time to time, you delete some files & folders from your hard disk, either because it’s no longer needed or just takes too much space and needs to be moved elsewhere, you may find the following utility useful…   Basically, the tool below goes through all subfolders (starting with the specified location), and…

2

SYSK 368: SharePoint – Custom List Item Action that Starts a Workflow

  First, I must start with the following disclaimer – this was my first SharePoint 2007 project, so, I do not claim any expertise in the subject matter…  However, I believe, this post may be of value to some readers…   Let’s say, you want to add a custom action to the context menu in…

1