How to use Python to crawl small game websites and collect favorite games (with source code)

    Introduction: Python is a simple, easy to learn and powerful programming language. Without tedious configuration, master the basic syntax and understand the basic library functions, you can write your own programs by calling a large number of existing toolkits, easily realize batch automatic operation, and greatly improve the efficiency o ...

Posted on Mon, 11 May 2020 02:49:10 -0700 by Tea_J

SLF4J source code analysis

Ask questions Before reading the source code, first of all, ask a few questions How SLF4J integrates different log frameworks Why there is only one binding of log frame in Class Path In your code, in addition to slf4j-api-1.8.0-beta2.jar, you simply drop one and only one binding of your choice on the appropriate cl ...

Posted on Mon, 11 May 2020 02:29:08 -0700 by Jack McSlay

(Python Basic Tutorial XIII) Examples of using httplib2-HTTP GET and POST in Python

Learn to use Python httplib2 Modular.Hypertext Transfer Protocol (HTTP) is an application protocol for distributed, collaborative, and hypermedia information systems.HTTP is the basis for data communication on the World Wide Web. The Python httplib2 module provides methods for accessing Web resources over HTTP.It supports many functions, such a ...

Posted on Sun, 10 May 2020 18:23:24 -0700 by shamsuljewel

One Day Mode - Adapter Mode

1. The concept of adapter mode Converts one interface into another that the client expects, enabling incompatible classes of the interface to work together, aliased as Wrapper. 2. When to use adapter mode Common examples are: We use 220V for daily use, and generally 5V for mobile phone charging. It is not possible to charge 220V direc ...

Posted on Sun, 10 May 2020 11:32:28 -0700 by TGLMan

Modularization with requirejs programming

download Command line download: bower install requirejs or npm install requirejs Download and click on official website Download requirejs Main methods define definition module require load module Case 1 directory structure index.html main.js scripts apple.js student.js index.html section <!DOCT ...

Posted on Sun, 10 May 2020 08:40:54 -0700 by meepokman

Design a general log audit scheme

1. Demand 1. Record detailed log information with the least code and without changing the business logic code 2. Support log output in file form or database storage, and switch flexibly through configuration file. 2. Implementation To achieve this, annotation and aop must be used to intercept and record logs, so as to minimize changes to b ...

Posted on Sun, 10 May 2020 07:46:16 -0700 by azul85

Java compress / obfuscate JavaScript code

Basically, they are all tools written by themselves to build front-end projects, and tools to compress / obfuscate JavaScript code are essential. We are Java platform, that is to say, using java to compress JS is more convenient. Although we can call special front-end building tools such as node externally, it's not easy. It can be done in the ...

Posted on Sun, 10 May 2020 04:54:43 -0700 by daijames

Only these three steps are needed, and image recognition can be realized with Java

Recently, I have studied how to simulate the behavior of browser with Java at my leisure. I encountered the problem of ID code when I logged in the experiment. So I searched for the image ID code about Java on the Internet. Because the relevant articles searched on the Internet are not suitable for my configuration, so I opened this blog to re ...

Posted on Sun, 10 May 2020 02:52:06 -0700 by livepjam

Remember a type conversion problem when using enumeration type in Mybatis Plus

Please refer to official documents for specific basic use methods: https://mp.baomidou.com/guide/enum.html , here just want to list some problems encountered and solutions. The mp version used in my system is 3.0.6 (easier to use after 3.1.0). I use two enumeration types AuditMethodEnum and enablestateenum in an entity object. The code is as fo ...

Posted on Sat, 09 May 2020 09:15:25 -0700 by shehroz

Django Configure a separate domain name for each App

Environment: Python 3.8.1 + Django 2.2.12 To integrate process specifications, integrated projects including task, doc, sso are deployed. Approximate directory structure: CellMiddle -- Project Root Directory - task - demand system │ ├─migrations │ ├─static │ └─templates - logs - Log directory -doc - Document System │ ├─data │ ├─migrat ...

Posted on Fri, 08 May 2020 10:54:19 -0700 by leegreaves