Viewing posts by sjdines

SyDjango November 2015 - Intro to Testing

Below is a filming of the talk I did at SyDjango.

SyDjango September 2015 - ElasticSearch on Django with Haystack

Below is a filming of the talk I did at SyDjango.

Closing a frozen SSH session

I always forget this so I am putting it here to remember it for the future!

Rebuilding `Pillow` with PIP once new image support libraries are installed.

One `gotcha` when adding new image support libraries and using `Pillow` is that they don't automatically become available for use, you will need to reinstall `Pillow`. But if you have caching enabled it will install the prebuilt version from last time and not search for the system image libraries.

SyDjango - An introduction in setting up and using elastic

Installing Elastic Search

Ubuntu

Dependencies

The easiest option is to install OpenJDK as follows:
sudo apt-get install openjdk-6-jre
Elastic search actually recommends using Oracle Java which can be installed as follows
sudo add-apt-repository -y ppa:webupd8team/java 
sudo apt-get update
sudo apt-get -y install oracle-java8-installer

Installation

  1. Obtain the GPG key for the source
    wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
  2. Add the source to ubuntu's sources list
    echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list
  3. Update the package list from the sources list
    sudo apt-get update
  4. Install the Elastic Search package
    sudo apt-get -y install elasticsearch=1.4.4

Configuration

Configuration can go on extensively depending upon what you require. Out of the box is good enough to get you stared with the following change.