Sponsored links
Python

Python How to use fixture in pytest to share a function

How can we write when we want to add a function that is executed for all tests, e.g. pre-process and post-process? If you want to know how to use fixture, this post is for you.
Other techs

How to screenshot and record on Linux

Linux user needs to choose a preferred software for everything. I will show how I take a screenshot and record a video t...
JavaScript/TypeScript

How to sort Array if it contains number string and string data in JavaScript

Doesn't Array.sort output as you expected? It's because number is handled as string by default. If you want to sort the array on your needs, you need to write your own sorting logic.
Dart and Flutter

Flutter Resize table column by dragging

It's better to make the column width resizable if the text in a DataTable is long. This post explains how to do it without any extra package installation. Watch my sample video to check whether the behavior matches your needs.
Dart and Flutter

Flutter DataTable double tap event on DataRow

DataTable and DataRow don't offer onDoubleTap. How can we implement onDoubleTap event in DataTable widget? You don't have to install another package!
Dart and Flutter

Dart How to remove duplicates by key-values in object list (Distinct)

list.toSet method doesn't work as expected for an object list to get unique object list? Then, let's add index parameter to the callback of list.where so that we can remove duplicates by key-values.
Dart and Flutter

Implementing Bloom Filter in Dart

Bloom Filter can save memory and improve performance. Let's learn how it's implemented in Dart and how it can be used in an example!
Other techs

Linux How to add custom commands

You always want to use an easier command but some steps need to be done or some parameters need to be specified for a specific task. Let's create our own custom command to enable us to do the job with one command.
Golang

Golang How to differentiate between Context cancel and timeout

This post explains how to use Context for the process cancellation or timeout. Furthermore, it shows you how to implement it if you want to keep the process but want to introduce Timeout in it.
Golang

Golang Async/Await with Goroutine and Channel

Golang offers Goroutine and Channel to make Async implementation easy.
Sponsored links