Bye WordPress... Hello Umbraco

After many years fighting with Script Kiddies and people trying to break into my blog (not sure why they would) i decided to stop using the inherently unsecure WordPress.

This is down to 1. the above reason with script kiddies and 2. using a piece of software called Umbraco at work.

Umbraco is a DotNet based CMS, i have it running on IIS7 and DotNet 4.7, to find out more info just visit their site here.

It's a neat bit of kit, with a brilliant community behind it!

Everytime i have had a issue while rebuilding this site or building a client site at work has seen someone drop in and lend a hand within 15 - 20mins of my post!
Even at weekends!

It seems to be so much easier to use and work with if your a developer (I wouldn't recommend it to a novice)...

As you can see there are still some bugs with the site... One of the biggest being <code> tags not yet being supported, i am working on this and hopefully will have this working soon.

I have now added the code highlight bits, ill follow up with a post showing how i accomplished this soon.

Visual Studio update to 15.5.3 breaks donet core 2.0 solution

I came across an issue after updating my Visual Studio version to 15.5.3 which would cause my solution to throw an exception whenever it tried to access the database.

System.IO.FileLoadException: 'Could not load file or assembly 'System.Data.SqlClient, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

The fix for this is nice and easy, you just need to install the NuGet (V4.4.2) package System.Data.SqlClient.

Custom WordPress Installer for Virtualmin GPL

This WordPress installer for Virtualmin has been doing the rounds online for years, but it is slowly disappearing, so I figured I would post it here for easy access.

I have made some minimal changes so that is downloads the latest version from WordPress and checks for PHP7 and PHP5

Download here:

Install it here:

Then, login to Virtualmin -> Installer Scripts and there will be "Wordpress" option

The easiest way to move a game in Steam

If you need to move a game from one harddrive to another this is extremely easy to do.

  1. Decide where you want the files to be stored this needs to be done through steam as follows:

    Settings -> Downloads -> Steam Library Folders

  2. click Add Library Folder
  3. Navigate to your new steam folder and create a folder in steamapps called common
  4. Head to your current steam folder and find the game you want to move.
    You will probably find it in:
    Copy the game's folder to the new folder you created in step 3
  5. Open steam, right click on the game your moving and select
    Delete Local Content
  6. When that is done clock the Install button to re-install the game, in the dropdown choose the steam folder you created in step 3
  7. Instead of downloading the game steam will detect the existing files and make any minor changes.
    When this is done you should be able to play the game as normal.

How to disable or enable hiberation in Windows 10

So on my Desktop PC i don't need to hibernate the pc as it's fast enough from a cold boot, and as my SSD was getting a little full i decided to disable Hibernation freeing up nearly 12GB!

Some examples of how much space this can take up:

If you have 8GB of RAM then it would use 6GB of your harddrive.
If you have 16GB of RAM then it would use 12GB of your harddrive.

Windows allocates 75% of your computers installed RAM for hibernation!

It's a bit more of a pain in the ass to do than previous versions of windows to disable but how i did it is below:

  1. Right click on the start button and choose Command Promt (Admin)
  2. In the Command Prompt window type the following:
    powercfg.exe /hibernate off
  3. press the Enter key

If you need to turn it back on then do as follows:

  1. Right click on the start button and choose Command Prompt (Admin)
  2. In the Command Prompt window type the following:
    powercfg.exe /hibernate on
  3. press the Enter key