Posts

Krótka historia komputerów kwantowych cz. 1

Krótka historia komputerów kwantowych cz. 1

Wyobraź sobie, że jest piątek wieczór. Po całym tygodniu pracy lub nauki należy Ci się chwila relaksu. Zaparzasz herbatę, rozsiadasz się wygodnie...
Constructing quantum gates as matrices for a multi-qubit quantum system

Constructing quantum gates as matrices for a multi-qubit quantum system

The matrices for qubit gates are provided for the dimension appropiate to act directly on a single qubits. The question is how to extend the matrices to act on mulitqubit system that is represented by the column vector. This article gives short introduction into qubits and quantum gates, then it shows on the examples how to extends one and two qubit gates for multi qubit system using the matrix algebra.
Connect a USB Drive to Your Cloud

Connect a USB Drive to Your Cloud

USB passthrough is a technology enabling a USB device connected to a physical machine to be shared on a virtual machine hosted on it's cloud system. This capability is especially useful in scenarios like data backups and transferring large files between virtual machines.
Linux Email Notifications for Cron Jobs and Bash Scripts

Linux Email Notifications for Cron Jobs and Bash Scripts

In a Linux environment, managing email notifications for tasks like cron jobs and setting up email services can often be complex. This article explores the efficient setup and use of msmtp for managing email notifications in Linux, specifically for cron job monitoring and Bash script outputs.
Flask, Docker, Pycharm - Setting up development environment

Flask, Docker, Pycharm - Setting up development environment

On the web are dozens of posts on how to dockerize the flask app that describes how to create a container with an embedded flask app. But it is not suitable for development purposes, as you need to change the sources and restart the flask on the fly.
Collecting usage statistics in Saas application

Collecting usage statistics in Saas application

Collecting user statistics is vital for scaling SaaS. Use an external database, ensure fast, thread-safe logging with SQLAlchemy, and log errors without impacting core application. Example code in Flask shows how to register and save usage stats efficiently using raw SQL for performance.
Flask: Document with dynamic lines addition using FieldList

Flask: Document with dynamic lines addition using FieldList

This tutorial demonstrates dynamic FieldList implementation in Flask-WTF. Ideal for dynamic forms in CRMs, invoicing, or multi-entry data apps. Create nested forms, and clone rows using JavaScript. Handle editing by updating/deleting database entries based on form order, and ensure empty rows are omitted.