xugaoxiang | 迷途小书童

curl cross compile

environment ubuntu 18.04 64bit curl 7.87.0 arm -linux-gnueabihf Practical Go to the official website to download the latest compressed package version 7.87.0, https://curl.se/download.html , and then unzip it tar xvf curl-7.87.0.tar.gz cd curl-7.87.0 Next, prepare the cross-compilation tool chain, which is generally provided by the solution manufacturer. For example, I use /usr/local/linaro/gcc- arm -8.3-2019.03-x86_64- arm …

curl cross compile Read More »

Basic Rust syntax

environment windows 10 64bit variable Variables in Rust are immutable by default, which is different from variables in mainstream programming languages ​​currently on the market. However, variables can be made mutable by prefixing the variable name with the keyword mut . let total = 100; total = 200; You can see the prompt cannot assign …

Basic Rust syntax Read More »

Rust build tool cargo

environment windows 10 64bit foreword We have installed the Rust development environment before. During this process, cargo is also installed, which can be checked by cargo –version cargo is a built-in build tool and package manager in the Rust toolchain. It can help us build code, download, compile and manage dependency libraries. It is also …

Rust build tool cargo Read More »

PyQt5 series tutorial (36) Too much text to be displayed for the label? Then add a scroll bar

Software and hardware environment Windows 10 64bit Anaconda3 with python 3.8 PyQt5 5.15 Introduction By default, when a large amount of text is displayed on a label , the part that cannot be displayed is truncated. At this time, what naturally comes to mind is how to make the text display appear in the form …

PyQt5 series tutorial (36) Too much text to be displayed for the label? Then add a scroll bar Read More »

streamlit handles live video

surroundings windows 10 64bit streamlit 1.13.0 streamlit -webrtc 0.43.4 Introduction The previous article introduced Streamlit , an open source library that can quickly create web applications, but streamlit itself is not good at processing real-time audio and video. This article introduces streamlit ‘s extension library, streamlit-webrtc , which can help us easily process and transmit …

streamlit handles live video Read More »

Image stripping based on MediaPipe

surroundings windows 10 64bit mediapipe 0.8.11 Introduction This article introduces another open source project for background removal of pictures, videos and camera images. This project is based on the mediapipe machine learning framework and mainly encapsulates FaceDetection and SelfieSegmentation . In addition, it also provides examples like face detection and image sketching , which is …

Image stripping based on MediaPipe Read More »

Linux common commands-116: shutdown

shutdown command is used to shut down the system and is equivalent to the halt command. Syntax format: shutdown [parameter] Common parameters Example # 立即关闭系统shutdown -h now # 立即重启系统shutdown -r now # 10分钟后关机,同时发送消息给登录用户shutdown +10 “马上关机啦,赶快保存资料,不然一天白忙啦!” # 设定系统关闭时间也就是定时关机,如20:30 shutdown -h 20:30 # 如果之前设定了定时关机,可以取消shutdown -c This article is reprinted from https://xugaoxiang.com/2022/10/11/linux-cmds-116-shutdown/ This site is for inclusion only, …

Linux common commands-116: shutdown Read More »