1. Enter the chat interface with a friend
2. Then we click on the "+" icon in the upper right corner to open
3. In the pop-up interface there is a "position" button, we click it to open into
4. Then in the open position we click the "Send Position" button, the following figure
5. In order to ensure accurate positioning, please open the mobile phone GPS
6. Then, as shown in the picture, we click on the "positioning" icon
7. Wait for position, we'll c
I. File locationLocation in general under the/var/spool/cron/, if you are the root user, then there is a root file, recommended daily backup, to avoid accidental deletion resulting in crontab file loss;Two. log file locationBy default, the logs executed in Crontab are written under/var/log, such as:#ls/var/log/cron*/var/log/cron/var/log/cron.1/var/log/cron.2/var/log/cron.3/var/log/cron.4The crontab log is simple and sends a message to the user when Crond performs a task failure. It happened that
Front-end web api instance code with Baidu map to locate the current location, current location api
If you don't talk about it, paste the Code directly. The specific code is as follows,
The key code is as follows:
PHP installation of GeoIP extension based on the IP address to obtain the geographic location and calculation distance method, geoip geographic location
Obtain the visitor's country, city, and latitude and longitude Based on the IP addressInstall GeoIP extension:
sudo apt-get install libgeoip-dev
pecl install geoip-1.1.0
Note: The Beta version should be specified. If it is apt installed PHP, directly insta
Hash: sets or obtains the segments following the # In the href attribute. Href: set or obtain the entire URL as a string. Through the following test, you will find the difference, put the code in your HTML, and then open it in a browser. Test procedure:
Click "HYPERLINK" and you will find that the URL in the address bar has changed. There is an additional "# foo" after the URL ".
Click "href" and you will find the URL in the address bar popped up.
Click "hash" and you will f
1, we enter the map in Baidu, and then search our address, if no will show "in China did not find the relevant location, sorry." ”
2. And then in the access interface if we can pick it up if we don't have it to label ourselves
3, how to mark the location I do not introduce, very simple, as shown in the following figure.
4, if the position is wrong, we can directly in the Baidu Map
JS magic Hall: Attributes of element location and mouse location1. attributes of the mouse position 1. The border, padding, and content areas in the Area box model that triggers the mouse event will trigger the mouse event. clicking the margin area will not trigger the mouse event. 2. Attribute [a]. evt. pageX/Y under the mouse event object MouseEvent: The reference point in the upper left corner of the page, indicating the horizontal and vertical dis
When imitating the notebook provided by windows for practice, it is found that the textbox control does not directly obtain the current row and column location, nor does it have the positioning function. After checking the information, we can use Windows API to implement this function. The sendmessage function and em_linefromchar (0xc9) and em_lineindex (0xbb) Message constants must be introduced or defined by ourselves. The following is the test code
. To replace the photo storage location We can set it in the phone's "app" and we click it.2. Then look inside the "camera" as shown in the picture click.3. Then also find the "pinion" icon.4. After entering, you will see a "store" click on it.5. Mobile screen display "Device", "Memory card", click "Memory Card".6. We are now ready to take photos, hand opportunity to display the "Memory card" icon.7. OK, then we'll click on the "Camera" icon to take a
should be nginx forwarding request to the backend application server, such as fastcgi (PHP), Tomcat (JSP), Nginx as the direction proxy server exists. So in practice, there are usually at least three matching rule definitions, as follows:
[Plain] View plain copy #直接匹配网站根, access to the site through the domain name more frequent, using this will speed up processing, the official website said. #这里是直接转发给后端应用服务器了, can also be a static home # first required rule
does not match, so think about where the actual application will be used.Access to the http://localhost/category/id/1111 is finally matched to the rule H, because the above rules do not match, this time should be nginx forwarding request to the backend application server, such as fastcgi (PHP), Tomcat (JSP), Nginx as the direction proxy server exists.So in actual use, the individual feels that there are at least three matching rule definitions, as follows:#这里是直接转发给后端应用服务器了, can also be a static
http://tomcat:8080/index}# the second required rule is to handle a static file request, This is nginx as the strength of the HTTP server # There are two configuration modes, directory matching or suffix matching, either one or use location ^~/static/{ root/webroot/static/;} Location ~* \. (Gif|jpg|jpeg|png|css|js|ico) $ { root/
: #直接匹配网站根, through the domain name to visit the site home more frequently, using this will speed up processing, the official website said. #这里是直接转发给后端应用服务器了 or a static home # first required rule location =/{Proxy_pass Http://tomcat:8080/index }# The second required rule is to handle a static file request, which is Nginx's strong point as an HTTP server # there are two configuration modes, a directory match or a suffix match, either one or a co
up:
/-Config AExactly match exactly, even if/index.html doesn't match.
/downloads/download.html-config BAfter matching B, there is no match down, using B
/images/1.gif, Configuration DMatch to F, match down to D, stop down
/images/abc/def-config DLongest match to G, down match D, stop downYou can see that any/images/beginning with a match to D and stop, FG write here is meaningless, H is never round, here just to illustrate the match order
/documents/document.html-confi
file request, which is Nginx's strength as an HTTP server# There are two configuration modes, directory matching or suffix matching, either one or useLocation ^~/static/{root/webroot/static/;}location ~* \. (Gif|jpg|jpeg|png|css|js|ico) $ {root/webroot/res/;}#第三个规则就是通用规则, used to forward dynamic requests to backend application servers#非静态文件请求就默认是动态请求, according
set up:
/-Config AExactly match exactly, even if/index.html doesn't match.
/downloads/download.html-config BAfter matching B, there is no match down, using B
/images/1.gif, Configuration DMatch to F, match down to D, stop down
/images/abc/def-config DLongest match to G, down match D, stop downYou can see that any/images/beginning with a match to D and stop, FG write here is meaningless, H is never round, here just to illustrate the match order
/documents/document.html-c
, because the above rules do not match, this time should be nginx forwarding request to the backend application server, such as fastcgi (PHP), Tomcat (JSP), Nginx as the direction proxy server exists. So in actual use, the individual feels that there are at least three matching rule definitions, as follows:[Plain]View PlainCopy
#直接匹配网站根, through the domain name to visit the site home more frequently, using this will speed up processing, the official website said.
#这里是直接转发给后端应用服务器了, can als
be the Nginx forwarding request to the backend application server, such as fastcgi (PHP), Tomcat (JSP), Nginx exists as a directional proxy server.
Therefore, in actual use, individuals feel that there are at least three matching rule definitions, as follows:
#直接匹配网站根, through the domain name to visit the home page more frequently, use this will speed up processing, said the official website.
#这里是直接转发给后端应用服务器了, can also be a static home
# The first required rule
forward the request to the backend application server, such as FastCGI (PHP), Tomcat (JSP ), nginx exists as a proxy server.
In actual use, I think there are at least three matching rule definitions, as shown below:
# Directly match the website root and access the homepage frequently through the domain name. Using this will accelerate the processing, as said on the official website. # This is directly forwarded to the backend application server, or a static homepage # The first required Rule
should be nginx forwarding request to the backend application server, such as fastcgi (PHP), Tomcat (JSP), Nginx as the direction proxy server exists. Therefore, in actual use, the individual feel that there are at least three matching rule definitions, as follows: #直接匹配网站根, through the domain name to visit the site home more frequently, using this will speed up processing, the official website said. #这里是直接转发给后端应用服务器了, can also be a static home # first required rule
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.