Tag:Syntax error

  • Centos7 uses systemctl to list the services that failed to start

    Time:2021-9-17

    This tutorial describes how to use the systemctl tool to list the services managed by SYSTEMd that failed to startList services that failed to start[[email protected] ~]# systemctl list-units –state failed UNIT LOAD ACTIVE SUB DESCRIPTION● httpd.service loaded failed failed The Apache HTTP Server LOAD = Reflects whether the unit definition was properly loaded.ACTIVE = The […]

  • Character encoding in MySQL

    Time:2021-8-24

    Character encoding problem in MySQL When writing back-end services to insert data into mysql, errors are always reported due to character coding. Please sort it out. View encoding View database encoding show variables like ‘%char%’; View table code Show create table < table name >; View field code Show full columns from < table name […]

  • PHP error reporting

    Time:2021-7-26

    What kinds of error tips does PHP have 1. Notice: Note2. Warning: warning3. Error: error 1. Note that these are relatively small and not serious errors, such as accessing an undefined variable. Usually, such errors are not prompted to the user, but sometimes these errors will affect the running results. 2. Warnings: This is a […]

  • Using systemctl in centos7 to list services that failed to start

    Time:2021-7-1

    This tutorial describes how to use the systemctl tool to list the services managed by SYSTEMd that failed to startList the services that failed to start[[email protected] ~]# systemctl list-units –state failed UNIT LOAD ACTIVE SUB DESCRIPTION● httpd.service loaded failed failed The Apache HTTP Server LOAD = Reflects whether the unit definition was properly loaded.ACTIVE = […]

  • PHP Stan, a static analysis tool for PHP code

    Time:2021-6-7

    Recently, I found that the running results of PHP code I wrote are always different from what I expected. When checking, I found that most of them are syntax errors, and the errors have been planted before running. Maybe it’s my own carelessness, orphp -lDetection is too simple, but there are some syntax errors buried […]

  • How to build the front end abnormal monitoring system

    Time:2021-5-29

    What is an exception It means that users cannot get the expected results when using the application. Different anomalies have different degrees of consequences, which may cause users’ displeasure, or even the product can not be used, so that users lose their recognition of the product. Why handle exceptions Enhance user experience Remote location problem […]

  • Redis basic business

    Time:2021-4-10

    If redis needs to execute a set of commands, in order to maintain the consistency and continuity of data, it needs to use transaction. In this paper, some simple examples are given to briefly describe the content related to redis transaction, which is only for learning and sharing. If there are any shortcomings, please correct […]

  • Python exception handling

    Time:2021-3-3

    Distinguish exception from syntax error When writing Python programs, errors are often reported. There are usually two kinds of errors: Syntax error:Some grammatical errors are exceptions Exception syntax error Syntax error, also known as parsing error, is one of the most common errors In [1]: while True print(‘Hello!’) File “<ipython-input-1-5c66e4fd0ae9>”, line 1 while True print(‘Hello!’) […]

  • Knowledge sharing: 1 = 1 after where condition in SQL statement is

    Time:2021-2-24

      This code should be generated by the program. The condition after 1 = 1 in the where condition is dynamically changed through the if block. For example:   String sql=”select * from table_name  where 1=1″; if( conditon 1) {   sql=sql+”  and  var2=value2″; } if(conditon 2) {   sql=sql+”  and var3=value3″; } Where 1 […]

  • Problems with mobx

    Time:2021-2-23

    React project using mobx Picture prompt, Compile failure, tell the problem, brother, syntax error. To translate the second line of error is actually a problem of positioning. But I’m always in a hurry. I always like to take it with me and solve it at a glance. If I can’t solve it, I won’t go […]

  • Avoided redundant navigation to current location

    Time:2021-2-18

    This error is encountered in the Vue project, which does not affect the function, but the console will report this error when pushing: vue-router.esm.js?fe87:1958 Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/Home”. After searching online for a long time, almost all of them said that there was a problem with the version […]

  • With (nolock) cannot be used in CLR table valued function in SQL Server

    Time:2021-1-8

    staySQL ServerCommon table valued functions(table-valued function)Yes, you can use table tips(Hints-Table)Yes, thenCLRTable valued functions of type(table-valued function)Can table prompts also be used(Hints-Table)What about it? I believe many people have not paid attention to this problem.   Next, I’ll takeYourSQLDbaReady made inCLRTable valued functions to illustrate this problem. If you have a customCLRTable valued function, you […]