Android login registration interface add video background method (simple version)

Describes how to add a video background to the interface found on the Internet, which mimics keep 1. First add the raw folder under the res folder and copy in the video you want to use 2. Add video_under the layout folderBackground.xmlLayout, add Videview control inside layout 3. Change AndroidManifest.xml Content removes Bar from the disp ...

Posted by GrayFox12 on Thu, 16 Jul 2020 08:04:36 -0700

Gets the longest or shortest length of an element in a string array

There is a string array below: string[] elements = {"adsf","etwert" ,"asdfasd","gs"}; The requirement is to get the longest or shortest length of the element.You can create an object in your program that has two attribute element values and element lengths:   class Class6 { private string _ElementValue; pub ...

Posted by lordtrini on Thu, 16 Jul 2020 07:35:02 -0700

Task Schedule crontab

crontab command -u: Specify a user, the current user without the -u option -e: Develop planned tasks -l: List scheduled tasks -r: Delete scheduled tasks View the configuration file for crontab: [root@localhost ~]# cat /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details ...

Posted by frikikip on Thu, 16 Jul 2020 07:27:41 -0700

vue loop resolving, custom filter, avoid flickering

* vue version 1.0 Repeated resolution of vue loop data v-for specifies that duplicate data will be deleted if duplicate data occurs during looping. vue1.0: Just add track-by="$index" <li v-for='value in arr'track-ty='$index'></li>where V-for loop goes vue2.0+: need to get index on v-for, for example: <li v-for='(val ...

Posted by sgtpepper on Thu, 16 Jul 2020 07:21:59 -0700

Use constants for Masonry learning

Code using constants is simpler: - (id)init { self = [super init]; if (!self) return nil; UIView *purpleView = UIView.new; purpleView.backgroundColor = UIColor.purpleColor; purpleView.layer.borderColor = UIColor.blackColor.CGColor; purpleView.layer.borderWidth = 2; [self addSubview:purple ...

Posted by seeker2921 on Wed, 15 Jul 2020 09:21:28 -0700

Android Start Page Advertising

1. Preface In the development of Android projects, there is often a need to launch page ads.Today I'll start the implementation of page advertisement in order to use it for reference in future projects. 2. Overview Ideas for implementation: 1. During the initialization phase of the startup page, access the back-en ...

Posted by cowboysdude on Wed, 15 Jul 2020 09:12:34 -0700

phpmyadmin connects databases on multiple servers at the same time

1. Scenarios for use In general, there are test environments and formal environments for our development.Of course, databases are also separate.If you could use phpmyadmin to directly access mysql on both servers.This is the need. 2. Solutions 1. Find under the phpmyadmin folderConfig.sample.inc.php, renamedConfig.inc.php. 2. OpenConfig. ...

Posted by jpaloyo on Wed, 15 Jul 2020 08:48:28 -0700

android exceptions collect error information and save it to the crash folder

Save the log file to the sdcard, directory: crash folder under the sdcard root directory First, set permissions, no permissions to the final effect <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...

Posted by falcon1 on Wed, 15 Jul 2020 08:11:06 -0700

C#Weighting ListBox

First, for an item contained in a listBox, assume that the listBox has duplicate data and can use this function to remove duplicate data ///<summary> // listBox has its own weighting /// </summary> /// <param name="listBox">Weight Removal Required ListBox</param> ...

Posted by allydm on Wed, 15 Jul 2020 08:02:34 -0700

java Snake Skin Multithreading (Final Chapter)

Multithreaded synchronization Take a bank for example public class ThreadTest13 { public static void main(String[] args) { Account account=new Account("Call me God O(∩_∩)O",5000); Thread t1=new Thread(new Processor(account)); Thread t2=new Thread(new Processor(account)); t1.start(); t2.start(); } } //Threads for withdrawal ...

Posted by r3drain on Tue, 14 Jul 2020 09:18:05 -0700