X. namenode working mechanism of HDFS

[TOC] I. fsimage and edit files 1. Basic concepts txid: namenode gives a unique id for each operation event (add, delete, and change operation), which is called txid. Generally, txid is automatically increased from 0. For each additional operation, txid is automatically increased by 1. fsimage: It is a mirror file of the metadata of namenode i ...

Added by p3rk5 on Thu, 17 Oct 2019 00:57:57 +0300

Custom xsd file operation in Spring

1 set the syntax format of html file xsd file Write xsd file according to the properties of POJO. for example <?xml version="1.0" encoding="UTF-8" ?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.zhangyh.com/schema/user" elementFormDefault="qualified"> <element name="user"> ...

Added by pleigh on Wed, 16 Oct 2019 17:33:00 +0300

Font awesome icon to picture

I. nature of icons Font awesome icon is a font, and its technical term is Icon Font. In essence, it is a character encoded with PUA (Private Unicode Area) code point Unicode. Therefore, the icons of font awesome icon and Bootstrap are the same as those of Wingdings font, and the difference is nothing but encoding. II. Drawing pictures After ...

Added by justice1 on Tue, 15 Oct 2019 18:59:49 +0300

IOC container for spring learning

IOC container IOC containers, sometimes called dependency injection (DI). Through the dependencies defined by the object itself, these dependencies are injected into the bean when it is created. This process is contrary to our normal design. We usually have a new object in the object, which is our program control management object. In spring, w ...

Added by FredAt on Tue, 15 Oct 2019 10:26:06 +0300

Swoole Partnership Tour

Author: Han Tianfeng's original address: Click to view What is the consortium? The first published explanation of the coroutine appeared later, in 1963. The concept of the coroutine is longer than that of the c language. The term coroutine is coined by Melvin Conway in 1958, after which it is applied to construction of an assembly program. The ...

Added by rane500 on Mon, 14 Oct 2019 08:10:55 +0300

Android custom controls: text controls of adaptive size

demand Adaptive size text: Design sketch: In project development, developers lay out some pages with text according to a set of sizes provided by UI personnel. Often less consideration will be given to some data limits, resulting in the problem of screen adaptation. For example: Text (or numeric) length is variable, such as experience value, nu ...

Added by FredFredrickson2 on Sat, 12 Oct 2019 03:46:12 +0300

Android Development-Broadcast

Today, let's talk about the use of broadcasting. Broadcasting is also used to disseminate messages within app. There are both senders and receivers of broadcasting. See the code specifically to illustrate the use of broadcasting. 1. Broadcasting Write a page to send broadcasts, and see the comment ...

Added by gmwebs on Thu, 10 Oct 2019 10:48:37 +0300

Eight Python practical scripts, quickly collect spare! _____________

The script is well written. Get off work early! In addition to writing program code, programmer's daily work inevitably needs to deal with related testing and verification work. For example, access to a Web site has been impassable, you need to determine whether the address is accessible, what the server returns, and then determine what the pro ...

Added by eyedol on Wed, 09 Oct 2019 20:01:18 +0300

The most detailed steps in history to create Android AIDL remote services

Project introduction Creation time: October 4, 2019 16:30:09 Functions: Android remote service production and test run, AIDL service. Introduction to development environment: Android API = 29, Android 10, and Android Studio Make complaints More than N articles were searched online, either for a long time or for different operations of IDE de ...

Added by bytes on Wed, 09 Oct 2019 12:29:32 +0300

The java tool class Base64 tool

Principle: Base64 is one of the most common encoding methods for transmitting 8Bit bytecode on the network. Base64 is a way to represent binary data based on 64 printable characters. About the coding rule: Change 3 characters into 4 characters. (2) Add a newline character for every 76 characters. (In ...

Added by aboyd on Wed, 09 Oct 2019 10:44:21 +0300