Find the service name corresponding to the port number in linuxSearch for the corresponding service name 1) grep-w port number/etc/services 2) grep "\ B port number \ B"/etc/services. Port 2049 is used as an example, run grep-w 20
Title Link: https://cn.vjudge.net/problem/POJ-2752Test instructionsGive a string the number of prefix strings with the same prefix string as the suffix stringExample: AlalaOutput: A, Ala, AlalaIdeasThink about it, the return value of Fail[len] is actually the maximum number of successful suffix strings.After getting this suffix string, the string smaller than this string must still be included in this new s
Variable A = 8 and array b = Array (1,3,5,7,8.9,9,11.3) that have been arranged in size order;
Suppose the array length is unknown, the value of the variable is unknown, and the array key values are arranged from small to large.How to quickly find the size of quantity a in, array B between the key name and the key name
Eg:a=8, between B[4] and B[5]
Reply cont
[Android small project] is different. It is adapted from an open-source small application "looking for family names ., Android Family Name
Recently, in the circle of friends, games such as "Searching for family names" and "Wanli searching for knives" are quite popular. I tried to write an android version which contains a series of close-to-word characters. The implementation principle is very simple: use a GridView and make each item square. Click th
Title:Query the name of the department, the number of employees in the department, the average salary of the department, the name of the lowest-income employee and the highest-income employeeThis is a study questions between the EMP and Dept tables under the default Scott user of Oracle.Employee table (EMP)Records the basic information for each employeeNO Field t
, and when there is no corresponding name, the group identifier is displayed;-I: Do not list file and directory names in ladder form;-l:-L: If you encounter a directory with a symbolic connection, directly list the original directory that the connection points to;-N: Do not add color to the list of files and directories;-N: Lists file and directory names directly, including control characters;-P: Lists the permission marks;-p:-Q: With "? "
Recent items online A bug that reported that the encryption control was entered as empty, because the ios,android,web side is reported, But did not find the reason, because it is even now, so in order to catch this problem, we have to send the error message to the backstage, so write a method to obtain. 1. Get method Name: public static String Getcurrentmethodname () { int level = 1; stacktraceelemen
Aapt command to obtain apk details (package name, version number, version name, compatible api level, start Activity, etc.), aaptapk
The aapt command obtains the apk details (package name, version number, version name, api Co
I am using a sniffer tool called Dnsquerysniffer, which can display real-time DNS query records for local computers, and for each DNS resolution query, display the following information: Host name, port number, query ID, request type, request response time, response code, etc. and returns the contents of the DNS record. Domain name added to the Hosts file, Dnsque
Common:I am always used to call the common law, because I really can not find a proper name to describe it, in fact, is the simplest way, a little program based on the people are able to think, that is the SHIFT + count, very simple, not much to say, directly on the code, this method of operation of the number of input n is the highest bit 1 of theintBitcount (un
(1) Search by filename and inode:
-name "file name": Supports the use of Glob
find/etc/-name "*pas?wd*"
*,?, [], [^]
-iname "file name": Case-insensitive
find/etc/-iname *pas?wd*
-inum n Press
mode, and a prompt is given before each command to let the user determine whether to execute.4, Command options:(1) Time-related parameters:-atime-ctime-mtime The following is illustrated with-mtime as an example:-mtime n : N is a number that has been changed in "one day or less" before the meaning of n days;-mtime +n : Lists the file names that were changed before n days (excluding the N-day itself);-mtime-n : Lists filenames that have been changed
The main query is to determine the main table of the query, and the secondary table.In this case we can confirm that it is a subquery.The main table is our student table: Tblstudent can find the student's school number, nameThe auxiliary table is the score table, TblscoreWrite your own statement as follows:SELECTTblstudent. Stuid,tblstudent. Stuname,xuankeshu.kscount,kccj.countscore fromTblstudent, (SELECT
-links The option Plus number will find all files with a specific number of hard links, preceded by a Suzi + modifier will find the number of hard links more than the given number of files, if the
use of the Find command:Definition: Perform a real-time search on the local file system to find files that match the conditions of the command line parameters.Use format: Find target file match option match parameterThe first argument to find is the directory to search for, and if the directory parameter is omitted,
/imagemagick-6.8. 9-tar.gz/root/oneinstack/src/php-5.6. - . tar.gz/root/oneinstack/src/mysql-5.5. - . tar.gz/root/oneinstack/src/php-7.0. 3 . tar.gz/root/oneinstack/src/percona-server-5.6. -76.1. Tar2.3 Find Hard LinksWe use the Inode number to find the hard link because the inode number of the hard link is the same
######################################################################################################find ...-exec rm {} \;The find command can be found to delete the results, the difference is simply the former is to find the results of the search to the EXEC option, so when the number of files, there may be "too man
What you often do and what you always want
Obscure if condition
1) Processing |
The above Code takes more time to understand than the following code
Although reducing the number of lines of code is a good goal, it is a better goal to minimize the time required to understand the code.
Return Value
The above "$ ret" is the toast of "I can't think of a name. Instead of using such an empty
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.