python template rendering jinja2 - python Web

python template rendering jinja2 - python web (3) ​      Jinja2 is a fast, expressive and extensible template engine. It was written by werkzueg author Armin ronacher (people used to call him mitsuhiko )Development, used for data rendering of python web html pages, flush with jsp of java servlet. Jinja2 makes it possible ...

Posted by Dark Phoenix on Mon, 08 Nov 2021 09:50:34 -0800

Modeling learning clock in the second day

Still follow @Sichuan rookie   Punch in · the next day Article catalog 1, This question 1. Use the knowledge learned on the first day to solve: 2. Understanding of this question: (1) Branch definition method Background: Basic theory (problem solving steps): Solution implementation 1: Result 1: optimal solution: x1 = 4, x2 ...

Posted by ranbla on Mon, 08 Nov 2021 09:36:56 -0800

An indispensable binary tree interview question in the interview

Preorder traversal and inorder traversal restore binary tree Link: pre order + mid order restore binary tree Idea: Determine the root node of the binary tree in the preorder traversal result (reason: the preorder traversal first traverses the root node, traverses the left subtree of the root, and then traverses the right subtree of th ...

Posted by Edwin Okli on Mon, 08 Nov 2021 09:34:19 -0800

MySQL tutorial Chapter 04 management table

Table is the main form of data storage in database. It is composed of rows and columns, which is similar to common spreadsheet.The biggest difference between tables in MySQL and other databases is that they can use different storage engines. Storage Engine is a component used to manage, access and modify physical data in MySQL. Different storag ...

Posted by nite4000 on Mon, 08 Nov 2021 09:19:07 -0800

[Java from 0 to architect] SpringCloud - Sleuth, Zipkin, Config

Java from 0 to architect Directory: [Java from 0 to architect] learning record Link tracking component Why link tracking? There are many service units in the microservice architecture. If there are errors and exceptions, it is difficult to locate (a request may need to call multiple services, and the call complexity between internal ...

Posted by garry_224 on Mon, 08 Nov 2021 08:58:58 -0800

TSP traveling salesman problem

What is TSP? Generally speaking, this problem can be described as a commodity salesman going to several cities to sell commodities. The salesman starts from one city and needs to go through all cities before returning to the starting place. How to select the travel route to minimize the total travel. So it is to start from a point in a diagram ...

Posted by ms.buggy on Mon, 08 Nov 2021 08:42:04 -0800

c + + factory mode

Before you get familiar with factory mode, you should first understand the six guidelines before writing c + + programs Opening and closing principle: do not modify existing codes, only add codes.Dependency Inversion Principle: use abstract classes instead of concrete classes to solve problems. (isolation change, package change)Richter substit ...

Posted by dessolator on Mon, 08 Nov 2021 08:15:28 -0800

docker builds hbase environment

    hbase is a member of hadoop ecology. To build hbase first, you need to install hadoop, then zookeeper, and then hbase. Now hbase can be installed directly through docker, and hadoop is not required in the container.     The installation is simple. Directly pull the image and run it. docker run -d --name hbase -p 2181 ...

Posted by Procode on Mon, 08 Nov 2021 08:11:30 -0800

Installation and use of kubernetes

1 Introduction to kubernetes 1.1 kubernetes function Automatic packing Based on the resource configuration requirements of the application running environment, the application container is automatically deployed Self healing (self healing) When the container fails, the container is restartedWhen there is a problem with the deployed Node, t ...

Posted by sneakyimp on Mon, 08 Nov 2021 08:03:36 -0800

DL -- environment matching

preface To start the in-depth learning journey, we must first determine where the alchemy furnace is placed. It is understood that the conventional platform combination includes: win + anacondawin + wslubuntu + anacondaubuntu + docker The above combination methods are used more frequently. Of course, GPU/CPU and tensorflow/pytorch are ba ...

Posted by Xoom3r on Mon, 08 Nov 2021 07:58:44 -0800