Buffer and Channel in NIO

NIO (New IO) concept: Since version 1.4 of JDK, JDK has provided a new IO operation API. NIO provides non-blocking, non-blocking, highly scalable network I/O, which improves efficiency. NIO has three main core components: Channel, Buffer and Select ...

Added by ginginca on Thu, 22 Aug 2019 13:58:03 +0300

Concurrent Programming Protocol

A primer The theme of this section is based on single threading, which implements concurrency with only one main thread (apparently only one cpu available), so let's first review the nature of concurrency: toggle + save state The cpu is running a task that will be cut off to perform other tasks (switching is mandatory by the operating system) e ...

Added by TFD3 on Thu, 22 Aug 2019 03:47:23 +0300

ingress in k8s cluster--based on traefik

k8s supports two load balancing mechanisms for publishing applications within pod s1. One is a service for four-tier TCP load balancingservice mainly implements communication within the cluster, as well as internal and external communication based on four layers (such as ports)2. Another is ingress, which enables users to achieve seven-tier HT ...

Added by nodi on Wed, 21 Aug 2019 20:12:56 +0300

CS224N Brush Title: Assignment 3.1_A Window into NER

Assignment #3 A primer on named entity recognition In this section, we will build several different models to implement named entity recognition (NER). NER is a sub-task of information extraction, which aims to locate and classify named entitie ...

Added by php-coder on Mon, 19 Aug 2019 16:02:24 +0300

The Mac's Navicat installation crashes

The purpose of this paper is to discuss the advantages of navicat. If there is any infringement, please contact me to delete it immediately. Download address Mac version Navicat Premium 12 v12.0.23.0 official website download address: ...

Added by khjart on Mon, 19 Aug 2019 14:53:01 +0300

Android Custom Controls: Take you to a multi-effect intelligent loadingView

Let's start with the effect map (see the explanation later if you are interested in it): 1. Display of login effect 2. Pay attention to effect demonstration 1. [Drawing rounded rectangle] Drawing begins with the onDraw method (I'll write the circle code, step by step). First, define an attribute in the view: private R ...

Added by richardandrewle on Mon, 19 Aug 2019 09:14:51 +0300

Flutter Learning Notes (18) -- Drawer Drawer Drawer Component

If you need to reproduce, please indicate the source: Flutter Learning Notes (18) -- Drawer Drawer Drawer Component Drawer (Drawer Component) can achieve similar drawer pull-out and push-in effects, and can pull out the navigation panel from the sidebar. Usually Drawer is used in combination with ListView components. Drawer Component Propert ...

Added by nelietis on Sun, 18 Aug 2019 18:40:30 +0300

2019-08-17 (Java generic classes and exception handling)

1. Knowledge Points: 1. Generic classes 2. exception handling 2. Use of knowledge points: 1. In practice, there are not many places where generics are used, so generic classes are only introduced here. General format of generic classes: // Generic identifier: Any identifier number can be written to identify the type of the specifie ...

Added by phpSensei on Sat, 17 Aug 2019 15:14:12 +0300

[Wu Enda Machine Learning Assignment 2] - Logical Regression Chapter Python Implementation

[Wu Enda Machine Learning Assignment 2] - Logical Regression Chapter Python Implementation Recommended running environment: python 3.6 Establish a logistic regression model to predict whether a student will be admitted to a university or not. The a ...

Added by robshanks on Sat, 17 Aug 2019 15:08:47 +0300

Re-study JS: async/await

Preface Asynchronous operation has always been an indispensable part of JS. From the initial callback function to the later Proise, then to the async function introduced in ES2017, asynchronous operation has gradually evolved and become more and more simple and convenient. Next, we will carefully look at the changes of async operation after the ...

Added by Gregg on Sat, 17 Aug 2019 15:05:40 +0300