Tag:Terms of settlement

  • Filename too long error encountered while git clone

    Time:2021-10-14

    When performing git clone on some warehouses, the error prompt of filename too long is encountered. The error prompt is shown in the figure below: There are some solutions: There are some solutions: Run the following command in Git bash to modify the GIT configuration globally: git config –system core.longpaths true After the above error […]

  • Install the lamp environment under Ubuntu 14.04, and install PHP 5.6 and Apache 2.4

    Time:2021-10-10

    Install Apache Under Ubuntu 14.04, many functions are included in the apache2 package. We don’t distinguish between MPM work, MPM prefork, MPM event and other packages, so we can directly install apache2 ### sudo apt-get install apache2 -y Note: the – y here is for the convenience of installation. In addition, it does not need […]

  • Xcrun: error: invalid active developer path for Mac using Git

    Time:2021-9-30

    There was a problem using the GIT clone project today ➜ github git clone https://github.com/Easy-MJ/mj-fe-note.git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun terms of settlement: ➜ github xcode-select –install xcode-select: note: install requested for command line developer tools After installation, use git again, OK ~

  • WSL2 bug

    Time:2021-9-29

    Error phenomenon Stdout: Stderr: 2020/05/27 20:01:37 resolving /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso… Error: mounting wslCLIDest: stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory 2020/05/27 20:01:37 stat /mnt/host/c/Program Files/Docker/Docker/resources/wsl/docker-wsl-cli.iso: no such file or directory mounting wslCLIDest main.doRun /go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:224 main.run.func1 /go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:83 github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).execute /go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:838 github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).ExecuteC /go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:943 github.com/docker/pinata/vendor/github.com/spf13/cobra.(*Command).Execute /go/src/github.com/docker/pinata/vendor/github.com/spf13/cobra/command.go:883 main.main /go/src/github.com/docker/pinata/linuxkit/pkg/wsl-bootstrap/main.go:25 runtime.main /usr/local/go/src/runtime/proc.go:203 runtime.goexit /usr/local/go/src/runtime/asm_amd64.s:1373` Error reason Wsl2 itself is a bug. […]

  • Get request using Axios in Vue fails to deliver object – problem and solution

    Time:2021-9-29

    Get request Problem description Using get to pass objects will be automatically converted to string form terms of settlement Download QS from the project root directory npm i qs introduce import qs from “qs” use axios({ URL: “interface”, method: “get”, params: { Data: this.data, // passed object }, paramsSerializer: function (params) { return qs.stringify(params, { […]

  • Service splitting principles and difficulties

    Time:2021-9-28

    Service splitting principle There are many principles. Here are two common ones Single responsibility (SRP) There should be only one reason to change a class.If a class carries multiple responsibilities, the class will be very unstable.Under the microservice architecture, small, cohesive and single responsibility services should be designed, which will greatly improve the stability of […]

  • Unsafe collection and its solution

    Time:2021-9-21

    List is not safe package com.hudu.demo01.unsafe; import java.util.*; import java.util.concurrent.CopyOnWriteArrayList; //Java.util.concurrentmodificationexception concurrent modification exception public class ListTest { public static void main(String[] args) { // List<String> list = Arrays.asList(“1”, “2”, “3”); // list.forEach(System.out::println); //And sending ArrayList is not safe /** *Solution * 1、Vector<String> list2 = new Vector<>(); * 2、List<String> list3 = Collections.synchronizedList(new ArrayList<>()); * 3、List<String> […]

  • Vue uses the TinyMCE console to report resource interpreted as stylesheet but

    Time:2021-9-14

    Vue uses the TinyMCE console to report resource interpreted as stylesheet but transferred with MIME type text / HTML, causing the editor not to display set upskin_urlSpecify CSS path: { … language: ‘zh_CN’, skin_url: ‘/src/assets/tinymce/skins/ui/oxide’, … } But the console prompts: Resource interpreted as Stylesheet but transferred with MIME type text/html: “http://localhost:8080/src/assets/tinymce/skins/ui/oxide/skin.min.css”. Resource interpreted as […]

  • IE8 compatibility record

    Time:2021-9-13

    1 preamble PS: the fourth section describes the problems and solutions I encountered. Those who are not interested in the front can jump there directlyDuring the progress of the project, the original normal display shows many exceptions in the win7 system. The reason is that the IE version of win7 is IE8, while the commonly […]

  • Ubuntu 16.04 lts server manually upgrades MariaDB to the latest version 10.2

    Time:2021-9-13

    Ubuntu 16.04 lts server manually upgrades MariaDB to the latest version 10.2 1. Causes Recently, due to the data problem of different software, it was just some small things, which made it more and more troublesome. During this period, there was such a demand, but I didn’t see any Chinese resources, so I specially recorded […]

  • Mac M1 (ARM) NPM install error handling

    Time:2021-9-11

    Problem: when front end engineering runs NPM install on M1 processor, an error is reported: 2 warnings generated. npm ERR! In file included from ../src/libsass/src/to_c.cpp:3: npm ERR! ../src/libsass/src/ast.hpp:1614:25: warning: loop variable ‘numerator’ creates a copy from type ‘const std::__1::basic_string<char>’ [-Wrange-loop-construct] npm ERR! for (const auto numerator : numerators) The reason is that node sass does […]

  • Core knowledge of C + + 11-17 template (XII) — template parameters of template

    Time:2021-9-10

    concept give an example Template template argument matching Solution 1 Solution 2 concept The parameter of a template is the template type. give an example In the core knowledge of C + + 11-17 template (II) – class template, if we want to allow us to specify the container for storing stack elements, we do […]