OSPF Routing Protocol-Virtual Link Configuration

Virtual Link Topology 1. Service-side environment deployment 1. R1 router: Configure the IP address information of each interface, configure the fixed IP address of the loop network card, and configure the OSPF protocol information. conf t int f0/0 ip add 192.168.10.1 255.255.255.0 no shut int f0/1 ip add 192.168.20.1 255.255.255.0 no shut e ...

Posted by polywog on Wed, 09 Oct 2019 00:50:21 +0200

Docker Container Communication and External Network Communication

Inter-Container Communication 1. Network Sharing of Containers The docker container in this mode will share a network stack so that efficient and fast communication between the two containers can be achieved using localhost. Used for communication between web server and application server.   # ...

Posted by kickstart on Tue, 08 Oct 2019 17:02:30 +0200

1. Summary of netty Source Code Analysis

As Java programmers, netty should be more or less exposed to everyone. Netty is widely used as an asynchronous event-driven network framework. We can see from a map of netty's official website what features netty has: netty's core competence has three points: Extensible Event Model Universal Communicat ...

Posted by moniphp on Tue, 08 Oct 2019 15:25:08 +0200

Practice! Achieving Audio Clipping Processing in Pure Front End

Preface Recently, in a project, the audio recorded by webRTC needs to be processed, including audio clipping, multi-audio merging, and even replacing one part of an audio with another. Originally, I intend to leave this job to the server side, but considering whether the front end or the backstage is done, the work is almost the same. Moreover, ...

Posted by ericburnard on Tue, 08 Oct 2019 09:26:44 +0200

Golang Reptiles: Use of colly Library

1. Introduction to colly: Colly is a Golang framework for building Web scraper. With Colly, you can build complex Web scrapers, ranging from simple scrapers to complex asynchronous Web crawlers that handle millions of Web pages. Colly provides an API for executing network requests and processing recei ...

Posted by Mikell on Mon, 07 Oct 2019 22:35:11 +0200

Pyrtorch Notes 5 -- Classification

I. Description: Take a simple example to see how neural networks are classified. Two, steps 1. Create data import torch import matplotlib.pyplot as plt import torch.functional as func from torch.autograd import Variable import torch.nn #There are two groups of data, one belongs to Category 1 a ...

Posted by tendrousbeastie on Sat, 05 Oct 2019 17:05:30 +0200

Flask-wtforms are similar to form components in django

I. installation pip3 install wtforms II. Simple Use 1. Create flask objects from flask import Flask, render_template, request, redirect from wtforms import Form from wtforms.fields import simple from wtforms import validators from wtforms import widgets app = Flask(__name__, template_folder='templates') app.debug = True II. Generating form Co ...

Posted by fuji on Fri, 04 Oct 2019 22:04:00 +0200

token scheme updated irregularly at mobile end

Clients need to update token from time to time, while ensuring that other network requests hang while sending update token, otherwise token will fail. When the new token returns, the pending request is re-initiated.Update the token request at the request of the server, and the old token expires immediately Catalog Analog Network Request Enca ...

Posted by xterra on Fri, 04 Oct 2019 13:56:30 +0200

LeetCode - 33 Search for Rotary Sort Array

Problem Description: Suppose that the array sorted in ascending order rotates at some point that is unknown in advance. (For example, an array [0, 1, 2, 4, 5, 6, 7] may become [4, 5, 6, 7, 0, 1, 2]. Search for a given target value, return its index if it exists in the array, or return - 1. You ca ...

Posted by Wave on Fri, 04 Oct 2019 13:22:43 +0200

JavaSE - Network Programming Exercises

1. Write a server-side program to read a set of integers sent by the client, which is represented as a string separated by spaces between a set of numbers. After sorting these integers, the corresponding string is returned to the client. If the data format is incorrect, the error message is returned, an ...

Posted by lc on Mon, 30 Sep 2019 23:25:41 +0200