By default dotnet core limits the form element count to 1024. To submit forms with more elements, increase the limit in the ConfigureServices() method of the Startup.cs file:
Author Archives: Laszlo Pinter
Set the environment name in Chef Test Kitchen
To specify the environment name in the .kitchen.yml file Create a JSON environment file. Chef Zero used by Test Kitchen does not understand YAML or Ruby, we need to use JSON. In your cookbook’s root directory create a directory for environment files Create the myenv.json environment file in the environments directory. Specify the environment name …
Continue reading “Set the environment name in Chef Test Kitchen”
Using Makefiles
Makefiles are great to self-document frequently executed commands in a repository. They provide easy access to the bash code by easy to remember tags. Formatting Only tabs are allowed to indent lines. The indentation groups the commands under the rules. Set Bash as the shell On some systems Bash is not the default shell when …
DevOps Engineering part 1. (Ubuntu server) – Install the DevOps development tools on Ubuntu server
Ubuntu server does not have a user interface, we will use the terminal to install the DevOps tools. Terraform On your workstation open a web browser and navigate to https://www.terraform.io/downloads.html to get the version of the latest Terraform release. Substitute the x.x.x with the latest version AWS CLI To install AWS CLI with the package …
Using the Windows Subsystem for Linux (WSL)
Sharing files between Windows Subsystem for Linux and Windows Access the Windows files from Linux Start WSL In the terminal navigate to the /mnt directory The drives are mounted to sub-directories Access the Linux files from Windows Start the WSL application in Windows 10 (in this case with the Ubuntu distro) Open Windows Explorer in …
Continue reading “Using the Windows Subsystem for Linux (WSL)”
Build a Docker container image for your application
Create the image A Docker container image is one of the best formats to distribute your application. The container provides an immutable environment, so the application runs the same way on your workstation and on any server. We will use the simple Go application we have created in the Your first Go application post. In …
Continue reading “Build a Docker container image for your application”
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 ‘Microsoft.AspNetCore.Http.HttpContext’. Model bound complex types must not be abstract or value types and must have a parameterless constructor. Alternatively, set the ‘HttpContext’ property to …
Continue reading “Could not create an instance of type ‘Microsoft.AspNetCore.Http.HttpContext’”
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 Game menu item The files are saved …
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 “aws” to obtain schema: Incompatible API version with plugin. Plugin version: 4, Client versions: [5] To update …