Software Engineer. Stuff and nonsense. The usually short ramblings of Chris McKee.

Creating & Mounting new drives in Ubuntu / Azure

Leading note: The drive creation is based on using Azure with an Ubuntu 14.04 LTS release. This stuff doesn't change very often but sometimes ubuntu changes the advice and occasionally includes features or options that might not exist in other releases. Create a Site & A disk (or more) Ok, this bits all azure based, so hang fire or skip to the next bit if you've done this, or are in some other VM/cloud…

What the fuck woke my PC up

My PC hates hibernating, in fact, it hibernates for a whopping minute then wakes up due to the genius default driver power management settings. A quick way to find the culprit. Open command prompt and ask... C:\Users\Chris>powercfg -lastwake Wake History Count - 1 Wake History [0] Wake Source Count - 0 Of course, if it had woke up it would tell you what caused it. My network card had reset its settings…

Updating / Restoring Nuget Packages FAST

The VS NuGet client is great for browsing for new packages; in fact it works pretty well for upgrading when your on a small project. But it locks the UI, lags out, if it errors it does so in a useless fashion, the moment you get past a few projects it becomes unbarably slow (especially updating cross solution) and half of the time you just want to stamp on it. Restoring Nuget Packages Create a file,…

NuGet from command line error - Microsoft.Build.Exceptions.InvalidProjectFileException

Microsoft.Build.Exceptions.InvalidProjectFileException: The imported project "E:\_PROJECTS\x\c\src\Services\Azure\.nuget\nuget.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. E:\_PROJECTS\x\c\src\Services\Azure\x\x.csproj at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args) at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(IElementLocation elementLocation, String resourceName, Object…

Set Up TeamCity on Ubuntu 14 LTS

Prep essentials Change versions to latest as required... JetBrains version is on this page: https://www.jetbrains.com/teamcity/download/ Postgres Driver version is on this page: http://jdbc.postgresql.org/_ SSH into your server and let's begin. Go root, type sudo su. Cheat mode (skip to : Create a Database Config file for PostGres) wget https://gist.githubusercontent.com/ChrisMcKee/a45e5cd5d7d9b8f9fa00/raw/2b4a8fea3fcff9e6675e560e908fa785d6ac2697/teamcitysetup.sh && chmod +x teamcitysetup.sh && ./teamcitysetup.sh apt-get…