Alios things 3.3.0: http component introduction
summary
HTTP(HyperText Transfer Protocol) is an application layer protocol used to transfer hypertext. The network protocol stack of AliOS Things includes HTTP components and provides HTTP client standard capabilities. Developers can quickly realize data interaction with the server through HTTP GET, POST and other methods on the device side ...
Added by Toxinhead on Thu, 17 Feb 2022 20:45:43 +0200
Chapter 4 numpy's mathematical function, logical function + Exercises
1, Vectorization and broadcasting
The concepts of vectorization and broadcasting are the basis of numpy's internal implementation. With vectorization, you don't need to use explicit loops when writing code. These loops can not be omitted, but are implemented internally and replaced by other structures in the code. The application of vectorizat ...
Added by simonp on Thu, 17 Feb 2022 20:39:37 +0200
Basic Algorithms Quick Sort, Merge Sort, Binary
[Algorithmic Basics Lesson] 1. Basic Algorithms (Top)] Quick Sort, Merge Sort, Binary
1. Basic Algorithms (Top)
1.1 Quick Sort
step
Determine the demarcation point: x = q[l] / x = q[(l + r) / 2] / x = q[r] / randomAdjust range: Recursive processing on left and right ends
Template
void quick_sort(int q[], int l, int r)
{
if ( ...
Added by bedrosamo on Thu, 17 Feb 2022 20:37:59 +0200
selenium delay function (how to determine whether an element has been loaded into the DOM)
selenium driver has its own delay function, which is divided into explicit waiting and implicit waiting. To sum up briefly:
Explicit wait: it is mainly for an element to be visible, clickable, etc. within the specified time. If it exceeds the time, an exception will be thrown.
Implicit waiting: it is mainly facing the whole page. The next ste ...
Added by rudibr on Thu, 17 Feb 2022 20:36:08 +0200
Nginx+Keepalive builds load balancing and high availability
1, Prepare
10.117.201.80 and 10.117.201.81 two physical machines
2, Installation
Skip the installation of Nginx. 80 and 81 need to be installed here. Refer to the previous installation documents The above two physical machines should be installed Download keepalived-2.0.15 tar. gz Unzip to / usr/local / tar -xf keepalived-2.0.15.tar.gz
...
Added by vanzkee on Thu, 17 Feb 2022 20:24:19 +0200
hive tuning example analysis
hive distribute by group application tuning
Group by fields in the table
set hive.auto.convert.join=true;
set hive.auto.convert.join.noconditionaltask=true;
set hive.auto.convert.join.noconditionaltask.size=10000000;
set hive.mapjoin.smalltable.filesize=200000000;
set hive.merge.mapfiles = true;
set hive.merge.mapredfiles = false; --MR Small ...
Added by jaydeee on Thu, 17 Feb 2022 20:24:42 +0200
2020 ICPC Liaoning competition - longest palindrome string (Java)
Title Description
Link: ICPC Liaoning replay
Title Description: Palindrome string is a string that is exactly the same as itself after inversion For example: "ABA", "ACMMCA", "A". Given a series of strings with the same length, please perform the following operations in order to construct the longest palindro ...
Added by danleighton on Thu, 17 Feb 2022 20:23:32 +0200
Dynamic memory management
Stack memory and heap memory
The declared variables and function names are stack memory, but heap memory is used in dynamic memory management. Stack memory is relatively compact, so it has large local correlation. There is a dynamic expansion in the heap during operation, and the release needs to be displayed. new is called at run time. ve ...
Added by argan328 on Thu, 17 Feb 2022 20:12:06 +0200
JavaScript this keyword
JavaScript this keyword
In object-oriented languages, this represents a reference to the current object.
But in JavaScript, this is not fixed. It will change with the change of execution environment.
In a method, this represents the object to which the method belongs.If used alone, this represents a global object.In the function, this repres ...
Added by Morbid on Thu, 17 Feb 2022 20:00:19 +0200
DataStream API for Flink learning (python version)
๐ฆ Today, let's learn about the more basic DataStream API in flink, which is used to process stream data. This article is mainly in the form of pyflink to explain to the small partners who are interested in the content of previous periods ๐:
hadoop topics: hadoop series articles.spark topics: spark series.Flynk topics: Flink series.
๐ The A ...
Added by urgido on Thu, 17 Feb 2022 19:55:58 +0200