An example of using Websocket developed by Python

I learned how to implement web development in java. Today I want to try to implement it in python, so I found the code on the Internet 2.1. Effect 1 (a client connects to the service and sends a message) 2.2. Effect 2 (another client connects to the service and sends a message) 2.3. Effect 3 (the servic ...

Posted by starmikky on Fri, 17 Jan 2020 15:14:10 +0100

After the webpack is packed, it cannot be called. Instead, use uglifyjs to pack and compress

Background: The project is based on native js and does not use any scaffolding or framework, but it also needs to be packaged and compressed. Some global variables are declared in the js of the project for other js to call. At this time, if we use the web pack, based on the web Pack feature, we will nest a layer of large functions, which will t ...

Posted by jwmessiah on Fri, 17 Jan 2020 14:01:51 +0100

netty - start process

netty start process Start instance: public final class EchoServer { static final boolean SSL = System.getProperty("ssl") != null; static final int PORT = Integer.parseInt(System.getProperty("port", "8007")); public static void main(String[] args) throws Exception { // Configure ...

Posted by superdude on Fri, 17 Jan 2020 12:33:42 +0100

python implements tail-f function

This article was originally written because there was an interview in the reboot group, and the written examination question had this question. I don't know how to do it, what kind of thinking, so I sent it to everyone in the group for discussion I've thought about it for a moment. Let's briefly talk about my idea. Of course, there is also a ve ...

Posted by markstrange on Thu, 16 Jan 2020 19:30:52 +0100

Using rime input method in Emacs

When using external input method in email, the biggest problem is that when switching the email mode, there will be a delay for input, because you need to manually switch the input method to the corresponding English mode to use the shortcut keys normally. But if you use Emacs' own input function, you don't need to do these synchronizations. Yo ...

Posted by Merve on Thu, 16 Jan 2020 12:41:19 +0100

Spring Boot integrates with Seata to solve distributed transaction problems

seata introduction Seata is Alibaba's open-source distributed transaction solution in 2019, which is committed to providing high-performance and easy-to-use distributed transaction services under the microservice architecture. Before the open source of Seata, the corresponding internal version of Seata played a role of distributed consistency M ...

Posted by levi_501_dehaan on Thu, 16 Jan 2020 06:42:38 +0100

Connect raspberry pie to Microsoft cloud Azure IoT Hub in 30 minutes and show the data as a visual chart

Raspberry pie is a necessary toy for many hands-on people. In this section, let's take out raspberry pie, connect it to Microsoft cloud Azure's IoT Hub in 30 minutes, and then visualize the temperature and humidity curve. More content, please pay attention to the public number "cloud computing actual combat". For the complete operat ...

Posted by hakhaimo on Wed, 15 Jan 2020 05:36:38 +0100

Java Serial 72-String Class Details, Multiple Construction Methods

1. String Class 1.String classes are not mutable, that is, after a String object is declared 2.java.lang.String; is a string type (1) Once a string is created, it can no longer be changed, "abc" string object cannot be changed to "abcd" once it is created. (2) Enhance string access efficiency: Cache technology is used in the ...

Posted by loquela on Mon, 13 Jan 2020 17:55:03 +0100

Swift TouchId fingerprint unlock, FaceId face unlock

Explain TouchId fingerprint recognition, FaceId face unlocking, collectively referred to as biometrics. Realization Introduce the Local Authentication Framework. If it's iOS 13, it's available by default. You don't need to re introduce it. import LocalAuthentication Check that biometrics are avail ...

Posted by tonbah on Mon, 13 Jan 2020 12:51:23 +0100

android Google map's icon page turning effect

Recently, I was looking at the hencoder custom view series of the throwing line. There is an icon turning the page and rotating the effect is cool. After thinking about it and seeing the thought of a great God, I finally made it. (GIF recorded a bit of card, the real effect can be run and viewed by yourself) thinking The w ...

Posted by stickman373 on Sat, 11 Jan 2020 18:03:09 +0100