[learning notes] self study java notes
Java notes
Java data type - basic type
Character type
Char
Character type, which takes up 2 bytes. Only a single character is allowed. Character quotation marks are forced to use single quotation marks
char a = 'a';
Forced digital conversion of Char
Use Char to cast numbers to output Unicode values of corresponding characters
...
Posted by kotun on Fri, 25 Feb 2022 03:37:15 +0100
Vue3 + Vite2 + TypeScript + Pinia(Vuex)+JSX build an enterprise level development scaffold [out of the box]
With the popularity of Vue3, more and more projects have begun to use Vue3. In order to quickly enter the development state, I recommend a set of enterprise level development scaffolding out of the box. The framework uses: Vue3 + Vite2 + TypeScript + JSX + Pinia(Vuex) + Antd. If you don't talk much nonsense, just start rolling.The scaffold is d ...
Posted by adaykin on Fri, 25 Feb 2022 03:17:59 +0100
bolt of a pure Go KV database
Bolt is a key value database implemented in pure go language, which supports complete ACID practical operation. Although it does not have a perfect query language like SQLite, the interface is simple and easy to use. Bolt itself manages data by using a memory mapped disk file. The logic is clear and the interface is simple and easy to use. The ...
Posted by maltech on Fri, 25 Feb 2022 02:46:20 +0100
The classical "poor cow" problem is described in C language
The classical "poor cow" problem is described in C language
subject
Problem description
Farmer John has n (n ≤ 10000) cows. However, because they produced too little milk, the farmer was very dissatisfied with them and decided to make the least milk into beef jerky every day. But still a little reluctant, John plans to be mercif ...
Posted by broann on Fri, 25 Feb 2022 02:36:48 +0100
Interpretation of Vue source code -- global API
When learning becomes a habit, knowledge becomes common sense. Thank you for your likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.targetDeeply understand the implementati ...
Posted by zeth369 on Fri, 25 Feb 2022 02:24:52 +0100
DVWA learning notes
Security Level: LOW
Brute Force
Source code analysis:
<?php
if( isset( $_GET[ 'Login' ] ) ) {
// Get username
$user = $_GET[ 'username' ];
// Get password
$pass = $_GET[ 'password' ];
$pass = md5( $pass );
// Check the database
$query = "SELECT * FROM `users` WHERE user = '$user' AND password = '$pass';"; ...
Posted by brucemalti on Fri, 25 Feb 2022 02:00:17 +0100
Implementation of ch0 CBsp class
Why use C + + to develop MCU program
In the embedded system with microprocessor as the core, most of them use C language for program design, but with the increase of system scale, the program is more and more complex and maintenance is more and more difficult. Using C + + for development has the following advantages (provided that the compiler ...
Posted by JohnnyBlaze on Fri, 25 Feb 2022 01:46:10 +0100
MyBatis caching mechanism
13.MyBatis caching mechanism
1. Why cache?
When users frequently query some fixed data, they query these data from the database for the first time and save them in the cache. When users query these data again, they do not need to query through the database, but query in the cache. Reduce the loss caused by network connection and database quer ...
Posted by lajollabob on Fri, 25 Feb 2022 01:37:11 +0100
Java learning notes day23 - multithreading advanced
Multithreading advanced
Six states of threads in virtual machine
New status (NEW) -- create thread objectReady state (runnable) -- start methodBlocked ------------- unable to get lock objectWaiting -- waiting methodTimed_waiting -- sleep methodTerminated -------------- all codes have been run
Thread pool
code implementation
Create a poo ...
Posted by rupam_jaiswal on Thu, 24 Feb 2022 19:00:56 +0100
[data structure and algorithm] unidirectional ring linked list and Josephu ring
Josephu
Joseph Ring – the leading out of one-way ring linked list
Josephu's problem is: let n people with numbers 1, 2,... N sit around. It is agreed that the person with number k (1 < = k < = n) will count from 1, and the person who counts to m will be listed. Its next person will count from 1, and the person who counts to m will ...
Posted by mvd7793 on Thu, 24 Feb 2022 19:00:53 +0100