<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Blog posts by Johan Boström's Blog</title><link href="http://world.optimizely.com" /><updated>2020-04-17T15:13:19.0000000Z</updated><id>https://world.optimizely.com/blogs/johan-bostroms-blog/</id> <generator uri="http://world.optimizely.com" version="2.0">Optimizely World</generator> <entry><title>How To: Host and Deploy Blazor WebAssembly using Netlify and Azure Pipelines</title><link href="https://johanbostrom.se/blog/how-to-host-and-deploy-blazor-webassembly-using-netlify-and-azure-pipelines/" /><id>With Blazor making an entry on the web application scene with its WebAssembly version. I thought it would be good to make a little how-to regarding hosting and deployment.
Since Blazor comes with two different types of hosting models this makes it possible to host your applications using a static web host. The best part of that is that there are many alternatives for good static web hosting that is free.</id><updated>2020-04-17T15:13:19.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>List of FREE private docker registry and repository 2020</title><link href="https://johanbostrom.se/blog/list-of-free-private-docker-registry-and-repository/" /><id>With docker becoming more and more widely popular, the need for hosted container registries and respositories has grown. These registries can be quite expensive for an infrequent developer. Luckily there are a few places online where you can find free hosting.
TreeScale Url: https://treescale.com/
Private repositories: Unlimted
Public repositories: Unlimted
TreeScale offers both unlimted private and public repositories. The only limits are 500 Pull actions/month and 50 GB Registry space.</id><updated>2018-07-10T00:00:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Using IDbContext and Moq4 to ease DI and test your Entity Framework context and code.</title><link href="https://johanbostrom.se/blog/using-idbcontext-and-moq4-to-ease-di-and-test-your-entity-framework-context/" /><id>It&amp;rsquo;s now been a while since Microsoft released entity framework core and with this released I hoped for them to release an interface for DbContext. (Spoiler alert) Unfortunately they didn&amp;rsquo;t.
Not having an interface for DbContext sometimes makes it hard to do some testing when working with a pure interface based architecture especially when combining this with dependency injections.
When I&amp;rsquo;m creating projects and use entity framework, I normally create some sort of interface for my context i.</id><updated>2018-07-06T02:00:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Adding Basic Auth to your MVC application in .NET Core</title><link href="https://johanbostrom.se/blog/adding-basic-auth-to-your-mvc-application-in-dotnet-core/" /><id>Pros and cons? So you want to secure your api or you mvc application? And you want to keep it really simple! Well then Basic Auth might be just right for you!
Before you get started with applying basic auth it&amp;rsquo;s good to keep in mind that Basic Auth it comes with some disadvantages that could be considered deal-breaker, but knowing your weakness allows you to take actions and handle them.</id><updated>2018-03-20T16:39:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>How to create a url- and seo-friendly string in C# (text to slug generator)</title><link href="https://johanbostrom.se/blog/how-to-create-a-url-and-seo-friendly-string-in-csharp-text-to-slug-generator/" /><id>So, the other day I stumbled upon a discussion on StackOverflow about generating a url friendly slug. I found the problem quite interesting and decided to give it a go on solving this in .NET Core.
The problem When creating pages we want the url to be readable for humans and SEO bots. And the problem was basically that you often have a text, title or string that is not url friendly.</id><updated>2017-11-29T08:02:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>20+ of the best image placeholder services on the web 2020</title><link href="https://johanbostrom.se/blog/the-best-image-placeholder-services-on-the-web/" /><id>So you&amp;rsquo;re creating a new site, but you haven&amp;rsquo;t gotten all those great images yet from your designer. To be able to continue working you might need some images that can give the look and feel of a more finished site. Here are some sites that can help you with just that, some professional and some lets say more creative alternatives.
Professional alternatives Lorem Picsum Features: Specify width and height Grayscale images Random images Get specific image Images as JSON Sample Sample usage https://picsum.</id><updated>2017-10-24T15:00:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Request throttling in .NET Core MVC</title><link href="https://johanbostrom.se/blog/request-throttling-in-net-core-mvc-and-api/" /><id>Why do I need to throttle usage? Security in apis are important and we might not want the apis we build to be overly used. This could be to prevent DDoS attacks or to make sure no one tries to brute-force-use your api. To solve this problem I built a small attribute function that allows for throttling of a specific endpoint.
When I started writing this i got alot of inspiration from this post on stack overflow.</id><updated>2017-10-02T17:44:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>IdentityServer 3 Starter kit: Installing IdentityServer 3, ASP.NET Identity and Entity Framework</title><link href="https://johanbostrom.se/blog/identityserver-3-starter-kit-part-1-installing-identityserver-3-aspnet-identity-and-entity-framework/" /><id>When setting up a new instance of IdentityServer3 some things that you do, you do for every project.
This will be a small tutorial / series following my steps when setting up a simple start kit for IdentityServer3 that also contains IdentityManager for users and admin for clients.
This is to have as a starting point to quickly get started with IdentityServer when setting up a new projects. This can also be used as a guide for getting started and setting up IdentityServer 3 from scratch and as a guide to understanding all the lose parts.</id><updated>2017-03-12T13:13:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Disabling built-in Chrome in Visual Studio 2017 / 2019 from starting when debugging</title><link href="https://johanbostrom.se/blog/how-to-disable-the-built-in-chrome-from-starting-when-debugging-in-visual-studio-2017/" /><id>With the release of Visual Studio there is a new feature for debugging in JavaScript, which is great, but unfortunately this has a side effect. When you start your debugging, Visual Studio launches a new instance of chrome that is unrelated to your normal chrome instance. For me this is quite annoying, especially since I don&amp;rsquo;t need to debug any JavaScript applications. Luckily this can be turned of easily by just changing one simple setting.</id><updated>2017-03-09T21:34:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>EPiServer authentication done with OpenID Connect and IdentityServer</title><link href="https://johanbostrom.se/blog/setting-up-episerver-to-use-openid-connect-with-identityserver/" /><id>This post is made to be a simple guide for setting up the basics for working with EPiServer and OpenID Connect, it&amp;rsquo;s based of this guide over at EPiServer World. There will be a few steps about IdentityServer3 as well but not a full setup guide, for that I recommend checking out the documentation.
When I made this post I used EPiServer 10 and started out with an Alloy site.</id><updated>2017-02-09T23:17:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Moving all Azure resources from one resource group to another, across subscriptions</title><link href="https://johanbostrom.se/blog/moving-all-azure-resources-from-one-resource-group-to-another-across-subscriptions/" /><id>So I had to move a lot of resources from one of my subscriptions to another and thought, how hard can it be. Well I started to look around in the Azure portal and realized I couldn&amp;rsquo;t move between subscriptions at all. So I did some googling and found this article from Microsoft on how to move resources. I can recommend reading it to find the limitations of which resources can and can&amp;rsquo;t be moved.</id><updated>2017-01-19T21:57:00.0000000Z</updated><summary type="html">Blog post</summary></entry> <entry><title>Logging from Umbraco to Logentries with log4net, LeAppender</title><link href="https://johanbostrom.se/blog/logging-from-umbraco-to-logentries-with-log4net-leappender/" /><id>So while building this Umbraco site I wanted to use a custom log4net appender, in this case I wanted to connect log4net to logentries to be able to track my logs online. Normally when wanting to use log4net and send to logentries u just install a Nuget package and setup the appender in the log4net.config. But since log4net comes bundled in Umbraco in a none nuget-package kind of way, when installing the appender package my site crashed.</id><updated>2016-11-08T07:02:00.0000000Z</updated><summary type="html">Blog post</summary></entry></feed>