C# Detect HTTPS in a load balanced environment

Detecting HTTPS in your asp.net c# web app is fairly straight forward in a normal environment with a single server solution, as you can see from the below example: if (HttpContext.Current.Request.IsSecureConnection) { Response.Write("Using HTTPS"); } else { Response.Write("Using HTTP"); } The problem comes when your web application is on multiple servers and behind a load

Read More

Firefox sync not working

If you’ve installed Firefox, logged into your account and the sync isn’t working. There appears to be a bug that stops this from working, but luckily there is any easy fix, just follow the below: Fix Firefox sync issue Open ‘Firefox’. Open the menu by pressing the 3-bar menu. Select privacy from the left menu.

Read More

How to delete files by age with PowerShell

You can easily use PowerShell to delete files that are older than x minutes/hours/days. This is useful if you have a temporary folder which you would like to regularly clear down. Please see the below examples: Delete files older than x minutes Get-ChildItem -path C:\temp | where {$_.Lastwritetime -lt (date).addminutes(-5)} | remove-item Delete files older

Read More

Skype 5.3 has stopped working

If you have upgraded to Skype version 5.3 and you are getting the ‘Skype has stopped working’ error message (shown below) it could be easily solved. In previous version of Skype when running on a Windows 7 x64 machine the program didn’t minimise to the sys tray icon, but the way around this was to

Read More

Windows Media Services 2008 and IIS 7 both using the HTTP protocol on the same server

To enable both Windows Media Services 2008 to stream content over HTTP and still allowing IIS 7 to operate on the same server, follow the below instructions: 1) Ensure both IIS and Windows Media Services 2008 (WMS) are installed 2) Ensure you have more than one IP address on your server. 3) Decide which IP addresses will be used for IIS

Read More