Tag:rename

  • What is executable jar / Uber jar / shade jar / shadow jar / fat jar?

    Time:2021-2-23

    In Java, if you want to run a java program, you need a jar package or class file containing the main method class, and then execute the command #Run a class file java $class #Run a java package (main class specified in manifest) java -jar $jarfile #Run the main method of a class, and add […]

  • Using MMV command to batch modify file name

    Time:2021-2-13

    stayLinuxUsing MV incommandYou can rename or move files and directories, but it does not support renaming multiple files at once. This paper introduces the use of MMV, using wildcard mode to move / copy / append / link multiple files Environmental Science Centos7.7 Install MMV By default, there is no MMV installation package in the […]

  • Package of pit APK after Android studio 3.6 upgrade

    Time:2021-2-12

    Some time ago, I tried the latest version of Android studio 3.6. Overall, compared with the built-in virtual machine, gradle debugging has a better experience in the historical version. There happened to be a new project, so I directly used the latest version. In addition to maintaining the original interface style, the new version mainly […]

  • C array type syntax summary

    Time:2021-2-1

    Summary of array type syntax Distinguish between array pointer and pointer array Array pointerIs a pointer that only corresponds to an array of types.Pointer arrayIs an array in which each element is a pointer Array pointerFollow the pointer algorithm.Pointer arrayC language array has a variety of features Array type rename C passedtypedefIs an array typerename […]

  • Windows-server-2012 installing nginx service starts automatically

    Time:2021-1-24

    1. Download nginx1.1 mainline version or stable version2. Download winswDownload winsw2.1 rename winsw-2.2.0- bin.exe (user defined name, use nginx here)- service.exe (for example)2.2 adding an XML file must have the same name as an EXE file <?xml version=”1.0″ encoding=”UTF-8″ ?> <service> <id>nginx</id> <name>nginx</name> <description>Nginx Startup</description> <logpath>C:/Program Files/nginx-1.17.7/logs/winsw</logpath> <logmode>roll</logmode> <executable>C:/Program Files/nginx-1.17.7/nginx.exe</executable> <startargument>-p</startargument> <startargument>C:/Program Files/nginx-1.17.7</startargument> <stopargument>-p</stopargument> <stopargument>C:/Program […]

  • Solution to the problem of “the container name” / xxx “is already in use by container xxxxxxxxx…” when creating a new docker container

    Time:2021-1-11

    Solution to the problem of “the container name” / xxx “is already in use by container xxxxxxxxx…” when creating a new docker container 1. Detailed error prompt: /usr/bin/docker-current: Error response from daemon: Conflict. The container name “/rabbitmq” is already in use by container 8278c2b3d8ded022cf2baa3e0c41c339733331cd6e5b21720bc5db10d8afe7a. You have to remove (or rename) that container to be able […]

  • Specific use of golang import

    Time:2021-1-6

      When using gopath, the general reference starts from the next layer of SRC, such as Src/ github.com/ … , reference github.com … My project SRC/ xxx.com/go -qb/… , reference xxx.com/go -qb/… The full name of modgobit is automatically downloaded to the path github.com … My project starts from the next layer of mod folder, […]

  • Electron + Vue builds a local file translator from scratch

    Time:2020-12-19

    Another happy weekend is coming. When I came home with a brisk pace and ready to embrace my girlfriend, I found that she was sad and looked at a pile of English folders on the computer, sighing and murmuring: “I’m so tired.”. So, I came close to see a pile of English folders on her […]

  • CDH Hadoop and spark suite installation

    Time:2020-12-16

    1. Unzip JDBC and copy to CM directory tar -zxvf mysql-connector-java-5.1.43.tar.gz cp /opt/mysql-connector-java-5.1.43/mysql-connector-java-5.1.43-bin.jar /opt/cm-5.10.0/share/cmf/lib/ 2. Initialize CM5 database /opt/cm-5.10.0/share/cmf/schema/scm_prepare_database.sh mysql cm -hlocalhost -uroot -p123456 –scm-host localhost scm scm scm 3. Configure the server_ Host and copy vim /opt/cm-5.10.0/etc/cloudera-scm-agent/config.ini Note: insideserver_hostIt must be assigned to the name of the host, such asserver_host=spark001 scp -r /opt/cm-5.10.0 [email protected]:/opt/ […]

  • Third party library conflict

    Time:2020-12-14

    duplicate symbol error Scene retelling The third party of marqueelabel is used in the project. Now when integrating navigation functions, we find that libbaidu navisdk. A is also useful for marqueelabel, but it is changed to bnmarqueelabel Different files, forget to handle global variables, resulting in symbol conflict Now, if other third-party files used in […]

  • Use MMV command to modify file name in batch

    Time:2020-12-9

    stayLinuxMV is used incommandYou can rename or move files and directories, but it does not support renaming multiple files at a time. This paper introduces the use of MMV, using the wildcard pattern to move / copy / append / link multiple files Environmental Science Centos7.7 Installation of MMV By default, there is no MMV […]

  • Use PHP to realize PDF quickly

    Time:2020-11-16

    When we develop large PHP applications, we usually need to generate some PDF files. With dompdf library, we can simply render HTML layout as PDF file. Through dompdf library, we can write external style sheet, inline style label, font size, font color, etc. Dompdf will help customize PDF files. Step 1: installation and setup In […]