WIndows’ CMD\PowerShell command line startup program runs a nohup command similar to Linux system in the background.

There is no command similar to nohup under windows, but you can use other commands to achieve this function. 1. Explanation of commands used: 1. Start-Process: Start one or more processes on the local computer. Related introduction links: Start-Process (Microsoft.PowerShell.Management) | Microsoft Learn? Mainly used parameters 1.1, -WindowStyle Specifies the state of the window used […]

HarmonyOS application development-preferences and background notification management

Preferences Today, as the mobile Internet is booming, mobile applications have brought great convenience to our lives. The essence of these conveniences lies in the interconnection of data. Therefore, data storage plays a very important role in application development, and HarmonyOS application development is no exception. This chapter takes the preferences of HarmonyOS as an […]

Python + AI: perfect cutout, change background

Looking through the old photos at home, I found a little dog. It’s very interesting, with its wide eyes~ (the background is in the kitchen). Sometimes you want to cut out the characters or protagonists in certain photos and paste them into your favorite background image. For example, you want to make a DIY avatar […]

OkHttpUtils.post() uploads files (Android front-end upload and server background reception)

Android terminal 1. First of all, you need to use the package, now add dependencies in build.gradle(app) implementation ‘com.github.xxl6097:okhttputils:2.4.1’ //Or implementation ‘com.zhy:okhttputils:2.6.2’ //The first one used here Without further ado, let’s get straight to the code. 2. Upload code multiFileUpload method public void multiFileUpload(ArrayList<Image> image) throws UnsupportedEncodingException {<!– –> Be a json string and set […]

iOS uses NSURLSession to implement background upload and download

The basic logic of NSURLSession background upload is: first create a background mode NSURLSessionConfiguration, then create an NSURLSession through this configuration, then create the relevant NSURLSessionTask, and finally process the relevant proxy events. 1. Create NSURLSession – (NSURLSession *)backgroundURLSession { static NSURLSession *session = nil; static dispatch_once_t onceToken; dispatch_once( & amp;onceToken, ^{ NSURLSessionConfiguration* sessionConfig = […]

[Script Tool] Extract frames from video, add srt subtitles for reading, and add background audio

1. Article directory After reading this article, you will be able to learn the following: Batch video frame extraction; Add srt subtitles; Add srt dubbing; Add background music; Combine multiple video clips into a new video; Effect: 2. Install dependencies First install the video processing libraries opencv-python and moviepy. The installation method is pip install […]