The following outlines some of the things that I have learned whilst trying to integrate a PayPal payment gateway into the MVC 4.0 website. Installation […]
What is the best unique computer identifier?
I have been trying to find out what is the best way to uniquely identify a computer for licensing purposes. Here are some suggestions. Computer […]
How to read computer SID on 64-bit machine
To get a unique identifier for a computer the recommended key is “ProductId” that is accessible from the following registry key – HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. This […]
Linq for Entity Join Query – Entity Framework
The Problem You have a parent/child table structure in your database that looks like the table structure outlined below. You have used the EntityFramework or […]
PowerShell get “Return Value” from StoredProcedure ExecuteNonQuery
The scenario is that from PowerShell you want to do the following: 1. Execute a stored Procedure 2. Check the Return Code from the stored […]
Set PowerShell ExecutionPolicy
When trying to run a PowerShell script you may get the following error: “scriptname.ps1 cannot be loaded because the execution of scripts is disabled on […]
Enable Windows PowerShell ISE (Integrated Scripting Environment)
On a Windows Server 2008 box you may be wondering where the Windows PowerShell ISE is. To Enable Bring up the Server Manager (Right-Click on […]
Bootstrapper Manifest Generator (2008) – How To Guide v2
I wrote the original Boostrapper Manifest Generator (BMG) blog post a few years ago. It is one of the most heavily visited pages on my […]
List<object> Find with delegate
Thought this was really cool. I have a generic List of objects, for example: [csharp]List<User> users = GetAllUsers();[/csharp] I want to find a user by […]
Dynamically creating user controls in code behind
If you have a user control that you wish to dynamically add to your page the following will not work; [csharp] UserControl control = new […]