Scott Davis

The What, Why, and How of HTTPS

In the past, you would probably only really check if a website used https if you are purchasing something, or maybe if you were logging in. In the last few years, there has (rightly) been a large movement to better ensure privacy and security. Why not have every site and every page be encrypted? That’s a good question, and one Google has already answered for itself. Not only will Google start shaming websites that are not https, they will also give an SEO boost to those that are.

Type checking in JS, an experiment

There’s a saying I’ve heard that involves developers and straight jackets. One might wear one and say “it’s so constricting, I can’t breathe or move!”, while another will wear the same one and say “Ohh, feels so warm and cozy!”. That’s static typed languages for you.

Anyone who has ever worked with a statically typed language like Java must feel so out of sorts in Javascript.

What you want to be when you're grown up

Childhood Aspirations

Have you ever wanted to do something other than what you do now, that is, now that you’re grown up? I did, a few times actually. When I was much younger, helping animals sounded like a great and noble cause. I mean, I loved our dog, and I loved animals, so it was a match it seems. I even earned the Veterinary Medicine merit badge, so you knew I meant business. But it was during

Converting My Site to Jekyll

Background (tldr, how I did it next section)

I first built my personal site over 10 years ago. I didn’t know much about web development then (even if I thought I did), so at first I stuck to what I knew most, flash. Those were the days, an entirely animated site. It may have been hell to maintain, and even to use sometimes, but they sure were fun to build.

After flash went out of style, very quickly, I just wanted a simple site but one where I could add content without having to add

Caching model associations in rails

I’ve been working on a project recently called, and I added memcached caching with Dalli. So I’m basically trying to cache anything and everything that can help our performance.

Normally, you will see guides and articles show you caching with an example like this:

def cached_images
  Rails.cache.fetch(['Articles', id, 'images', updated_at.to_i]) do

And while this now works, if I eager load an association, it will not

Upgrading Bootstrap 2.x to 3

When we started building EastMeetEast last August, Bootstrap 3 was still a release candidate. It didn’t seem to make very much sense to implement it on our production site when it may have bugs or be updated and changed frequently.

After just a few weeks of work, the official release of 3.0 came out. At that point, we were more concerned with getting the product up and out than now backtracking to

Uing PG (postgres) on Mavericks

Heroku only uses Postres for databases. That’s fine, so you just need install it locally for developement. Well, you are probably pulling your hair out trying to install the pg gem on Mavericks. That’s because you can’t (as of yet anyway). The good news is there’s a quick and easy way.

Just install the Postgres App, then install the gem in terminal, pointing it to the new config file.

gem install pg -- --with-pg-config=/Applications/

Now, make

Flat File vs Database CMS

What Is A Flat File CMS?

…Says just about everyone… “It is kind of cool sounding.” “Is it related to flat design?” “Everything seems to be going flat these days.”

No, it’s not related at all to any flat design or flat anything else. A flat file CMS means that there is no database. Instead of retrieving content for a single page from a database, an actual html/php/text file is created with that content in


Deploying Your Site

There are several tools to help developers deploy changes to their site…that is if they manage their own server. With Rails, maybe the most popular gem is Capistrano. With it, all you do is type

cap deploy

into the terminal and hit enter. It sends only the files that have been updated since your latest Git commit. It’s fantastic and very easy