JS script has no database code
Copy Code code as follows:
JS Script Database Code
Copy Code code as follows:
' All rights reserved.
On Error Resume Next
Dim Conn,dbpath,userip
Set Conn=server.createobject ("Adodb.connection")
DBPath = Server.MapPath ("Ip.mdb")
Conn. Open "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" DBPath
If ERR Then
Err. Clear
Set Conn = Nothing
Response.Write "Database is being updated, please try again later!" "' Note, you ne
scheduled task #! /Bin/shNDaysAgo = $ (date-d '-10 days' "+ % F % H: % M: % S ") /usr/local/mysql/bin/mysql-uXXXX-p 'xxxxxx'-D 'mysql'-e "insert general_log_dba select * from general_log; truncate general_log; delete from general_log_dba where event_time
5. python script write statistics on daily SQL operations and daily mysql slow queries (some of the scripts can be abstracted and processed as appropriate)
5.1 count the scripts of mysql daily execution records
#-*-Coding: UTF-8-*-_ author _ =
[Pcs property set no-quorum-policy = ignore]# Indicates that resources continue to run regardless of the situationCrm configure property stonith-enabled = false
[Pcs property set stonith-enabled = false]# Indicates disabling stonith. By default, the cluster cannot be started if there is no stonith device.5. Configure resources and monitor resources1. Configure the virtual ip AddressCrm configure primitive myip ocf: heartbeat: IPaddr params ip = "192.
the structure is to create small objects, such as Point and FileInfo. You can save memory because there is no such thingThere are additional references. For example, when declaring an array containing thousands of objects, this can cause a huge difference.Listing 4.1 contains a simple structure named IP, which represents an IP address that uses four fields of the byte type. I do not include methods, etc.The work is described in the next chapter just like the use of classes.Listing 4.1 defines a
reasons ).
Our new ip2long fixed return 32-bit signed integer, range-2147483648 to 2147483647, the same as the 32-bit system.
Our extension is called myip, and the function name is ip2long32.
The extended functions and names are all OK and are now developed according to the process.
IV. Formal development
1. generate a development skeleton
First, go to the source code extension directory:
cd /home/soft/php-5.3.9/ext
Next, let's t
2147483647, the same as the 32-bit system.
Our extension is called myip, and the function name is ip2long32.
The extended functions and names are all OK and are now developed according to the process.
Iv. Formal Development
1. Generate a Development Skeleton
First, go to the source code extension directory:
cd /home/soft/php-5.3.9/ext
Next, let's take a look at the PHP extension skeleton tool ext_skel to generate a skeleton. The usage of ext_skel
after the program runs:
(The Server accepts the message sent by the client: this is a unilateral communication, but the methods are the same for both parties, because the "enjoy using this server" of the server is also displayed on the client)
(Client)
The source code of this program is as follows:
Server
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. LINQ; using system. text; using system. threading. ta
so we're going to add a Web reference for a total of two
1. According to the IP address to get your city (if there is no this, and directly refer to the relevant site to provide webservice, your location may not be very accurate, if you use the router .... And so on, I do not know that everyone is feeling the same)
2. According to the last acquired city, call the webservice to get the weather data.
To paste part of the code:
Copy Code code as follows:
Using System;
Using System.Co
configuration file to an IP address.
6.1.2.3 myip
Myip refers to the IP address of Squid, which is connected by the customer. When you run netstat-n on squid, you can see that they are in the local address column. Most squid installations do not use this type. Generally, all customers connect to the same IP address. Therefore, this ACL element is only useful when the system has multiple IP addresses.
T
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.