Explain the use of AsyncTask in Android
Reprinted from http://blog.csdn.net/liuhe688/article/details/6532519
stay Android There are two ways to implement asynchronous task mechanism, Handler and AsyncTask.
Handler mode needs to create a new thread for each task. After the task is completed, it sends a message to the UI thread through the Handler instance to complete the updat ...
Posted by SparkleD on Wed, 10 Apr 2019 10:12:32 -0700
Operations Note 31 (Summary of Pacemaker High Availability Cluster Buildings)
Summary:
Pacemaker is a resource manager separated from heartbeat in v3 version, so pacemaker does not provide heartbeat information. Our cluster needs corosync support to be complete. The function of pacemaker is to manage the control center of the whole HA. The client configures and manages the whole cluster through pacemaker. There is also ...
Posted by waffle72 on Mon, 08 Apr 2019 23:24:31 -0700
Use message queue ActiveMQ
1. Java way Apache ActiveMQ official instance send message
Download ActiveMQ source code directly from Apache website http://activemq.apache.org/download-archives.html
Download and unzip to get an example of java code
Then pour in the IDE
As follows:
Please read the readme.md file carefully, which roughly means to type the proje ...
Posted by mdj on Sun, 07 Apr 2019 11:24:30 -0700
Basic configuration of nginx
Preface
Memory is not good, the relevant nginx problems and solutions will be expanded on the above, if there are any problems, please leave a message.
Catalog
Install nginx
Managing nginx
Configure nginx.conf
nginx advantages
Debug nginx
Reference resources
Install nginx
Install gcc g + + development library environment
ubunto
...
Posted by eezmo on Sat, 06 Apr 2019 19:39:30 -0700
Source installation nagios-4.2 (centos 6.8)
Official documents https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/quickstart-fedora.html
Dependency software
Before installing nagios, you need to install apache, php, gcc, gd-devel, which can be installed through yum.
This article is based on the source code build LAMP architecture (build LAMP)- http://blog.csdn.net/di ...
Posted by Julian on Fri, 05 Apr 2019 19:39:30 -0700
Calling Third Party Interface to Send SMS
Enter Aliyun Market Page: After login, select API.
Select the SMS interface item I need on the API service page and click Enter
Choose the eye-to-eye interface service.
If it's a trial, choose 0 yuan/5 times. If you have money and don't worry about spending, choose 30,000 yuan/100,000 times to buy.
After payment is ...
Posted by Tindo on Fri, 05 Apr 2019 16:39:29 -0700
Installation and Use of Log Collection Framework Flume
Installation and Use of Log Collection Framework Flume
1. Introduction to Flume
1.1. Overview of Flume
Flume is a distributed, reliable and highly available system for collecting, transmitting and aggregating massive logs.
Flume can collect files, socket data packets and other forms of source data.
It can also output the collected d ...
Posted by MichaelR on Thu, 04 Apr 2019 20:12:30 -0700
SpringBoot Introduction Series - --- Integration of MyBatis
This article describes how SpringBoot integrates MyBatis
I'm sure you've learned something about Spring Boot and MyBatis by reading this article, so I'll go straight to dry.
First import dependencies into POM
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-s ...
Posted by Beyond Reality on Thu, 04 Apr 2019 18:54:30 -0700
[Spring] Using Spring's Abstract Routing Data Source to switch multiple data sources
Recently, because the project needs to do data synchronization between two projects, specifically project 1's data is synchronized to project 2 through message queue, because this update operation also involves updating the data of multiple databases, so it needs the operation of switching multiple data sources. Here's how to switch data source ...
Posted by breath18 on Sun, 31 Mar 2019 19:18:30 -0700
Hadoop and those things (4) - - MapReduce programming example (foundation)
Preface
In the last article, I took WordCount as an example to explain the code structure and operation mechanism of MapReduce. This article will further understand MapReduce through a few simple examples.
1. Data Retrieval
Problem description
Assuming there are many pieces of data, we look for statements that contain a string.
Solu ...
Posted by pornost4r on Sat, 30 Mar 2019 18:39:31 -0700