Household tap water quality monitoring device based on single-chip microcomputer design

1. Preface This article introduces a household tap water quality monitoring device based on single-chip microcomputer design. Using STM32F103ZET6 as the main control chip, combined with the water quality sensor and ADC module, the detection and monitoring functions of tap water quality are realized. Through the 0.96-inch OLED display, the collected water quality data is […]

CARRY4 tap delay chain TDC delay design based on FPGA

FPGA-based CARRY4 tap delay chain TDC delay design CARRY4 tap delay chain TDC delay design based on FPGA 1. Reference 2. Principle 3. The chip currently tested is XC7K325TFFG900-2 4. Source code Copyright statement: This article is an original article by CSDN blogger “Getting Started with FPGA” and follows the CC 4.0 BY-SA copyright agreement. […]

How Java novices use encryption of Spring MVC RestAPI

Article directory Why do you need to encrypt RestAPI? Create RestAPI using Spring Boot Encrypted RestAPI using HTTPS Increase security with Spring Security Implementing token authentication using JWT Testing encrypted RestAPI using Postman in conclusion Welcome to the Java learning route column~How Java novices use the encryption of Spring MVC RestAPI ☆* o(≧▽≦)o *☆Hi~I am […]

Comparison of python’s three major development frameworks: django, flask and fastapi

Original text: https://fastapi.tiangolo.com/alternatives Author: tiangolo, creator of FastAPI This article tells the story of what inspired the creation of FastAPI, how it compares to other alternative frameworks, and the lessons learned from it. FastAPI would not exist if it were not based on the work of those who came before. Many tools have been created […]

Questions about the hostapd configuration file

About the hostapd configuration file and the use of external network cards and channel binding Question list: hostapd version No more channels can be used under the ac protocol, only channels 36 40 44 48 can be used ac agreement cannot be CB CB fails under n protocol About hostapd version If hostapd is installed […]

Linux network equipment – TUN/TAP

Today we will learn about TUN/TAP, a common network device on Linux. These two devices are often discussed together because their functions are actually very similar. They are both virtual network devices provided by the Linux kernel, just like a real network card. But one end of it is connected to the operating system protocol […]

12.0Database SQLAlchemy ORM operation in Fastapi

[1] Large project structure tree coronavirus ├─static # Static file ├─templates # Front-end page ├─__init__.py # Initialization file ├─database.py # Database operations ├─models.py # Database table model class ├─schemas.py # Response body model class ├─curd.py # View function └─main.py # Main program startup entrance 【1】Create database handle (database.py) Create linked database Create linked database objects […]

5.0Analysis and verification of Fastapi path parameters and data

[1] Small project construction [1]Document structure tree projects ├─coronavirus ├─__init__.py ├─….py ├─turtorial ├─__init__.py ├─chapter03.py ├─chapter04.py ├─chapter05.py ├─chapter06.py ├─chapter07.py ├─chapter08.py ├─run.py [2]Multiple routing implementations under the same project projects\turtorial\chapter03.py from fastapi import APIRouter app03 = APIRouter() Others are the same projects\turtorial\__init__.py from .chapter03 import app03 from .chapter04 import app04 from .chapter05 import app05 from .chapter06 import […]

LLM – FastAPI builds a simple question and answer server

Table of Contents I. Introduction 2. Auxiliary functions 1. Blacklist 2. Clear function 3. Model function 1. Load the model 2. Generate configuration 4. Service deployment 1.post-predict 2.get-clean_cache 3.main-run_app 5. Summary 1. Introduction SFT workflow Fine-tuning workflow In this article, we introduced the process of model fine-tuning from data to final application. FastAPI implements get […]

[C++20] constexpr metaprogramming

constexpr metaprogramming constexpr variable Variables defined through constexpr can usually replace constants defined using macros and can ensure type safety. Generally, constexpr is used to define some constants to specify the maximum length of the array. Objects modified with constexpr can also be regarded as const. constexpr int mf = 20; //20 is a constant […]