Latest stories

Problem: Binary Gap

A binary gap within a positive integer N is any maximal sequence of consecutive zeros that is surrounded by ones at both ends in the binary representation of N. For example, number 9 has binary representation 1001 and contains a binary gap of length 2. The number 529 has binary representation 1000010001 and contains two binary gaps: one of length 4 and one of length...

How to deploy your Plotly/Dash dashboard using Docker

As we have already said in an older article the plotly/dash library is awesome. In this article, we are going to present the way how you can share your dashboard application with other people. By default, Dash apps run on localhost – you can only access them on your own machine. To share a Dash app, you need to “deploy” it to a server. If you don’t have your own server there are...

Plotly: conditional area highlight

Plotly is an amazing interactive and open source library for data analysis that supports over 40 unique chart types covering a wide range of statistical, financial, geographic, scientific, and 3-dimensional use-cases. In this article, we are going to present how we can color specific areas on the graph according to the field’s value inside our data frame. The result will be as the below...

Dynamic Database Creation Using Apache Kafka Streaming Messages

The aim of this project is to ingest incoming Kafka streaming messages and store those dynamically into a database without the mandatory existence of predefined SQL Tables. Table of Contents General InfoTechnologiesGetting startedExamples of use General Info Data and logs that surround us need to be processed, reprocessed, analyzed, and handled. Often in real-time. That’s what makes the...

A Linux bash command line vocabulary

AadduserAdd a user to the systemaddgroupAdd a group to the systemaliasCreate an aliasaproposSearch Help manual pages (man -k)apt-getSearch for and install software packages (Debian/Ubuntu)aptitudeSearch for and install software packages (Debian/Ubuntu)aspellSpell CheckerawkFind and Replace text, database sort/validate/indexBbasenameStrip directory and suffix from filenamesbashGNU Bourne-Again...

How to use EEPROM M24256 with STM32 microcontroller

In this post we will see how we can use the M24256 EEPROM to read and write data with an STM32 microcontroller. The complexity of those operations are really minimal as long as the provided HAL libraries generated by STM32CubeIDE basically does most of this job. Our main idea is to safely read and write data to M23256 by considering the delays that this chip may have and ensuring our operations...

Interactive Linear Regression application in WPF C#

In this post we will see a simple application in C# implementing the linear regression algorithm on a set of data created by the user. A linear regression is one of the easiest statistical models in machine learning. Linear regressions can be used in business to evaluate trends and make estimates or forecasts, It is used to show the linear relationship between a dependent variable and one or more...

Use the NAND Flash Memory ( MT29F2G01ABAGDWB-IT) with STM32

In this post, you will find a simple, yet easy to use middleware to interface the NAND Flash Memory MT29F2G01ABAGDWB-IT with an STM32 microcontroller using QUADSPI communication . The Micron NAND Flash devices are available in different configurations and densities to fit your project’s needs. It uses SPI and it is a good an alternative solution to SPI NOR, offering superior write...

Firmware upgrade of ESP WROOM-02 to support MQTT AT commands

ESP WRoom 02 is a low-power 32-bit MCU Wi-Fi module, based on the ESP8266 chip. It uses a 2 MB SPI flash connected to HSPI, working as SDIO/SPI slave, with the SPI speed being up to 8 Mbps and it is fully certified by Wi-Fi Alliance, SRRC, FCC, CE ( RED ), TELEC, IC & KCC. The only downside of this awesome wifi module is the lack of stock firmware capabilities. Unfortunately the delivered AT...

Lumen configuration of JWT authentication

Following up our previous post Getting started with Lumen 7.0.x and JWT authentication, we will present how to properly configure the authentication package we installed. Most of this tutorial also applies in Laravel framework as long as Lumen is a minimal implementation of it. For this tutorial we will recap some parts. First of all we need the following two packages to be installed via...

Disclaimer: The present content may not be used for training artificial intelligence or machine learning algorithms. All other uses, including search, entertainment, and commercial use, are permitted.

Categories

Tags