Currently, the company Microsoft is devoting more and more resources to .NET Core, which is truly cross-platform and universal. Therefore, it would not be superfluous to record the process of setting up access to a site written in .NET Core in Ubuntu Linux using Apache.
To resolve the Not Found Error [IP: 213.180.204.183 80], when installing any application, first run the command: apt-get update or sudo apt-get update It is likely that after running this command, the error will pass on its own...
This publication provides an example of how to perform an asynchronous request to the server without reloading the current page, using JQuery on .NET Core. So let's get started. First, we need to create a Web site project on .NET Core, for example...
Simple MERGE example for TSQL. The example assumes that we are working with two tables of the same structure (in real life, this condition is not necessary). The TargetTable and SourceTable tables consist of only two fields: Id - some identifier. Name - object name.
This publication was written as a simple instruction for myself, for memory, so as not to forget. The proposed option was used for authorization through a VK token in a server application. First, let's create a method to send an HTTP request and get a response from the server:…
To add support for CorsPolicy in a .NET Core application, open the Startup.cs file and modify the ConfigureServices and Configure methods as follows: ConfigureServices public void ConfigureServices(IServiceCollection services) { // Add...
Example of organizing access to the site with a password through Apache. First, we need to have Apache utilities installed: apache2-utils If not installed, install. For Ubuntu, for example, like this: sudo apt-get install apache2-utils Create a file with user test and password:
To set the quality when saving an image using the SixLabors.ImageSharp library, you can do the following: image.SaveAsJpeg(path_add, new SixLabors.ImageSharp.Formats.Jpeg.JpegEncoder { Quality = 100 });
By default, the length of a string in MSSQL Manager queries is limited, and when the string size is large enough, only its part will be retrieved in the query, but there is a way to bypass this issue. To select a long string, it is enough to simply assign the name to the field with the name [XML_F52E2B61-18A1-11d1-B105-00805F49916B].
To select fields and all parameters by field from a table, you can use the SP_COLUMNS procedure. Example: exec sp_columns [Table Name]