there is a regular expression location# Not used[Configuration D]}Location ~ * \. (Gif | jpg | jpeg) $ {# Match all requests ending with gif jpg jpeg. However, for requests starting with/images/, Configuration D is used.[Configuration E]}Request matching example/-> Configuration/Index.html-> configuration B/Documents/document.html-> configuration C/Images/1.gif-> configuration D/Documents/1.jpg-> configuration ENote that the above matching is irrelevant to the sequence defined in the configurat
');$total_page=total_page($GLOBALS['G_DY']['db']['prefix'].'order where uid='.$this->my['id']);$this->lists=$c->syPager($this->syArgs('page',0,1),10,$total_page)->findAll(array('uid'=>$this->my['id']),' addtime desc ');$c_page=$c->syPager()->getPager();$this->pages=pagetxt($c_page,$GLOBALS['G_DY']['url']["url_path_base"].'?c=membera=myorder');$this->display("member/myorder.html");}}
This code is used to view the user's order informationRow 254,255,256 is the key pointHowever, the condition use
. string (from: currentDate) print (stringDate) // Friday, August 19,201 6
Output date with custom specifier
EEEE: The full name of a day. For example, Monday. 1-3 E stands for short name, for example, Mon.
MMMM: The full name of a month. For example, July. Use 1-3 M to indicate short name, such as Jul.
Dd: the number of digits in a month, such as 07 or 30.
Yyyy: indicates the year represented by four numbers, such as 2016.
HH: represents the hour represented by two numbers, suc
(stringdate)//August 19, 2016 Dateformatter.datestyle = DateFormatter.Style.fullStylestringDate = dateformatter.string (from:currentdate) print ( stringdate)//Friday, August 19, 2016
Output date using custom specifiers
Eeee: Represents the full name of a day, such as Monday. Use 1-3 e to represent shorthand, such as Mon.
MMMM: Represents the full name of the one month, such as July. Use 1-3 m to represent shorthand, such as Jul.
DD: Represents the number of one months, s
) //August19,2016dateFormatter.dateStyle= Dateformatter.style.fullstylestringdate=dateformatter.string (from:currentdate) print ( StringDate) //friday,august19,2016
Output date using custom specifiers
Eeee: Represents the full name of a day, such as Monday. Use 1-3 e to represent shorthand, such as Mon.
MMMM: Represents the full name of the one month, such as July. Use 1-3 m to represent shorthand, such as Jul.
DD: Represents the number of one months, such as 07 or 30.
YYYY:
:{age:0},
finalize:function ( Doc) {
doc.age=doc.age+;
},
reduce:function (cur, result) {
if (cur.age>result.age)
= cur.age;
= cur.name;
}
})Uncle Dolphin.Links: http://www.jianshu.com/p/5b32d7612d08Source: Pinterest The functionality of the aggregation pipeline is simple in two ways:
"Filter" the document, that is, to filter out eligible documents;
"Transform" the document, that is, to change the output form of the document.
# # # # # # # # # # $project # 1.
Sort by the second character of the 1th field, if the field is only 1 characters followed by a number, the order of the letters after the normal sort of 2 charactersRepeated lines in a uniq are repeated without repeating rows, such as:1122And the sort in-u to achieve uniqueness, that is, the meaning of removing duplicate rows:1122And1231Two kinds ofI thought for a long while to figure out, first sort of the neighboring are photographed together, and then use Uniq to show the number of adjacencya
of the list, and it also returns the element. 6 PrintListThe result is:> ['123'dudu'iiiu'] iiiududu['du'123'Dudu "'iiiu') Tuple tuplesA python tuple is similar to a list, except that the elements of the tuple cannot be modified (there is an example later proving that it is also "mutable"). Tuples use parentheses , and the list uses square brackets.Tuple creation is simple, just add elements in parentheses and separate them with commas.Tuples can use the subscript index to access the values in
Destoon the system automatically connects the database after the system is initialized and saves the database operations object to $DB. For database operation methods please refer to the Include/db_mysql.class.php function prototype, the following examples of common database operations.
1. Execute SQL statement
$db->query ("INSERT into ' {$DT _pre}table ' (' xxx ') VALUES (' yyy ')");
$db->query ("UPDATE" {$DT _pre}table ' SET ' xxx ' = ' yyy ' WHERE '
problem
The data in the computer is stored in binary form, so that when the text is transferred, the conversion between the bytes of the character occurs. The conversion between characters and bytes is done through the Code table, the process of converting characters into bytes is called encoding, and the process of converting bytes to characters is called decoding, and if the Code table used for encoding and decoding is different, garbled problems will occur.
Note: The HttpServletResponse
We created an interface III, which has only one function named PQR. Then, the class YYY implements Interface III, but does not implement the function PQR, but instead adds a function called ABC. In the entry point function Vijay, the function PQR is called by Interface III.
We did not get any errors because of the existence of the override directive. This instruction notifies the compiler to redirect any calls to the function PQR of interface III and to the function ABC of the class yyy. The co
]][-F Inactive] [-e Expire] [-P passwd] [-R] NameMain parameters-C: Add note text, note text is saved in passwd's remarks column.-D: Specifies the start directory at which the user logged in.-D: Change the preset value.-e: Specifies the expiration date of the account and the default is permanent.-F: Specify the number of days after the password expires to close the account.-G: Specifies the group to which the user belongs.-G: Specifies the additional group to which the user belongs.-M: Automatic
Boog;title : Remove the IP address of the eth0The first approachIfconfig eth0|grep "inet addr" |awk-f ":" ' {print '} ' |awk-f ' "' {print '} 'The second approachIfconfig eth0|sed-n "2p" |awk-f " ": "+" '{print '}'with a colon space as a delimiter,the + symbol changes the number of consecutive delimiters to 1 . The third method ofIfconfig eth0 |sed-n ' inet addr/p ' |sed ' s#^.*addr:# #g ' |sed ' s# bc.*$# #g 'Fourth methodIfconfig eyh0|sed-n ' s#^.*addr:\ (. *\) BC.*$#\1#GP 'The content in p
We know that source is executing a script, so what's the difference between him and ordinary execution?test1.sh#!/bin/shexport kkk=111General execution:[Email protected]:~$./test1.sh[email protected]:~$ Echo $KKKNo results.Source execution:[Email protected]:~$ source Test1.sh[email protected]:~$ Echo $KKK 111Have the result.Why is that?because./test1.shis in the childShellrun in, and did not reflect to the
]][-F Inactive] [-e Expire] [-P passwd] [-R] NameMain parameters-C: Add note text, note text is saved in passwd's remarks column.-D: Specifies the start directory at which the user logged in.-D: Change the preset value.-e: Specifies the expiration date of the account and the default is permanent.-F: Specify the number of days after the password expires to close the account.-G: Specifies the group to which the user belongs.-G: Specifies the additional group to which the user belongs.-M: Automatic
parameters-C: Add note text, note text is saved in passwd's remarks column.-D: Specifies the start directory at which the user logged in.-D: Change the preset value.-e: Specifies the expiration date of the account and the default is permanent.-F: Specify the number of days after the password expires to close the account.-G: Specifies the group to which the user belongs.-G: Specifies the additional group to which the user belongs.-M: Automatically establish the user's login directory.-M: Do not
parameters-C: Add note text, note text is saved in passwd's remarks column.-D: Specifies the start directory at which the user logged in.-D: Change the preset value.-e: Specifies the expiration date of the account and the default is permanent.-F: Specify the number of days after the password expires to close the account.-G: Specifies the group to which the user belongs.-G: Specifies the additional group to which the user belongs.-M: Automatically establish the user's login directory.-M: Do not
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.