linux/window backup mysql database regularly

It is relatively simple for Linux to back up the database regularly. crontab can be used for scheduled backup. If windows is used, it may be troublesome. 1.Linux: Step 1: configure the backup directory code on the server: mkdir /var/lib/mysqlbackup cd /var/lib/mysqlbackup Step 2: write backup script code: vi dbbackup.shPaste the f ...

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

Android evokes app in many ways

Method 1 (aroused by Intent) Our own app Code: ComponentName componetName = new ComponentName( "com.lh.jimtrency.webviewdemo", "com.lh.jimtrency.webviewdemo.MainActivity"); //(package name of another application, Activity to start) Bundle bundle = new Bundle(); ArrayList<String> strings=new ArrayLis ...

Posted by kaze on Tue, 14 Jul 2020 08:49:12 -0700

Unity3D-iOS calls the native application details interface (which pops up directly in the game)

It could have been through Unity Application.OpenUrl However, there is another way above iOS6 to pop up the evaluation box in the application Then I added a function to the previous NativeShare, and it can be used. Look at the previous code here: Unity3D - Implementation of calling IOS native sharing  The first is the. h file: #import &lt ...

Posted by emmbec on Tue, 14 Jul 2020 08:40:25 -0700

Summary of Bluetooth Development Experience - Automatic Pairing

Scene: Control side - ordinary mobile phone; Controlled side - XX device (no screen, no user operation, system privileges) There are two ways to find a device when Bluetooth is on: search and specify a mac.Searching for Bluetooth devices with the search function involves the concept of "visibility". Bluetooth ...

Posted by laflair13 on Tue, 14 Jul 2020 08:33:04 -0700

Summary of Bluetooth Development Experience - Automatic Pairing

Scene: Control side - ordinary mobile phone; Controlled side - XX device (no screen, no user operation, system privileges) There are two ways to find a device when Bluetooth is on: search and specify a mac.Searching for Bluetooth devices with the search function involves the concept of "visibility". Bluetooth ...

Posted by grga on Tue, 14 Jul 2020 08:32:35 -0700

Mybatis (2) Parameters transfer

Mybatis parameter (Parameters) pass 1.. Single parameter Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.   <!-- according to id Query a record in a data table and encapsulate it User object --> <select id="selectById" resultType="com.s ...

Posted by mailtome on Tue, 14 Jul 2020 08:23:04 -0700

Single Case Mode Static Internal Class Resolves Reflection to Get Multiple Objects

First of all, there is no single pattern of hungry Han, lazy, if you need Baidu A little better than the Hungry Han style is the static inner class singleton Paste code here package com.test; public class SimpleTest { private static class SimpleNB { private static final SimpleTest INSTANCE = new SimpleTest(); } private SimpleT ...

Posted by sajlent on Tue, 14 Jul 2020 07:26:20 -0700

linux System Custom Resolution

Open the terminal and enter the following command: Step 1 xrandr Output: Virtual1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm View the currently connected display device Virtual1 2 Steps gtf 800 480 60 output # 800x480 @ 60.00 Hz (GTF) hsync: 29.82 kHz; pclk: 29.58 MHz Modeline "800x480_60. ...

Posted by casty on Mon, 13 Jul 2020 09:29:58 -0700

Android for Picture Reflection

Provides a tool class for Android image reflection effect, which is very useful. First, the previous image: 1. Ideas: Copy the original resource picture, draw the next half of the original picture, process the picture flip, create the reverse picture, synthesize the picture and use it as the canvas, draw the original picture and the ref ...

Posted by johnnycsh on Mon, 13 Jul 2020 09:27:06 -0700

Android for Picture Reflection

Provides a tool class for Android image reflection effect, which is very useful. First, the previous image: 1. Ideas: Copy the original resource picture, draw the next half of the original picture, process the picture flip, create the reverse picture, synthesize the picture and use it as the canvas, draw the original picture and the ref ...

Posted by dk44 on Mon, 13 Jul 2020 09:26:56 -0700