Mario Mucalo


Ramblings about software development. And more.

Configure Serilog in ASP.NET Core – few practical tips

In one of the recent projects I worked we were using Serilog as the logging solution. The default configuration was not what worked for us, so we needed to tweak it a bit to get the configuration we need. We needed a quick and clean way to log requests to the API and the responses from the API. Make Serilog … Read More


Turn a WordPress website into a PWA

I needed to investigate how difficult it was to make a PWA from an existing WordPress website. What better way of doing that than turning my own WP blog into a PWA?


Blazor at the tershouse meetup

I gave a talk on Blazor at the tershouse meetup on April 14th 2020. These meetups are normally held in Sarajevo (Bosnia and Herzegovina) at the tershouse coworking space. However, due to the Covid 19 situation, the talk was held online this time. Regardless, I hope to come to Sarajevo soon to meet Nermin and Amar live and have some … Read More


Organizing and Naming Components in Blazor

When we are taught programming, we are always told to keep the code structured and organized and to make sure to name things properly so it makes sense. As Blazor introduced quite a few changes into how things are done (as opposed to how they used to be done), I’ll share some practices I used in my two Blazor projects … Read More


Load Javascript file on user consent only

In order to load a Javascript file when a user requests or allows it you just need to append a new script element to the head element and add a callback function as needed.


Quick Web Servers

In a recent project I needed to do some coding in basic HTML and Javascript. The Javascript did include writing and reading cookies. This means I could not serve the HTML files directly from the file system, because some browsers (like Chrome) do not allow storing cookies for file:// locations. This is why I needed to start a web server … Read More


Entity Framework Core and MySQL

How to connect to a MySQL database using Entity Framework Core – is it the same as using Entity Framework Core for MSSQL Server?


Deploying an Ionic 4 app to Play Store

How to publish an Ionic 4 application to Google Play Store. This is a tutorial following the official Ionic documentation providing some additional information and addressing common bugs that happen along the way.


xUnit for unit testing controllers with AutoMapper returns “Mapper already initialized” error

Mapper already initialized is an error that I was getting when I ran all my tests. When I ran them individually, they all passed. What was going on?


Let’s Encrypt on Windows Server 2012 R2 and IIS 8.5

Using the Let’s Encrypt free, automated and open certificate authority (CA) to generate SSL certificates and set up HTTPS protocol on Windows Server 2012 R2 and IIS 8.5


You are currently offline