Google translation today, found a good thing: Google Translate_tts, call this API can hear English pronunciation,
Saves yourself the hassle of uploading audio files.
I used PHP to write a method called to save the audio file locally.
As follows:
Copy Code code as follows:
$newfname = ' 1.wmv ';
$reqBaseURL
Php obtains the Google prvalue algorithm and php's prvalue query code.
/*
* Function: encode the URL
* Parameter description: $ web_url URL, which does not contain "http: //", for example, jbxue.com
*/
Function HashURL ($ url ){
$ SEED = "Mining PageRank is against google's terms of service. Yes, I'm talking to you, scammer .";
$ Result = 0x0102
Do you still remember the magic logo Google announced last week to commemorate the 25 th anniversary of bakkball?
That's right. The implementation of the logo is just as perfect as the barkball. To reduce the page size, Google implementsCodeCompression is done, which is indeed a bad thing for many front-end enthusiasts.
After a review, I have rewritten Google's barkball source
notes, Google zxing two-dimensional code, with data flow output to the page display
Two-dimensional code has been very popular, today practiced a bit, requirements are generated for the different parameters of the address link two-dimensional code, and displayed on the page, if the use of generated pictures to save the
Related urls:
Http://code.google.com/hosting/
Http://code.google.com/hosting/search? Q = + projectsearch = SEARCH + projects
Http://code.google.com/intl/zh-CN/
Https://developers.google.com/
Http://code.google.com/hostingClick the link of "Create a New Project" in the following figure,Click link h to go to http://code.google.com/hosting/createproject. this is the page for the new project. You can enter the relevant information on this page,For example,Project nameProject SummaryProj
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 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.