Can’t install GPG key

So I was trying to install a gpg key on my Ubuntu Trusty server but kept getting the following error:

Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.U83lQ36Gpz --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp:// --recv EA312927
gpg: requesting key EA312927 from hkp server
?: Host not found
gpgkeys: HTTP fetch error 7: couldn't connect: Connection refused
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0

A tonne of posts were talking about proxy settings and other issues. But the easiest fix in the end was to manually add the key. All I did was to search for the key on MIT’s pgp search engine – (click on the key to see the key data)

And then run the following commands to manually add the key:

sudo apt-key add -

Paste the text (middle-click or use copy/paste)

Press ctrl + D

In my case the pasted text was for Mongodb:

Version: SKS 1.1.5
Comment: Hostname:


Angular $http get from the console

Super useful string of code for calling http get requests directly from the console in Chrome:

$http = angular.element(document.body).injector().get('$http');


$http.get(...) // or post or whatever

Then test as many API request as you like.

Implementing Jquery Autocomplete in Zurb Foundation 4

Zurb Foundation 4 (4.1.6 as of this post to be specific) is a fantastic non-opinionated framework that is reasonably vanilla out of the box and contains a tonne of brilliant functionality. If you’ve used it already – you know the awesome.



One of the quirks I came up against when using the framework for prototyping was around the jquery autocomplete functionality so I wanted to get it down for posterity.

(Hit the post title to read on)

Continue reading Implementing Jquery Autocomplete in Zurb Foundation 4