Image by fauxels from Pexels

Every time when I look for any quality content on the web it usually brings me to articles on Medium. I’m mainly interested with publications on data science, artificial intelligence or programming where the quality matters. From my point of view, quality authors with quality articles have turned Medium one of the most successful content publishing platforms on the Internet. It offers lots of knowledge and, in the era of remote work, many possibilities… well, no wonder it has attracted so many writers.

But, how to take advantage of these opportunities as a writer? …

Image by Nothing Ahead from Pexels

LexRank is a stochastic graph-based method for computing relative importance of textual units for Natural Language Processing. I used LexRank to summarize and extract the most relevant information from hundreds of articles, e.g. analysis on how to lose weight and how to succeed on a Medium as a writer. LexRank proved to work effectively — in my humble opinion.

At the first glance, the theory behind the algorithm seems complicated, but in reality, it’s very simple.

Let’s start with the official general description of the concept.

We consider a new approach, LexRank, for computing sentence importance based on the concept…

Image by Alex Knight from Pexels

OpenCV is an open source computer vision and machine learning software library. It allows, with little effort, to build a computer vision application like for example a home security system that detects intruders.

OpenCV has already trained classifiers/cascades that may be of low precision in some particular scenarios.

If you want to have a higher accuracy of your object detection model you’ve come to the right place!

This tutorial is a step-by-step instruction on how to train your own cascade for object detection. Let’s start!

Note: here is the official tutorial on training a custom cascade for advanced users that already have some background in CV and python


  1. Install OpenCV — 3.4.14 (download it from this link)

After installation…

Image by Andrea Piacquadio from Pexels

Top 3 Jobs that will be replaced by AI in the Near Future (and 3 that are safe)

It’s in human nature to fear of the unknown. Whether it’s a fear of a journey to another continent, changing a work or towards Artificial Intelligence.

“Don’t be afraid of being scared. To be afraid is a sign of common sense. Only complete idiots are not afraid of anything.” — Carlos Ruiz Zafón

On the other hand, without people who were a bit less afraid to try uncertain things, we would not have made such great progress.

In terms of AI the…

Image by Cats Coming from Pexels

It’s easy to get lost among thousands of articles when we’re looking for ways to lose weight. The problem is that most of the articles claim to have an ideal recipe for fast and straightforward fat reduction.

In this article I use Natural Language Processing Techniques (NLP) to compare, extract and analyse hundreds of articles to find a holy grail of a natural, safe and long-lasting weight lost.

Note: remember to always advice with your doctor before kickstart any rigorous diet.

There are three parts of the article:

  1. Part 1: summary for people interested only in findings
  2. Part 2: technical part with python code
  3. Part 3: theory…

In this tutorial I will show how easy it is to build a cryptographic engine using a deep neural network.

You may ask why would you need that? — there are plenty of open source solutions to be used, yet.

The answer is simple: all of them are public, hence may be cracked (interesting articles here and here) — and secondly, it’s a fun building an AI :)

The strength of having its own engine lies in:

  • this is not public — so to crack it hacker would have to possess all resources
  • a key to the system is actually…

Image by Egor Kamelev from Pexels

Python quick tip: DICT or IF for getting a value? Performance & memory battle within python standard modules.

Are you afraid of unknowns, and you always stay with only one way of implementation? Or you want to be a better python programmer?

Let me show you on why to use dict instead of if statements in your python program.


If statements and dicts are present in every modern programming language. Whereas if statements are especially designed to control flow of operations of a program, dicts are a data structures. Nevertheless, dicts may be used to control flow of operations the same as if statements, or even better!

Let’s see an example!

This is an example of if statement

Image by Kuncheek from Pexels

Part 2: Nvidia CUDA tutorial (with code) - how to use GPU computing power to boost speed of options pricing valuation. Black-Scholes-Merton model boosted by CUDA in c++.

Note: Part 1 may be found here — where I run tests of Python vs C++ vs CUDA performance.

There are millions of financial transactions each day globally. The vast majority is conducted on a market for derivatives (options, futures etc., are typical examples). This means that, every day, thousands of financial institutions (like: banks, stock exchanges, etc.) have to value its financial holdings.

Note: here is the link to the latest…

Part 1: Boost python with c/c++ bindings. Beginners’ friendly guide to start embedding c/c++ shared libraries in python.

Python is a very easy, but versatile programming language used almost everywhere. Being an interpreted language it naturally lags behind in terms of speed of execution.

In this tutorial you will learn on how to make your python program faster using c/c++ code. Let’s start.

Note: here are the requirements you need to meet:- Visual Studio 2019 (don’t confuse it with Visual Studio Code)- installed python- pycharm community edition- OS: windows 10

There are 3 things we need…

Photo by Pixabay from Pexels

(Tutorial) Unleashing the power of examples in learning regex. Part 1 with example on email extraction (with python & c++ code)

Let’s start with the basics.

What’s REGEX?

Regex is the tool to find specified matches in string like: e-mails, names, cities, syntax errors, tickers etc …

To put it simply when you want to extract specified words (in our example emails) from the below text — regext is your friend!

This is an example string to show you that this email can be easily extracted from such text.

Regex is used everywhere and in general its fundamentals are…

Maciej Zalwert

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store