about Java File download file name garbled problem solutionAs a programmer, we should all have encountered the problem of garbled! This article is self-addressed about the handling of Java file download file name garbled problem:String filename = "filename downloaded";String useragent = Request.getheader ("user-agent");For IE or IE as the kernel browser:if (Useragent.contains ("MSIE") | | Useragent.contains ("Trident")) {filename = java.net.URLEncoder
safari/537.36 ', ' 115browser/6.0.3 (Mac Intosh; U Intel Mac OS X 10_6_8; En-US) applewebkit/534.50 (khtml, like Gecko) version/5.1 safari/534.50 ', ' mozilla/5.0 (Windows; U Windows NT 6.1; En-US) applewebkit/534.50 (khtml, like Gecko) version/5.1 safari/534.50 ', ' mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; trident/4.0) ', ' mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) ', ' mozilla/5.0 (Windows NT 6.1; rv:2.0.1) gecko/20100101 firefox
record by record, which can be delayed in dozens of milliseconds or even 10 milliseconds, but with a lower throughput. Trident the data stream into batches, but it still executes at the record level. So in storm, the effective way to increase throughput is to pack. Spark streaming is different from the resident task mode, it directly divided the data into discrete flow, so that the flow calculation into a batch calculation, each batch is scheduled to
adding CSS, etc.), and calculating how the page will be displayed, and then outputting it to the display or printer. The browser's kernel is different from the syntax of the Web page, so the effect of rendering is not the same. The kernel is required for all Web browsers, e-mail clients, and other applications that need to edit and display Web content. (see also Wikipedia) JS engine is to parse the JavaScript language, execute the JavaScript language to achieve the dynamic effect of the Web pag
/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0) user-agent:mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0) user-agent:mozilla/5.0 (Windows NT 5.1) applewebkit/537.1 (khtml, like Gecko) chrome/21.0.1180.89 safari/ 537.1user-agent:mozilla/5.0 (Windows NT 5.1) applewebkit/537.1 (khtml, like Gecko) chrome/21.0.1180.89 safari/ 537.1user-agent:mozilla/5.0 (compatible; MSIE 9.0; Windows NT
The so-called "browser kernel" is nothing more than a core part of the browser-"Rendering engine", the term literal translation is called "rendering engine", but we often call it "typesetting engine", "Interpretation engine". The purpose of this engine is to help the browser render the content of the Web page, converting the page content and layout code to the view that the user sees.Note: Sometimes what we call the "browser kernel" or even "rendering engine", in addition to the rendering engine
);
However, the ie8+ user agent string adds the version number of the rendering engine (Trident);
The JS code is as follows:
var ua = Navigator.userAgent.toLowerCase ();
Console.log (UA);
For example, under Window IE7 is as follows:
Copy Code code as follows:
mozilla/4.0 (compatible MSIE 7.0; Windows NT 6.1; wow64; trident/7.0;. NET CLR slcc2;. CLR 3.0.30729; Media Center
Recently in the analysis Nginx log found that there are many IP access to the site root directory, as follows:GET/--58.60.170.219 http/1.1 [mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0)]GET/--58.60.170.219 http/1.1 [mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0)]GET/--58.60.170.219 http/1.1 [mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;
Nginxweb Security 2
Recently, analysis of nginx logs shows that many ip addresses can access the root directory of the website, as shown below:
GET/--58.60.170.219 HTTP/1.1 [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)]
GET/--58.60.170.219 HTTP/1.1 [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)]
GET/--58.60.170.219 HTTP/1.1 [Mozilla/5.0 (compatible; MSIE 9.0; Windows NT
, the kernel program was first adopted in the 1997 IE4, is Microsoft on the basis of mosaic code to repairChanged, and used to the present IE9. Trident is actually an open kernel, its interface core design is quite mature, so there are manyBrowsers that use the IE kernel instead of IE are emerging (such as Maxthon, the world, TT, Greenbrowser, Avantbrowser, etc.). In additionFor convenience there are a lot of people directly referred to as IE kernel (
with the client command:
Storm Rebalancemytopology-n 5-e Blue-spout=3-e yellow-bolt=10
You can also change the UI.
DRPC:
In distributed parallel computing, the input stream is treated as the parameter of the function, and the result of function execution is emitted as output stream.
The client sends the name of the method to be executed to the DRPC server, as well as the parameters of this method. The topology of this function is implemented using Drpcspout to receive the function call str
Testservlet.javaPackage moreservlets;Import java.io.*;Import javax.servlet.*;Import javax.servlet.http.*;/** simple servlets used to illustrate servlet naming* and Custom URLs.* * Taken from more servlets and JavaServer Pages* FROM Prentice Hall and Sun Microsystems Press,* http://www.moreservlets.com/.* copy; 2002 Marty Hall; May is freely used or adapted.*/public class Testservlet extends HttpServlet {public void doget (HttpServletRequest request,H
J2ee|services|web
java EE vs. Microsoft.NET Web Services
--Comparison of Web services for building XML schemas
Author: Anon This article chooses from: Cnjsp April 30, 2002
I. Preface
In this article, we'll delve into the two platforms that can be used to build commercial XML WEB services, which are provided by Sun Microsystems Java 2 Enterprise Edition (EE) and Microsoft. NET platform.
Although the Java EE represents an open standard, and. NET is
is loaded. NET of the Framework, open this directory C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\Browsers. Under Popular Science, the. browser files in the folder are globally accessed to identify the browser that made the request and identify the features that these browsers have. If you want to make custom modifications (such as for a specific mobile device), simply copy the corresponding. browser file to the application's \app_browsers folder to modify it. First open the IE.browser
The example of this article describes the way in which PHP uses Curl to implement spoofed IP sources. Can be achieved to forge IP sources, counterfeit domain names, counterfeit user information, to share for everyone's reference. The implementation methods are as follows:
Define spoofed user browser information http_user_agent
Copy Code code as follows:
$binfo =array (' mozilla/4.0 compatible; MSIE 8.0; Windows NT 5.1; trident/4.0. NET
is, your original URL is redirected to a url B without a new one. It is redirected to C, it is redirected to B, and so on.
At the end of the article, we mentioned adding a request header to maintain session persistence.
# For a request initiated by requests, add the request header import requestsheaders = {"User-Agent": "User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; trident/5.0; "} html = requests. get ('https: // your ke.baidu.com '
know him. +background:yellow; * or + Left to IE7,6 This is still good _background:black; _ reserved for ie6:root. test{background:blue\9;}: Root is for IE9, the Internet has circulated a version is: root #test {background:blue\0;}, the new opera also known, so after repeated verification of the final IE9 Special: root selector {properties \9
Browser kernel
Trident
Trident
Trident: This browser kernel is the kernel of IE browser, because in the early IE occupies a lot of market share, so this kernel is more popular, before a lot of web pages are based on the standard of this kernel, but in fact, this kernel to the true Web Standard support is not very good, even in 2005, With the standards established by the Web page Standard Development Organization (the Board) developed a disjointed, while
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.