Tag: add
-
Post Views: 32 1. Now in the addition|editing page of an article, the cover image of the article is realized by uploading the image by calling the interface image/upload. ID Write to the cover_image_id of the article table. as shown in Figure 1 2. Now it is planned to implement a picture management, and I also hope that the image/upload…
-
Post Views: 21 1. Reference:In Laravel 6, during the execution of the queue, the execution of each task will execute view::addLocation($location); however, each task will only take the $location of the first task. . However, it is found that there are still problems in the subsequent production environment. During queue execution, some view files are not executed (“Setting_Migrations”:[]). as shown…
-
Post Views: 21 1. TortoiseGit detects that the file does not exist, but has been temporarily stored as “Add” or “Modify” in “Index”. The Submit dialog box cannot be handled. Do you want to recover or delete it from the index? Recover this file from the index (E) Remove this file (R) from the index and ignore it. as shown…
-
Post Views: 16 1. In Windows 10, Git 2.34, and TortoiseGit 2.13, after the directory is renamed (the lowercase letters are changed to uppercase letters), there is no change when submitting. as shown in Figure 1 2. Manually rename it to small letters first, enter the directory after renaming, right-click – change the name, and then modify it to uppercase.…
-
Post Views: 16 1. In the past few days, an interview question during the computer test, design a high-precision addition function, which supports the addition of long numbers without losing the accuracy, and ignores negative numbers (please do not use BCADD and other built-in functions). 2. Check php official website, bcadd – the addition calculation of two arbitrary precision numbers.…
-
Post Views: 16 1. Reference URL:https://www.shuijingwanwq.com/en/2021/04/15/10238/. Updating Yii 2 to the latest version based on Composer, upgrade the Yii Framework from version 2.0.35 to 2.0.41.1. ./yii has no output. as shown in Figure 1 2. ./yii has the normal output of output. as shown in Figure 2 3. Edit the ./yii file, there is an output: 0. as shown in…
-
Post Views: 49 1. Build an image in Jenkins and report an error: Error Processing tar file(exit status 1): unexpected EOF. as shown in Figure 1 2. Check the Dockerfile, it should be that the number of the add command is too many, which leads to insufficient space. Reference URL: https://stackoverflow.com/questions/42784396/docker-e rror-error-processing-tar-fileexit-status-1-unexpected-eof . as shown in Figure 2 3. Cut…
-
Post Views: 11 1. Table name: CPA_CHANNEL_APP_SOURCE design, table prefix: CPA_, as shown in Figure 1 2. View command: yii migrate/create help documentation 3. Add field. If the migrated name follows the format of add_xxx_to_yyy, the generated class file will contain the necessary addColumn and dropColumn. You can specify multiple fields like this: yii migrate/create add_xxx_column_yyy_column_to_zzz_table –fields=”xxx:integer,yyy:text”. as shown in…