Technology sharing | login MySQL safely without password

By Daniel gusman BurgosGuan ChanglongOriginal text: https://www.percona.com/blog/... Some people say the best password is one you don't have to remember. The auth? Socket plug-in and MariaDB's UNIX? Socket make this idea possible on MySQL. auth_socket: https://dev.mysql.com/doc/ref... unix_socket: https://mariadb.com/kb/en/lib... Although t ...

Posted by Baumusu on Fri, 08 Nov 2019 02:27:29 -0800

How to develop a WebSocket online chat communication system?Swoole and TP are good

ThinkPHP using Swoole requires the think-swoole Composer package to be installed, provided the Swoole PECL extension is installed on the system Install think-swoole by executing the composer command in the project root directory of tp5: composer require topthink/think-swoole Say nothing but code directly: Create a new WebSocket.php controller: ...

Posted by mark_h_uk on Thu, 07 Nov 2019 10:37:32 -0800

js+node.js+socket.io realizes chat function (private chat, group chat creation)

Design sketch: Four clients are started for testing 1. Log in and get the list of online users2. Private chat function3. Group chat function I found WebSocket by chance. I found that it can communicate in real time and chat online. So I made a demo of chat tool and recorded it Source code Socket.io WebSocket is native to js, and Socket.io is a ...

Posted by slamMan on Thu, 07 Nov 2019 00:24:35 -0800

pip installation module uses domestic image source to accelerate installation

Today, when installing the Python module matplotlib, the installation is not successful. The prompt "socket.timeout: The read operation timed out" or "Read timed out" is always displayed Because of the high latency of domestic network access to foreign countries, the installation of the module is very slow, and it must not b ...

Posted by keveen on Wed, 06 Nov 2019 15:10:13 -0800

Network part -- socket realizes C-S data interaction

1. Input man socket into the terminal to check the contents of socket 2. Create socket on the server side /* First parameter domain (network type): pf? INET IPv4 / PF? Inet6 IPv6 The second parameter type (socket type): sock'stream connection oriented -- TCP protocol / sock'dgram connectionless -- UDP protocol The th ...

Posted by jmelnick on Wed, 06 Nov 2019 14:34:21 -0800

An example of UDP communication in linux

After the UDP client establishes the socket, it will directly send data with sendto function, and there is also an operation implied, That is, before sending data, UDP will first select a separate UDP port for the socket (at 1024 -5000), set the socket to the bound state. If a UDP client establishes a socket First, the ...

Posted by kapishi on Tue, 05 Nov 2019 11:04:43 -0800

Install mysql on centos

This article still uses xftp to upload gz files, and then operates on xShell. If you do not install these two files, please refer to the previous blog. 1. Upload the downloaded file to the corresponding location with xftp.   2. Unzip the file: tar-zvxf-mysql-5.7.28-linux-glibc2.12-x86_.tar.gz 3. Create mysql folder under / usr/local folder m ...

Posted by chelsea7 on Mon, 04 Nov 2019 23:46:11 -0800

Linux MySQL-5.7.18 release installation guide

The installation process is basically the same as that of the source version. In addition to the compilation phase, this article only talks about the release version, that is, the version with bin file Benefit: each user can install their own MySQL Server Target host system: CentOS 6.8 User: saojie (without administrator rights) Directory: / ho ...

Posted by Shandrio on Mon, 04 Nov 2019 07:21:11 -0800

Using Alibaba cloud TTS to realize web voice broadcast

I. opening Alibaba cloud TTS service Log in to Alibaba cloud and choose product - > Artificial Intelligence - > speech synthesis Click "apply for opening" and create a project in "management console" Copy token and appkey II. Interface with speech synthesis api View ...

Posted by ashbai on Sat, 02 Nov 2019 02:14:18 -0700

Talk about roundrobin supplier of elastic search

order This paper focuses on the roundrobin supplier of elastic search RoundRobinSupplier elasticsearch-7.0.1/libs/nio/src/main/java/org/elasticsearch/nio/RoundRobinSupplier.java final class RoundRobinSupplier<S> implements Supplier<S> { private final AtomicBoolean selectorsSet = new AtomicBoolean(false); private volatile S[ ...

Posted by sfarid on Fri, 01 Nov 2019 17:23:16 -0700