Coroutines in Android - One Shot and Multiple Values
In Android, the data we use may be one-time or multiple values
This paper introduces how to deal with these two situations with MVVM mode of coroutines in Android. It focuses on the application of coroutine Flow in Android
One-shot vs multiple values
The data used in practical application may be one shot, multiple values, or stream
For example, ...
Posted by itguysam on Sun, 08 Dec 2019 01:50:03 -0800
CentOS7 modifying the network card name eth0
CentOS7 modifying the network card name eth0
The centos7 virtual machine I installed in VMWare workstation has two network cards. The default network card names are eno16777736 and eno33554984
[root@controller ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00: ...
Posted by kodstationen on Sat, 07 Dec 2019 09:47:01 -0800
Asynchronous programming using Hooks
This excerpt is from Rax's official website rax.js.org
introduce
Javascript is a single-threaded programming language. A single-threaded feature is that it can only handle one thing at a time, and the time-consuming execution of the current code task can block subsequent code execution.Asynchronous programming is an event-driven program ...
Posted by Trafalger on Sat, 07 Dec 2019 04:19:10 -0800
Building a Load Balancing Cluster Based on Address Translation (LVS-NAT) Mode
This post is a case post. For an overview of the principles and related overviews of LVS Load Balancing Clusters, please refer to the post: LVS Load Balancing Cluster for Centos 7
1. Introduction to Cases
1. Case Environment
2. Experimental results
Using NAT-mode clustering technology, the LVS load dispatcher is a gateway server where all ...
Posted by scottreid1974 on Sat, 07 Dec 2019 03:02:18 -0800
[Xuefeng magnetic needle stone blog] computer vision opcencv tool deep learning fast practice 1 face recognition
Using the pre trained deep learning face detector model provided by OpenCV, face recognition can be carried out quickly and accurately.
In August 2017, OpenCV 3.3 was officially released, bringing a highly improved "DNN deep neural networks" module. The module supports many deep learning frameworks, including Caffe, TensorFlow and Tor ...
Posted by naveenbj on Fri, 06 Dec 2019 20:59:43 -0800
DR mode of LVS load balancing cluster deployment
I. working principle of DR mode
As shown in the figure, the working principle of LVS-DR has been explained in the figure. Let's list the characteristics of LVS-DR mode:
1. RIP can use private address or public network address. If public network address is used, RIP can be accessed directly.
2. All requested packets must pass through ...
Posted by KC_Geek on Fri, 06 Dec 2019 16:53:46 -0800
Realize the connection between Golang and Erlang (Port)
title: realize the connection between Golang and Erlang (Port)
categories: Golang
In Erlang, there are many ways to interact with other languages. The common ways are
Interaction using TCP protocol
Using Port
Using ERL? Interface to realize
CNode
NIF
The latter several kinds of difficulties are all there, but also use a more complex C/C + +, ...
Posted by tha_mink on Fri, 06 Dec 2019 14:36:07 -0800
[Java instance] use thumbnail to generate thumbnails (zoom, rotate, crop, watermark)
1 demand
Cousin needs to sign up for the exam for his son. The system requires uploading no more than 30KB of pictures. Now the mobile phone is just a few MB of pictures. How to get a picture of only 30KB?
A simple way is to reduce the size of the picture on the computer, and then screen capture small pictures, but now the computer screen resol ...
Posted by sulin on Fri, 06 Dec 2019 09:09:54 -0800
tcp socket communication optimization and troubleshooting under Linux
tcp socket communication optimization and troubleshooting under Linux
@Date 2018.12.09
I. optimization
1. TPC receiving window
Problem: when the receiving window queue of TCP is blocked - > the sender continues to send - > the receiver loses - > the sender retransmits - > the network becomes bad
Solution: the receiver tells the sen ...
Posted by googlehunter on Fri, 06 Dec 2019 08:29:03 -0800
MVC architecture design and three-tier model & the essence and decoupling of MVP
Blog Homepage
1. MVC architecture design and classic three-tier model
MVC: model view controller, classic mode, easy to manage.
Model: business layer and model layer, entity model and business related code
View: view layer, which corresponds to layout layout file in android
Controller: control layer, UI operation in android, corresponding to A ...
Posted by rdimaggio on Fri, 06 Dec 2019 08:26:53 -0800