Apache is installed, two files that are not available but useful in the default root directory are:
Favicon. ico: favicon. ico is a 16x16 Site icon file. If the browser finds this file, it will replace the web page icon of the browser in the address bar. Mainstream browsers such as IE6 and MOZILLA support this function.Example: http://www.chedong.com/favicon.ico
Robots.txt: Used to tell the search engine c
) findViewById (R. id. webview );MyWebView. loadUrl ("http://www.example.com ");
Note: add the Internet access permission to the manifest file:Xml CodeCopy codeThe Code is as follows:
Click a link in Android. By default, the application is called to start the process. Therefore, WebView needs to handle this action through WebViewClient.Java codeCopy codeThe Code is as follows: // set WebViewClientWebView. setWebViewClient (new WebViewClient (){Publicboolean shouldOverrideUrlLoading (WebView vie
15:23:08 [error] 4023 #0: * 2 FastCGI sent in stderr: "PHP message: PHP Warning: phpinfo (): it is not safe to rely on the system's timezone settings. you are * required * to use the date. timezone setting or the date_default_timezone_set () function. in case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. we selected 'Asia/Chongqing 'for 'cst/8.0/no DST' instead
Solution:
Add
Date. timezone = "Asia/Shanghai" Remove the pr
instead of downsize a 500x500 pixel image.
32. favicon. ico is small and can be cached.Favicon. ico is an image file located in the root directory of the server. It must exist, because even if you don't care whether it is useful or Not, the browser will send a request to it, so it is best Not to return a 404 Not Found response. Because it is on the same server, coockie is sent every time it is requested. This image file will also affect the download
:
Purpose: To check whether the machine on the specified node can be connected again
Command: ansible 10.1.1.113-m ping
Execution result:
Command module:
Purpose: To run the hostname command on a specified Node
Command: ansible 10.1.1.113-m command-a 'hostname'
Execution result:
Raw module:
Objective: To run the hostname command on the 10.1.1.113 Node
Command: ansible 10.1.1.113-m raw-a 'hostname | tee'
Execution result:
Get_url module:
Objective: To download the http: // 10.1.1.116/
When the disk is full, gitlab cannot be accessed because gitlab cannot be accessed.
My colleague said that gitlab could not be accessed and 502 of the access was found. I checked nginx error. log on the server.
15:01:50 [alert] 16867 #0: * 67473 write () to "/usr/local/nginx/logs/access. log "failed (28: No space left on device) while logging request, client: 180.169.120.218, server: gitlab.imacco.com, request:" GET/favicon. ico HTTP/1.1 ", upstream:"
codeThe Code is as follows: RewriteEngine On# The following is the root directory. The directory must be modified, for example,/laozuo/RewriteBase/RewriteCond % {REQUEST_FILENAME }! -FRewriteCond % {REQUEST_FILENAME }! -DRewriteRule ^ (. *) $/index. php/$1 [L]
# Skip without wwwRewriteCond % {HTTP_HOST} ^ www.laozuo.orgRewriteRule (. *) http://laozuo.org/#1 [R = 301, L]
# Skip to bring without wwwRewriteCond % {HTTP_HOST} ^ laozuo.orgRewriteRule (. *) http://www.laozuo.org/#1 [R = 301, L]
2. Li
com.yarin.android.Examples_08_06;Import android.app.Activity;Import Android.app.AlertDialog;Import Android.app.AlertDialog.Builder;Import Android.content.DialogInterface;Import Android.graphics.Bitmap;......public class Activity01 extends Activity{Private final String Debug_tag = "Activity01";Private Button Mbutton;Private EditText Medittext;Private WebView Mwebview;/** called when the activity is first created. */@Overridepublic void OnCreate (Bundle savedinstancestate){Super.oncreate (savedin
-php
6. obtain the longitude and latitude of an address
With the popularity of Google Maps APIs, developers often need to obtain the longitude and latitude of a specific location. This very useful function uses an address as a parameter and returns an array containing longitude and latitude data.
The code is as follows:
Function getLatLong ($ address ){
If (! Is_string ($ address) die ("All Addresses must be passed as a string ");
$ _ Url = sprintf ('http: // maps.google.com/maps? Output = js
increase the file size, it requires less memory for the user agent to decompress the image into a pixel map. 100x100 's picture is 10,000 pixels, while 1000x1000 is 1 million pixels.32. Do not scale images in HTML--weighDon't use a larger picture than you actually need to set the length and width in HTML. If you need:then your picture (mycat.jpg) should be 100x100 pixels instead of reducing the use of a 500x500 pixel image. Here is a more interesting analysis.33, Favicon.ico to be small and cac
You want to configure the m.test.com
server {listen; # IPv4 server_name m.test.com; # # Parametrization using hostname of access and log filenames. Access_log Logs/localhost_access.log; Error_log Logs/localhost_error.log; # # Root and index files. Root html/test; Index index.php index.html index.htm; # # If No favicon exists return a 204 (no content error). Location =/favicon.ico {Try_files $uri = 204; Log_not_foun
{Code...} failed to access m.test.com... The hosts file has no effect, and the ping operation has been modified.
server { listen 80; # IPv4 server_name m.test.com; ## Parametrization using hostname of access and log filenames. access_log logs/localhost_access.log; error_log logs/localhost_error.log; ## Root and index files. root html/test; index index.php index.html index.htm; ## If no favicon exists return a 204 (no conten
Web. http://localhost/cgi-bin/gitweb.cgiModify/etc/gitweb.conf Content:# Path to git projects (# $projectroot = "/var/cache/git";$projectroot = "/home/git/repositories";# directory to use for temp files$git _temp = "/tmp";# Target of the home link on top of all pages$home _link = $my _uri | | "/";# HTML text to include at home page$home _text = "indextext.html";# file with Project list; By default, simply scan the Projectroot dir.$projects _list = $projectroot;# stylesheet to use@stylesheets =
together to reduce the size of the image and increase the display speed of the page image.31. Don't scale images in HTML. Do not scale the image in HTML.The size of the image to be used is large. After the width of the 1000x1000 image is "100" Height = "100", the size of KB will not be reduced.32. Make favicon. ICO small and cacheable reduce the size of favicon. ICO and cache itThe website's browser ICO sh
1, first enter http://translate.google.cn/translate? Hl = ZH-CN SL = en U = http://www.html-kit.com/favicon/ei=UIcLSruuJM-LkAWyt52UBAsa=Xoi=translateresnum=1ct=resultprev=/search%3Fq%3Dhttp://www.html-kit.com/favicon/%26hl%3Dzh-CN%26rlz%3D1G1GGLQ_ZH-CNCN328%26newwindow%3D1
In this address, upload your image and click
ThenSet the two paragraphsCodeCopy the two images downloaded earlier to the direc
volume, and there are a number of ways to work with your JPG and PNG images to achieve optimal results.Optimize css Sprites optimizing CSS SpritesIn the CSS sprites vertical and as close as possible to arrange the picture, as far as possible color similar pictures together, will reduce the size of the image itself and improve the speed of the page image display.Images in HTML do not scale the picture in HTMLHow big the picture to use how big, 1000x1000 picture is width= "100″height=" 100″, the
introduction of a variety of modulesvarExpress =require(' Express ');varPath =require(' path ');varFavicon =require(' Serve-favicon ');varLogger =require(' Morgan ');varCookieparser =require(' Cookie-parser ');varBodyparser =require(' Body-parser ');//Introduction of two routesvarRoutes =require('./routes/index ');varUsers =require('./routes/users ');//This should be called instantiation of the project.varApp = Express ();//Set the view directory and
Function method, and pass in your own data object for better parsing.
As for the specific workflow, we do not know yet. We can only research it on the back. Now we are entering other modules.
App. js
As an entry file, app. js plays an important role:
Copy codeThe Code is as follows:/*** Module dependencies.*/
Var express = require ('express ');Var routes = require ('./routes ');Var user = require ('./routes/user ');Var http = require ('http ');Var path = require ('path ');
Var app = express ();
Projects";# doesn't seem to support Chinese%>_="Use Projects, stupid , stupid, stupid."; $home _link="/git"; # These tell gitweb the URIs forThe images and CSS it needs.# depending on the version of Gitweb you had there may be# different locations. Newer versions include a/static/path# element and a JavaScript library.###### older gitweb ####################### @stylesheets= ("/git/gitweb.css"); # $logo="/git/git-logo.png"; # $favicon="/git/git-favic
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.