Teemablogi sissekanded


Identifying people on photos using Azure Cognitive Services

My previous post about Azure Cognitive Services described how to detect faces on photos. In this post I will focus on identifying people on photos. This post is based on my Azure Cognitive Services sample application that has most of Face API support implemented and the goal is to describe identifying process in brief and also show some code I have written. 08:00 08.08.2017 kanalilt DT blogi 2


Converting C# enums to JavaScript

In one of my project I need some enums defined in C# to able also for JavaScript code. After some quick research in internet I came out with simple and easy extension method to convert C# enums to JavaScript. Here it is. Let’s get started with example enum and suppose we want to be able to use it also in JavaScript. public enum AssetStatusEnum{ Free, Reserved, Inactive, UnderMaintenance} To make enum available in JavaScript we have to convert it to JSON. 08:17 07.08.2017 kanalilt DT blogi 2


Running PHP applications on .NET Core

Ever wondered about mixing up simplicity and flexibility of PHP with power and performance of . NET Core? The solution is coming and it is called Peachpie, the successor of Phalanger. This blog posts introduces Peachpie – the tool to compile PHP code to . NET Core – and helps to get started with it. Why Peachpie? For years there was thing called Phalanger that lived a silent life somewhere in internet. 08:00 01.08.2017 kanalilt DT blogi 2


Wikis are coming to Visual Studio Team Services

Finally wikis are coming to Visual Studio Team Services. It was announced by Microsoft DevOps Blog earlier this month. Currently wikis are in preview status. This blog post is short overview of what is there and what is coming next. In my practice wikis are one of the best option to share loosely structured information between team members. It’s easy to document system features and also write notes about the specifics of system. 10:49 21.07.2017 kanalilt DT blogi 2


Faking Azure ID identity in ASP. NET Core unit tests.

When testing ASP. NET Core controllers in application that uses Azure AD we need usually current user at least for some tests. As there is no authenticated user when unit testing, we need to create one by our own. This blog post shows how to create claims identity for ASP. NET Core unit tests. To have Azure AD user available we have to create fake claims identity and fill it with claims that test expects. 09:16 20.07.2017 kanalilt DT blogi 2


Getting started with SharePoint Framework

I started learning SharePoint Framefork (SPFx) to get better on client-side development for Office 365. I decided to go with SharePoint Framework as it has simple lightweight tooling available and also because it is well documented. This blog post is short and practical introduction to SPFx and it brielfy summarizes everything important you need to know to get your first client-side web part up and running. 10:57 19.07.2017 kanalilt DT blogi 2


Progress indicator with Xamarin Forms

Progress indicator is available in Xamarin Forms and here it is called as “activity indicator”. It renders different on different devices as progress indicator is not general UI feature everywhere. This blog post shows how to use progress indicator with Xamarin Forms. 08:37 18.07.2017 kanalilt DT blogi 2


Visual Studio Tools for Tizen

Tizen is Linux-based open-source platform for mobile phones and TV-s. Earlier this year Samsung announced Tizen development tools for Visual Studio and now it is time to try out how things work. Although the tooling is still in preview and there is no stable version, it still possible to start playing with Tizen development. This blog post gives overview of my first experiences with Xamarin Forms and Tizen development. 07:56 17.07.2017 kanalilt DT blogi 2


ASP. NET Core 2: New single page application templates.

With ASP. NET Core 2. 0 Preview 2 there are new web application templates available for Single Page Applications (SPA). Currently Angular, React. js and React. js + Redux are supported. This blog post gives short overview of new templates and related sample application. New SPA templates When creating new ASP. 08:14 10.07.2017 kanalilt DT blogi 2


Local functions in C# 7.0

One of new features of C# 7. 0 is support for local functions. Local functions are methods that are defined inside other methods to simplify more complex code and by example to support local recursion. This blog post shows how to use local functions in C# 7. 0 and gives some advice in context of technical design of code. To illustrate local function I will use finding of factorial as an example. 07:19 06.07.2017 kanalilt DT blogi 2


Simple solution for metrics targets on MSSQL

