Those who can’t farm – make farmland fields algorithms

Farming is something that I want to do in the future, farming with using technology and robots and… but I’ll write about that in some other occasion. One of the latest Codility challenges¬† was farmland sprinklers arrangement problem and finding an optimal way to do that. Besides that I got algorithm mind challenge this time I got inspiration and made me daydream about the possibilities in farming with using technology.

SprinklersArrangement.png

So here is what you need to do in order to help Joe the Farmer.
Joe the Farmer owns a square plot of farmland whose sides are of length N. The land is split into N rows and N columns of equal size, so that there are N2¬†identical square fields within the farmland. Read More »

Advertisements

How to build chat Server and Client with SignalR and ASP.NET Web API (Part 2)

So here we go we the second part about using SignalR where I’m going to show you a practical example on how to build a SignalR based chat system, how to build the client and how to build the server. In case you missed the first part about SignalR and want to discover more on what is happening on a lower level please check my previous article SignalR: What is happening under the hood (Part 1).

ChatClients.png

The code is available on GitHub and the solution currently contains two projects, one for the client implementation and one for the server implementation. Later, I plan to add another project here for the self-hosted server and we’ll use the same client but this time using this server.Read More »

Golden Award for my Ferrum 2018 solution

From time to time I like to solve interesting algorithmic problems and a while ago I discovered Codility and their challenges. This time the active challenge is called Ferrum 2018 and I managed to get the Golden Award recognition which means that I solved the problem with optimal code execution time and memory complexity.

CodilityGoldenAward

If you like this kind of programming brain teasers you should try to get an award for this one. There are way more complex problems on Codility (for example the Chromium 2017 was one of the more demanding ones, at least for me) but let me give you brief introduction about the awards and the Ferrum 2018 challenge.Read More »

Custom made Xamarin.Forms Radial Progress control

Although there are many controls that are missing from Xamarin.Forms the good thing is that we can customize each built in control and create our own controls that will fulfill our App requirements. In this example I’ll demonstrate the implementation and simple usage of a custom build Xamarin.Forms Radial Progress control.

RadialProgressDemo2

How to create custom control with a renderer

First thing we need to implement is Xamarin.Forms control that will have bindable properties. The implementation in this case is in the¬†RadialProgress class.Read More »