Let's talk about TextRange's common methods.
Collapse ([bstart])
Move the insertion point of a range
Bstart true (move to beginning) false (move to end)
FindText (Stext [, Isearchscope] [, IFlags])
Find Stext in range
Isearchscope start position,
The subtitles in the karaoke will gradually light up as the song progresses, because the subtitles is not a place to light but gradually transition, so we implement the effect in the Web page, through two layers to achieve, two layers of the same
There are two submit buttons (such as "modify" "delete") on a form form and only one action processing page
How do you distinguish between "modify" or "delete" in this action page?
Method 1:If the form form is like this:
You can read the
Nginx and Node.js are naturally paired on the topic of building high throughput Web applications. They are all based on the event-driven model and are designed to easily break through the c10k bottlenecks of traditional Web servers such as Apache.
Attention:The syntax of the version after Nginx 1.1.8 is changed to Limit_conn_zone $binary _remote_addr zone=name:10m;Name is zone. Please see here http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html
Limit number of connections:To limit
In fact, I prefer nginx run static and do load reverse proxy, dynamic PHP or to the Apache processing more stable, JSP to Tomcat, resin or jboss. Nginx's ability to run static is unmatched and is the strongest in the Web server at the moment. Nginx
5 Scenarios for Nginx cache caching1, one of the traditional cache (404)This approach is to nginx 404 errors to the back end, and then use Proxy_store to save the back-end page.Configuration:
Location/{
root/home/html/; #主目录
expires 1d;
The download server is often hotlinking, and the time has long caused the server to waste a lot of resources, because the server uses Nginx as a Web server. Nginx anti-theft Chain Method There are many, can use off-the-shelf anti-theft chain module
1: Network disk automatic backup (isolated backup)
Isolation Backup Introduction: Directly in the network set up projects, files to write the manuscript is likely to be with the network disk data is not synchronized to cause data loss integrity,
Canvas Canvas in the mainstream browser size limit detailed introduction
The test found that canvas has different maximum size limits under different browsers.
As we all know, canvas has its own width,height properties to control the size, with
Install Nginx
sudo apt-get install Nginx
If you have Apache installed, and Apache is running at this time, please modify the configuration file first (no students skip directly):
#打开配置文件
sudo
The weekend read the Nginx thread pool part of the code, conveniently copied, written in its own version. There are differences in the implementation of some places, but the basic structure of all excerpts.
Share it here. If you read my version,
Nginx Reverse proxy has a lot of problems that we need to solve, many of them are based on the installation of the problem, after the installation of the relevant debugging also let a lot of people headaches unceasingly. Here is a brief introduction
To automatically list directory configurations:
Download the open source software are aware that a very simple page lists all the versions of the source code, which is to open the automatic listing directory
The following configuration, in the
The methods provided in the official documentation:If you don't want to process requests with undefined "Host" header lines, your may define a default server that just drops The requests:
Copy Code code as follows:
server {
Listen
1. Polling (default)
Each request is assigned to a different back-end server in chronological order, and can be automatically removed if the backend server is down.
2, Weight
Specifies the polling probability, proportional to the weight and the
Bootstrap provides four styles for , respectively:
. img-rounded: rounded corners (IE8 not supported), add border-radius:6px to get picture fillet;. Img-circle: round (IE8 not supported), add border-radius:50% to make the entire picture rounded..
The following main summary of the basic operation of Nginx.
Start Action
Command:
Nginx-c/usr/nginx/conf/nginx.conf
The-c parameter specifies the Nginx configuration file path to load.
Stop operationThe stop operation is done by sending a signal
Check the network data, the Nginx configuration file nginx.conf understanding of the following:
Copy Code code as follows:
#定义Nginx运行的用户和用户组
User www www.
#nginx进程数, the recommended setting is equal to the total number of CPU cores.
If you want to access the computer remotely via PowerShell. At this point you must be in the other computer (you want to access the computer), with administrator privileges to execute the following code:
Copy Code code as follows:
Ps>
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service