| |

Python: Detect text language using Azure AI Language service

The Azure AI Language service provides developers with an API for common text analysis techniques, such as the ability to detect language from text, perform sentiment analysis, key phrase extraction, and named entity recognition and linking. Provisioning The first step in analyzing text with Azure AI Language is provisioning a Language service resource in Azure….

|

How to: Detect text language using Azure AI Language service

The Azure AI Language service provides developers with an API for common text analysis techniques, such as the ability to detect language from text, perform sentiment analysis, key phrase extraction, and named entity recognition and linking. Provisioning The first step in analyzing text with Azure AI Language is provisioning a Language service resource in Azure….

|

How to install .NET Aspire

.NET Aspire is a comprehensive, cloud-oriented framework designed for creating scalable, observable, and production-grade distributed applications. In this article we’ll look at the prerequisites of getting started with .NET Aspire. If you want an overview of .NET Aspire and what it brings to the table, check out our What is .NET Aspire article. There are…

|

What is .NET Aspire?

.NET Aspire is a comprehensive, cloud-oriented framework designed for creating scalable, observable, and production-grade distributed applications. It was introduced in preview part of the .NET 8 release. The framework is provided through a set of NuGet packages, each addressing different aspects of cloud-native application development, which are typically structured as a network of microservices rather…

Converting Megabytes to Kilobytes Made Simple

Unlocking the mystery behind converting megabytes to kilobytes is like discovering the secret to a captivating magic trick. It’s a fundamental concept, yet its application may seem bewildering at first. Fortunately, with the right knowledge, you can unravel this seemingly complex puzzle with ease. In this article, we’ll delve into the seamless process of converting…

|

How to publish container as tar.gz in .NET

Starting with .NET 8, it’s possible to directly generate a tar.gz container archive. This is particularly advantageous for more complex workflows where activities like scanning the images before pushing them are needed. After creating the archive, it can be transferred, scanned, or incorporated into your local Docker setup. For archiving during publication, integrate the ContainerArchiveOutputPath…

| |

MAUI: How to register handlers in a library

Whether you are developing a custom controls library or simply organizing your solution into multiple project, you will most likely end up in the situation where you want to register some view handlers and services from within a MAUI library. To start off, there’s no such thing as zero-configuration registration. MAUI uses a builder pattern…

|

How to fix: ‘Point’ does not have a predefined size, therefore sizeof can only be used in an unsafe context

The error you’re encountering is because in C#, sizeof can only be used with types that have a predefined size known at compile-time, and the Point structure is not one of those types unless you’re in an unsafe context. There are two ways you can resolve this. Use unsafe code This would allow the use…

| |

C# Access private property backing field using Unsafe Accessor

One less-known feature of the UnsafeAccessorAttribute is that it also allows you to access auto-generated backing fields of auto-properties – fields with unspeakable names. The way to access them is very similar to accesing fields, the only difference being the member name pattern, which looks like this: Let’s take the following class as an example:…