Tim Bray, XML collaborators and Google Android Development Ambassador, submitted a new draft HTTP status code for webpages that cannot be displayed due to legal restrictions. The new status code is "451 Unavailable for Legal Reasons", visitors will know that the requested webpage or resources are inaccessible for national review Reasons.
According to draft 451,
Lets you suggest keywords for your users to search for. To note:
Changing the search box code is a violation of Google policy, but this code is independent of the search code, although it does affect the input of the search box.
For example, use your desired search keyword instead of abc,def and GHI in the following
Copy Code code as follows:
Sometimes you want to provide multi-language support for our web pages, and if one language is too cumbersome to do with a single Web page, it is fortunate that Google offers the Language Tools feature, and here's how to use it to translate between multiple languages on a Web page.
Lan.htm
The content in the lan.htm is used
. Type = 1
Objstream. Mode =3
Objstream. Open
Objstream. Write body
Objstream. Position = 0
Objstream. Type = 2
Objstream. Charset = "Utf-8"
' Convert the original default UTF-8 encoding to GB2312 encoding, otherwise directly using the XMLHTTP to invoke the page with Chinese characters will be garbled
Bytestobstr = objstream. ReadText
Objstream. Close
Set objstream = Nothing
End Function
Public Function GetText (str)
If (IsEmpty (str)) Then Exit Function
Dim Newurl,rs
Newurl=repla
Google provides a generation of two-dimensional code interface, through the interface we can generate two-dimensional code, convenient and fast.
Interface address http://chart.apis.google.com/chart?chs= width high value x Width high value cht=qrchld= level | margin chl= content
Parameter description:
Wide-high value: Generate two-dimensional
It allows you to recommend keywords to your users. Note:Changing the search box Code violates the Google policy. However, this code is independent of the search code, although it does affect the input of the search box.As follows: replace ABC, DEF, and GHI in the following code
Copy codeThe Code is as follows: Sometimes we want to provide multi-language support for our web pages. It is too troublesome to use a web page in one language. Fortunately, Google provides the language tool function, the following describes how to use it to convert web pages into multiple languages.
Lan.htm
The content in lan.htm is used to select the language to be translated, including the original lang
)) { Throw NewIOException ("Could not write an image of format" +format); } } //generate a QR code picture content: Contents, url: Build Path Public Staticstring Genqrcode (String content,string URL) {//Verify that there are folderscreatedir.createdir (URL); String filename=NULL; //picture format of QR codeString format = "png"; Hashtable hints=NewHashtable (); //the encoding used for the contentHints.put (Encodehinttype.character_s
\", \ "country \": \ "china \"} ", first go to http://code.google.com/p/google-gson/to download the jarpackage and add it to the project. the specific Parsing Code is as follows: [java] Gson gson = new Gson (); Person person = gson. fromJson (json, Person. class); System. o Ut. println (person); the output of LogCat is Person [name = coolxing, age = 24, male = true, address = Address [street = huiLongGuan,
There may be many ways for php to generate a QR code. This article mainly calls the google interface to generate a QR code. For more information, see
The code is as follows:
$ Data = isset ($ _ GET ['t'])? $ _ GET ['t']: 'http: // www.XXX.com ';
$ Size = isset ($ _ GET ['size'])? $ _ GET ['size']: '150x150 ';
$ Logo
Generate two-dimensional code online via the API generated by Google online.Code:$content =$_get[' content ';$width =$_get[' width ']?$_get[' width ']:300;$height =$_get[' height ']?$_get[' height ']:300;if ($content) {echo "The text you typed is: echo "You choose the width is: echo "The height you choose is: echo "generated two-dimensional code image is: $wen =
CopyCode The Code is as follows:
Page 1
Copy code The Code is as follows: Include ("include/DB. Inc ");
$ Ws = $ _ Get ['worksheet '];
If (empty ($ ws) | strlen ($ ws) // Echo 'oo ';
Exit ();
}
$ Db = new dB ();
$ STR = '';
$ SQL = "select * from user where deptid = 10 and status = 'on' and worksheet like '% $ ws %' order by worksheet ";
$ RT = $ db-> rtasso
In the past two days, I wrote code for submitting sitemap to my website. If you are a newbie, please come and see it. If you are a master, you don't need to check it.
Aspx codeCode
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 2 3. Generate a course starting with www:
4 5 6 7-
8 9 10 [the generated www1-5.xml file, indicating that it is an official cour
The following is the source code, please name it. ASP files.
Copy Code code as follows:
If Request ("action") = "1" Then
Word = Request ("word")
url = Request ("url")
If Word GetCategories ()
If URL GetCategories2 ()
End If
End If
End If
Function getcategories ()
Response.Write ("
On Error Resume Next
Dim oxmlhttp
Dim ocategories
D
git clone Google's volley code encountered Q.Think of using a proxy server to solve this problem. Google a bit of a solution, record it, share it.git config:To set up a proxy server:git config--global http.proxy http://proxyuser:[email protected]:8080git config--global Https.proxy https://proxyuser:[email protected]:8080Proxyuser: Proxy Server userPROXYPWD: PasswordProxy.server.com: Proxy server address8080
Copy codeThe Code is as follows:
Reference: http://code.google.com/intl/zh-CN/apis/maps/documentation/staticmaps/Note that no key is required for the next API!Use the SRC address of IMG to access the Google address!Http://maps.google.com/maps/api/staticmap? Center = Xi'an, clock tower zoom = 14 size = 512x512 maptype = hybrid sensor = false-->Image address:
DEMO c
Copy codeThe Code is as follows:Reference: http://code.google.com/intl/zh-CN/apis/maps/documentation/staticmaps/Note that no key is required for the next API!Use the SRC address of IMG to access the Google address!Http://maps.google.com/maps/api/staticmap? Center = Xi'an, clock tower zoom = 14 size = 512x512 maptype = hybrid sensor = false-->Image address: DEMO code
Recently, I found that many of my previous gadgets, including the PR value of the website and the number of searches, mimic the functions of webmaster tools. The following is a code that can calculate the PR value of a website in Google. I hope it will be useful to you and help you! If you have any questions, please contact us! Thank you.
// This is the connection to verify the URL prvalueHttp://www.googl
This procedure is a simple crawl Google weather forecast code Oh, previously written are php,asp today I released a JSP get Goolge weather code OH.
Public nodelist Getweatherdiv (String htmlurl) {NodeList res = null;try{Parser Parser = new Parser (htmlurl);Parser.setencoding ("GBK");Nodefilter divfilter = new Nodeclassfilter (div.class);Orfilter lastfilter = new
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.