ITHCWY: Robert Ellison's Blog

Train of Lights

Train of Lights

Train of Lights on theĀ Niles Canyon Railway.

Tam Pan

Tam Pan

Time-lapse panning over the San Francisco bay area from the Gardner Lookout at the east peak of Mount Tamalpais.

Book reviews for December 2016

The End is Now by John Joseph Adams

The End is Now by John Joseph Adams

4/5

Review coming with book 3...

 

The End is Nigh by John Joseph Adams

The End is Nigh by John Joseph Adams

4/5

Review coming with book 3...

 

Night School (Jack Reacher, #21) by Lee Child

Night School (Jack Reacher, #21) by Lee Child

4/5

I much prefer flashback Reacher to modern day midwest town trauma Reacher. This is one of the best.

 

Rio Vista Bridge

Rio Vista Bridge

Pitcher Plant

Pitcher Plant

Unidentified Butterfly

Unidentified Butterfly

Could be anything...

ASCII Sunset

ASCII Sunset

A sunset timelapse rendered as ASCII art. Music from JukeDeck.

Expert

Expert

I haven't checked Klout for a long time - while I was away they've decided I'm a expert in Indian politics. Explains a lot...

Enable GZIP compression for Amazon S3 hosted website in CloudFront

Enable GZIP compression for Amazon S3 hosted website in CloudFront

By default compression doesn't work in CloudFront for a website backed by an Amaxon S3 bucket.

The first step is pretty obvious - switch on compression in CloudFront:

Compress Objects Automatically option in Amazon CloudFront

To get to this setting open you distribution, go to the Behaviors tab and edit your behavior(s). Scroll down to the bottom and toggle Compress Objects Automatically to On. Save and drum your fingers while the distribution updates.

The less obvious piece is that CloudFront will only compress files between 1,000 and 10,000,000 bytes (as of writing this post) and it detects the filesize from the Content-Length header. What the documentation doesn't mention is that S3 does not send the Content-Length header by default and so no compression is applied.

Go to S3 and open the properties for your bucket (not for individual files). Expand Permissions and then click Edit CORS Configuration. You need to add Content-Length as an allowed header like this:

Amazon S3 CORS Configuration

Book reviews for November 2016

Revenger by Alastair Reynolds

Revenger by Alastair Reynolds

5/5

Far future space pirates. Awesome.

 

Badass: Making Users Awesome by Kathy Sierra

Badass: Making Users Awesome by Kathy Sierra

3/5

The overall message is good - focus on making your users actually awesome rather than you looking awesome with some concrete strategies to find out what that is and how to get there. A central theme is removing barriers to effective usage. The product here is a book. It was hell to read on my phone. Now if the graphics were large and central to the message and couldn't be done other than in some weird non-standard way I might forgive this. But all I needed to on every page was zoom in to get rid of the needless massive borders. That's all it took. Hundreds of times. So I'd recommend this if you still like paper books or are some sort of tablet toting throwback but on phone? No.