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://keyserver.ubuntu.com:80 --recv EA312927
gpg: requesting key EA312927 from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: 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 – https://pgp.mit.edu/ (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:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.mit.edu

mQINBFYYLZUBEADTvHI/DDlJY4JCLh7chtQiKkj8kFpqOtY4x6luOQWvYNXfvso1yoKqKnU3
3Fh3JY4dWClXzv40PcVH4pIi95enzCLGvU30GNDsfmueV9vkq5HrCMMZrQ1M9/4HgrnbRvLh
vcb4VY+RELEdcHWhUkYTpG00YuEHdgJ3PoPL5pDu1L1z/MwETVwCr63kl2HhgzqtpaXC00hb
LSN/+GD3guCrIJy8Gfz6yfgpmCxr5KyOG2fdRoZLmRKNzMdSua+bLeTM8BXqJpSB8BBsBSbn
NuCLZdZhhSm4P7SUSrPoSRRzEMDwzv6e1JqJqVaiApBoSX+elUzoYrglSkaPqWiT6kzlWw7Z
OTTqKkojQftYGOvDYdvSKq0ze8QzA/22FmDKzurBpv7Tus9VV+yMlxTCVGtb74u8j6pRO2jx
s9w6Ur2CfQJgddtNwbiIKWI1F7//YDSJncJRfW19cnOyrOqiNoPQqsF+YFexEy4wSs94eQ3E
fBzbYjStEtJVSV5HCjJtIZjOxR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KEY BLOCK-----

Setting up PHP and Symfony on OSX using VirtualBox Ubuntu 14.04

  1. Install Virtual Box with Ubuntu 14.04 LTE
  2. Install Guest Additions 
  3. Optional: install ssh so you can use your OSX terminal and remote in
  4. Install symfony – sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
  5. sudo chmod a+x /usr/local/bin/symfony
  6. Set timezone, locale and hostname:
    sudo dpkg-reconfigure tzdata
    sudo locale-gen en_NZ.UTF-8
    sudo vim /etc/hosts
    sudo echo "web.address" > /etc/hostname
  7. Install your dev stack – sudo apt-get install <packages>.
    Mine is as follows:

    1. PHP
      sudo apt-get install mysql-client php5 php5-cli php5-mysql npm nodejs-legacy php5-gmp php5-curl php5-gd php5-mongo php5-fpm php5-dev mcrypt libpcre3-dev php5-mcrypt git openjdk-7-jre-headless curl acl wget ntp ntpdate -y
    2. MySQL server
      sudo apt-get install mysql-server mysql-client mysql-utilities mysqltuner -y
      sudo npm -g install less bower
    3. Mongodb
      sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
      echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
      sudo apt-get update
      sudo apt-get install -y mongodb-org
  8. Install Composer
  9. Clone your repo into /var/www/ then cd to dir
  10. Install symfony dependencies
    # Set SYMFONY_ENV to dev, if not yet done
    export SYMFONY_ENV=dev
    SYMFONY_ENV=dev composer.phar -o install
  11. Setup your parameters.yml file with the correct settings
  12. npm install / bower install if necessary
    NB – dont forget to set your “path to node” in your parameters file. In my case they were:
    path_to_node: /usr/bin/node
    path_to_node_modules: /usr/local/lib/node_modules
  13. Install your symfony project assets. For me:
    php app/console assets:install

    php app/console assetic:dump
    php app/console fos:elastica:populate
  14. Run your web server. For me:
    php app/console server:start

All The Cameos You May Have Missed In “Star Wars: The Force Awakens”

People are finally seeing the new Star Wars film all over the world—but are they really catching everything? Less than a week after its release, fans have revealed a number of Easter eggs online—and with famous secret-keeper J.J. Abrams at the movie’s helm, more are bound to come tumbling out in the coming days and weeks. We here at Fast Company paid careful attention and picked out every cameo we could find. Here’s who we spotted on our first try (though we’ll have to watch the movie 10 more times to catch them all):

China Just Launched the Most Frightening Game Ever — and Soon It Will Be Mandatory


As if further proof were needed Orwell’s dystopia is now upon us, China has now gamified obedience to the State. Though that is every bit as creepily terrifying as it sounds, citizens may still choose whether or not they wish to opt-in — that is, until the program becomes compulsory in 2020.

Dystopian future in the making

Why Product Thinking is the next big thing in UX Design — Medium

The core user experience is not a set of features; in fact, it is the job users hire the product for.

Thinking in products helps building successful features. By defining the problems the product tackles, it answers the question “why do we build this product?”. Defining the target audience “who has these problems?” and defining the solution “how are we doing this?” will give enough guidance to create a new feature. Setting up a goal will help to measure the success of this feature.