Tags: Linux DNSYum install-y bind (Install DNS service)vim/etc/named.conf (Edit DNS configuration file, add a zone, as below)zone "123.com" in {Type master;File "123.com.zone";};Named-checkconf (see if the configuration file is correct)Vim/var/named/123.com.zone (edit 123.com zone, the format is as follows)$TTL 1D@ in
Php syntax, string type? Php syntax: when defining a string, the string must be enclosed by single quotation marks, double quotation marks, or no symbols.
For example:
$ X = 123;
$ Y = "123 ";
$ Z = '000000 ';
Are these three variables the same?
Reply to discussion (solution)
The first one is the same as the last two integers. it is a string type. However, strings of numbers are sometimes used as numb
Atomicinteger ();
This example creates a atomicinteger with an initial value of 0.If you want to create a atomicinteger with a given initial value, you can do this:
Atomicinteger Atomicinteger = new Atomicinteger (123);
This example passes 123 as a parameter to the Atomicinteger constructor, which sets the initial value of the Atomicinteger instance to 123
variable, we can also use the echo command:
Copy Code code as follows:
[Root@localhost ~]# Cat note.sh
#!/bin/bash
echo "Phone number?"
Read phone
echo "You have entered $phone as a phone number"
[Root@localhost ~]#./note.sh
Phone number?
123456
You have entered 123456 as a phone number
[Root@localhost ~]#
In the bash shell, we typically use the $ (dollar) symbol to indicate that this is a variable, except that it is not available in the variable and a
Basic JavaScript data types and types detection, javascript Data Types1. [basic JavaScript Data Types] JavaScript has dynamic types. This means that the same variables can be of different types."String" "number" "object" "boolean" "function" "undefined"Attribute:Str. length
Var str = "123, ABC, 900, rgy, rrrr"; console. log (str. length); // 20var str = "123, ABC, 900, ran Guangyu, rrrr"; console. log (str.
,Text)
Text
Converts an integer to a string.
To_char (125, '123 ')
To_char(Double Precision,Text)
Text
Convert real numbers/double-precision numbers into strings
To_char (125.8: Real, '999d9 ')
To_char(Numeric,Text)
Text
Converts numeric to a string.
To_char (-125.8, '999d99s ')
To_date(Text,Text)
Date
Converts a string to a date.
To_date ('05 Dec 2000 ', 'dd mon yyy
Python subclass inherits the parent class (pass arguments and do not pass arguments)Class A (object):def __init__(self,a='A'): Print('Enter:', a)Print('Leave:', a) Class B:def __init__(self,a=None):Print('ENter B') Super (b,self).__init__(a)Print '111'b=B ()Print '222'b=b (123) Output:111Enter B ('ENter:', None) ('Leave:', None) Leave B222Enter B ('ENter:', 123)('Leave:',
Today in the project, you need to listen to the headset Plug and play, so I wrote the following a small demo, the headset monitoring events to verify. Look directly at the code PackageCom.example.alert; ImportAndroid.content.BroadcastReceiver; ImportAndroid.content.Context; Importandroid.content.Intent; ImportAndroid.util.Log;ImportAndroid.widget.Toast; Public classHeadsetplugreceiverextendsBroadcastreceiver {@Override Public voidOnReceive (Context context, Intent Intent) {//TODO auto-generated
no way to limit it. In fact, I think is too simple, I just follow the traditional idea of writing the regular, first match the integer, and then match the decimal, the last match index ... Then look at the regular/(?: \ D*\.) \d+ (?: [ee][+-]?\d+)/write too domineering.His idea is to match the floating-point number, then match the integer after the decimal point, then match the index, the same 3 parts, but the matching order is different.Of course, if a floating-point number is not matched, bac
First to creating a Restangular object. Just saying the base URLvar baseaccounts = Restangular.all (' accounts ');This would query/accounts and return a promise.Baseaccounts.getlist (). Then (function (accounts) {$scope. allaccounts = accounts;});Does a GET to/accountsReturns an empty array by default. Once A value is returned from the serverThat array was filled with those values. So, can use the this in your template$scope. accounts = Restangular.all (' accounts '). GetList (). $object;var new
Linux (fedora) File Permission management linux permission management 1. linux basic permissions (1) File Permission Object Classification: Owner: group: Other system users. Owner: the user account that owns the file. The owner of most files has the permission to read, write, and execute the file. You can set the owner group and other user permissions for the file. The root user of the system administrator can change the owner of the file and obtain the ownership. Command chown format: chown own
One, "JavaScript basic data Type"JavaScript has a dynamic type. This means that the same variable can be used as a different type"String" "Number" "Object" "Boolean" "function" "Undefined "Property:Str.lengthvar str = "123,abc,900,rgy,rrrr"; Console.log (str.length);//20var str = "123,abc,900, Shang, rrrr"; Console.log (str.length );//20Tip:From the experimental results can be seen whether the English chara
* What's the first word behind?
2
Is there any word in 10.pdf?
No, it's not. So, on the back side,
10.pdf
2.c
10.pdf2.c
ren 10.pdf *1.c
* What's the first word behind?
1
Is there any word in 10.pdf?
Yes. Look forward from behind, find the first, align
10.pdf 1 To remove
1.c 1 to connect.
1.c
ren 10010.pdf *1.c
* What's the first word behind?
1
Is there any word in 10010.pdf?
Yes. Look forward from behind, find the first, align
10010.pdf 1 To remove
1.c 1 to connect.
1001.c
Speci
644 to indicateModify the permissions of this file to 700chmod 700 /tmp/chen1/123.txtAnd thenls -l /tmp/chen1/You can see that the 123.txt permissions become rwx------You can also usechmod g+r,o+w /tmp/chen1/123.txtAt this point the file permissions change to rwxr---w 742G IS group user groupsO is other users,There is also a U refers to the file owner, this me
PHP array merging methods and differences
If it is an associated array, as follows:
Copy codeThe Code is as follows: $ a = array (
'Where' => 'uid = 1 ',
'Order' => 'uid ',
);
$ B = array (
'Where' => 'uid = 2 ',
'Order' => 'uid desc ',
);
1. array_merge. If the two arrays have the same key, the next one will overwrite the previous one.Copy codeThe Code is as follows: $ C = array_merge ($ a, $ B );Var_export ($ c); // The result is the same as the original $ B.$ D = array_merge ($ B, $ );Var_exp
PHP array merging methods and differencesIf it is an associated array, as follows:Copy codeThe Code is as follows:$ A = array ('Where' => 'uid = 1 ','Order' => 'uid ',);$ B = array ('Where' => 'uid = 2 ','Order' => 'uid desc ',); 1. array_merge. If the two arrays have the same key, the next one will overwrite the previous one.Copy codeThe Code is as follows:$ C = array_merge ($ a, $ B );Var_export ($ c); // The result is the same as the original $ B.$ D = array_merge ($ B, $ );Var_export ($ d);
I have just used C # One months, may not understand, but also ask you to advise.Read the article you need to understand the C language pointers.Note the difference: for c\c++, any type can be used as a "reference type" for C # because there are pointers. 【On the memory】void foo () { int aaa = 0;//value type, AAA allocated on stack (SUB esp,xx) int* paaa = new int[123];//reference type, PAAA allocated on heap, HeapAlloc (G Etprocessheap () ...)
11.18Apache user AuthenticationCopy the corresponding parameters into the second virtual host (a second virtual host is selected in order not to affect the default host use)AllowOverride authconfig//This equivalent to open the authentication switchAuthName "123.com user auth"//Custom certified name, not very usefulAuthType Basic//authentication type, generally basic, other types of Amin uselessAUTHUSERFILE/DATA/.HTPASSWD//Specify the location of the p
@centos5/]# CD/ usr/local/ [root@centos5 local]# ls bin etc games include Lib Libexec ntp sbin share src [root@centos5 local]# LS ntp/ Bin lib man [root@centos5 ntp]# CD./bin/ [root@centos5 bin]# ls ntpd NTP dc ntpq ntptrace sntp ntpdate Ntp-keygen ntptime Ntp-wait Tickadj
[Root@centos5 bin]#/ntpdate ch.pool.ntp.org Trial and ch.pool.ntp.org This public network NTP server synchronization time4 June 20:08:47 ntpdate[28663]: Step time server 134.34.3.18 offset 88900.032745
SEC, where offset
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.