This article is from the network security technology blog
Apache logs are generally stored in the/var/apache2 directory (for Windows, In the installation directory log folder)
If you change the log address, don't look at it...
========================================================== ========================================
The following is a log.
123.116.154.135/favicon. ico-[24/Jan/2011: 19: 31: 00 + 0800] "GET/HTTP/1.1" 200 4520 "-" "Mozilla
we can continue to do other things until the reply message arrives. This means that you can use the Asynchronous Method. For details, see Chapter 2.Example
We will see a desktop UI app, which urgently needs to be converted to an asynchronous style. Source Code address https://bitbucket.org/alexdavies74/faviconbrowser. I suggest you follow along with it if you can, open in.
Run the program and you will see a button in a window. If you press this button, it will display some popular website icons
current webview processingIv. Settings Start loading Web pages, loading complete, loading errors when handlingIn the Webviewclient subclass, override for example the following parent-class function code such as the following:webView.setWebViewClie NT (new Webviewclient () {@Override public void onpagestarted (WebView view, String URL, Bitmap favicon) { super.onpagestarted (view, URL, favicon)
);
}
/**
* After testing, injecting scripts into the onpagefinished sometimes does not invoke JavaScript. It can be injected in onpagestarted.
*/
public class Mywebviewclient extends Webviewclient {
@Override
public void onpagefinished (WebView view, String URL) {
super.onpagefinished (view, URL);
LOG.D ("hehe", "onpagefinished execute");
}
@Override
public void onpagestarted (WebView view, String URL, Bitmap favicon
{"name": "Test","version": "0.0.0","Private": true,"Scripts": {"Start": "Node./bin/www" },"dependencies": {" Express": "~4.9.0"," body-parser": "~1.8.1"," cookie-parser": "~1.3.3"," Morgan": "~1.3.0"," Serve-favicon": "~2.1.3"," Debug": "~2.0.0"," Ejs": "~0.8.5 " }}after running the EXPRESS-E command, you will be prompted to run the NPM install command in the directory, which will be installed according to the properties of the Package.json dpendencie
a lowercase attribute value must use double quotation marks, instead of single quotes, parameter 1, custom properties suggest using xxx-as prefix, recommend using data-, parameter 1 order (parameter 1,ctrl+f: attribute order) ID class Name data-* SRC, for, Type,href Title,altAria-*,roleBoolean property of a Boolean value type (property value = = property), it is recommended not to add a property value to the existence of a Boolean attribute in an element that represents the value true, and does
First of all, I node. JS rookie A, just according to the "node. JS Development Guide" experiment has a place to pass, introduce the dredging method, if there is a mistake, big God do not spray ...When the 1.express framework was first introduced, an example of the HTTP protocol was implemented with Express.The source code is as follows:var express = require (' Express '); var app = Express.createserver (); App.all ('/', function (req,res) { res.send ( Req.body.title + Req.body.text);});2. Est
192.168.1.111: 8080 in the address bar of the browser, access to index.html under the www directory will be normal.
Next, test the cgi program:
Enter 192.168.1.111: 8080/cgi-bin/test. cgi in the address bar of the browser. The error of bad gateway may occur, or the following error occurs in error_log:
Request from 192.168.1.119 "GET/favicon. ico HTTP/1.1" ("/var/www/favicon. ico"): document open: No such f
{public void Onreceivedtitle (WebView view, final String title) { Always update the title of the page}}*/ Private classMywebviewclientextendswebviewclient {@Override Public Booleanshouldoverrideurlloading (WebView view, String URL) {if(Url.indexof ("Tel:") >= 0) {//a number on the page will cause the system to automatically connect to the phone, shielding this feature return true; } view.loadurl (URL); return true; } @Override Public voidonpagefinished (WebView
1, for the site's front-end performance, according to the Yahoo YSlow tool provides indicators to test, divided into the following parameters:1.Make fewer HTTP requests reduce HTTP requests2.Compress components with GZIP using gzip compression3.Put CSS at top put CSS asking price on top4.Put JavaScript at bottom to write JS at the bottom of the page5.Avoid CSS expressions Avoid using CSS for scripting effects6.Reduce DNS lookups Minimize DNS queries7.Minify JavaScript and CSS compress css and JS
event tool has a onavailable method to help you set the DOM event handle flexibly.Choose Using @import in IE is just like Avoid Filters Avoiding the use of filtersIf alpha transparency is required, do not use alphaimageloader, it is inefficient and only applies to IE6 and the following versions, using the PNG8 image. If you have to use, add _filter to avoid affecting ie7+ users.Optimize Images Optimized pictureTurning your GIF into PNG8 is a great way to reduce volume, and there are a number of
%/structure is better. Why? Select the former. In fact, the search engine regards your article as the homepage of the website subdirectory, and the latter is an html document under the root directory. Which of the following has a high weight for the homepage of a subdirectory and the common page of the root directory? It should be the homepage of the level-2 directory. Therefore, the former is recommended, that is, the structure like/% postname %.
After the fixed link is set, click "Update. If
is caused by insufficient server configurations. Handle the problem according to Problem (2). If the problem persists, optimize the hardware and adjust the program.Apache problems:(1) file does not exist: C:/Apache/htdocs/favicon. ICO:This problem is caused by the absence of the favicon. ICO file in the Apache and htdocs directories. This file is a website icon and only appears in Firefox, myie, and other
intent filter, and adds the new intentfilter (); filter that the consumer er listens to the broadcast intentfilter sent by the Service. addaction ("broadcast one! "); Registerreceiver (mreceiver, filter);} protected broadcastreceiver mreceiver = new broadcastreceiver () {@ overridepublic void onreceive (context, intent) {// todo auto-generated method stubstring action = intent. getaction (); If (action. equals ("broadcast one! ") {AHT. finish (); // your code here }};} class mywebviewclient ext
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.