Output Caching With VaryBy Complex Object

OutputCache is great for caching Actions with simple parameters, but when you are passing in a complex object it becomes a bit trickier to deal with.…

Find Largest Tables In A Database

Stumbled on this really useful script recently which finds the largest tables in a database. I used this on a huge application to work out why the database backup was getting bigger and bigger.…

Split Large C# List Into Smaller Lists

I had the need recently to split up a List of objects (2.5 million rows) into smaller lists so I could batch insert into a database. I stumbled on this method, and it's lightning fast for splitting large lists into smaller chunks of whatever size you want.…

Win 10 - No Scanners Were Detected

We have a Canon MG6150 Printer and Scanner which is on our network and I can print to it fine. However, periodically I can this annoying problem where I can't scan to it.…

Win 2008 Task Scheduler With Return Code 1 (0X1)

I recently had the most infuriating issue with a scheduled task on a Win 2008 R2 server. All I wanted it to do was run a .bat file once a day which fired a WGET script. If I logged into the server and clicked the bat file, it fired and triggered the WGET script and everything worked. But whenever I tried to run it from the Task Scheduler (Either manually pressing run or letting it fire off the schedule), it failed and returned the code 0x1…