Teemablogi sissekanded

16.08.2016

ASP.NET MVC: Precompiling views

This blog post is about how to really precompile ASP. NET MVC views. It destroys the myth about MvcBuildViews as precompilation tool and shows you how to configure precompiling. It also stops on some internals of precompiling and explains what are the options and limitations with it. There is also real-life example for Azure where precompiling of views may avoid some serious headaches that one may face otherwise. 10:00 16.08.2016 kanalilt DT blogi 2

01.08.2016

Taaskasutus on popp!

Filed under: Isiklikud 19:06 01.08.2016 kanalilt ...meie igapäevast IT'd anna meile igapäev... 3

27.07.2016

Synchronizing big OneNote notebooks on Windows Phone

I have one big OneNote notebook that I need also on my Windows Phone. While this notebook was not very big synchronization worked well on both WP8 and WP10. But after growing over 120MB both phones had suddenly synchronization issues. Notebook was usually synchronized partially with many pages missing from WP and some changes to existing pages were never synchronized to phone. 09:26 27.07.2016 kanalilt DT blogi 2

25.07.2016

Speaking at TechDays 2016 NL!

This year again I have honour to speak at TechDays 2016 Netherlands. It is well organized event with very good and interesting content. I was speaking there year ago and I had only good experiences with this event. This year it is held in RAI Center at Amsterdam in the beginning of October – 04-05. 10. 2016. This blog post tells why it is important to visit this event and why it is important to come to my Azure deep-dive session. 19:06 25.07.2016 kanalilt DT blogi 2

20.07.2016

Using dependency injection with view components

On ASP. NET Core view components support dependency injection. We can use some DI/IoC container but we can also go with framework level dependency injection. This blog post explains how dependency injection works with view components and as an example I show you some code I’m using for top menu of my demo site. Dependency injection in ASP. 10:00 20.07.2016 kanalilt DT blogi 2

19.07.2016

Building Pager view component

Whenever we deal with data we need some mechanism for paging it. It makes it easier for users to navigate through data and same time we don’t put too much load to our systems. This blog post shows you how to build pager for your MVC site using ViewComponent and PagedResult class. 08:40 19.07.2016 kanalilt DT blogi 2

17.07.2016

Azure Search Suggesters: Helping users to find search keywords

Search is important feature of many apps and web sites because it is the main way for users to find quickly the information they are looking for. Typing search keywords to search box is not the end point of search we can provide to users. Sites that have huge amount of data can also help users to find out what keywords to use. In this post I will show how to use Azure Search suggesters to help users to find out these keywords. 12:14 17.07.2016 kanalilt DT blogi 2

16.07.2016

Writing simple REST-client for Azure Search

In my last blog post about REST-clients Why Azure REST API-s and how to prepare for using them? I introduced how to write simple base class for Azure REST API-s. In this post we will implement simple REST-client for Azure Search. This is the same code that I’m using in my beer store sample application. I also make some notes about how to use search clients in domain models. 14:13 16.07.2016 kanalilt DT blogi 2

16.06.2016

What is Universal Windows Platform (UWP)?

Universal Windows Platform is almost new kid on the street and it’s time for developers to find out what it is, how it works and why to bother. In this post I make short introduction to UWP for developers. I also share some of my thoughts about platform and point out some useful resources that help you to get started. 12:06 16.06.2016 kanalilt DT blogi 2

05.05.2016

meme-based “trust” – or Lockean contract Ă  la E-stonia

For past 20 years or so Estonian e-government – and the x-road backbone – have been promoted with promise of transparency. Yes, we keep a lot of data, but it is stored securely and you can always check who has accessed it. This means transparency and trust. Or “trust”, as in this The Guardian interview with Toomas Henrik Ilves: The Estonian system, he explains, is based on “trust”. 08:48 05.05.2016 kanalilt Tehnokratt! 2

19.04.2016

Why Azure REST API-s and how to prepare for using them?

