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 […]

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 […]

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, […]