Encapsulation of applet request

File First, you need to encapsulate a request, know the required parameters, and how to call it. The important parameters in the request are url data (the default request method here is post) Chain operation in the way of promise First step Build a file api.js of a common function Create a function myRequest and two parameter ...

Added by znouza on Sat, 30 Nov 2019 17:26:41 +0200

Shake sharing and authorization

Preparation Register for appkeyIntegrated sharesdk (download address)Xcode configuration: urlScheme is the registered appkey, white list: douyinsharesdk, douyinopensdkBusiness code Initialization import <ShareSDK/ShareSDK.h> [ShareSDK registPlatforms:^(SSDKRegister *platformsRegister) { //Jitter [platformsRegister setupDouyinByAppKey:@"ap ...

Added by dennyx on Sat, 30 Nov 2019 11:21:00 +0200

Modify permissions, users and groups of / var/log/messages under SUSE

It was originally modified with chown / chmod, but it was restored to its original shape after a day It is found that logrotate is the program that will modify the log every day when dumping it. Check the configuration file /var/log/messages {     compress     dateext     maxage 365     rotate 99     missingok     notifempty     size +4096k   ...

Added by Xadian on Fri, 29 Nov 2019 22:28:11 +0200

docker manually configure the network

Create a container without network configuration [root@localhost ~]# docker run -i -t --rm --net=none alpine sh / # Open another terminalView container id [root@localhost ~]# docker ps -a Find process id [root@localhost ~]# docker inspect -f '{{.State.Pid}}' 2aefc41dbdeb 9076 [root@localhost ~]# pid=9076 Create namespace [root@localhost ~] ...

Added by windyweather on Fri, 29 Nov 2019 21:48:49 +0200

Python crawls 478.58 million comments from cat's eye movie "flying life" and makes data analysis

Preface The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: Yura doesn't say data, PYuraL PS: if you need Python learning materials, you can cl ...

Added by feign3 on Thu, 28 Nov 2019 10:43:41 +0200

Java learning notes network programming using Socket transfer file CS mode

Simple understanding of Socket Socket is a connection oriented communication protocol. Socket application is a C/S (Client / Server) structured application Socket is the end point of communication between two machines. Socket is a two-way communication endpoint connecting two programs running on the network. Socket communication principle T ...

Added by Space Cowboy on Wed, 27 Nov 2019 20:30:58 +0200

Multitask usage mode

Single task only Global resource loading (initialization), public resource destruction in multitasking // Initialization work // 1. Through init method, it is only executed once, but cannot be called repeatedly // Simulate global configuration type AppConfig struct { Name string IP string Version string } var appconfig *AppConfi ...

Added by stereo on Wed, 27 Nov 2019 11:43:13 +0200

LVS-NAT Load Balancing Cluster Deployment

Introduction to LVS LVS (Linux Virtual Server), the Linux virtual server, is an open source load balancing project led by Dr. Zhang Wensong. At present, LVS has been integrated into the Linux kernel module.The project implements an IP-based load balancing scheduling scheme for data requests in the Linux kernel. The architecture of the scheme ...

Added by Optimo on Wed, 27 Nov 2019 05:19:33 +0200

Java Description Design Mode (23): Visitor Mode

Source code for this article: GitHub. Click here || GitEE. Click here 1. Life Scene 1. Scene description Electrical competition is a sport that reaches the level of "competition" in a game.Intelligent antagonistic movement between people using electronic devices as sports equipment.Through competition, people's reaction ability, coor ...

Added by powlow on Tue, 26 Nov 2019 01:50:02 +0200

Java Socket practice 3 transfer object

                Address: http://blog.csdn.net/kongxx/article/details/7259827 Java Socket one of the actual combat single thread communication Java Socket practice two multithreaded communication The previous two articles introduced how to establish Java Socket communication. This article described how to use Java Socket to trans ...

Added by onlinegamesnz on Sun, 24 Nov 2019 19:28:46 +0200