JS error – typeerror: XXX is not a function

In today’s work, there is a check box for the onchage event binding function that clearly has been implemented. Typeerror: XXX is not a function Typeerror: XXX is not a function Uncaught ReferenceError: AA is not defined, but the error message is different. Carefully contrasting the two errors, “is not defined” means the type is not defined. Is not a function means that the type is not of function type. After searching Baidu, it is found that some browsers can directly find the changed element through the element ID in the JS code, and then rewrite the defined function by the element in the DOM, which will lead to the error is not a function.


solution:
modify the element ID value, or modify the name of the function.
Of course, not all errors of this type are caused by this reason, and it should be analyzed on a case-by-case basis.

Python: How to Obtaining Publick IP Quickly

from urllib.request import urlopen

def get_ip(self):
  try:
    return str(urlopen('http://159.75.41.235/').read())   
  except:
    return False

print(get_ip())

Access to external network IP speed mainly depends on the server speed, this domestic than foreign those much faster
Return the sample

{"city_id":2140,"region":"China|0|Guangdong|Guangzhou|Guangdong Radio and Television","ip":"124.240.53.227"}

Cause: java.sql.SQLException: invalid column type: 1111 Error [How to Fix]

Warming: Servlet.service() for servlet [spring] in context with path [/*****] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='ENTERPRISE_NAME', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #13 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: Invalid column type: 1111] with root cause
java.sql.SQLException: Invalid column type: 1111
	at oracle.jdbc.driver.OracleStatement.getInternalType(OracleStatement.java:3978)

Screen:

When inserting the name,ENTERPRISE_NAME passes null and mybatis returns an error.
The solution is:

Summary of Python deep learning packages

Python deep learning often uses package summaries
Update history

2021/2/28

1.pytorch
Website: https://pytorch.org/
Current installed version: 1.7.1

pip install torch===1.7.1+cu110 torchvision===0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html

2. scikit-learn(sklearn)

pip install scikit-learn

Current version: 0.24.1
3.pandas

pip install pandas

Current version: 1.2.2
Installing Pandas will install Numpy
4.numpy

pip install numpy

Current version: 1.20.1

Previous installers of PyTorch did not use the latest Numpy. 1.16.6 does.
But now the latest version does.

5.matplotlib

pip install matplotlib

Current version: 3.3.4
6 tensorflow 1.15

pip install tensorflow==1.15 -i http://pypi.douban.com/simple/

Less use of
1.networkx
NetworkX is a Python package for building and manipulating complex graph structures and providing algorithms for analyzing graphs.

pip install networkx

Current version: 2.5

Assign the intersection combination of two linked lists to linked list a

typedef struct node
{
    int data;
    struct node *next;
} LNode, *LinkList;

LinkList Unions(LinkList la, LinkList lb)
{
    LNode *p, *q, *w, *u;
    p = la->next;
    q = lb->next;
    w = la;
    while (p && q)
    {
        if (p->data == q->data)
        {
            w->next = p;
            w = w->next;
            p = p->next;
            u = q;
            q = q->next;
            free(u);
        }
        else if (p->data < q->data)
        {
            u = p;
            p = p->next;
            free(u);
        }
        else
        {
            u = q;
            q = q->next;
            free(q);
        }
    }
    if (q)
    {
        p = q;
    }
    while (q)
    {
        u = q;
        q = q->next;
        free(u);
    }
    w->next = NULL;
    free(lb);
    return la;
}