memcached softwareinstallation package Download: Libevent:http://pan.baidu.com/s/1o6tpqia LwyuMEMCACHED:HTTP://PAN.BAIDU.COM/S/1I3LS6M5 8e52
TAR-ZXVF libevent-2.0.15-stable.tar.gz
CD libevent-2.0.15-stable./configure make make install
TAR-ZXVF memcached-1.4.5.tar.gz
CD memcached-1.4.5./configure make make install
Vim/etc/ld.so.conf.d/libevent.conf
/usr/local/lib/: WqLdconfig-v
/usr/local/bin/memcached-u root-m 100m-n 10-f 2-d-
() {Console.log (THIS.X+THIS.Y);}A.call ({x:100,y:100});function C () {THIS.M = function () {Console.log (THIS.X+THIS.Y);}}var c = new C ();C.m.call ({x:100,y:100});This is the redirect of this, forgive me, can't explain very accurate and easy to understand, can only practise more(ten) Try catch throw key logic plus just finevar a = ' AAA ';try{A = xxxx (); Methods that do not exist}catch (e) {Throw (new error (' Error '));A = 0;}Console.log ("Go Go Go"); Is this the right way???(11) Closuresfo
block Traversal[Arr enumerateobjectsusingblock:^ (IDobj, Nsuinteger idx, BOOL *stop)//obj for element idx for subscript stop equivalent to break stop Yes when loop ends{NSLog (@"%@", obj); //stop assignment in the form of *stop = yes or no }]; //iterator Traversal//to load individual elements of an array into an iteratorNsenumerator * VV =[arr Objectenumerator]; IDobj =Nil; while(obj =[VV Nextobject]) {NSLog (@"%@", obj); } //Reverse IterationNsenumerator *
1. String Conversions to arraysSplit ();Console.log ("AABBCC". Split (")"); Print: ["A", "a", "B", "B", "C", "C"]2. Array conversion to stringJoin ();Console.log ([' AA ', ' BB ', ' VV '].join (")"); Print: AABBVV3. Finding elements in an arrayIndexOf (); Used to find whether an element is in an array, returns an index of an array if it exists, or returns-1;["AA", ' BB '].indexof (' BB '); return "1"The indexOf () function always returns the first index of the same element as the parameter;The L
user running memcache, this is root;-L is the server IP address of the listener, if there are multiple addresses, this specifies the IP address of the server 192.168.0.200;-P is set memcache listening port, here set 12000, preferably more than 1024 port;The-c option is the maximum number of concurrent connections to run, the default is 1024, here set 256, according to the server's load amount to set;-P is set to save memcache pid file, I here is saved in/tmp/memcached.pid, can also start multip
(). __proto__; Result: Test {} function A () { this.v= ' VVV ';} A.prototype; a {}new a.__proto__; A {}new a (). __proto__ = = = A.prototype; True __proto__ of the instance object, pointing to the prototype of the function(3) each Javasscript function automatically has a prototype attribute. The value of this property is an object that contains a unique non-enumerable property, constructor. The value of the constructor property is a function
View network card manufacturers and SignalsView basic information: LSPCIView more information: LSPCI-VVV # 3 Lowercase VView nic Information: LSPCI | grep EthernetView Network card DriversView network card driver information: LSPCI-VVV # Find the details of the NIC device, including the NIC driver# LSMOD Lists all drivers loaded, including NIC driversView NIC driver versionView module information: Modifoor
#include
#include #include #include #include using namespace Std;
Constructor object, specifying rules for pair comparisons
BOOL Mod_equal (std::p airstd::p air{return P1.first = = P2.first;}
A way to multimap the data in a duplicateint main (int argc,char *argv[]){Std::multimapVal.insert (Make_pair ("AAAA", "abc"));Val.insert (Make_pair ("AAAA", "CCCC"));Val.insert (Make_pair ("VVV", "FSDF"));Val.insert (Make_pair ("
password of the remote server).
Second: using System stored procedures
Create a database link for SQL Server to SQL Server:
exec sp_addlinkedserver ' link_northsnow ', ', ' SQLOLEDB ', ' Remote server hostname or domain name or IP address 'exec sp_addlinkedsrvlogin ' Link_northsnow ', ' false ', NULL, ' username ', ' user password '
To create a database link for SQL Server to Oracle:
exec sp_addlinkedserver ' Link_ora ', ' Oracle ', ' MSDAORA ', ' Oracle database server alias 'exec sp_addlinked
return-1;
["AA", ' BB '].indexof (' BB '); 1
The indexOf () function always returns the index of the first element with the same parameter, and another function similar to that is the LastIndexOf () method, which returns the index of the last element in the same element, or 1 if it is not found.
such as: ["AA", ' BB ', ' cc ', ' AA '].lastindexof (' AA '); 3
["AA", ' BB ', ' cc ', ' AA '].indexof (' AA '); 0
4. Array merging using the Concat () method.
such as: Console.log (["AA", ' BB '
follows:1. Use mysqlbing to parse the Binlog file:mysqlbinlog-vvv/home/mysql/data3006/mysql/mysql-bin.000004 >/tmp/master.log.201209252. Because the table that was mistakenly deleted has 13 fields, plus two rows of delete and where, take 15 of these rows:grep "# #" master.log.20120925 | grep "DELETE from Master.agentgroup"-A >/tmp/xx.log[Email protected] # More/tmp/xx.log# # # DELETE from master.del_table# # WHERE# # @1=15 */INT meta=0 nullable=0 is_
Check card manufacturer and signalView basic information: LSPCIView Details: LSPCI-VVV # 3 Small composition VView card information: LSPCI | grep EthernetView Network card DriversView network card driver information: LSPCI-VVV # Find specific information about the NIC device. Includes NIC driver# LSMOD Lists all drivers that are loaded. Includes NIC driverView NIC driver version numberView module informatio
This article is mainly to the jquery Ajax implementation of loading data before the animation effect of the sample code is introduced, need friends can come to the reference, I hope to help youThe code is as follows: $ (document). Ready (function () {$.ajax ({type: "Get", Cache:false, url: "Ajaxpage.aspx?t=ge Tcity ", DataType:" JSON ", Beforesend:function () {$ (" #vvv "). Append (' "); Success:function (data) {$ ("#city"). HTML (data.info);//Add Opt
=$.type ( Cloned); alert (type1);//Return object var arr=$.makearray (type1); var type2=$.type (arr);//Return array alert (type2); Another method for merging arrays, the. Merge () method. It takes the elements from the 2nd array, appends them to the first array, and preserves the original order in the two arrays: Var arr1=["DDF", "PPP", "VVV"]; var arr2=[121,323,434]; var arrall=$.merge (ARR1,ARR2) ; alert (Arrall);//ddf,ppp,
-get Dist-upgrade [-u]Similar to Apt-get upgrade, Dist-upgrade installs and removes packages to satisfy dependencies, and therefore has a certain risk.
6, Eggs
In the terminal input Apt-get-h will appear at the end of the "This apt has super Niuli (this apt has super cow power)."In the terminal input Apt-get moo will display a cow on the screen.$ apt-get Moo(__)(OO)/------\// | ||* /\---/\~~ ~~... "Have you mooed today?" ...A program called aptitude, similar to Apt-get, adds "This aptitude has
echoserver
Compiling clients
GCC Echoclient.c-o echoclient
TCP/IP connection establishment, interaction, shutdown
First we need to enable tcpdump to monitor client and server-side messages:
Tcpdump-s-nn-vvv-i Lo Port 6888
-S to print the sequence number of TCP packets, use an absolute ordinal number instead of a relative order number
-nn means no port to name conversion
-VVV represents the protocol outp
("[]" content not required when using the te110p card)Span=1,1,0,ccs,hdb3,crc4[Span=2,2,0,ccs,hdb3,yellow]BCHAN=1-15,17-31[,32-46,48-62]DCHAN=16[,47]Loadzone=cnDefaultzone=cnConfigure/etc/asterisk/zapata.conf:1 shielding the middle of the line configuration; Signalling=fxo_ls2 Uncomment the following lines at the end of the file;Switchtype = Euroisdnsignalling = Pri_net (or PRI_CPE, two must be configured differently to enable two-machine direct interconnection)Group = 1Channel => 1-15,17-31[,3
Using an SSH client (such as: Putty) to connect to a Linux server may wait 10-30 seconds to prompt for a password. Seriously affect work efficiency. Logon is slow, log on after the normal speed, this situation is mainly for two possible reasons:
1. DNS Reverse resolution problem
OpenSSH when the user log in to authenticate the IP, it is based on the user's IP using reverse DNS to find the host name, and then use DNS to find the IP address, and finally match the IP of the login is legitimate. I
password of the remote server).
Second: using System stored procedures
Create a database link for SQL Server to SQL Server:
exec sp_addlinkedserver ' link_northsnow ', ', ' SQLOLEDB ', ' Remote server hostname or domain name or IP address 'exec sp_addlinkedsrvlogin ' Link_northsnow ', ' false ', NULL, ' username ', ' user password '
To create a database link for SQL Server to Oracle:
exec sp_addlinkedserver ' Link_ora ', ' Oracle ', ' MSDAORA ', ' Oracle database server alias 'exec sp_addl
information to be configured, and group submission information marked in binary log is dependent on Gtid. and MySQL and mariadb gtid composition and implementation of different ways, here we simply comb under. In MySQL version 5.7 because binary log Group commit is turned on by default, even if you do not turn on Gtid_mode in the configuration file, binary log content also has Gtid information only the message labeled "ANONYMOUS" > Show Binlog events in ' mysql-bin.000004 '; intercept a piece o
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.