Tag:Matters needing attention

  • Provideplugin of practical webpack plug-ins

    Time:2021-11-4

    The overall introduction of modern front-end is a very interesting thing.Let’s take a look at the following scenarios: In webpack, we can define a higher-level directory as a user-defined variable in resolve’s alias. for exampleresolve: { alias: { ‘@’: path.join(__dirname, ‘..’, ‘src’) }}。 In webpack, we can also distinguish configuration files according to environment variables […]

  • Installing java development tools under CentOS (3) — MySQL

    Time:2021-10-24

    Install MySQL Upload mysql-server-5.5.48-1.linux2.6.x8664.rpm to Linux Decompress the TA package to get a lot of RPM filestar -xvf MySQL-5.6.25-1.el6.x86_64.rpm-bundle.tar MySQL-client-5.6.25-1.el6.x86_64.rpm MySQL-devel-5.6.25-1.el6.x86_64.rpm MySQL-embedded-5.6.25-1.el6.x86_64.rpm MySQL-server-5.6.25-1.el6.x86_64.rpm MySQL-shared-5.6.25-1.el6.x86_64.rpm MySQL-shared-compat-5.6.25-1.el6.x86_64.rpm MySQL-test-5.6.25-1.el6.x86_64.rpm RPM install MySQL serverrpm -ivh MySQL-server-5.6.25-1.el6.x86_64.rpm An error occurredfile /usr/share/mysql/charsets/cp1256.xml from install of MySQL-server-5.6.25-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64 Uninstall mariadb-libs-1: 5.5.56-2.el7.x86_ 64 resolving dependencies rpm -e –nodeps […]

  • General contents of GIT operation manual

    Time:2021-10-12

    catalogue Overall framework If you don’t understand anything, this is git’s Wikipedia The leader said I commit too much Git tag is a milestone in time How to rollback without error To tell you the truth, I was stunned when I first heard rebase I heard cherry picking is a must for an interview? Precautions […]

  • MySQL records all executed SQL statements

    Time:2021-9-26

    method Check whether the log is openshow variables where Variable_name=”general_log”; If the result isOFF, then runset global general_log=on; View log locationshow variables where Variable_name=”general_log_file”; matters needing attention All SQL will be recorded. It is recommended to open it only during debugging and close it after debuggingset global general_log=off; This work adoptsCC agreement, reprint must indicate […]

  • Image edge shadow in blog

    Time:2021-9-8

    Image edge shadow problem The code effect comparison is shown in the following figure: The specific code is shown in the figure below: Blog notes This work adoptsCC agreement, reprint must indicate the author and the link to this article Hacking

  • How to maintain the computer when it is not used for a long time precautions for not using the computer for a long time

    Time:2021-8-31

    I believe many children have not used the computer at home for a long time. They don’t use the computer for a long time, but they are worried that there will be problems with the computer. They don’t know how often the computer needs to be maintained, nor how to protect it if they don’t […]

  • Pychart connects to MySQL

    Time:2021-8-27

    Pychart connects to MySQL Note: the database needs to be created in advance 1、 Django connection database 1. First, configure relevant parameters in the settings.py configuration file DATABASES = { ‘default’: { ‘engine’: ‘Django. DB. Backends. MySQL’ # database type ‘name’: ‘data’, # database name ‘HOST’: ‘127.0.0.1’, ‘PORT’: 3306, ‘user’:’root ‘, # database account ‘password’: […]

  • Kafka0.8 consumer examples

    Time:2021-8-10

    order Here is a brief demonstration of how to use kafka0.8 client to consume a topic. maven <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.8.2.2</version> </dependency> Initialize client Properties props = new Properties(); props.put(“zookeeper.connect”, zk); // props.put(“auto.offset.reset”,”smallest”); props.put(“group.id”,group); props.put(“zookeeper.session.timeout.ms”, “10000”); props.put(“zookeeper.sync.time.ms”, “2000”); props.put(“auto.commit.interval.ms”, “10000”); props.put(“consumer.timeout.ms”,”10000″); // Set the timeout of hasnext of consumeristator. If it is not set, it […]

  • When the height of anti table head is uncertain, the height of table scroll y is calculated dynamically when the screen is full.

    Time:2021-7-20

    The project needs a full screen table, but in different resolutions of the screen, the text inside the table head will appear newline, resulting in the height of the table beyond the screen. In order to solve this problem, we need to obtain the height of table head dynamically. Solutions and precautions: 1. First, the […]

  • Fgetcsv resolves that the end of read is “\ \ R”

    Time:2021-3-24

    ini_set(“auto_detect_line_endings”, true); Record this configuration. Fgetcsv solves the problem of “R” at the end of reading PHP documents have such notesSpecific PHP documentswww.php.net/manual/en/function.fge… This work adoptsCC agreementReprint must indicate the author and the link of this article The sun is always behind the storm~

  • The use of scanf() and some points for attention

    Time:2021-2-21

    Compared with Java keyboard input, C language scanf has some details that need to be paid attention to. In order to avoid stepping on the pit when using, let’s take a look at scanf. Scanf() is a format input function of C language, which is declared in stdio. H header file just like printf function […]

  • SQL programming sub query and precautions

    Time:2021-2-12

    When a query is a condition of another query, it is called a subquery. Subquery can use several simple commands to construct powerful compound commands. Subqueries are most commonly used in the where clause of the select-sql command. A subquery is a select statement, nested in a select, select… Into, insert… Into, delete, or update […]