When new Microsoft Azure services come they usually have REST API-s available. Of course, there are usually client libraries available too as NuGet packages but usually not for every . NET flavour. Although Microsoft has plans to publish libraries for CoreCLR too it doesn’t happen always fast. Let’s see how REST API-s work and how to prepare for using them. It’s good if service comes out with public REST API. 23:05 19.04.2016 kanalilt DT blogi 2

27.03.2016

Planning and creating Azure Search indexes

Planning for search is mandatory first step when starting building search index. If we build search indices as we go we easily end up with messed up and hard to use indices. And even worse – we may end up with very complex search queries that need way more resources than we expect. This post goes through simple analysis of example beer store search index and shows how to create Azure Search index for products. 01:40 27.03.2016 kanalilt DT blogi 2

27.02.2016

Making Entity Framework 7 and Azure Data Sync work together

I have local database where I insert some data and I want this data to be available also in cloud. As a lazy guy I don’t want to synchronize data manually. After setting up local and cloud databases I activated Azure Data Sync to just find out that it conflicts with EF7 insert and update queries. As I don’t have many tables and my database is pretty small I invented simple workaround. 11:16 27.02.2016 kanalilt DT blogi 2

11.02.2016

BaseServer: Abstract class for timer based jobs

In one of my systems I’m using background process that hosts jobs that import and update some data and communicate with external services. These jobs are running after some interval or on specific moments. I generalized the common base part of these jobs so I can handle them as one in different background processes like Azure worker roles and Windows services. This blog post introduces my work and shows real-life implentation of jobs base. 01:34 11.02.2016 kanalilt DT blogi 2

05.02.2016

Beer IoT: Building Universal Windows Application to monitor cooling process

Our beer cooling solution is not controllable through IoT Hub and it reports data there. We can control our device through simple command line application but it is not enough for us. In this post we start building Universal Windows Application that helps us monitor temperatures. In this post we focus on mobile application. 14:15 05.02.2016 kanalilt DT blogi 2

04.02.2016

Beer IoT: Visualizing sensors data using Power BI

We are eager to try out our beer cooling solution and we want to see it in action. We want to visualize our data and keep eye on temperature of cooling beer. Before doing anything more complex like building web or mobile app we make a quick shortcut and bring our data to web, desktop and mobile. This post is about Power BI in action. What is Power BI? Power BI is online data visualization platform by Microsoft. 22:23 04.02.2016 kanalilt DT blogi 2

03.02.2016

Beer IoT: Using Stream Analytics to save data from IoT Hub to SQL database

When cooling beer we want to store history of temperatures for two reasons. First, it gives us valuable history data for next cooling sessions. As a second thing we can ask measurements when we temporarily lost connection with IoT Hub. In this posting we make some analyzis and then build up database for our beer cooling solution. 23:40 03.02.2016 kanalilt DT blogi 2

Beer IoT: Reporting measurements to Azure IoT Hub

As we have now fully functioning thermal solution running on Windows 10 IoT Core it’s time to focus to other components of our beer freezing solution. Our solution measures and calculates metrics of cooling beer but it doesn’t report this data anywhere. In this blog post we will set up Azure IoT Hub for our solution so it starts reporting measurements to Microsoft Azure. 16:48 03.02.2016 kanalilt DT blogi 2

Beer IoT: Estimating beer cooling time

In my last beer IoT post we measured out cooling rate of beer. In this post we try to estimate how long it takes for beer to start freezing. It’s actually simple calculation and we add it to our beer IoT background service before we focus on data reporting and persisting questions. NB! In this post we are using code from beer IoT posts Measuring temperature with Windows 10 IoT Core and Raspberry Pi and Measuring cooling rate. 09:56 03.02.2016 kanalilt DT blogi 2

02.02.2016

Beautiful cross-browser equations with MathJax

Some posts about my IoT solution that helps me to cool eisbock beer to freezing needed mathematical equations. I know I can use poorly supported MathML or bitmap images but both of these solutions come with problems. I tried to find some better solution and found MathJax. 16:07 02.02.2016 kanalilt DT blogi 2