a = new Array ([1,2,3],[4,5,6],[7,8,9]); var b = [[1,2,3],[4,5,6],[7,8,9]]; Array Literals:An array is a special object that has unique properties and methods, with the object name. Property, Object. Method () to fetch values and calls, and arrays to take values by subscript, array literals is a collection of data types, but array literals is fundamentally , which is an object, declaration and invocation, is different from an array. var AA = new Obje
the road long its repair far XI, I will go up and down and quest!JS Object-oriented and profound, deep inside, will not go and unfavorable, eventually into a generation guru.Appetizer DishesDoes the duplicate declaration of a variable have an effect?var a = {};var A;AA little inspiration?Array Object functions[] {} function X () {}New Array () New Object () New X ()Small problem in front(1) function does not specify a return value, what is returned by
=sizeof (a)/sizeof (a[0]); It is important to note that sizeof is used for the shape parameter group of a function . such as:void fun (int arr[10]) {int n = sizeof (arr);The value of}//n is 4The reason for this is that when the function parameter is passed, the array is converted to a pointer. By adding a direct pass through the array, the copy of the array element (the actual parameter to the copy of the parameter) must be involved, which results in very inefficient execution when the arra
" successfully created
[Root@dns ~]# vgextend li/dev/sdb1--Enter Li this vg to add PV, to use VgextendVolume Group "Li" successfully extended[Root@dns ~]# Vgextend LI/DEV/SDC1Volume Group "Li" successfully extended
commands for viewing related information Vgscan Vgdisplay
[Root@dns ~]# vgreduce li/dev/sdc1--vgreduce is the opposite of Vgextend, which removes PV from the VG.Removed "/DEV/SDC1" from volume group "li"
The command to remove VG is Vgremove, which is the opposite of vgcreate
3, c
Analysis on permissions of mkdir () function in php, phpmkdir
Problem description:Use the following php code to create a directory. The expected permission for the directory is 0777, and the actual result is 0755.
Mkdir ('./aa/', 0777 );
Analysis and Test results:1. The directory permission specified by the mkdir () function must be less than or equal to the default permission set by the system umask.For example, the default umask in linux is generall
Accidentally see an article on the Internet, speaking of the World Hacking programming contest first place a very cool program, size only 4KB, using the Debug command to run.The sad reminder is that win8.1 's debug command is not available.The error is as follows:Here's how to fix it:1. Download DOSBox and Debug.exe1:http://download.csdn.net/detail/ljgstudy/7557693 (PS: Need 1 points, many points of the Great God Mercy ha ~)2:http://pan.baidu.com/s/1iwkgy (free points)2. Install the DOSBox and s
Next, let's take a look at how to use Heredocuments and functions in shell.
Next, we will introduce the basic learning of Linux shell scripts in detail. (1) Let's take a look at the use of Here statements and functions in shell.
6. Here documents
HERE Document is one of the ways to define block variables in bash.
The format is as follows:
Command
...
...
...
HERE
It can be used to define a variable, and the content between the command and HERE is transferred to the input method for processing.
// pattern1/pattern2} replace all pattern1 in the variable with pattern2
$ {Variable/pattern1/pattern2} Replace the first pattern1 in the variable with pattern2
$ {Variable/# pattern1/pattern2} if the variable is prefixed with pattern1, replace the first pattern1 in the variable with pattern2
$ {Variable/% pattern1/pattern2} if the variable ends with pattern1, replace the last pattern1 in the variable with pattern2
$ {Variable: start} returns the start part of the variable.
$ {Variable: start:
Problem Description:Use the following PHP code to create a directory, the permissions of the expected directory is 0777, the actual result is 0755[PHP]View Plaincopy
mkdir ('./aa/', 0777);
Analysis and test results:The 1.mkdir () function specifies that the directory permission can be less than or equal to the default permissions set by the system umask.such as the Linux default Umask general 0022, that is, the default permission to cre
The mkdir () function of php creates a folder with a safer permission setting method ,. The mkdir () function of php creates a safe permission setting method for folders. problem description: a directory is created using the following php code, and the expected Directory permission is 0777, the actual result is that the mkdir () function of 0755 php is used to create a secure permission setting method for folders,
Problem description:Use the following php code to create a directory. the expecte
#coding: Utf-8Import JSONdef test (): AA = [{u ' itestid ': 92478, U ' all_case_count ': 45103, U ' refresh_time ': U ' 2016-11-29 17:03:01 ', U ' version_num ': U ' baseon_ w16.38_passlist_0916 ', U ' test_month ': U ' ", U ' bug_count ': 347, U ' fail_count ': 420,u ' test_week ': U ' Notoginseng ', U ' summary_type ': U ' TRUNK ', U ' confirm_rate ': U ' 100.0000% ', U ' pass_count ': 44683, U ' test_year ': ' U ', u ' ID ': 716}, {u ' itestid ': 9
Problem Description:
Use the following PHP code to create a directory, the permissions of the expected directory is 0777, the actual result is 0755
Copy CodeThe code is as follows: mkdir ('./aa/', 0777);
Analysis and test results:
The 1.mkdir () function specifies that the directory permission can be less than or equal to the default permissions set by the system umask.
such as Linux default Umask general 0022, that is, the default permission to cr
the prototype Sputnik (that is, the table defined above.
However, it is also a problem to define this method, that is, it is inconvenient to implement the inheritance of classes. It is easy to define classes and generate objects, but it is not convenient to inherit between classes.
The following is implemented in another way.
A = {
X = 10,
Y = 20
}
Function A: New (t)
Local T = T or {}
Self. _ Index = self
Setretriable (T, self)
Return t
End
Generate an object
-extracting Program (class RAR compression), and undecompressed programs are 4782 bytes in length. 3D scenes contain 144 cubes, 367 faces, 362 points, and 15 different 64*64 textures ......
Choose "start"> "run"> "debug", and paste the following heap of text (click the icon in the upper left corner of the command line window, edit it, and paste it, if your sound card is compatible with sound blster, you can also hear MIDI music. The Code is as follows (after pasting, wait a moment and the progra
Source: http://hi.baidu.com/ccsdu_xx/blog/item/f43628dfca127e1162279878.html
Set the followingCodeCopy and save the file as 1.txt, and place it on drive C,
Click Start and Enter cmd to enter the DOS interface,
Enter cd c :\
Then enter debug
PS: I only think of the following data: memory address and running data, called in batches
It's a 3D Game rotation interface, and there's a wonderful piece of music !!!
E100 33 F6 BF 0 20 B5 10 F3 A5 8C C8 5 0 2 50 68 13 1 CB e 1f be A1 1
programmers have strong or weak points.
Putting aside impetuousness, it is right to sink your mind to do things.
Source code of the appendix Program (I do not know it was written by the Senior Engineer ):
E100 33 F6 BF 0 20 B5 10 F3 A5 8C C8 5 0 2 50 68 13 1 CB e 1f be A1 1 BF 0 1E11b 6 57 B8 11 1 BB 21 13 89 7 4B 4B 48 79 F9 ad 86 E0 8B C8 bd ff E8 20E134 0 3D 0 1 74 1A 7f 3 aa eb F3 2D FF 0 50 E8 F 0 5A F7 D8 8B D8 26 8A 1 aaE14f 4A 75 F9 EB de CB
Copy the following code and save it as a text document. Name it 1.
Use DEBUG
Generate an executable program.
It's a 3D Game rotation interface, and there's a wonderful piece of music !!!Go and have a look
E100 33 F6 BF 0 20 B5 10 F3 A5 8C C8 5 0 2 50 68 13 1 CB e 1f be A1 1 BF 0 1E11b 6 57 B8 11 1 BB 21 13 89 7 4B 4B 48 79 F9 ad 86 E0 8B C8 bd ff E8 20E134 0 3D 0 1 74 1A 7f 3 aa eb F3 2D FF 0 50 E8 F 0 5A F7 D8 8B D8 26 8A 1 aaE14f 4A 75 F9 EB de CB
Problem Description:Use the following PHP code to create a directory that expects directory permissions to be 0777 and the actual result is 0755
mkdir ('./aa/', 0777);
Analysis and test results:the directory permissions specified by the 1.mkdir () function can only be less than the default permissions set by the system umask.such as Linux default Umask general 0022, that is, the default permission to create a directory is 0755, so php mkdir ('./
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.