One way chat and two way chat based on UDP socket programming

UDP UDP is a network transport layer protocol. It is connectionless, unreliable and does not guarantee accurate data transmission, but it has high efficiency. Because UDP is a connectionless protocol, there is no one-to-one correspondence between the datagram socket on the client side and the datagram socket on the s ...

Posted on Sat, 02 Nov 2019 22:46:26 -0400 by doublea2k7

Zfjpymix Python code obfuscation encryption

Preface Python as a scripting language, we can use it to do many things, such as data analysis, multimedia processing, web development, network programming, game programming, artificial intelligence and so on, which are widely used; if we use Python to develop commercial projects, we will inevitably encounter some idle people who always want to ...

Posted on Sat, 02 Nov 2019 22:21:02 -0400 by mwood_2k2

Total of leetcode combinations III(Java)

Leetcode summary: Classic programming topic of leetcode (Java implementation) leetcode topic Combined sum III -- leetcode 216 Title Description Find out the combination of all k numbers whose sum is n. Only positive integers of 1 - 9 are allowed in a combination, and there are no duplic ...

Posted on Sat, 02 Nov 2019 21:30:51 -0400 by lewisstevens1

Python -- File practice

Document practice question1 Batch modify file name import os dirName = os.path.realpath('xcx') dirList = os.listdir(dirName) for name in dirList: newName = '[Western open source]-' + name os.rename(dirName + '\\' + name, dirName + '\\' + newName) print("rename %s by%s " % (name, newName)) The results ...

Posted on Sat, 02 Nov 2019 20:01:38 -0400 by xxreenaxx1

Eureka service registration and discovery

I. why to use service registration to discover A scenario is proposed. Suppose that we have a service producer for the user's microservice, which provides a RESTful method to obtain the user through Id: @GetMapping("/{id}") public User findUserById(@PathVariable Long id){ User user = this.userMapper.findById(id); return user; } In add ...

Posted on Sat, 02 Nov 2019 14:45:25 -0400 by adyre

Core concept, implementation code and application examples of Redux

Redux is a JavaScript state management container and an independent state management library, which can be used with other frameworks, such as React. Redux is introduced to make data management in JavaScript convenient and easy to trace, and avoid the confusion of data state in large-scale JavaScript applications. Redux tries to make the chang ...

Posted on Sat, 02 Nov 2019 07:15:41 -0400 by Packetrat

16. Explanation of web crawler 2 - Phantom JS virtual browser + selenium module operation phantom JS

[http://bdy.lqkweb.com] [http://www.swpan.cn] [reproduced from: http://www.lqkweb.com] Phantom JS virtual browser phantomjs is a web kit headless browser based on js, that is, a browser without display interface. With this software, you can get any information loaded by js, that is, the information loaded asynchronously by browser. Download web ...

Posted on Sat, 02 Nov 2019 04:35:47 -0400 by sovtek

springboot + wechat applet exchange codeid for openid

springboot + wechat applet exchange codeid for openid 1. First, we need to go to wechat public platformhttps://mp.weixin.qq.com/ Prepared are appid (applet ID) and appsecret (applet key) 2. Start writing code when you are ready 3.controller @RestController public class GetOpenIdController { ...

Posted on Sat, 02 Nov 2019 01:13:58 -0400 by jsladek

How to view cpu, memory, hard disk and other hardware information under linux

Note: under Linux, you can see the details of each cpu in / proc/cpuinfo. But for a dual core cpu, you will see two CPUs in cpuinfo. It is often mistaken for two single core CPUs. Original address: http://www.hpboys.com/659.html I. linux CPU size [root@idc ~]# cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical i ...

Posted on Fri, 01 Nov 2019 22:53:50 -0400 by manmadareddy

Stage 3: day18_ / 01 / 19 [TFTP]

1. TFTP Introduction (understanding) TFTP: simple file transfer protocol With this protocol, you can simply download files. The TFTP port number is 69. TFTP introduction: When the data received by the client is 516 (2-byte opcode + 2-byte serial number + 512 byte data), it means that ...

Posted on Fri, 01 Nov 2019 21:59:26 -0400 by nitroxman