How to capture network activity with Selenium 4 in ASP.NET Core 3.1

Capturing network activity can be essential in the test development but also it can be a tricky one to do sometimes. Most of the examples out there are samples by using BrowserMob Proxy which is not supported anymore and doesn’t work with ASP.NET Core 3.1 or by using logs which seems to me a bit more complicated to use and process for this purpose. In this example I’m going to focus on using Network events with ChromeDriver.

Read More »

Mutual TLS (mTLS) – when TLS is not enough

Even if you are not familiar and don’t know how the Transport Layer Security (TLS) works you are most probably using it every day when you are using your web browser to access a secure site (https://somesite.com). After SSL as standard we got TLS as its successor, it’s a widely accepted standard and TLS quarantees the identity of the server to the client and provides a two-way encrypted channel.

There are cases when confirming the identity of the server is not enough but we want to know the identity of the client (web hook application can be a great example for this) we can use Mutual TLS. So l’m going through the concepts of the both protocols and share some useful links on how can you use mTLS within ASP.NET Core applications.

Read More »

Add animations to your website in just few minutes

Recently, someone posted on LinkedIn about a cross-browser library of css animations – Animate.css, it looked interesting to me and very easy to use so I decided to give it a try. I tested it on our family bee farm website which is a very simple HTML website. How easy is to use it you can tell by the time it took me from downloading the library, reading the instructions and deploying the changes. Well It didn’t took more than 5-10 minutes. So I’ll describe briefly how you can use it as well.

animate-css-try

1) Get to know the available animations

There are 70+ animations that you can use so you’d like to see if this is something that will be applicable to your needs. There is a minimalist page where you can try all of them https://daneden.github.io/animate.css/Read More »

Using PowerShell to get Assembly PublicKeyToken

If you need to retrieve the assembly PublicKeyToken for some assembly that can easy be done with PowerShell without installing some third-party software.

$assemblyInfo = [Reflection.AssemblyName]::GetAssemblyName(<assemblyPath>)
Write-Host $assemblyInfo -ForegroundColor Green

This will print out on the console screen something like this, where you can see the file name, version, culture and public key token string.

getassemblyinfo
Read More »

Visualize Covid-19 data with PowerShell

This weekend I was playing a bit with PowerShell and wrote some scripts in order to turn publicly available Covid-19 data into charts and CSV files. The scripts can be updated easily to adjust them to your needs. Of course, PowerShell is not quite meant for this and there are much more powerful web/front-end tools and libraries but I consider this as a good exercise while creating something (potentially) useful. I use the RESTful API from The Virus Tracker that you can use for free as well.

MK-Total Cases

In this example I will demonstrate how to call RESTful endpoint and how to transform the data according to our needs, how to export the data to .csv and how to use Microsoft Chart Controls for creating the charts.Read More »

Golden Award for Technetium 2019 Challenge

This was an interesting challenge for me, first of all because C# was not offered as an option for solving the problem and the problem itself was a nice brain puzzle. I managed to solve this with Java and GoLang

TecheniumChallengeResult.png

This is the problem description:
You are given a matrix A consisting of N rows and M columns, where each cell contains a digit. Your task is to find a continuous sequence of neighbouring cells, starting in the top-left corner and ending in the bottom-right corner (going only down and right), that creates the biggest possible integer by concatenation of digits on the path. By neighbouring cells we mean cells that have exactly one common side.Read More »

Golden Award for Molybdenum 2019 Challenge

It’s been a while since I took my last challenge on Codility and this was the first one I did in 2019. I felt a little bit rusty but it was a great weekend algorithm challenge. I managed to do 100% points on correctness and performance which is awarded with a Golden Award.

Molybdenum2019GoldenAward.png

The challenge was marked as hard but personally I didn’t felt like it was on the level of the hardest challenges on Codility.Read More »

Joining SQL tables with different collation

This will be a very short read but I think someone can find this post useful in the future (probably that will be me) because there are a lot of misguiding answers out there. I’ll show one practical example on where you can hit this TSQL problem and an easy solution on how to resolve it.

simpsons.jpg
* absolutely no clue what image to attach to this post so we might go with this one until better idea comes up *

The problem

We need to retrieve only the from T1 table in the DB1 database and join them with the T2 tableĀ  in the DB2 database by the T1.Name and T2.Name with the condition that T1.Name needs to starts with T2 name we need to run this query. Read More »

4 ways to organize your NLog files

Organizing your log file(s) can be very important, depending on the software requirements different structures can be the right fit for you. Here I’ll present four different ways for structuring NLog log files so you can get the idea how to configure yours and tailor them by your needs.

nlog-sample-config.png

Using one file

All you need to think of here is the name of your log file. In the example bellow I’ve named the file MyApp.log and it will be located in the logs folder. Read More »

ngrock – public URLs for exposing your local web server

Debugging an API that you are developing can be time consuming, needing to track and adjust some request data/JSON and after that send the request to your localhost service which you are debugging. Things can get even worse when you are working in a team and you need to replicate an issue that was reported by the App developers (web, mobile, raspberry piĀ  etc), where you need to debug multiple API calls to get to a certain state/scenario.

rest_api_to_database_connections.png

ngrok is a tool that I’ve recently discovered and I can say that has saved me a lot of time and manual execution of requests to my API. Read More »