Category: Programming Language
-
Post Views: 17 1. Reference:https://www.shuijingwanwq.com/en/2022/12/13/9977/. Run .sh or shell script files using WSL in Windows 10. Ultimately not realized. 2. Reference:https://www.shuijingwanwq.com/en/2021/12/23/9949/, to step 7 3. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 4. Ubuntu will mount or provide all Windows directories under /mnt. Hence the C…
-
Post Views: 86 1. Enable WSL, refer to: https://www.shuijingwanwq.com/en/2021/12/23/9949/ , execute to step 5 3, the existing test.sh file, the code is as follows 4. Run Windows Terminal as an administrator and execute the command: bash test.sh . run successfully. as shown in Figure 1 5. The existing Themes.sh file, the code is as follows 6. Error at runtime: syntax…
-
Post Views: 16 1. When starting Vagrant, an error is reported: D:/Program files/hashicorp/vagrant/embedded/mingw64/lib/ruby/2.7.0/psych.rb:456:in `parse: (): found a tab character that violates indentation while scanning a plain scalar at line 10 Column 7 (psych::SyntaxError). as shown in Figure 1 2. View the file ~/homestead/homestead.yaml in phpstorm, and find a red wavy line prompt. The reason may be that it has been…
-
Post Views: 19 1. Error in PHP 7.4: Array to String Conversion. as shown in Figure 1 2. Check the second line of the error file, the code is as follows. as shown in Figure 2 3. Decide to debug online, and decide to print this variable according to the array format 4. When echo, its parameters are cast to…
-
Post Views: 16 1. Reference:https://www.shuijingwanwq.com/2022/11/02/7121/. Now, due to the existence of some special version numbers, it does not meet the specification of semantic 2.0. The final requirements are as follows: v2.0.0 < v2.0.0-h.1 2. Implement v2.0.0 < v2.0.0-h.1, after executing version_compare, the result is: bool(false), that is, v2.0.0 is not less than v2.0.0-h.1. 3. The existing code is implemented as…
-
Post Views: 19 1. Reference: In Linux and Laravel 6, the task queue is always running for troubleshooting and analysis (timeout time has been set):https://www.shuijingwanwq.com/2022/11/10/7139/. The previous reason was that the command line did not return 1 when Artisan::Call was executed, which caused the judgment to be invalid. 2. But after the solution, the task queue has been running again…
-
Post Views: 21 1. Existing code implementation 2. The final generated structure is as follows, which is an array with the field name: SETTING_MIGRATIONS 3. Decide to adjust the name of the adjustment field as extra, and include the value of the setting_migrations field. The code is adjusted as follows, based on the helper function ar. 4. The final generated…
-
Post Views: 15 1. The existing PHP code is implemented as follows 2. Open:https://regex101.com/, the matching is successful, and the result is as follows. as shown in Figure 1 3. Now expect that internal://all_collections/ can also match. Tip: Your regex doesn’t match the theme string. as shown in Figure 2 4. Characters with special meanings in regular expressions are called…
-
Post Views: 19 1. The code is as follows, set the value in the json field of mysql, and report an error: unsupported opera and types . as shown in Figure 1 2. The adjustment code is as follows 3. Implement a new JSON to the field when there is a value in the JSON field. The structure of the…