Tag:local

  • Getting to know Ajax

    Time:2020-10-28

    Ajax (asynchronous JavaScript and XML) is a kind of web application technology. It can communicate with the server application asynchronously with the help of client-side script (JavaScript). After obtaining the server-side data, local refresh can be carried out. Then the response and rendering speed of data are improved. The biggest advantage of Ajax technology is […]

  • Introduction of Ajax entry Technology

    Time:2020-10-23

    What is Ajax? Ajax (asynchronous JavaScript and XML) is a kind of web application technology. It can communicate with the server application asynchronously with the help of client-side script (JavaScript). After obtaining the server-side data, local refresh can be carried out. Then the response and rendering speed of data are improved. (asynchronous request, local refresh) […]

  • IOS reads the URL image and stores it to the local instance

    Time:2020-10-20

    Examples are as follows: dispatch_queue_t globalQueue = dispatch_get_global_queue(0, 0); dispatch_async(globalQueue, ^{ NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:banarModel.avatar.url]]; UIImage *image = [UIImage imag eWithData:data ]; // get pictures //Local sandbox directory NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; //Get the path named “myimage” in the local sandbox, which is the name of the saved image NSString […]

  • Several methods for IOS to cache images locally (summary)

    Time:2020-10-19

    Caching images locally can be used in many scenarios. If only file information is stored, it is convenient to create a plist file or database to solve the problem, but it is not so convenient to store images in sandbox. Here are two ways to save pictures to sandbox. 1、 Convert the image to Base64 […]

  • On AJAX

    Time:2020-10-18

    All Ajax requests will be based on DOM (HTML element) events, through XHR (XMLHttpRequest) object to achieve asynchronous communication and local update with the serverFeatures: asynchronous request, the biggest advantage of Ajax technology is based on multi-threaded implementation of the underlying asynchronous, local refresh, it can not interfere with the process of the main thread […]

  • Filter or find sensitive words (DFA algorithm)

    Time:2020-9-28

    Just released a package of laravel filtering sensitive words. Using DFA algorithm, there may still be some imperfections. If you find something, you can point it out. Before developing the package, we learned from some previous algorithms and found some shortcomings (such as: the relationship between sensitive words and sensitive words in filtering sensitive words): […]

  • ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’

    Time:2020-9-4

    Error message: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) Causes of problems: It could be my.cnf The parameter socket of [mysqld] is set in the configuration file, but the parameter socket of [Client] is not set mysql.sock What is the purpose of the document MySQL supports socket and TCP […]

  • NPM image source

    Time:2020-9-2

    summary Common image source Official image source https://registry.npmjs.org Taobao mirror source https://registry.npm.taobao.org View image source //View current image source npm config get registry Set mirror source npm Temporary modification npm install package_name –registry https://registry.npm.taobao.org Permanent modification npm config set registry https://registry.npm.taobao.org cnpm npm install -g cnpm –registry=https://registry.npm.taobao.org Install cnpm globally and install with cnpm NRM […]

  • Delayed loading in spring boot 2.2

    Time:2020-8-27

    1. Preface As our project continues to iterateBeanThe number of will be greatly increased, and it will be very time-consuming if both are initialized at startup time.Spring BootAllows delayed initialization of the application, that is, as neededSpring Bean, not in theSpring BootCreate allBean。 This will reduce the time it takes to start the application. Lazy […]

  • JavaScript reference type

    Time:2020-8-6

    let data = { obj: { arr: [1, 2, 3] } } let arr = data.obj.arr arr.push(4) console.log(data.obj.arr) // ? arr = [] console.log(data.obj.arr) // ? Most of the time, there are obvious mistakes, such as here

  • Custom keras layer

    Time:2020-7-28

    The layer of keras is actually a class, which should have the following methods: (1) build(input_ Shape: where the weight is defined. If you don’t need to define the weight, you should also have it self.built = True; (2) Call (x): the place to write the function logic to realize the function logic of layer; (3) compute_ […]

  • Reconstruction of Visual Studio (2)

    Time:2020-7-14

    Learning website: https://docs.microsoft.com/zh-cn/visualstudio/get-started/visual-studio-ide?view=vs-2019 Demonstration vs 2019: When you change the name of the variable, the reference to the variable will also be changed. If the variable is used by reflection, you should pay attention to it. The place used by reflection will not be changed.           Fast operation and Refactoring:   […]