I needed flexible solution to keep measurements with target values in SQL Server database. After some playing with tables and functions I came out with simple, clean and flexible solution that fits also well for many other scenarios besides the one I had to support. This blog post summarizes my work and provides all SQL stuff needed to reproduce it. 08:25 26.06.2017 kanalilt DT blogi 2


Building web API apps on ASP.NET Core 2 and VB.NET

ASP. NET Core 2 will come with full support for VB. NET. In current preview we can use VB. NET to build . NET Core applications. I was still successful on mixing up C# and VB. NET project files and port C# code over to VB. NET and build proof-of-concept level web API applicaton that returns fake data about current weather in different cities. NB! VB. NET support in ASP. 08:43 05.06.2017 kanalilt DT blogi 2


Simple .NET Core application using VB.NET

NET Core 2 Preview 1 bits bring us support for VB. NET on . NET Core. Although tooling for web applications is not ready yet we can start with console applications and also some web applications like I will show in some of my later posts. Visual Studio 2017 Preview 2 is needed to try VB. NET out on . NET Core. This blog post is short demo about how to build simple utility application on . NET Core 2 Preview 1 using VB. NET. 07:21 01.06.2017 kanalilt DT blogi 2


MSSQL: Finding weekend days in month

One of my applications displays tables with some calculations about users working time. This is for corporate reporting. For this table I needed a way to find how many weekends days are in given month. As most of calculation work is done in SQL Server stored procedure I decided to keep stuff there and found a way how to get weekend days with common table expression. 08:02 30.05.2017 kanalilt DT blogi 2


Creating simple shoutbox using ASP. NET Core Razor Pages.

ASP. NET Core 2 comes with Razor Pages that allow developers to build simple web applications with less overhead compared to MVC. The emphazise is on the word “simple” as Razor Pages doesn’t come with patterns suitable for bigger and more complex applications. For this we have MVC that is flexible enough to build applications that will grow over years. 09:55 24.05.2017 kanalilt DT blogi 2


Razor Pages with ASP.NET Core 2

With ASP. NET Core 2 we get another way of building web applications. It’s one of those new things that is actually forgotten old thing and it is called Razor Pages. Are we going back to WebMatrix days? This blog post is short introduction to Razor Pages in ASP. NET Core 2. One of new features of ASP. NET Core 2. 0 is support for Razor Pages. Yes, those same pages that came times ago with WebMatrix. 08:15 19.05.2017 kanalilt DT blogi 2


What is Micro ORM?

Micro ORM-s are useful small ORM-s that are lightweight and map between objects and database queries. This blog post discusses when to use Micro ORM-s and provides example code where Micro ORM called Dapper is used. ORM and Micro ORM ORM is Object-Relational Mapper and it works as querying and object creation runtime between client code and relational database. 07:20 02.05.2017 kanalilt DT blogi 2


General CSS path transform for ASP.NET bundling

In couple of ASP. NET projects I have had a CSS path transform problems with bundling and minification. CSS-files are coming in from external agencies and from different open-source projects and the number of files is so big that it is problematic to go through all of these after updates. I found solution path transform solution that works for me in most cases and it is described here. 07:20 27.04.2017 kanalilt DT blogi 2


Taking meeting notes with Lumia 950

In the beginning of year I bought Lumia 950 and got Continuum with it for free. Lumia 950 is excellent phone and I started experimenting with it. One of my first experiments was to make it companion device for meetings so I don’t have to drag my work laptop with me. Developers usually work on powerful laptops and often these machines are annoying to carry around. Bluetooth devices can be connected to Lumia 950 without using Continuum. 08:20 25.04.2017 kanalilt DT blogi 2


Detecting faces on photos using Microsoft Cognitive Services

I started playing with Microsoft Cognitive Services and discovered that it makes many otherwise complex tasks very easy. This blog post shows how to build web application that detects faces on uploaded photo. Cognitive services account. You need Microsoft Cognitive Services account before you can use services. Only thing you need is Microsoft Account or Office 365 account. 08:17 24.04.2017 kanalilt DT blogi 2