Thinking and Feeling of the Third Reading of Kingfisher Network Picture Cache Library

Next we will do hard disk caching, multiple picture loading, and multi-threaded processing of multiple picture caching.This section tries to get all this done as far as possible, because it's the idea of sdwebimage, or rather the Kingfisher library by name, which doesn't have much to do with it.So finish your thoughts as soon as possible and re ...

Posted on Thu, 07 Nov 2019 09:01:40 -0500 by mxicoders

Python Basics: input and output (I/O)

To do an NLP task The steps are: 1. Read the file; 2. Remove all punctuation and line breaks, and change all uppercase to lowercase; 3. Merge the same words, count the frequency of each word, and rank them according to the word frequency; 4. Output the result to the file out.txt by line. Code: import re import os,sys # You don't ...

Posted on Tue, 05 Nov 2019 15:05:30 -0500 by bubblocity

spring framework learning

What is Spring framework Spring is a J2EE system framework based on IOC and AOP IOC Inversion Of Control is the foundation of Spring. Inversion Of Control is simply to say that the creation of objects is called by the previous programmer's own new construction method, which turns into the creation of objects by Spring; DI dependency injection, ...

Posted on Tue, 05 Nov 2019 01:40:46 -0500 by wmguk

CloseableHttpClient of http request method sent by Java

1. dependence <dependency>   <groupId>org.apache.httpcomponents</groupId>   <artifactId>httpclient</artifactId>   <version>4.5.2</version> </dependency> 2. Request steps Use the help class HttpClients to create a CloseableHttpClient object Create an HttpGet or HttpPost instance ba ...

Posted on Mon, 04 Nov 2019 13:20:31 -0500 by seavers

XXE vulnerability triggered by XML referencing external entities

Record a question first   The input in the input box is displayed in the area above. Check the background source code, there is such a fragment function XHR() { var xhr; try {xhr = new XMLHttpRequest();} catch(e) { var IEXHRVers =["Msxml3.XMLHTTP","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]; f ...

Posted on Mon, 04 Nov 2019 12:19:16 -0500 by jwadenpfuhl

Gorang as the server, C (unity) as the client, Socket communication problems

Server datalen + message ----- > packagedata ----- > network transmission ([] byte) ---- > client ----- > unpackedata ----- > datalen + message To write network program with Soket, you need to customize the protocol yourself. {len+data} len parses the length of data, and data parses the data to be transmitted Message on server ...

Posted on Mon, 04 Nov 2019 11:53:47 -0500 by fukas

Unity A * pathfinding mesh editing tool (edit in Scene view)

In the process of game development, A * algorithm is often used. After the scene is created, the walking area and non walking area need to be edited. It will be convenient to edit directly in the Unity Scene and export data files. 1 data class First, define a grid data type, define the length and width of the grid, and implement serialization ...

Posted on Mon, 04 Nov 2019 09:51:02 -0500 by madrazel

json&xml learning notes -- Java implementation of xml and json format conversion

Write before: It uses the least comprehensible method and does not represent the optimal solution or the most commonly used solution. XML to JSON: This function is more commonly used than JSON to XML. book.xml Ready, put it in the src root directory: <?xml version="1.0" encoding="UTF-8" ?> <bookstore> <book category="COOKING" ...

Posted on Sun, 03 Nov 2019 18:28:39 -0500 by dizandat

spring timing task - file upload progress bar

spring scheduled tasks Guided dependency <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz --> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.3</version> </dependency> Configure scheduled task class pac ...

Posted on Sun, 03 Nov 2019 16:10:14 -0500 by Miichael

Spring? Bean processor interface (postprocessor)

First, BeanPostProcessor interface (postprocessor) After instantiation and dependency injection of Bean object, before and after initialization of method Note that it is triggered after Bean instantiation and dependency injection Logic can be added to relevant methods according to business requirements The interface has only two methods: pos ...

Posted on Sun, 03 Nov 2019 13:38:04 -0500 by maryp