Use Contentful's image processing to give every user the best image for their screen size

by Bjarte Aune Olsen

With responsive websites, the same image can be displayed on screens ranging from several thousand pixels wide down to a few hundred. It is a lot of wasted bandwidth if the user on a tiny mobile screen has to download an image 2000 pixels wide, only to display it as…

Contentful migrations: Copy content from one entry to another

by Bjarte Aune Olsen

In Contentful, the easiest way to change your content model is through the web app on app.contentful.com [https://app.contentful.com]. This is pretty straightforward if you are doing basic changes like adding a new text field. However, if you are planning more complex changes, migration scripts are…

Optimizely can now generate certificates for root domains in DXP

by Bjarte Aune Olsen

In Optimizely's cloud hosting service DXP, Optimizely has for a long time offered to generate certificates for the sites it hosts, giving us the secure https URLs with a reassuring padlock next to it. Until today that service has come with the limitation that they could not generate…

Contentful: How to avoid messing up your production content using environments

by Bjarte Aune Olsen

I have a web application with a separate test and production environment. I'm changing the content model, and I want to try out this new feature in my test environment without messing up the content in production.…

Deploy Sanity Studio with Azure DevOps

by Bjarte Aune Olsen

Sanity.io is a headless CMS, which means the editor interface is very loosely coupled with the website or interface that is displaying the content to the end user. The editor interface for Sanity.io is called Sanity Studio and in most scenarios you will want to deploy this as…

Advanced setup for Windows Terminal

by Bjarte Aune Olsen

I have become fond of Windows Terminal, but it lacks a few key features: * Syncing of settings across different Windows user accounts * Saved tabs and split panes * Git integration I have a setup for Windows Terminal that looks like the image below, with multiple tabs and panes with predefined startup…

Increase Docker speed on Windows by setting up Windows Subsystem for Linux 2

by Bjarte Aune Olsen

Tl;dr Increase Docker speed when developing on Linux containers in Windows by installing a preview version of Windows, installing WSL 2 and by using the Edge version of Docker. Running Ubuntu on Windows using Windows Subsystem for Linux (WSL)When working with Docker, even in a Windows development environment,…

Create and deploy different configurations for different environments in .NET Core

by Bjarte Aune Olsen

I recently had an issue when I tried to deploy the correct configuration for a .NET Core application. I managed to mix up the environment names used in the application itself, in IIS and in Octopus Deploy. The result was that none of my configuration files worked as expected, with…

Build, test and deploy a dotnet core website using Cake, TeamCity and Octopus Deploy

by Bjarte Aune Olsen

I have just completed setting up a simple deploy pipeline for a dotnet core project where I use TeamCity to build the project and run xUnit tests and then Octopus Deploy to deploy…