How to Use Elastic Search Geo Shape Query

There are circumstances when we have a set of coordinates and we want to perform a  geo search on them. More specifically we want to find out if the coordinate used in our search falls within a shape. In that case we can use the Elastic Search geo shape query to achieve that. In this … 

 

Color Coder: Using Roslyn APIs For Syntax Highlighting

Couple of years ago, I’ve created a Visual Studio extension to colorize things in C#. More specifically I was trying to colorize different programming constructs such as extension methods. So it had to be done in a syntax aware manner as oppose to coloring text. For that I used Roslyn .NET compiler to do this. … 

 

Elastic Search: Highlighting Text That Contains HTML Tags

Using Elastic Search highlighting is normally straightforward. But sometimes we have a piece of text that contains other information. For example we may have a text the contains html tag or other information that we want to ignore. In these cases using the normal highlighting does not give us the result we’re seeking. For example … 

 

Unable to locate the .NET SDK: The Reasons

The other day after installing some windows update, I tried to open Visual Studio. I opened my project and I received an error regarding .Net Sdk. The project file cannot be opened. Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed … 

 

How to Change Elastic Search Index Mapping Without Losing Data

As you might know Changing the mapping to an elastic index is not allowed. Although certain changes are possible such as adding a new fields, other changes to the mapping is not easy. In this article we see how we can change the Elastic Search mapping without losing data. I’m going to bring some examples … 

 

Why Use Rust for Web Development

From Python to Java, there are plenty of languages that have been used for programming over the years. However, a newcomer is showing a lot of potential: Rust. True enough, Stack Overflow’s annual survey featured Rust as the most-loved programming language in 2020. This was its fifth straight year topping the charts. What is Rust? … 

 

Code Review Best Practices: A Short Guide

Code review is an essential part of development workflow. It can have a big impact on the quality of our code and the delivered result. So, it’s important to make sure it is done correctly. Code review is one of those tools that have a high return on investment. So many companies invest in building … 

 

How to code for beginners: 4 Vital Points

There’s a lot of debate these days over whether or not it’s still necessary for people to learn how to code. Once not so long ago, coding was viewed almost as an emerging necessity. almost like a language people would be wise to learn in order to make the most of an increasingly tech-driven world. … 

 

How to mock APIs with Binary Responses using Postman Mock Server

There are different solutions for mocking an API endpoint. Such as using Microsoft Flow or doing it manually on a sever. But Postman mock servers can be a better fit if you already use Postman for your API development. Also, the initial use of their mock server is free with some limitations which I’m going … 

 

Enum Serialization: System.Text.Json vs Utf8Json vs Jil vs Newtonsoft

I was reading about the new System.Text.Json in .net core 3 and comparing its speed to other libraries. You can read more about it here if you’re interested. To put it shortly, the new serializer is faster then Newtonsoft but not as fast as others. Also the enum serialization between different libraries can be inconsistent. …