Overview:
IP is the address, has the location function (Network and network communication) (NET layer)
MAC is ID, no positioning function (working on subnet) (link layer)
The first is how to view the IP address problem:Window:ipconfigLinux:ifconfig, IP addr#contents of IP addr under Linux[Email protected]:~#IP Addr1:lo: Qdisc noqueue State UNKNOWN Group default link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00inet127.0.0.1/8Scope host lo valid_lft
python]# python count1.pySearch 4 hello
2. ReplacementInstance: replace all the hello messages in test.txt with "hi", and save the result to myhello.txt.
#!/usr/bin/pythonimport ref1 = open('/tmp/test.txt')f2 = open('/tmp/myhello.txt','r+')for s in f1.readlines():f2.write(s.replace('hello','hi'))f1.close()f2.close()[root@node1 python]# touch /tmp/myhello.txt[root@node1 ~]# cat /tmp/myhello.txthi girl!hi boy!hi man!hi python!
Example: Read the file test.txtcontent and sort the output result into
Powerful crawlers Based on Node. js can directly publish captured articles! The source code of this crawler is based on the WTFPL protocol. For more information, see
I. Environment Configuration
1) A server can work on any linux server. I use CentOS 6.5;
2) install a mysql database, which can be 5.5 or 5.6. You can directly use lnmp or lamp to install the database, and you can directly view the log in the browser;
3) first install a node. js environment. I used 0.12.7, but I did not try the lat
really is an unlocked door just waiting for you to open it.This is Forever Friendship.when you're down,and the world seems dark and empty,Your forever friend lifts you up in spirits and makes that dark and empty worldsuddenly seem bright and full.Your forever friend gets you through the hard times,the sad times,and the confused times.If you turn and walk away,Yo
.
node's little base friend SupervisorEach time you modify the code, it restarts automatically. Lazy programmers are counting on this effortless tool to live: Installation:NPM install-g SupervisorPerform:Supervisor App.jsAnotherLittle Friends ForeverVirtual machine A close node service is off, but forever can let node service does not stop, introduced as follows, installation and execution not to elaborate, I lazy:
ad li2:eth0: Link/ether 00:0c:29:5c:e0:13 BRD FF:FF:FF:FF:FF:FFinet 10.0.0.7/24 BRD 10.0.0.255 Scope Global eth0inet 10.0.0.11/32 Scope Global eth0 ===============> Here is the virtual IPInet6 FE80::20C:29FF:FE5C:E013/64 Scope linkValid_lft Forever Preferred_lft Forever[[Email protected] ~]# IP ad li2:eth0: Link/ether 00:0c:29:38:4b:e3 BRD FF:FF:FF:FF:FF:FFinet 10.0.0.8/24 BRD 10.0.0.255 Scope Global eth0I
:: 1/128 Scope HostValid_lft Forever Preferred_lft Forever2:eth0: Link/ether 00:0c:29:af:00:4e BRD FF:FF:FF:FF:FF:FFinet 192.168.0.130/24 BRD 192.168.0.255 Scope Global eth0inet 192.168.0.150/32 Scope Global eth0Inet6 FE80::20C:29FF:FEAF:4E/64 Scope linkValid_lft Forever Preferred_lft ForeverStop keepalived:/etc/init.d/keepalived stop on the primary server and then check from the server to see if it is alre
Background_dump_dest, the following command can display USER_DUMP_ Dest
Sql> Show Parameteruser_dump_dest
Note: By setting tracefile_identifier, this setting can help us find the generated trace file more easily.
Second, Open trace at the session levelThis approach applies to SQL statements that can be run after a new session is created.
Alter session settracefile_identifier= ' 10046 ';Altersession Set timed_statistics = true;Altersession set statistics_level=all;--instance level setting this o
as we work together to facefinally{ours.love++;} Will only make us love deeper Chen Kaihui u014439620 Yanshan University
#include for (we.meet=quot; rarequot;; U.need_me ("tooquot;) | | U.hate_me (quot; stillquot;) | | True promise++)//Our meeting is so difficult and now if you still need me like I need you or you still hate meI.alwaysbewithu (quot; never_lose_againquot;);//I will accompany you to cherish you no longer lose you my oath again and again ... Zhang Weiwei Iwwz24 Guangdong Ocean Uni
$parameter12 where name = ' user_dump_dest ') d13 nbs P;/trace_file_name--------------------------------------------------------------------------------/oracle/admin/rlzy/udump/rlzy_ora_721532.trc can also assign identifiers to the trace files to be generated, making it easier to find files sql> Alter session set tracefile_identifier= ' Jingyong '; 2, using 10046 event: 10046 event Level: Lv0 -disable sql_trace, equivalent to sql_trace= FALSELV1 -enable the standard Sql_trace function, equivalen
, selected as "optional encryption ( can also be connected without encryption ) ". We can connect the VPN assigned IP address on our server
[[Email protected] ~]# IP add
1:lo:
Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00
inet 127.0.0.1/8 Scope host Lo
INET6:: 1/128 Scope Host
Valid_lft Forever Preferred_lft Forever
2:eth0:
Link/ether 00:0c:29:2e:5e:4e BRD FF:FF:FF:FF:FF:FF
ine
]# setenforce 0[[emailprotected] PV]# systemctl start keepalived.service3) test keepalived's dual-machine hot-standby functionTurn off the host's keepalived service to see if the virtual IP can automatically drift to the standby machine. Primary server: [[emailprotected] pv]# IP addrinet 192.168.126.138/24 BRD 192.168.126.255 Scope Global Dynamic Ens33 valid_lft 1697sec preferred_lft 1697sec inet 192.168.126.188/32 scope global Ens33 Valid_lft forever
This paper uses 10046 events to analyze the difference between ALTER INDEX rebuild and ALTER index rebuild online
Alter index rebuild online is essentially a scan table rather than scanning an existing index block to achieve an indexed rebuild
Alter INDEX rebuild only scans the existing index blocks to implement the rebuild of the index.
We can use 10046 events to discover this phenomenon.
First look at ALTER INDEX rebuild:
Sql> ConnPlease enter user name: WWF/WWFis connected.sql> drop table wwf
, Short_options, Long_options, NULL))!=-1)
{
Switch (c)
{
Case ' n ':
printf ("My name is xl./n");
Break
Case ' B ':
printf ("His name is st./n");
Break
Case ' l ':
L_opt_arg = Optarg;
printf ("Our Love Is%s!/n", l_opt_arg);
Break
}
}
return 0;
}
[Root@localhost wyp]# gcc-o getopt getopt.c
[Root@localhost wyp]#./getopt-n-b-l Forever
My name is XL.
His name is ST.
Our Love is forever!
Object is a very important stem in JavaScript, and it is directly related to your basic understanding of the entire JavaScript system, and to be clear, JavaScript is a group of objects. Beep )。
Here are some common types of object creation patterns
Create using the New keyword
The most basic way to create an object is to say the same as most other languages: no object, you new one!
var GF = new Object (); Gf.name = "Tangwei"; Gf.bar = "C + +"; Gf.saywhat = function () {Console.log (th
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.