Network programming - use more concise and efficient Okio library for IO and NIO
introduction
Compared with the omniscience of Java and Android, OKHttp needed to introduce additional Okio libraries when it was introduced through Gradle in the early days. I didn't pay attention to it when it was first used, just like most. I didn't realize that Okio is a treasure house until I slowly like to go to the bottom and go deep ...
Posted by 01hanstu on Sat, 25 Sep 2021 01:26:16 -0700
Socket Programming for TCP and UDP
This paper mainly talks about how to use Socket to communicate between server and client based on TCP and UDP, the communication flow and some details in the code, and the differences and reasons between them in the code.
Catalog
1. Socket
2. Communications via TCP
Server Side
Create Welcome socket
Create a dedicated socket
Reading data ...
Posted by slipmatt2002 on Tue, 21 Sep 2021 09:14:06 -0700
Running multiple mysql instances on one machine
Installation instructions:
A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment.
MySQL program installation directory: /usr/local/mysql_5.6.38
Data directories for MySQL i ...
Posted by mega_hurtz on Thu, 16 Jul 2020 09:08:28 -0700
Running multiple mysql instances on one machine
Installation instructions:
A mysql program file, a configuration file, running multiple mysql instances (each with its own distinct data directory).For the convenience of the test, only two examples are used in this experiment.
MySQL program installation directory: /usr/local/mysql_5.6.38
Data directories for MySQL i ...
Posted by mrinfin1ty on Thu, 16 Jul 2020 09:07:05 -0700
[cluster building topic] - Kafka cluster building
Kafka -- cluster building
Service discovery: first of all, the mutual discovery of services between kfakas is realized by using Zookeeper. Therefore, Zookeeper must be built in advance. To build a Zookeeper cluster, please pay attention to the blog's article: Building Zookeeper cluster;Service relat ...
Posted by Bauer418 on Mon, 29 Jun 2020 20:50:55 -0700
Front end development -- HTML
1, Introduction to front end development
As a programmer, if you want to develop a website, its essence is to receive the browser's request and return the data to the socket server, and the returned data format should conform to the rules recognized by the browser.
The purpose of the front-end development course is to take you to learn all th ...
Posted by syth04 on Mon, 29 Jun 2020 19:32:41 -0700
@What does the Transaction annotation not work?
Take a look at the simplest example of CGLIB, and feel how AOP is achieved?
/**
* Created with vernon-test
* Description:
* User: chenyuan
* Date: 16/4/25
* Time: 9:25 am
*/
public class Target {
public String execute() {
String message = "----------test()----------";
System.out.println(message);
return message ...
Posted by stylefrog on Mon, 29 Jun 2020 03:15:21 -0700
Node.js With ProtoBuffer, realize a redis from zero
Write at the beginning
If you want to learn the wheel making technology, you can see my previous collection of original articles: https://mp.weixin.qq.com/s/RsvI5AFzbp3rm6sOlTmiYQ
If you want to get 3700G of free learning materials or join the technology exchange group (no advertising), you can use the end of the article + my wechat to focus ...
Posted by wutanggrenade on Sun, 28 Jun 2020 18:08:35 -0700
Concurrent programming -- 7. Singleton mode
The pattern is separated from the language, and the singleton pattern in the design pattern is very important in the concurrency. We should not indulge in the language and architecture, but think about the problem from the design point of view. Technology is the easiest to be replaced. Only by formin ...
Posted by justinjkiss on Thu, 25 Jun 2020 04:15:57 -0700
MySQL 5.5 Source Installation - Cmake (Multiple Instances)
1. Environment
OS environment: Linux db01 2.6.32-431.el6.i686
MySQL version: mysql-5.5.44
MySQL installation path: /usr/local/mysql
MySQL data path: /data
MySQL port: 3506 3507
2. Preparations
1. Dependent Package Installation
yum install ncurses-devel libaio-devel gcc gcc-c++ bison -y
2. Install compiler ...
Posted by m4rw3r on Sun, 21 Jun 2020 09:59:11 -0700