Server side encryption
Ctrl-b %
Ctrl-b "
Ctrl-b <arrow key>
Ctrl-d
Ctrl-b z
Ctrl-b z
againCtrl-b esc-<arrow key>
Ctrl-b c
Ctrl-b p
/ Ctrl-b n
/ Ctrl-b <number>
Ctrl-d
Ctrl-b ,
This article is about the process of defining archiecture, components, modules, interfaces and data for a system to satisfy specified requirement, the structure mainly used for system design interview.
Clarify the problem or in another word, scenarios and use cases (include corner cases).
Below is an example for a video streaming service:
Requirements include functional and non-functional requirements. non-functional requirements includes: scalability, performance, availability, security.
Due to the limit of time, we should prioritize and identify which ones are critical. and for non-functional, we could discuss some trade-offs. For example, a system highly optimized for read operations might have slower write operations.
There is a template for binary search, by using which you do not need to think too much about the boundary and how to narrow down the interval / how to calculate mid value.
1 | // check null … |
Compared with normal binary search, the difference is that it cannot find the optimum value at while loop, instead, it sustains two possible value, and then check them after loop.
The problems are all under: leetcode database section
And my solutions are here: my solution
For question 177, I need to know how to use mysql function.
Delete exists same functionmysql> drop function if exists getNthHighestSalary;
change default delimiter
Since the default delimiter is ;
, change it to ^^
mysql> delimiter ^^
Install HomeBrew
1 | ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
brew install mysql
Start mysql service: mysql.server start
Set password: mysql_secure_installation
Login: mysql -u root -p
./scala
to run it.sudo nano ~/.bash_profile
export PATH=/usr/local/scala/bin:$PATH
1 | Welcome to Scala 2.12.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_121). |