html email sent by shell

Article directory 1. Open the SMTP service of QQ mailbox server 2. Install sendEmail 3. Send email with attachments 3.1 details of sendemail command 3.2 write the test.sh script as follows 3.3 execute script sh test.sh 4. Send email with html form 4.1 table data 4.2 the script is as follows 4.3 execution script 4.4 the scr ...

Posted by johnnyblaze1980 on Thu, 28 Nov 2019 11:36:15 -0800

"NanoHttpd Micro Server" Use and Source Reading

Occasionally, NanoHttpd is a Java file that starts a local server in an embedded device (for example, an Android phone) and receives local requests from clients.I carefully learned its source implementation, here I wrote a simple article in my learning order (as a learning note): Understanding official descriptions Write a Demo for use (local ...

Posted by DwarV on Tue, 26 Nov 2019 19:11:12 -0800

MySQL - Indexed View Transactions, Storage Engines MyLSAM and InnoDB (Actual!)

The role of indexes With the appropriate index set, the database can greatly speed up the query speed by utilizing various fast positioning techniques. Especially when the table is large or the query involves multiple tables, using an index can speed up the query thousands of times; The IO cost of the database can be reduced, and the index can ...

Posted by Shai-Hulud on Mon, 25 Nov 2019 14:14:21 -0800

Netty learning notes (10) - example of netty application

Originally, I wanted to learn about Netty components first, then learn about component applications. Then, learning more and more makes me feel weird. I always feel that there is something missing. I don't know how to use components when I learn them. Think about learning from Netty applications first. Own technology learning method: first ...

Posted by RMcLeod on Sun, 24 Nov 2019 06:00:06 -0800

Kafka specifies the partition rule of the message

Note: the number of partitions num.partitions is specified in the configuration file server.properties. This refers to the sum of the number of partitions of multiple single topic s. If there are multiple brokers, the partition may be distributed on different nodes, then the total number of all partitions of multiple brokers is ...

Posted by rejoice on Wed, 20 Nov 2019 13:22:10 -0800

PHP extension can also develop WebSocket online chat communication system

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole If you don't say much, go straight to the code: To create a WebSocke ...

Posted by 10legit10quit on Wed, 20 Nov 2019 13:09:44 -0800

Implementation of WebSocket online chat communication system based on PHP framework

To use Swoole in ThinkPHP, you need to install the think Swoole composer package, provided that the system has installed the Swoole PECL extension To install think swoole, execute the composer command in the project root directory of tp5: composer require topthink/think-swoole If you don't say much, go straight to the code: To create a WebSocke ...

Posted by VK4KBG on Wed, 20 Nov 2019 12:00:07 -0800

(Centos7) Supervisor installation and deployment

1.yum installation yum install epel-release yum install -y supervisor 2. Configuration fileAfter the supervisor is installed successfully, no default configuration file is provided. You can generate the initialization configuration file of the supervisor by running the echo supervisor conf program mkdir /etc/supervisor echo_supervisord_conf &g ...

Posted by Valdhor on Tue, 19 Nov 2019 12:13:26 -0800

PHP programmers - common tools

Three links There are often students in the community who ask, "is my PHP program blocked, is my PHP program open (not confident about the code I wrote), and is my PHP program problematic?" then they post their own programs, and enter the happy irrigation link. As time goes on, we have not formed a systematic solution. It is better to ...

Posted by blade_922 on Mon, 18 Nov 2019 22:53:22 -0800

Applet deployment

First of all, wechat users need to log in automatically to check the session. If the session expires, log in again wx.checkSession({ success: function (res) { }, fail: function (res) { console.log("Need to sign in again"); wx.login({ success(res) { if (res.code) { ...

Posted by longhorn14 on Mon, 18 Nov 2019 08:38:32 -0800