Concurrent Programming-Processes (Multichannel Technology)

Concurrent programming Concurrent and Serial What is serial? Serial means that a program is executed from top to bottom, one line at a time, and the current task must be executed before the next program can be executed. Question: Inefficient program execution Occupy memory resources What is concurrency? Concurrency means that multiple pro ...

Added by FrostedFlakes on Fri, 02 Aug 2019 04:27:27 +0300

Deploy Spring Boot project in Docker

Microservices are now very popular in Internet companies, and many HR phone interviews before job hunting asked if they had any contact with microservices.Micro-service and Docker can be perfectly combined to make the architecture of micro-service more convenient.As the SpringBoot framework for microservices, today we'll look at how to run a Sp ...

Added by andymt on Fri, 02 Aug 2019 04:11:13 +0300

Decompile pyinstaller packaged exe installation package

How PyInstaller decompiles (cracks source code) and prevents decompiling Python files after they are packaged as exe Share some tips and experiences here.Keep the author's information and article links for sharing, reprinting or citing your hard work. Author's environment: win7+python3.5(anaconda3) Theoretically, systems with win7 and ...

Added by friday_13 on Fri, 02 Aug 2019 03:46:14 +0300

Wannafly Challenge 22D Integer Sequence (Segment Tree Maintains Trigonometric Values)

Links: https://ac.nowcoder.com/acm/contest/160/D Source: Niuke.com Sequence of integers Time limit: C/C++ 2 seconds, 4 seconds for other languages Space limit: C/C++ 262144K, other languages 524288K 64bit IO Format: %lld Title Description Gives an integer sequence a1,a2,...,an of length n for m operations, which are divided into two categories. ...

Added by usefulphp on Thu, 01 Aug 2019 22:00:49 +0300

Arctium Chinensis ai

This is Ben's first blog, qwq (not counting last one) This time, let me tell you about a project I wrote a long time ago, Gobang AI (just flipped out of my U disk) In fact, I can still win this AI, because this AI will not play games like 33, 34 (I don't know what to do, I can search the Internet, I understand it well), and there are some stran ...

Added by genom on Thu, 01 Aug 2019 21:55:20 +0300

A Simple Factory Model with Detailed Design Patterns

1. Definition: An instance of which product class is created is determined by a factory object. 2. Types: Creative, but not GOF23 design pattern 3. Use scenarios: The factory class is responsible for creating fewer objects. The client (application layer) only knows the parameters that are passed into the factory class, and does not care about h ...

Added by arctushar on Thu, 01 Aug 2019 12:41:54 +0300

Use of BOM and DOM in JavaScript

BOM: Concept: Browser Object Model Browser Object Model Encapsulate the components of the browser into objects. Form: Window: Window object Navigator: Browser Object Screen: Display screen object History: Historical Record Object Location: Address Bar Object Window: Window object Establish Method Methods related to pop-up boxes: a ...

Added by dbchip2000 on Thu, 01 Aug 2019 05:44:03 +0300

spring cloud gateway intercepts request Body

When accessing Spring-Cloud-Gateway, there may be a need to cache Json-Body or Form-Urlencoded data. Because Spring-Cloud-Gateway is a responsive architecture design based on WebFlux, traditional programming ideas are not suitable for the development of Reactor Stream in the process of migrating from Zuul. There are many caching cases on the n ...

Added by Hagaroo on Wed, 31 Jul 2019 18:04:07 +0300

Reconfiguration of DEFROUTE and GATEWAY in Linux dual-port configuration

When configuring a machine, it follows the original network port configuration, modifies the name of the network port, and changes all em1 to eth0.   mv ifcfg-em1 ifcfg-eth0 mv ifcfg-em2 ifcfg-eth1   After the modification, the machine became unstable, often stuck and started incorrectly:     There are three problems encountered in th ...

Added by dmdmitri on Wed, 31 Jul 2019 18:01:39 +0300

Nineteen-nine Niuke National Multi-school Training Four I Question Strings (SAM+PAM)

Links: https://ac.nowcoder.com/acm/contest/884/ISource: Niuke.com Topic Description We call a,ba,ba,b non-equivalent if and only if a≠ba \neq ba​=b and a≠rev(b)a \neq rev(b)a​=rev(b), where rev(s)rev(s)rev(s) refers to the string obtained by reversing characters of sss, for example rev(abca)=acbarev(abca)=acbarev(abca)=acba. ...

Added by sambo80 on Wed, 31 Jul 2019 13:51:19 +0300