ryanbrooks.co.uk
Kitematic for boot2docker users
http://ryanbrooks.co.uk/posts/2015-08-28-kitematic-for-boot2docker-users
Kitematic for boot2docker users. A while ago I switched from using boot2docker directly to the Kitematic Mac app. Although Kitematic generally makes life a bit easier when managing Docker containers, it was a bit of a pain to get it running. After the Kitematic installation, the VM started but Kitematic had trouble connecting to it. The error messages showed. The other error I was hitting was a bit more vague, but still points to a certificate issue. Bash export DOCKER TLS VERIFY=1 export DOCKER HOST=tcp...
ryanbrooks.co.uk
A simple HTTPS proxy with Nginx on Docker
http://ryanbrooks.co.uk/posts/2016-05-19-nginx-docker-proxy
A simple HTTPS proxy with Nginx on Docker. There are many reasons why you might need to develop behind an HTTPS proxy, for example when testing integrations which behave differently based on the security of your site. This post describes how to add an nginx proxy to your docker setup. I know, you probably don’t care about the back-story, you just want the code. If that’s you, this is all you need:. This isn’t production-quality. Mirror your production environment if you can. Are in this gist. You may alr...
ryanbrooks.co.uk
Migrating user avatars to circular crops, with ImageMagick
http://ryanbrooks.co.uk/posts/2015-09-05-imagemagick-circular-avatars
Migrating user avatars to circular crops, with ImageMagick. Picture the scene: you have a few thousand users with avatars on your site. You want to change from a boring 4x3 photo to a cool and hip circular crop. You know it’ll look great for new users, but we don’t want to leave the existing ones behind. We just need create square versions of the images, and we have a few options:. Stretch the image to fit a square. This is obviously a bad idea. Fit the entire image within the square, and pad the excess.
ryanbrooks.co.uk
Faster dependencies with Docker
http://ryanbrooks.co.uk/posts/2016-04-28-docker-speedy-dependencies
Faster dependencies with Docker. Docker is great for building portable applications, modelling complex environments locally, and helping us bridge the gap between development and production, but installing your Bundler, Bower, NPM, Maven (and so on) dependencies can make builds slow. This post explains how to speed up your builds by seeding the image with most of your dependencies, so subsequent builds aren’t hampered by the ‘all-or-nothing’ approach to updating dependencies. A quick note on terms. Chang...
ryanbrooks.co.uk
Constraining width for LabKey WebParts and Views
http://ryanbrooks.co.uk/posts/2015-06-16-labkey-full-width-apps
Constraining width for LabKey WebParts and Views. Building custom web views within LabKey is pretty straightforward, but if you find yourself needing to constrain the contents of your module horizontally you’ll quickly find that the surrounding tables will gladly stretch to any width. Fortunately restricting the width of hte container is pretty straightforward. Wrap your contents in a table with. Table-layout: fixed; width: 100%. Irksome as our content could grow horizontally. Myapp { table-layout: fixed...
jsoxford.com
JSOxford
http://jsoxford.com/2015/Practical-Open-Linked-Data-Mega-Meetup
Read our Code of Conduct. Want to talk at JSOxford? Practical Open Linked Data Mega Meetup. This month we're having a super-mega-meetup with OxRUG. And the Oxford Python Meetup Group. To look at open data and how we can leverage and contribute to global datasets. Open data is great in theory, but how can we go about actually. Using it, and what are the practical implications? Hopefully we'll find out! Practical Open and Linked Data - Leigh Dodds. Header image by Olly Boyo.