Java multithreading overview
Thread overview
Almost all operating systems support running multiple tasks at the same time. A task is usually a program, and each running program is a process. When a program is running, it may contain multiple sequential execution flows, each of which is a thread.
Threads and processes
Almost all operating sys ...
Posted by jackliu97 on Mon, 04 May 2020 04:23:08 -0700
SQL Server Database Foundation (the most commonly used database and table building, 54 classic cases and syntax formats)
Building database and table:
if DB_id('TicketManager ')is not null --Judge whether the database already exists
drop database TicketManager --Remove the existing database
go
create database TicketManager --New database
on
(
name='TicketManager ',--Database name
filename='E:\CS Review cases of Architecture\TicketManager\DB\TicketManager. ...
Posted by waltonia on Mon, 04 May 2020 04:11:09 -0700
Common commands for troubleshooting online problems
Memory bottleneck
free
free is to view memory usage, including physical memory, swap memory, and kernel buffer memory.
Free-h-s 3 represents the output of memory every three seconds with the following commands
[1014154@cc69dd4c5-4tdb5 ~]$ free
total used free shared buff/cache available
Mem: 119623656 ...
Posted by jdavidbakr on Mon, 04 May 2020 01:08:35 -0700
2n Queen's question
Problem description
Given an n*n chessboard, there are some positions in the chessboard where the queen cannot be placed. Now we need to put n black queens and n white queens into the chessboard, so that any two black queens are not on the same line, column or diagonal, and any two white queens are not on the same line ...
Posted by therealchuckles on Sun, 03 May 2020 21:58:16 -0700
Cookie of Java Web session Technology
Conversational Technology
Session: multiple requests and responses in one session
One session: the browser sends a request to the server for the first time, and the session is established until one party disconnects
Function: share data among multiple requests within the scope of one session
Method:
Client session Technology: Cookie
Sessio ...
Posted by nakkaya on Sun, 03 May 2020 20:03:23 -0700
node review express create project
express installation
npm install express -g
//Initialize project
node init
//Install express
npm install express
After that, create a new app.js file with the following contents
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('Hello World!');
});
var server = app.listen(3000, funct ...
Posted by kevdotbadger on Sun, 03 May 2020 16:56:14 -0700
bzoj 4892: [Tjoi2017]dna hash + dichotomy
meaning of the title
The Institute of biology at the University of garridon found the gene sequence s that determines whether people like to eat lotus root, and the base sequence with this sequence will show the character that they like to eat lotus root. However, the researchers found that the base sequence s can still show the character of ...
Posted by Trs2988 on Sun, 03 May 2020 14:25:57 -0700
Oracle Starter Four
Last: Oracle Starter Three
Learning Video: https://www.bilibili.com/video/BV1tJ411r7EC?p=35
Oracle table connection: internal connection, external connection.The outer connection is divided into left connection and right connection.
In a multi-table query, if there is no conditional association between tables, all matching results will be found ...
Posted by dbrimlow on Sun, 03 May 2020 10:12:58 -0700
[LOJ2274][JXOI2017] add binary answer + priority queue
The general idea is: first, bisect the answer x, and check is to scan from left to right. If the current value is less than x, greedily select the rightmost endpoint to add it, and then maintain the interval addition with line tree / tree array, or directly maintain the times of addition with priority queue.
Specifically, open two priority qu ...
Posted by PugJr on Sun, 03 May 2020 00:20:12 -0700
Auto scroll screen capture like miui
Project address: android-notes/auto-scroll-capture
Introduction: automatic scrolling screenshots like miui
I wrote a blog a long time ago, which is totally different from other long screenshots, but it's very hasty. Now I'll rearrange it android long screenshot beta1
miui auto scroll long screenshot effect
painting
Nest a FrameLayout ...
Posted by Nukeum66 on Sat, 02 May 2020 11:18:26 -0700