complete.: Set Wrapscan re-search, when searching to the head or end of the file, return to continue the search, by default open.Replace commandThe RA replaces the current character with a, when the period character is the character of the cursor.s/old/new/replace new with old, replacing the first match of the current rows/old/new/g replace new with old, replacing all occurrences of the current row%s/old/new/replace new with old, replacing the first match of all rows%s/old/new/g replace new wit
'%s ' 1 2 3 4 5 6 # put 1 2 3 4 5 6 as a string output with a blank output formatprintf '%s\n ' 1 2 3 4 5 6 # Output format is 1 rowsprintf '%s%s '%s ' 1 2 3 4 5 6 # Content As String three for a set of outputs, 1 2 34 5 6printf '%s%s%s\n ' 1 2 3 4 5 6 # Output format is 3 rowsprintf '%s ' $ (cat user.txt) # Output text content is a stringprintf '%s\t%s\t%s\t%s\n ' $ (cat user.txt) # Format output of text content"Awk"The standard output command for awk is printf, and the default delimiter is a
) (commonly used), NX N is a number that continuously deletes n characters backwards. Bowl example, I want to delete 10 characters, "10x" continuously. d$ Delete the cursor at the end of the line, all the characters d0 the row, and all the characters at the beginning of the row are deleted.For row operations: DD deletes the entire column (common) ndd n is the number of the cursor. Delete the row where the cursor is located n rows down, for example 20D
to replace! Common
Delete, copy and paste on
X, X
In one line of words, X is the backward deletion of a character (equivalent to the [Del] key), and X is to delete a character (equivalent to [backspace], which is the backspace) (common)
Nx
N is a number that continuously deletes n characters backwards. For example, I want to delete the 10 characters consecutively, "10x".
Dd
Delete
Char is the underlying type of Java (the original type) and is a character type. Characters in Java are Unicode-encoded, so a Java character occupies 2 bytes, and the content of the character is stored in Unicode code values (binary numbers). The question is, how does the program convert Unicode code values to the program data we want? For example: Chinese characters ' Han ' corresponds to the Unicode code value: 0x6c49. We want the program data to be ' Han ', while the computer stores the code
10x, after the current position after inserting 3! , 3a! W moves forward one word (the cursor stops at the beginning of the word), and if it is at the end of the line, go to the start of the next line. This command is fast and can replace the L command.b Move backward one word 2b move backwards 2 wordsE, with W, except that the cursor stops at the tail of the word.GE, with B, the cursor stops at the end of the word.^ Moves to the first non-whitespace
One, vim repeat command 1. Repeat the last commandIn normal mode . (decimal point) means the last command operation is repeatedCopy test files to a local directory$ cp /etc/protocols .Open a file for editing$ vim protocolsNormal mode input x , delete the first character, the input . (decimal point) will be deleted again a character, in addition to also can be repeated dd delete operation2. Execute commands of the same number of timesEnter Normal mode input N , n indicates the number of repetitio
One, bitwise operatorsThe previously learned operators are either variable-based or constant.Example 1:Class test1{public static void Main (String [] args) { | ^ ~All four of the above operators are bit-based.: Each one compares, there are 0 0, no 0 1.// | : Each person compares, there are 1 1, No 1 0.^:, same is 0, different 1.~: Each one is reversed.System.out.println (63);System.out.println (6|3);System.out.println (6^3);System.out.println ();}}/*============================110 011----------
moves the n characters of the line to the right. For example 20
0 or function key [Home]
This is the number "0": Move to the front of the line prompt (common)
$ or Function key [End]
Move to the last face of this line prompt (common)
X Remove one character backwards
Nx
N is a number that continuously deletes n characters backwards. For example, I want to delete the 10 characters consecutively, "
, many commands can be used with the number, such as delete 10 characters 10x, after the current position after inserting 3! , 3a! W moves forward one word (the cursor stops at the beginning of the word), and if it is at the end of the line, go to the start of the next line. This command is fast and can replace the L command.b Move backward one word 2b move backwards 2 wordsE, with W, except that the cursor stops at the tail of the word.GE, with B, th
N and n is extremely helpful! Can let you repeat to find some of the keywords you search! : n1,n2s/word1/word2/g N1 and N2 are numbers. Look for the string word1 between N1 and N2, and replace the string with Word2! For example, search for vbird between 100 and 200 rows and replace it with Vbird: ": 100,200s/vbird/vbird/g". (common): 1, $s/word1/word2/g look for the word1 string from the first line to the last line, and replace the string with Word2! (common): 1, $s/word1/word2/gc look for the
multiple values to a template, each of which corresponds to a format character. A ="I ' m%s. I ' m%d year old"% ('Vamei', 99)Print(a)#You can also use dictionaries to pass real valuesPrint("I ' m% (name) s. I ' m% (age) D- old"% {'name':'Vamei',' Age': 99})The format can be further controlled in the following ways:%[(name)][flags][width]. [Precision]typecode(name) is namedFlags can have +,-, ' or 0. + Indicates right alignment. -Indicates left alignment. ' is a space that fills a space on the l
include.
Pay special attention to the inline and templateThese are two "advanced" mechanisms in C + +, but they force us to include implementations in the header file, which makes a significant contribution to adding the contents of the header file and slowing down the compilation speed. Before using, weigh it.
Comprehensive skills
Precompiled header File (PCH)Put some common but infrequently changed header files in the precompiled header file. This way, at least in a single project
number (depending on display length)Percent% character "%"The format can be further controlled in the following ways:%[(name)][flags][width]. [Precision]typecode(name) is namedFlags can have +,-, ' or 0. + Indicates right alignment. -Indicates left alignment. ' is a space that fills a space on the left side of a positive number to align with a negative number. 0 means using 0 padding.Width indicates display widthsPrecision indicates the precision after the decimal pointLike what:Print ("%+
shmsys:shminfo_shmseg=20:
Semmni
Meaning: The maximum number of semaphore identifierer in the system.
Set method: Set the value of this variable to the maximum of all instances of Oracle on this system Init.ora
That processes of that value plus 10.
Example: Set semsys:seminfo_semmni=100
Semmns
Meaning: The maximum number of emaphores in the system.
Set method: This value can be computed in the following way: The Initsid.ora inside of each Oracle instance
The sum of the values of the processes (
Res.onload =null;
13
Callback ();
14
_self.loadedui[modelname] =true;
15
}
16
Res.onerror =function () {
17
Thrownewerror (' res error: ' + modelname+ '. js ');
18
}
19
}
2. The naming of all components is best kept consistent, and callback calls are also more convenient. You can also add parameters as
, so can only be based on its own set of a code page to decode, For example, according to Japanese decoding, the solution will be "Teresa Teng" these three words. If the keyword is wrong, the natural query is not.
Here are three CDDB query "Teresa Teng" results URL:
http://www.freedb.org/freedb_search.php?words=%26%2337011%3b%26%2320029%3b%26%2321531%3ballfields=no Fields=artistfields=titleallcats=yesgrouping=none
http://www.gracenote.com/music/search-adv.html?q=qartist=%e9%82%93%e4%b8%bd%e5%90%
lock independent objects directly, rather than locking the entire memory space to be allocated. The allocation of small objects in the thread-local area can completely ignore the existence of the lock. Without the lock request and release, the speed of the thread-local small object's access is greatly increased.
This new memory allocator dramatically increases the speed of memory allocations and speeds up to 10x.
At the same time, art's garbage col
On the weekends. The environment for developing an Android application using ADT in Eclipse is, of course, as we all know, that the Android emulator simulator is really slow to start and run, and is "legendary", hehe. Of course, Intel last year developed and posted a driver for Android emulator on Google's Android website, dramatically boosting the startup and operational efficiencies of Android emulator on the Intel x86 platform, This improves the efficiency of Android application developers wh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.