<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><language>en</language><title>Blog posts by Johan Boström's Blog</title> <link>https://world.optimizely.com/blogs/johan-bostroms-blog/</link><description></description><ttl>60</ttl><generator>Optimizely World</generator><item> <title>How To: Host and Deploy Blazor WebAssembly using Netlify and Azure Pipelines</title>            <link>https://johanbostrom.se/blog/how-to-host-and-deploy-blazor-webassembly-using-netlify-and-azure-pipelines/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/how-to-host-and-deploy-blazor-webassembly-using-netlify-and-azure-pipelines/</guid>            <pubDate>Fri, 17 Apr 2020 15:13:19 GMT</pubDate>           <category>Blog post</category></item><item> <title>List of FREE private docker registry and repository 2020</title>            <link>https://johanbostrom.se/blog/list-of-free-private-docker-registry-and-repository/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/list-of-free-private-docker-registry-and-repository/</guid>            <pubDate>Tue, 10 Jul 2018 00:00:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Using IDbContext and Moq4 to ease DI and test your Entity Framework context and code.</title>            <link>https://johanbostrom.se/blog/using-idbcontext-and-moq4-to-ease-di-and-test-your-entity-framework-context/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/using-idbcontext-and-moq4-to-ease-di-and-test-your-entity-framework-context/</guid>            <pubDate>Fri, 06 Jul 2018 02:00:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Adding Basic Auth to your MVC application in .NET Core</title>            <link>https://johanbostrom.se/blog/adding-basic-auth-to-your-mvc-application-in-dotnet-core/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/adding-basic-auth-to-your-mvc-application-in-dotnet-core/</guid>            <pubDate>Tue, 20 Mar 2018 16:39:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>How to create a url- and seo-friendly string in C# (text to slug generator)</title>            <link>https://johanbostrom.se/blog/how-to-create-a-url-and-seo-friendly-string-in-csharp-text-to-slug-generator/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/how-to-create-a-url-and-seo-friendly-string-in-csharp-text-to-slug-generator/</guid>            <pubDate>Wed, 29 Nov 2017 08:02:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>20+ of the best image placeholder services on the web 2020</title>            <link>https://johanbostrom.se/blog/the-best-image-placeholder-services-on-the-web/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/the-best-image-placeholder-services-on-the-web/</guid>            <pubDate>Tue, 24 Oct 2017 15:00:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Request throttling in .NET Core MVC</title>            <link>https://johanbostrom.se/blog/request-throttling-in-net-core-mvc-and-api/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/request-throttling-in-net-core-mvc-and-api/</guid>            <pubDate>Mon, 02 Oct 2017 17:44:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>IdentityServer 3 Starter kit: Installing IdentityServer 3, ASP.NET Identity and Entity Framework</title>            <link>https://johanbostrom.se/blog/identityserver-3-starter-kit-part-1-installing-identityserver-3-aspnet-identity-and-entity-framework/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/identityserver-3-starter-kit-part-1-installing-identityserver-3-aspnet-identity-and-entity-framework/</guid>            <pubDate>Sun, 12 Mar 2017 13:13:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Disabling built-in Chrome in Visual Studio 2017 / 2019 from starting when debugging</title>            <link>https://johanbostrom.se/blog/how-to-disable-the-built-in-chrome-from-starting-when-debugging-in-visual-studio-2017/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/how-to-disable-the-built-in-chrome-from-starting-when-debugging-in-visual-studio-2017/</guid>            <pubDate>Thu, 09 Mar 2017 21:34:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>EPiServer authentication done with OpenID Connect and IdentityServer</title>            <link>https://johanbostrom.se/blog/setting-up-episerver-to-use-openid-connect-with-identityserver/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/setting-up-episerver-to-use-openid-connect-with-identityserver/</guid>            <pubDate>Thu, 09 Feb 2017 23:17:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Moving all Azure resources from one resource group to another, across subscriptions</title>            <link>https://johanbostrom.se/blog/moving-all-azure-resources-from-one-resource-group-to-another-across-subscriptions/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/moving-all-azure-resources-from-one-resource-group-to-another-across-subscriptions/</guid>            <pubDate>Thu, 19 Jan 2017 21:57:00 GMT</pubDate>           <category>Blog post</category></item><item> <title>Logging from Umbraco to Logentries with log4net, LeAppender</title>            <link>https://johanbostrom.se/blog/logging-from-umbraco-to-logentries-with-log4net-leappender/</link>            <description>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.</description>            <guid>https://johanbostrom.se/blog/logging-from-umbraco-to-logentries-with-log4net-leappender/</guid>            <pubDate>Tue, 08 Nov 2016 07:02:00 GMT</pubDate>           <category>Blog post</category></item></channel>
</rss>