This week at work I was able to get our Varnish caching working while still being able to bucket users into AB tests and set cookies on the server. Normally Varnish won’t cache the page if a cookie is set server-side but with the use of esi:include tags it’s possible to get cookies and cache. This was very little code but took a lot of brain power to wrap my head around how it works.

The gist of it is that when Varnish forwards a request to the server, the server can hand back a simple esi:include tag with a src attribute pointing to a resource. And if Varnish already has that resource cached it will use it instead of requesting it from the server. So on every request, we can bucket a user into a test and set a cookie, and Varnish retains the ability to cache the actual content of the page.

We launch the test of this next week, so we’ll see how it goes. But we have many use cases for this, so it was fun to finally figure it out.

And now I am jamming on a little programming puzzle for a “code kata” meetup at work. We are working on this anagrams code kata. I wrote a quick sketch in JavaScript then chose to write a solution in Racket. I think I have a good solution and I really enjoyed Racket! I’m getting more comfortable with Lisp and I think my brain works well with it. Small functions, small abstractions building into a bigger program.

Fun times learning new things, solving problems.

Posted June 24, 2017 | | File under: ,

This morning at the gym we went for a 1 rep max on the clean and jerk. I PR’d with 165. I cleaned 175 (close to a PR for a front squat) but then hit my chin when attempting the jerk. Didn’t hurt but definitely startling and scary when you’re lifting at max effort. Oops.

Posted June 22, 2017 | | File under: , ,

Earn it every day.

I just listened to a couple inspiring podcasts.

Sarah Blakely is one of the most inspiring people I’ve ever heard interviewed. I knew nothing about her and now she’s my hero. Ha!

How I Built This: Spanx: Sara Blakely

How I Built This: Instagram: Kevin Systrom & Mike Krieger

Posted October 11, 2016 | | File under: ,

A few interesting tech conferences happened recently and tons of videos went online. Will take a while to make my way through a lot of these.

Posted September 21, 2016 | | File under: ,

Let’s read a book on paper. Weird.

20160521-065929.jpg

Posted May 21, 2016 | | File under: ,

Walking in for my first day at Vimeo. Stoked!

Posted May 2, 2016 | |

Yay! My blog is back up after letting it hibernate for a while and after changing hosts. It went much better than when I had to restore things three years ago.

Let’s see if I can make a real go of posting things here more often.

Some updates to get started up again:

Life is good.

Posted April 12, 2016 | | File under: ,

Posted June 2, 2015 | | File under: ,

This morning:
3 x 5 press at 75#
Then:
10 wall walks
25 pull-ups
50 box jumps
100 kettle bell swings
200 single unders

Really stoked on my progress with pull-ups. Kipping all of them I broke them up 10-7-5-3 and made it through. Kettle bell swings I did Russian at 16 kg because that’s a lot of reps – and they were hard.

Overall stoked on feeing good after this workout. ;)

Posted May 18, 2015 | | File under: ,

Today at the gym we did a clean complex (3 cleans and a jerk) followed by a metcon of a 2 mile run*. I was a little nervous about running two miles. I haven’t run 2 miles consecutively in I don’t know how long.

Turns out I can run for two miles without walking or dying and finished in 14:56. I compared this to running a mile as fast as I could in November when I was dying for breath at the end. I’ve improved.

* There was some debate about whether the distance was actually 2 miles or close to 1.77

Posted May 15, 2015 | | File under: ,

bionicbrian.com | About

Creative Commons License