When the author was testing the Spark model recently, they used websocket to establish conversations, and the open test code of the Spark model was not of good quality (record 20231030). You also need to have a certain understanding of websocket to be able to fine-tune it yourself. . Install: pip install websocket pip install […]
Tag: save
Android calls the Camera class and adds watermarks to pictures and saves them to the SD card
Hello everyone, I am learning Android recently and would like to share some of the results I have learned~~~ Go directly to the code: import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.PixelFormat; import android.hardware.Camera; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.net.Uri; import android.os.Bundle; import […]
Use AI Chat to automatically take screenshots of e-books and save them as pdf files
If you want to download e-books, there are only two types of methods. One is to crack it from the inside. Usually some geeks crack the software into a free version, but the risk is also high. The other is to crack it from the outside, which is to take screenshots and save them, and […]
The scrapy framework crawls data (creates a scrapy project + xpath parses data + saves data through pipelines + middleware)
Table of Contents 1. Create a scrapy project 2. Xpath parses data 3. Data saving through pipelines 4. Middleware 1. Create a scrapy project 1. Create a folder: C06 Enter the following command in the terminal: 2. Install scrapy: pip install scrapy 3. Go to the folder: cd C06 4. Create project: scrapy startproject C06L02 […]
[Linux] Save the rpm installation package locally and install it in batches
Table of Contents 1. Enable rpm installation package caching to the local warehouse 1. Modify the yum.conf file 2. Clear yum cache 3. Use the yum command to install the software package 2. How to save the rpm installation package to the specified directory Method 1: yumdownloader 1. Install yum-utils? 2. yumdownloader command parameter description […]
python_pandas retrieve pictures from a certain column in excel, download them online and save them locally
code show as below: import requests # Essential for crawlers import time # Limit crawler speed import os #Create a new specified storage folder import pandas as pd #Read EXCEL file import re #re is the regular expression module import time importsys from tqdm import tqdm import json import requests import openpyxl from openpyxl import […]
Redis write failureMISCONFRedisisconfiguredtosaveRDBsnapshots, but is currently not able to persist on disk
The Java log error is as follows: redis hput exception org.springframework.dao.InvalidDataAccessApiUsageException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. ; nested exception is redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured […]
Use tkinter to make a game? feasible! Very long article, recommended to save!
It is indeed possible to make games using Tkinter. Although Tkinter is primarily used for creating graphical user interfaces (GUIs), it provides enough power and flexibility to make 2D games. In this article, we will explore how to create a simple 2D game using Tkinter. We will use Python 3 and the Tkinter library to […]
uniapp–Click to upload images to oss and save the data to the back-end interface
The project uses uniapp and uview2.0 component libraries –You can also refer to 1.0, it’s pretty much the same 1. Project requirements and style diagram Click to upload n pictures to oss, then click to submit to the backend 2. Idea 1. Open the upload button, and upload pictures and submit buttons will appear in […]
Baoshi Document User Manual, and uses abstraction and reflection to create universal abstract classes to save development costs.
Document example 1024 is the best time to write a blog. Don’t say it, don’t say it, I suggest it become a legal holiday. The official website of Baoshi documents: Baoshi official website (@宝思TeamRemember to pay me for advertising) Steps to use the Boucherie certificate Use abstract classes to abstract the steps of obtaining fields, […]