_end= getruntime ();
$time _used= $time _end-$time _start;
Echo ' Used time of: '. Round ($time _used, 7). ' (s) Unset ($str, $key, $val, $time _start, $time _end, $time _used);
######################################
$time _start= getruntime ();
foreach ($arr as$key=> $val) {
$str = $val;
}
$time _end= getruntime ();
$time _used= $time _end-$time _start;
Echo ' Used time of foreach: '. Round ($time _used, 7). ' (s) ?>
Test results:
Used time of for:0.0228429 (s)
Used time of while
Web| Solutions | questions | Chinese
Webwork+velocity Chinese Problem Resolution: 1, Webwork.properties file, add:
webwork.i18n.encoding = GB2312
It is primarily used to set the encoding of the WebWork UI tag library If it is not set to pass
System.getproperty ("file.encoding") to obtain the default character encoding. 2, Velocity.properties file, add:
input.encoding=gb2312
output.encoding=gb2312
default.contenttype=text/html; charset=gb2312
It
In a few simple steps, implement the use of the velocity or freemarker template to construct the page in spring boot and return to the front end:
1. Introduce dependencies and create templates directory:
velocity:http://blog.csdn.net/clementad/article/details/51819647
freemarker:http://blog.csdn.net/clementad/article/details/51942629
2. Create template file:
Create two files, one corresponding to the normal page, file name:
Velocity:welc
Installation steps:1. Help->install New software in eclipse ... Point "add" plus velocityeclipse, value: http://veloeclipse.googlecode.com/svn/trunk/update/The interface then removes the hooks from the Group Items by Catagory , and then next begins ...2. After installation, it's ready to start.Other:By default, the JS code will be a silver color and look uncomfortable. Suggest a change,Colors are changed by: Windows--perferences---veloeclipse--and script code---colorInstalling the
There are a few steps that are modified in the spring Web [sevlet-name]-servlet.xml file to:Boldface fonts are key, others are configured according to your situation:Note:First of all, to ensure that the development environment of the file encoding unified, the jsp/html character encoding is declared as Utf-8.Spring Velocity Chinese garbled solution
In web development, there is often a need to determine whether a variable is empty (null) or an empty string (""), which affects the presentation logic of the page, and there is a corresponding method in velocity that can be judged. Of course, you can also convert the Java backend to a valid value before judging. The following is my own summary in the development, I hope to help you.
(1) determine null
#if ($name = null)
something code
#end
(2) to
Today, a gadget was created to generate Latext Tex files through velocity, but when the PDF was generated using MiKTeX, the Chinese became garbled. Before Eclipse ran directly, no problem was found. There is no doubt that the problem is caused by file encoding.
Open the generated Tex file with notepad++, and find that the file's encoding is ANSI, which is the local encoding of the system. Here's the code to generate Tex:
public class Velocityhelper {
These days learned the framework of the next struts+spring+ibatis+velocity. Get a blog small program, basically count on Jane's, slightly remember it. The advanced stuff is still in the study ...
1, the configuration of Web. Xmlns:xsi = "Http://www.w3.org/2001/XMLSchema-instance" Version = "2.5"Xsi:schemalocation = "Http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" >Org.springframework.web.context.ContextLoaderServle
Pick up an article on http://blog.csdn.net/qust008/article/details/9623513
This configuration still needs to import the package, the newly imported package is commons-beanutils-1.7.0,sitemesh-2.4.2,velocity-tools-view-2.0
Create a generic template and the VMS returned in the background are embedded in this template
Under WebContent, create a new folder decorators, create a new file TEMPLATE.VM under Decorators, with the following
Create a new file De
PrincipleImage Pyramid is, we first the original image according to the needs of users, such as the number of users need to display the data under the scale, need to display the original image of which region of the data, the original image according to these requirements are divided and extracted.The lowest layer is the one that we extract and divide the smallest level of tiles, and the top is the largest scale tile. We look closely at a pattern that shows
[Translated from mos] In 11gR2 rac environment, the file system usage is tight, and lsof shows many oraagent_oracle.l10 (deleted) and 11gr2rac
In 11gR2 rac environment, the file system usage is tight, and lsof shows many oraagent_oracle.l10 (deleted)
Reference Original:High Space Usage and "lsof" Output Shows comment 'oraagent _ oracle. l10 (deleted) 'in GI envir
Recently in helping a friend to deal with a Web site front-end display of the list of articles, one of the alternative ideas, is now sorted out for the needs of friends reference and their own memo.
The display effect is: the title is left aligned and the date is right-aligned.
The middle of the title and date is replaced by a regular origin ("."), which shows the effect as shown.
As for the 1th requirement, it is easy to achi
Wget always shows that the central UK time solution wget always shows the central UK time, which is depressing. Originally, the English language was eta (estimated arrival time of EstimatedTimeofArrival, when I corrected this problem, I found that the progress bar of wget is also restored to its original state. try again and try again on behalf of wget. it always shows
51ak shows you MYSQL5.7 source code 3: modify the code to implement your first Mysql version, 51akmysql5.7
Have worked as a DBA for many years
MYSQL source code is also the first contact
Try to record the process of viewing the MYSQL5.7 source code by yourself
Directory:
51ak: MYSQL5.7 source code 1: main Entry Function
51ak shows you MYSQL5.7 source code 2: compile existing code
51ak
Baidu has never been able to crawl it since it used qiniu cloud's Robots. The diagnosis shows that robots is disabled. In robots, I use the default one provided by qiniu cloud. What's wrong?
Baidu has never been able to crawl it since it used qiniu cloud's Robots. The diagnosis shows that robots is disabled. In robots, I use the default one provided by qiniu cloud. What's wrong?
Reply content:
Baidu
Cpu/abi shows the solution for the no system images installed for this targetDownload image manuallyhttp://www.androiddevtools.cn/SDK System ImagesThis is the system image that is required when creating the emulator, that is, when the emulator is created, the CPU/ABI item needs to be selected, downloaded and decompressed, the entire extracted folder can be copied or moved to a your sdk 路径/system-images folder, if there is no system-images directory, c
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.