cannot be done with the string class, although the string class is very convenient, but after this time, I thoroughly felt that the string class at run time how slow ... Enter the two numbers first as a string class, and then convert the two string classes to an int array. It is much faster to operate with an int array.Then the sentence weight, with the bool array bo[1000000][6] to the weight, the first dimension is 6 digits, the second dimension is the position of the cursor. Then use the loop
1. Log in to the database with the SYS accountSQL Plus Enter the command below: Conn SYS as DBA; Enter the password after the return.Tip: The connection succeeds with the second step.2. Modify the port number bitSQL Plus Enter the command below: Call Dbms_xdb.cfg_update (Updatexml (), Dbms_xdb.cfg_get (),2 '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text () ', 8081))3/Tip: Call Complete3. SubmitSQL Plus ENTER commands below: CommitTip: Commit CompleteOracle modifies 8080 port nu
Oracle modifies port 8080 to port 8001Zookeeper
1. log on to the database with the sys account
Run the following command under SQL plus: conn sys as dba; press enter and enter the password.
Tip: If the connection is successful, proceed to step 2.
Softswitch devices are still commonly used, so I have studied the networking scheme of softswitch devices. I will share it with you here, hoping it will be useful to you. For the SS that undertakes the narrowband domain call control function, the active/standby dual-host mode is used. The user data of the controlled user is stored in HLR, and the routing data is stored in RS. After the host and backup machine are activated, the data can be accessed, the gateway resource data used by the SS must
. After the host and backup machine are activated, the data can be accessed, the gateway resource data used by the SS must be backed up on the backup machine in advance. In this way, the reliability of the SS is achieved through idle redundancy of resources.
The preceding active/standby dual-host mode can be used for the SS that undertakes the bandwidth domain call control function. However, for higher device usage efficiency, multi-host load balancing can also be used. Each
selected, the prompt message disappears immediately, for example:
In fact, this can be implemented using jsmap, that is, using js to simulate map. The following code is public. If this happens in the future, you can directly merge the following js Code and configure it.
With the following code, you must introduce js verified by jquery.
The Code is as follows:
First, put the following js Code in your js file or in the page:
The Code is as follows:
/*** Array Memory is designed to facilitate ju
DescriptionA simple, non-weighted graph is now given. You are not satisfied with finding the smallest spanning tree of the graph, but want to know how many different minimum spanning trees are in the graph. (If there is at least one edge in the two smallest spanning trees, the two minimum spanning trees are different). Because the different minimum spanning tree may be many, you only need to output the scheme number to 31011 modulo.InputThe first line contains two numbers, N and M, where 1Output
the following js Code in your js file or in the page:Copy codeThe Code is as follows:/*** Array Memory is designed to facilitate juery's chckbox verification. It configures the object for checkbox verification and single choice.* Private variable area definition array* Configure each array to setting so that the array exists in the memory.* When using an array name, you can easily operate and obtain different arrays.* When you need an array, if you operate only one array, this method is more th
the relay gateway resources, and so on.
In order to solve the problem of network, business Security and QoS, this solution introduces a special carrier network with certain security and QoS guarantee (SoftSwitch service) and Edge access control equipment (BAC) for SoftSwitch service in the transport layer. Soft switching devices, relay Media gateways (TG), Integrated Access Media Gateway (AG), signaling Gateway (SG), key customers using IAD, Media s
subclass is instantiated, the __init__ () method of the base class is not automatically invoked when __init__ () is derived from a class with a constructor __init () _. If you must call the base class's construction method, you can use the parent class name. __init__ (self) method or super (subclass name, self). __init__ (). Such as
Copy Code code as follows:
def __init__ (self):
Super (C, self). __init__ ()
print "Calling C ' constructor"
Python classes and instanc
that the Eureka server started successfully: To open Google Chrome (due to the default settings in idea), visit https://localhsot:8000/to see the microservices viewing panel: At this point, the service registry is configured to complete and the service registration operation is followed. 5.2 Idea Create service provider Hereinafter referred to as the "8001" project. Create a eureka-client client that is the service provider client that provides some
, or page:
Copy Code code as follows:
/**
* Array memory is designed to facilitate juery verification of Chckbox and design array memory, configuration objects, to verify checkbox and radio.
* Private variable Area definition array
* Then configure each array into the setting so that it exists in the memory
* In the application of the array name can be easily manipulated and get different arrays.
* When you need an array, if you only manipulate an array, this method is more than,
MongoDB Master-Slave synchronization settingsabout MongoDB installation and start-up parameter description can refer to my previous reprint of the "Ubuntu installation MongoDB" and "mongodb Start command Mongod parameters description"
Master and subordinate settings
master:192.168.111.103 port:8001
slave:192.168.111.104 port:8001
Start Master
Copy Code code as follows:
Mongod--
Deptcontroller_consumer to add the following:/private static final String Rest_url_prefix = "http://localhost:8001";//from Eureka above there is a name Microservicecloud-dept micro service, Micro services accessed by name private static final String Rest_url_prefix = "Http://MICROSERVICECLOUD-DEPT"; 6. Test:1). Start with 3 Eureka clusters, i.e. microservicecloud-eureka-7001,microservicecloud-eureka-7002 and microservicecloud-eureka-7003.2). Restart
NonsenseYesterday the landlord asked me to say that the recent soaring prices, the rent has to rise, can not be mixed down, the boss must raise wages. Early in the morning to find the boss, the boss looked at me, let me publish the first two sites: a front-end site frontend, to users; a background management site backend, for administrators, two sites to deploy two sites on the same server, but only one tomcat on the server, what to do?Multi-project deployment of the same portStill looking for m
Installation. It would be nice to search for the Tomcat installation with YsST2. But the version is certainly not as new as the official website, the author uses 7.0.42, the latest has reached 8.X.
Start. Locate Tomcat in Service Manager and start.
In fact, the tutorial on the two cloth, but I want to put the war in the WebApp release AH. So I went to find the installation location of Tomcat.
Open Service Manager and locate the Tomcat service.
Click the details below for
quantified.(3) models can be extended and are suitable for large projects and small projects.12, the main content of cost control? (9)(1) Influence factors that cause cost benchmark changes.(2) Ensure that the request for change is agreed.(3) When changes occur, manage these actual changes.(4) To ensure that the potential cost overruns do not exceed the authorized stage funds and overall funds.(5) Supervise the implementation of the cost (performance) to find deviations from the cost benchmark.
the cloning process.
In my case, I created a directory named Ghost on drive D, and backed up the image file in Zone C with the name sysbak. gho. The content of the two batch files is as follows:
Sysback. BAT (Backup ):
Ghost-clone, mode = pdump, src = 1:1, DST = D: \ ghost \ sysbak. GH1/FX/Z9/Sure
Revert. BAT (recovery ):
Ghost-clone, mode = pload, src = D: \ ghost \ sysbak. GH1, DST = 1:1/sure/Rb
· Detailed example of the ghost parameter (you can skip this example but you must record it here)
add Nginx to serve static files.
We want to serve static files from the port 8000 and so it are required that Gunicorn listens on some port. Stop Gunicorn and run it on Port 8001.
Gunicorn test_project.wsgi:application--bind=127.0.0.1:8001
Now you are not being able to the your page at http://localhost:8000/some_app/home/. It is available on port 8001 at http:
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.