lavarel video project of backnet -- 1. Data migration

1, Summary One sentence summary: 1. The data migration of lavarel is relatively simple, which is to create data tables with php 2. Create migration file: PHP artican make: migration create? HD? Table -- create = HD 3. Create the migration file as a table: PHP artican migrate   1. Install barryvdh / laravel ide helper to add code prom ...

Posted by GrayFox12 on Wed, 22 Apr 2020 05:00:51 -0700

Using codemirror in vue (element) to realize code highlighting, code completion and version difference comparison

vue language is used, and component of element is used. To make an online editing code, code content is required to be input, highlighted display can be carried out, different languages can be switched, keyword completion is supported, and a code left-right comparison between different versions is required. As for why codemirror is selected, pl ...

Posted by deltatango5 on Fri, 17 Apr 2020 01:50:42 -0700

Algorithms--Sort Base

Basic sorting algorithm c++ Foundation Generate Instant Test Cases int *generateRandomArray(int n, int rangeL, int rangeR) { assert(rangeL <= rangeR); int *arr = new int[n]; srand(time(NULL)); for (int i = 0; i < n; i++) arr[i] = rand() % (rangeR - rangeL + 1) + rangeL; return ar ...

Posted by artied on Wed, 15 Apr 2020 17:55:30 -0700

shell programming alarm system

shell programming alarm system 1. Requirements: use shell to customize various personalized alarm tools, but unified management and standardized management are needed 2. Idea: specify a script package, including main program, subprogram, configuration file, mail engine, output log, etc Main program: as the entrance of the whole script, it is ...

Posted by mandred on Wed, 15 Apr 2020 12:02:31 -0700

Comparing LINUX and CORTTEX-M startup processes

1 CORTEX-M 1.1 boot program Take stm32 as an example, add an online upgrade boot program with rom address: LR_IROM1 0x08000000 0x00004000 { ; load region size_region ER_IROM1 0x08000000 0x00004000 { ; load address = execution address *.o (RESET, +First) *(InRoot$$Sections) .ANY (+RO) } RW_IRAM1 0x20000000 0x00020000 ...

Posted by emfung on Tue, 14 Apr 2020 21:54:26 -0700

Android 9.0 Launcher Workspace load

Load the Workspace entry in / packages/apps/Launcher3/src/com/android/launcher3/model/LoaderTask.java. To learn about the launch process of the Launcher app, please read this article first, https://www.jianshu.com/p/0b273112cd7e 1. The Workspace load calling process is as shown in the figure Code entry:/packages/apps/Launcher3/src/com/android/l ...

Posted by horsleyaa on Tue, 07 Apr 2020 07:37:51 -0700

Realizing the snapshot backup function of "copy on write" based on rsync and ln

1, Fundamentals Here, "copy on write" is enclosed with a quotation mark, because this is specifically for the copy on write effect when rsync backup is used, rather than the actual copy on write effect. Its purpose is as follows: After backing up the data using rsync, create a snapshot immediately: The data state of the snapsh ...

Posted by primuz on Mon, 06 Apr 2020 00:17:49 -0700

Linux command -- file

File is used to view file types. Different from Windows system, Linux system does not reflect the file type through the file name, so you need to use the file command to confirm. [admin@local ~]$ file exe exe: Bourne-Again shell script text executable As above, use the file command to view the type of exe file, whic ...

Posted by kanikilu on Sun, 05 Apr 2020 15:50:44 -0700

Introduction to the varnish foundation of WEB caching system

Previously, we talked about the cache control mechanism in http protocol and the introduction of varnish architecture components. Please refer to https://www.cnblogs.com/qiuhom-1874/p/12620538.html Today, let's talk about how to configure and use varnish; We mentioned earlier that there are two configuration files in varnish, one is / etc/varni ...

Posted by zarathu on Sat, 04 Apr 2020 17:38:21 -0700

033 remote execution command

Execute command on serverIt seems that there is no module to execute the command before. Now it is added import subprocess obj = subprocess.Popen('dir',shell=True,stdout=subprocess.PIPE) #Get an object. The command is in front, shell The script can be executed, stdout Set a process pipeline. There are actually two processes, one is the main p ...

Posted by rdog157h on Sat, 04 Apr 2020 15:55:01 -0700