Could not create an instance of type ‘Microsoft.AspNetCore.Http.HttpContext’
The new version of dotnet core cannot handle the HttpContext in the MVC model. An unhandled exception has occurred while executing the request. System.InvalidOperationException: Could not create an instance of type…
Cities: Skylines configuration
There are some configurations that can make the gameplay easier. In the Options, Gameplay section I have made the following changes: Disabled the Edge Scrolling Enabled autosave every 10 minutes Disabled the day/night cycle Disabled the fire spreading
Cities: Skylines undo
The Cities: Skylines game does not have a usual undo function, but by pressing the F1 key we can save the current state into a “Quick Save” file before a change. To load the state from the Quick Save file, select it in the list of the Load…
Error: Failed to instantiate provider “aws” to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5]
When a provider has been updated outside of Terraform, (for example in Terraformer) Terraform can get out of sync with that provider version. terraform init works, but terraform plan throws the error message: Error: Failed to instantiate provider…
Cities: Skylines game frequently crashes
The Cities: Skylines game keeps objects in memory even if the object is not used. Even a 16GB system can crash frequently if the memory usage is not managed. “Oops! The game crashed The memory usage is high, even when the map is not too complex.…
Get jstack and other Java utilities without installing the Java JDK
Open a Windows command prompt Create a directory for the volume and start the openjdk container In the Java container copy the contents of the Java bin directory to the mapped volume
Docker in Windows 10 via VMware Fusion on a MacBook Pro
To run Windows Docker containers on your Macintosh computer, use the following setup. This will introduce a performance hit, because you run virtualization in virtualization. Besides the usual setup process, you need to enable hypervisor applications to…
Turn off the GDPR cookie notification in a dotnet core MVC web application
The dotnet core MVC web application template adds the GDPR cookie acceptance message to the header of the page template. When the site is hosted with HTTP the accept button does not clear the message resulting an infinite loop, when the user cannot log…
Read the database connection string and other secrets from environment variables
It is not good practice to store secrets in the source code repository. The sample C# dotnet core application code stores the database connection string in the appsettings.json file which eventually will be pushed into GitHub. To follow the Twelve-Factor…
Mount NFS volume from macOS
When we try to mount an NFS with from macOS we get the error message: docker: Error response from daemon: error while mounting volume ‘/var/lib/docker/volumes/…/_data’: failed to mount local volume: mount…