How to calculate TTI
TLDR
TTI refers to the interactive time point between the user and the UI interface, which cannot be directly detected by the browser API.
The key indicators of TTI are related to longtask, network status, FMP and quiet window.
The TTI is comprehensively calculated by using the request agent and the browser MutationObserver.
It's a good experi ...
Posted by Desertwar on Sat, 30 Oct 2021 22:20:26 -0700
Segment tree (from beginner to advanced)
First, before explaining the segment tree, you should understand that the segment tree should be a tool that can change the time complexity of O(N) into o (logN) for modifying and maintaining intervals (or segments).
1, Introduction of segment tree concept
Segment tree is a binary tree, that is, for a segment, we will use a binary tree to ...
Posted by gvanaco on Sat, 30 Oct 2021 22:17:04 -0700
Detailed explanation of CSS composite selector - HTML
catalogue
1. Descendant selector
2. Sub element selector
3. Union selector
4. Pseudo class selector
4.1 link pseudo class
4.2: ficus pseudo class selector
In CSS, selectors are divided into basic selectors and conforming selectors according to selector types. Compound selectors are formed by combining basic selectors based on basic sele ...
Posted by Mohammad on Sat, 30 Oct 2021 21:56:09 -0700
188. The best time to buy and sell stocks IV
catalogue188. The best time to buy and sell stocks IVsubjectProblem solution
188. The best time to buy and sell stocks IV
subject
Given an array of integers prices, its i-th element prices[i] is the price of a given stock on day I.
Design an algorithm to calculate the maximum profit you can make. You can complete up to k transacti ...
Posted by valtido on Sat, 30 Oct 2021 21:47:05 -0700
Boost smart pointer - scoped_ptr
boost::scoped_ptr and std::auto_ptr is very similar. It is a simple smart pointer, which can ensure that the object is automatically released after leaving the scope. The following code demonstrates the basic application of this pointer:
#include <string>
#include <iostream>
#include <boost/scoped_ptr.hpp>
class implementati ...
Posted by rsassine on Sat, 30 Oct 2021 21:46:14 -0700
Special class design, singleton mode
catalogue
1, Please design a class that can only create objects on the heap
2, Designing a class can only create objects on the stack
3, Design a class that cannot be copied
4, Designing a class cannot be inherited
5, When designing a class, only one object can be instantiated
five point one The singlet ...
Posted by jhenary on Sat, 30 Oct 2021 21:30:46 -0700
day10_ Elementary knowledge of function
Concept and definition of function
What is a function?
Function is to integrate a piece of code block with independent functions into a whole and name it, and call the name where needed to complete the corresponding requirements. In the development process of function, code reuse can be realized more efficiently.
characteristic:
In Python, ...
Posted by dagon on Sat, 30 Oct 2021 20:59:45 -0700
Database class notes 11 (slow query log)
analysis
● 1. Observe and run for at least one day to see the slow production ● 2. Start the slow query log, set the threshold value, for example, slow SQL is more than 5 seconds, and grab it ● 3.explain + slow SQL analysis ● 4.show profile ● 5. Optimize the parameters of SQL database server (O & M or DBA)
summary
● 1. Enable and capture ...
Posted by sw9 on Sat, 30 Oct 2021 20:30:39 -0700
Java description LeetCode, 123. Best Time to Buy and Sell Stock III
Hello, I'm hehaige. I focus on the back end. If I can, I want to be a code designer instead of an ordinary coder to witness the growth of hehaige. Your comments and praise are my biggest motivation.
1-1: title
You are given an array prices where prices[i] is the price of a given stock on the ith day.
Find the maximum profit you can achieve ...
Posted by cristiano on Sat, 30 Oct 2021 20:21:34 -0700
Jetson nano deployment process record: yolov5s+TensorRT+Deepstream detects usb camera
catalogue
0 preparation:
1. Burn system image
1) Download system image
2) Format SD card
3) Write image using Etcher
4) Boot with SD card
2. Increase swap memory
3. View cuda version
4. clone darknet source code and compile
5. Torch and torch vision installation
6. Yolov5 environment construction
7. Tensorrt make & infere ...
Posted by Helaman on Sat, 30 Oct 2021 20:03:44 -0700