Viimased blogi sissekanded

Kanal : DT blogi

 

02.01.2018

Real-time talk between Windows 10 IoT Core background task and ASP.

My previous blog post introduced how to make ASP. NET Core 2 web application run on Windows 10 IoT Core. It was default web application created on Visual Studio and published as an executable. But this is not enough for IoT scenarios. #07:28 02.01.2018 kanalilt DT blogi

18.12.2017

How to avoid overlapping timer calls?

Timers are useful . NET feature. With timers we can execute code with specified interval. With real scenarios we can easily face situations where timer calls its callback again but previous call is not finished yet. It may end up with loading some external system too much. #07:12 18.12.2017 kanalilt DT blogi

15.12.2017

Are lock and Monitor the same in C#?

Working on some threading stuff I stumbled upon some discussions about lock and Monitor. Some say they are different and some say they are the same. I took few minutes of time to make some simple experiments with both of these. This blog post shows what C# compiler does with lock statement. #07:37 15.12.2017 kanalilt DT blogi

12.12.2017

Who messed up Visual Studio tab indent level?

After one of latest Visual Studio 2017 I noticed that tab length is incorrect in C# editor. I went through options and confirmed that tab size for C# was set to four spaces. But still for some reason editor used two as tab size. #06:07 12.12.2017 kanalilt DT blogi

11.12.2017

Running ASP. NET Core 2 applications on Windows 10 IoT Core.

It has been problematic to run ASP. NET Core applications on Windows 10 IoT Core as it is not officially supported scenario yet and many components we are used with are not built with Windows 10 ARM in mind. Still it easy to run web applications on Windows 10 IoT Core using ASP. NET Core 2. #07:05 11.12.2017 kanalilt DT blogi

08.12.2017

Boosting performance of Asus RT-N66U

Over time my home network has grown and years are changed also the habits of consuming media at home. When I bought Asus RT-N66U some years ago it was well performing home router. Now came the point when continuing the old way was not an option anymore as things were degraded a lot. #02:50 08.12.2017 kanalilt DT blogi

06.12.2017

Deep dive to async Main

C# 7. 1 introduces asynchronous Main method for console applications. It helps us to get rid of some ugly code to await for asynchronous methods. #07:15 06.12.2017 kanalilt DT blogi

08.11.2017

Recognizing printed text on images using Azure Computer Vision API

Microsoft Azure Cognitive Services offer us computer vision services to describe images and to detect printed or handwritten text. Text recognition provides interesting scenarios like cloud based OCR or providing automated translations for texts on images. #09:30 08.11.2017 kanalilt DT blogi

03.11.2017

Running ASP. NET Core applications on Windows Subsystem for Linux.

Windows 10 has something called Windows Subsystem for Linux and this something enables us to run Linux applications on Windows 10 using Linux without need for Hyper-V or other virtual machines. #08:01 03.11.2017 kanalilt DT blogi

25.10.2017

Server-side charts with ASP. NET Core, Node services and D3.

ASP. NET Core introduces Node services that allow applications to run Node scripts on server. We can send data from controller action to Node script and get back some output we can use in view. This blog post shows how to use Node services to render d3. js charts on server-side to PNG files. #06:49 25.10.2017 kanalilt DT blogi

05.10.2017

NotSupportedException: No data is available for encoding 1252

Another day, another surprise on . NET Core. Tried to load a file with Windows-1252 encoding and got the following exception: NotSupportedException: No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding. #05:22 05.10.2017 kanalilt DT blogi

29.09.2017

ASP. NET Core and IIS: 502. 5 Process Failure 0x80004005 : 80008083.

When running ASP. NET Core on IIS one may get weird error Application ‘<IIS PATH>’ with physical root ‘<PATH TO APPLICATION>’ failed to start process with commandline ‘”dotnet” . \MyApp. dll’, ErrorCode = ‘0x80004005 : 80008083. #06:24 29.09.2017 kanalilt DT blogi

04.09.2017

Defensive database context for multi-tenant ASP. NET Core applications.

In multi-tenant applications where tenants share same data store cross-tenant operations must be avoided. There are many ways how bugs like this can happen. #06:40 04.09.2017 kanalilt DT blogi

29.08.2017

Unit testing multi-tenant database provider

My saga on supporting multiple tenants in ASP. NET Core web applications has come to point where tenants can use separate databases. It’s time now to write some tests for data context to make sure it behaves correct in unexpected situations. #07:36 29.08.2017 kanalilt DT blogi

24.08.2017

Handling missing tenants in ASP.NET Core

My last post about multi-tenants applications with ASP. NET Core Implementing database per tenant strategy on ASP. NET Core I proposed some ideas about tenant providers but I didn’t focused on issues related to missing tenants. #06:00 24.08.2017 kanalilt DT blogi

23.08.2017

Implementing database per tenant strategy on ASP.

Let’s continue with multi-tenancy in ASP. NET Core web applications and focus on solutions where every tenant has its own database. It’s not only about database – there can be more services where every tenant has its own instance. #06:22 23.08.2017 kanalilt DT blogi

22.08.2017

Implementing tenant providers on ASP.NET Core

In my previous post about global query filters in Entity Framework 2. 0 I proposed an idea how to automatically apply query filters to all domain entities when model is built so enitites are always coming from the same tenant. #06:29 22.08.2017 kanalilt DT blogi

21.08.2017

Using bearer tokens in ASP.NET Core

There are not much examples available about ASP. NET Core and acquiring access token. I found good and pretty big sample by Microsoft Patterns & Practices called multitenant-saas-guidance, Based on this I wrote my simple “boiler plate” ASP. #06:34 21.08.2017 kanalilt DT blogi

18.08.2017

Hiding search suggestion in Search Results Web Part

I have page in SharePoint where users can search for specific type of items and see different results in Search Results Web Parts. The page I have has eight results web parts and when nothing is found I want to keep results web parts laconic and minimal so they don’t waste space on screen. #05:38 18.08.2017 kanalilt DT blogi

17.08.2017

ASP. NET Core: Building enum provider to convert C# enums to JavaScript.

My previous post about ASP. NET Core and getting C# enums to JavaScript was primitive and used simple attribute on enums to detect ones we need in JavaScript. #05:30 17.08.2017 kanalilt DT blogi

 

Kajastused