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:


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 -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:// --recv 7F0CEB10
      echo "deb "$(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.