PHP namespace instance description. Copy the code as follows: namespacebakbaba; functionbab () {echobi;} namespacekkk; functionk1 () {echok1;} bakbababab (); use another namespace in the kkk namespace
The code is as follows:
Namespace bak \ ba;Function bab (){Echo "bi ";}Namespace kkk;Function k1 (){Echo "k1 ";}\ Bak \ ba \ bab (); // use another namespace in the k
This object is always a pit in JS, it's hard to tell what it's pointing to, and we often make this kind of mistake because of the experience of self from C + + or Python. Next, let's talk about the ownership of this object in detail.
Rule1: This for the global environment
JavaScript environment is naturally determined by the function, in JS can not be separated by the code block context, the function is not wrapped by the environment is the global environment, the global environment, this poin
Linux systems sometimes need to detect whether a certain condition is set up, then use the Test command, Linux under the use of test has a lot of, the following small set together to learn how to use the Linux System Test command.
1. Judge the result of a command using test, which returns 0, or an integer. Returns 0 to True, returning an integer representing the error code
2. Get the return result of the previous command using $?
3. For example
There is a/home/www folder on my server, so ls/
1. Determine the result of a command using test, which returns 0, or an integer. Returns 0 for true, returns an integer indicating the error code2. Get the return result of the previous command using $?3. For exampleMy server has/home/www such a folder, so ls/home/www The return result of this command is 0;That is, echo $? Returns a value of 0My server does not exist/home/kkk such a folder, so ls/home/kkk t
/xxx/xxx/xxx/xxx/ "), then the path in front of our code can be omitted. 1 php 2 set_include_path ("xxx/xxx/xxx/xxx/xxx /xxx/xxx/xxx/xxx/xxx/xxx/" 3 include ("test1.php" 4 include ("test2.php" 5 include ("test3.php" 6 require ("test4.php" 7 require ("test5.php" 8 ? The Set_include_path function can also set multiple path variables to be used under Linux: Delimited, under windows, and delimited. Like what:1PHP2 Define(' A ', ' xxx/xxx/xxx/xxx/xxx/xxx/xxx/xxx/');3 Define(' B ',
grep is often used when querying messages on the server, summarizing several common, simple commands, and mastering them to make queries more efficient.Basic format:grep [option] Pattern fileSeveral important command parameters, which are not listed here, only list the ones that may be commonly used for quick query:In addition to any parameters that indicate that the search conforms to the content of the style after, the remaining parameters are: -v--revert- match -i--ignore-case #忽略字符大
This in javascript and javascriptthis
This object has always been a pitfall in js, and it is difficult to determine what it actually points to. However, due to the self experience from C ++ or python, this type of error is often made. Next we will detail the ownership of this object.
Rule1: this in the global environment
The javascript environment is naturally determined by the function. In js, context cannot be separated by code blocks. the environment not wrapped by the function is the global
judged. It is consistent with self in python. this undoubtedly points to the object that calls the method.
The Code is as follows:
Var user = {Name: 'kkk'};User. getName = function (){Console. log (this. name );};User. getName ();// Kkk output
Rule3: this is used as the constructor.
At this time, this does not need to be said. It is clearly directed to the newly created object. the run of the constructo
points on the tree."The circle 1 indicates that number 1 has no corresponding point scheme number, and so on. The color section is the complement we require.The following code is attached--1#include 2#include 3#include 4#include 5 using namespacestd;6 7typedefLong LongLL;8 Const intn= -, m= -;9 structnode{intX,y,next;} a[2*N];Ten intLast[n],len; One BOOLV[n][n],vis[n]; A LL F[n][n]; - intB[N],BT; - the voidAddintXinty) - { -len++; -a[len].x=x,a[len].y=y; +a[len].next=last[x],last[x]=Len; - } +
Test the logic of basic Linux commands 1. Test the linux Logic
1. Use test to judge the result of a command. The return value is 0 or an integer. Returns 0 to true, and an integer to indicate the error code.
2. Use $?
3. For example
My server has a folder like/home/www, so the return result of the ls/home/www command is 0;
Echo $? The returned value is 0.
My server does not have a folder such as/home/kkk, so the returned result of the ls/home/
common backdoor method (although the method is very retarded ......).There is another interesting thing about the full name: create an account zzz using the net user, change the password zzz to zxc in the user account. After that, I created a new account named zxc with the password zxc, and logged out. It was speechless:1. Username zzz and password
The order has the following altogether:(1) Enable secretEnable secret 0 password plaintextEnable secret 5 cipher cipher (MD5 encryption)(2) Enable passwordEnable password 0 password plaintextEnable password 7 cipher cipher (CISCO private algorithm encryption)Note: Parameter 0 can also not writeUsage:(1) Enable secretAfter you execute the Enable secret 0 zzz command, you can log in using the password zzzHowever, after you execute the Enable secret 5zzz
makefile or modify the path variable definition to see what happens. 5.2.3 prevents environment variables from being overwritten
You can use the-e option to prevent an environment variable from being overwritten with a variable of the same name, such as the-e option:
Make-f ENVI.MK-E
Terminal printing:
Def
5.2.4 command line variable
Unlike environment variables, the command-line variables specified when you execute make will overwrite the definition of a variable with the same name in mak
-
If you really want to understand C # code, the best way to do that is by understanding the code generated by the C # compiler. This is the focus of this chapter and the following two chapters.
We will use a short C # program to uncover the mystery of IL and interpret the IL code generated by the compiler. In this way, we can "stone": first, we will reveal the mystery of IL, secondly, we will be more intuitive understanding of the C # programming language.
We will first show a. cs file and t
conversion format does not match.
Solution Process and achievements:
Check the JDK manual and find the toString method of the Date class. The description indicates that all the Date classes will be converted into the form of "dow mon dd hh: mm: ss zzz yyyy, what is "dow, mon? On the surface, it seems to be "E" and "MMM". From the tracing results of debug, it looks like "e mmm dd hh: mm: ss zzz yyyy ".
Howe
Original: The difference between date formatting {0:yyyy-mm-dd HH:mm:ss.fff} and {0:yyyy-mm-dd hh:mm:ss.fff}{0:yyyy-mm-dd HH:MM:SS.FFF}: Date formatted with 24-hour format{0:yyyy-mm-dd HH:MM:SS.FFF}: Date formatted with 12-hour formatThe following is the same, from left to right-year-month-day time: minute: seconds. Milliseconds{0:yyyy-mm-dd HH:mm:ss zzz}{0:yyyy-mm-dd HH:mm:ss.ff zzz}{0:yyyy-mm-dd HH:mm:ss.
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.