Featured

Information security in ASP.Net Core WebAPI

Introduction

Communicating between the different software and applications always was my favorite topic. In the past two decades, some technics and technologies have been raised; Technologies like RPC, WebService, SOAP, and REST. Each of these technologies has its own pros and cons. When transporting the information over the network and between the different technologies, some communication protocols should be get considered, like Handshaking, maximum allowed delay, transported information format, and Security. Each of these issues has its own problems and solutions. In this post, I will focus on the security issue in REST API technology in ASP.Net Core.

Problem

Transporting the information between the applications over the network can be dangerous, especially when they come with sensitive data like User name, Password, or other personal and critical information. To fix this issue, there are a bunch of solutions and tools, and the most common one is known as SSL/TLS. To protect the transported information against vulnerabilities (e.g. sniffing), the SSL/TLS methods encrypt them into the cipher format using the encryption algorithms like RSA and AES. These methods are largely reassuring, but when information security becomes the most important factor in the project, can we completely trust these methods? I think, NO! It may be a little pessimist, but there is always a backdoor or misused issue for security methods in the IT world, And this leads us to fasten our seatbelts tighter!

Continue reading “Information security in ASP.Net Core WebAPI”

AverageMeter in WPF

Introduction

There are a lot of charts and pies to show and analyze a series of information graphically. In some cases, we need to have an average value of the currently retrieved values from any resources and we don’t need to hold all of the values. For better understanding, assume that we have a sensor that gives us the vibration amount of a bridge. With these values, we have the maximum, minimum, and average vibration amounts on this bridge. By using this set of values, we partially can ensure that this bridge can work under pressure. For being able to analyze the performance, we need a range of the last fetched values. Sometimes, having a visual result of information can be more effective in our application dashboard; so we can create a control that shows our information in a graphic mode.

Background

I was developing an application that was using cameras and an ANPR (Automatic Number Plate Recognition) library to reading license plates. This library was returning two important values to me. The first one was Confidence and the second one was AverageHeight that by using these values, I was able to calibrate and reposition the camera (if needed). But in some cases, the minimum and maximum values difference were too much. Because of that, I decided to create a control to demonstrate the current value and the range of the currently fetched values.

Continue reading “AverageMeter in WPF”

Say hello to the Checked Exception from C#

Being an optimist about the Checked Exception

In the humans and computer world, there are lots of programming languages to serve humans to make able them to transform their ideas into computers language. They ship new features and performance tunings with themselves to have a better place than others, and some times it looks like they are in a challenge. Some of these features have the chance to get a warm welcome from the users and get used for many years in many projects, but others, no. One of these unlucky features is Checked Exception. This feature has been used by JAVA widely to improve the chance of the exception handling. Like other features, Checked Exception has its pros and cons, but in the previous years, because of the domination of its cons, other programming languages preferred to use Unchecked Exception.

Continue reading “Say hello to the Checked Exception from C#”

WPF Bar Chart as simple as possible

Introduction

Most of the User controls in WPF are heavy to load, especially when we use them inside another control(e.g. DataGrid). If we use a DataGrid, Chart, or another control inside the row details in DataGrid, it makes our form’s loading too slow. This issue pushed me forward to create a lightweight BarChart control. In this control, we can bind items and legends to the ViewModel using their ItemsSource property. There are 3 properties to introduce the horizontal, vertical, and legends in Item source to the chart: HorizontalPropertyName, VerticalPropertyName, and LegendPropertyName. Also, we can change some appearance parameters like changing the visibility of Value labels and Legends list and manipulating the legends header and color.

Continue reading “WPF Bar Chart as simple as possible”
Create your own website, free on WordPress.com.Create your own website.
Start free