Git, Docker and CR/LF world of pain.

Docker

As part of a project myself and a colleague were about to commence work on he’d created a docker image of a lightweight Linux image serving SFTP endpoints to replicate the Dev eco system. It was working like a dream. We were setting up and tearing down the containers happily until we checked out the docker files on my machine and that’s where the fun started…..

read more

Moq – Mocking a cast on an interface

moq logo

Mocking a Cast on a Mocked Interface

The Setup

var mockedInterface = new Mock<IInterface>();
mockedInterface.As().Setup(i => i.MethodOnTheInterface());

Easy as that! read more

British Sea Power – Hebden Bridge Trades Club – 28th July 2017

A wet July day

Off the train at Hebden Bridge at around 7 to be met by a torrent of rain. Dashing down the high street and into the new (?) Vocation pub where we meet up with the usual crew for a rather splendid pre-gig ale.

read more

Angular 2 404 Not Found http.get

404 Not Found on http.get request



I was playing around with Angular and rather than calling a fully blown API endpoint I was using a sample JSON file within an API folder in my solution.

read more

Docker Toolbox – Leveraging localhost support over 192.168.99.100

I’ve recently completed a refresher on Docker. Whilst working through this excellent MEAN stack setup with Angular 2 and Docker compose tutorial I realised that despite the docker compose setup being all present and correct my references to localhost were never gonna work correctly.

read more