Java uses FTP cross-server dynamic monitoring to read file data in the specified directory

Background: 1. The file data is on server A (windows) (generated in the specified directory from time to time), and the project application is deployed on server B (Linux); 2. The project is applied on server B, monitors the directory specified by server A, and if there are newly generated files, reads the file information […]

[Record] PDF|Chinese and English PDF scanned version directory extraction (1, QQ+GPT)

need: 1) Quickly extract table of contents from PDF; 2) Don’t want to download any software. Article directory 1. Directly export the directory using existing commonly used software 1 (recommendation index☆) QQ OCR text recognition 2 (recommendation index 0 stars) GPT4 image recognition 3 (recommended index 0 stars) GPT4 AI PDF plug-in 4 (recommended index […]

Simple HTTP service to implement random return of directory pictures and HTML to implement Web page design (experiment summary)

1. HTTP service for returning random pictures Implement the configuration environment: python, flask package (install with pip command or directly search for it in the ide and install it directly) Create a flask project directly in python and put the code from flask import Flask app = Flask(__name__) import os import random from flask import […]

Web application development framework-egg (3) 01-Basic functions – Directory stipulated by the directory structure agreement, the directory specified by the framework, the directory agreed by the built-in plug-in & the built-in objects of Application, context, Request & Response, etc.

Web application development framework-egg (3) 01-Basic functions – the directory structure agreed by the framework, the directory specified by the built-in plug-in & built-in objects Application, context, Request & Response, Controller ,Service,Helper,config Basic functions Conventions of directory structure Egg’s principle: Agreement is greater than configuration egg-project ├── package.json ├── app.js (optional) ├── agent.js (optional) // […]

Solving FileNotFoundError: [Errno 2] No such file or directory: /home/bai/Myprojects/Tfexamples/data/kn

Table of Contents Solving FileNotFoundError: [Errno 2] No such file or directory: ‘/home/bai/Myprojects/Tfexamples/data/kn’ Check file path Make sure the file is readable Use absolute or relative paths Print error message Solving FileNotFoundError: [Errno 2] No such file or directory: ‘/home/bai/Myprojects/Tfexamples/data/kn’ When performing file operations, you may sometimes encounter errors that the file does not exist. […]

YOLOv8 successfully solved ValueError: not enough values to unpack (expected 3, got 0) and `No such file or directory, etc.

yolov8 training: data structure mydata ├── Annotations ├── images ├── ImageSets ├── labels ├── all.yaml ├── text.txt ├── train.txt ├── val.txt └── labels all.yaml train: F:/YOLOV8/ultralytics-main/ultralytics/models/yolo/detect/mydata/train.txt val: F:/YOLOV8/ultralytics-main/ultralytics/models/yolo/detect/mydata/val.txt test: F:/YOLOV8/ultralytics-main/ultralytics/models/yolo/detect/mydata/test.txt # number of classes NC: 6 # class names names: [‘storage tanks’, ‘valve’, ‘person’, ‘fire’, ‘toxic substances’, ‘boat’] Label format: 0 0.10595703125 0.6002928257686677 0.1337890625 0.30453879941434847 […]

Modern CMake configuration and construction, sample templates, dynamic link libraries, find_package, cache variables, adding pseudo targets to start programs, directory organization, updating CMake

Directory Traditional CMake build installation Modern CMake Sample template dynamic link library find_package Use of cache variables Add pseudo target to launch program Directory organization Update CMake Traditional CMake build and installation review: PUBLIC means that the linked library will not only be applied to the current target, but will also be passed to other […]

Mount the same directory on two hard disks in Linux

Reference: https://zhuanlan.zhihu.com/p/456193585 Step one: View disk information View existing physical volume information pvdisplay If the logical volume management system tool is not installed apt install lvm2 ## I use Ubuntu View disk partitions fdisk -l I want to use the following two SSDs to mount to the same directory. Results of the: Disk /dev/nvme0n1: 465.78 […]

Render MarkDown in antd and customize an anchor directory TOC (focusing on solving the problem that the navigation directory does not follow the scrolling of the document)

1. Overall idea Since there are many long documents that need to be rendered, I think the MarkDown method is more suitable for management, so I have tested integrating the MarkDown rendering module in antd in the past two days. General idea reference: https://blog.csdn.net/Sakuraaaa_/article/details/128400497 Thank you for your generous efforts. Parse MarkDown using react-markdown Use […]