RalphLepore.net


Installing Let's Encrypt with Ansible

Let's Encrypt

I started using Let's Encrypt during beta and feel in love with it. It's made installing, setting up and maintaining SSL certificates so easy. It's also extremely affordable (given that it is free) for everyone. I truely believe every website should be running over HTT...

Read More...


Publishing to Elasticsearch using Django and Postgres DictCursor

Postgres

One of the projects I've been working on relies heavily on elasticsearch and the current dataset is a few million records. I'm currently indexing about a million records and expect to index the entire data set in the near future. I originally took a simple approach to in...

Read More...


Term-centric search using Elasticsearch and Django

Search

Recently I've been working on a side project that has a search component at it's core. I'm pulling a set of data from an external source, loading it into my database and pushing the data to Elasticsearch. There are a handful of fields that I need to search over and I wanted to d...

Read More...


Setting Up Basic Authentication with Elasticsearch

Docker

I've been working with elasticsearch a lot lately and have been really enjoying it. It has an awesome api and so many great built in tools. They make building complex search logic really enjoyable and the documentation is amazing. One of the downsides of using elasticsea...

Read More...


Running Elasticsearch in a Docker Container

Docker

The current project I'm working on has a heavy dependency on Elasticsearch and I thought it would be good to walk through my setup using Docker. I wanted to manage Elasticsearch using Docker for a few reasons:

  1. I usually have multip...

    Read More...


Custom Foreign Key Constraints with Django

Postgres Blue Elephant

The current project I'm working on has database tables that are over 2 million records which I'm populating from an external source. The external source provides a postgres dump file to help make data imports easier. My current approach is to restore ...

Read More...


Workout Routine

dumbells

A lot of people have been asking me about my workout routine recently, especially around how I find time for it all. I have a long commute, an hour and fifteen minutes, two young children and I have two active side projects. I thought it would be helpful to talk about my routine ...

Read More...


Django 1.8 Template

This past weekend I decided to build a django template for future projects. I've recently started to work on a new project and realized I'm spending far to much time building out my django project layout. Since Django 1.8 recently came out I felt it would be a good time to buid a resuable project template. This project is a mix of D...

Read More...


Installing Python 2.7.9 on Ubuntu 14.04 LTS

While working on my latest project I ran into a small problem when installing Pillow. I am running the project on Ubuntu 14.04 LTS and the default version of python on the instance is 2.7.6. When I was deploying the project via my deploy script I got a set of security problems coming from urllib3. The below stacktrace is the error Pillow was throwing while installing my requirements file....

Read More...