
2008年10月13日
IntelliJ IDEA 性能调整
IDEA 6.0已经发布,好多人抱怨反应速度慢,内存消耗大。IDEA 6.0增加了不少新特性,程序也更大,内存占用肯定也会提高。在这篇文章我们想探讨一下这方面的问题,通过相关的设置,让你的IDEA快起来,更稳定。
IntelliJ IDEA是Java程序,所以性能调整因从JVM和程序两方面考虑。对于JVM的调整,可能个人看法都不一样,这样我们给出一个推荐方案,然后给你做一说明,你也可以在此基础上做更个性的修改。下面的截图是根据“IDEA VM Options”插件做的,该插件可以修改idea.exe.vmoptions文件内容,即使升级版本也不用担心。
打开设置面板,选择“IDEA VM Options”,按照下图然后输入以下参数:
(修改idea安装目录下/bin/idea.exe.vmoptions文件,可以达到同样效果)
-Xms256m
-Xmx384m
-XX:MaxPermSize=128m
-XX:NewRatio=4
-Xss128k
-Dsun.awt.keepWorkingSetOnMinimize=true
-server
下面我们做一些解释: -Xms256m设置初时的内存数,你需要设置一个合理的值, 增加该值可以提高Java程序的启动速度。如果你的内存够大,如2G,可以设置到400m。
-Xmx384m设置最大内存数,提高该值,可以减少内存Garage收集的频率,提高程序性能。
-Dsun.awt.keepWorkingSetOnMinimize=true可以让IDEA最小化到任务栏时依然保持以占有的内存,当你重新回到IDEA,能够被快速显示,而不是由灰白的界面逐渐显现整个界面,加快回复到原界面的速度。
-server控制内存garage方式,这样你无需在花一到两分钟等待内存garage的收集。
接下来就是IDEA程序的设置,我们建议采用下图的设置:
取消
“Synchronize file on frame activation”和“Save files on frame deactivation”的选择。在IDEA中,采用多线程读写文件,但线程写,而且磁盘读写非常耗费时间,所以我们建议取消这两个选项,否则在IDEA和其他程序切换时,你会发现磁盘操作比较频繁。同时我们选择“
Save files automatically”,并将其设置为30秒,这样IDEA依然可以自动保持文件。做以上的设置,可能有一点不方便。如我们编辑一个jsp文件,然后切换到浏览器刷新,获得最新的信息。但是在切换到浏览器时,IDEA将不会自动保存,所有信息不是最新的。所以在每次切换时,你需要按下Ctrl+S,保存文件。这样你需要了解哪些文件被更改了,给这些文件一个标识。 在IDEA中,你需要做以下设置, 这样被修改的文件会以*号标识出来,你可以及时保存相关的文件。
总结:通过以上的设置,我们相信会提高IDEA的性能。当然这不表示IDEA的默认配置是错误的,就如同数据库软件一样,提供了一个标准的配置,具体的一些性能调整可能要根据实际情况确定。
posted @
2008-10-13 15:12 灵风 阅读(273) |
评论 (0) |
编辑

2008年1月23日
求职资源汇总:
http://www.dxy.cn/bbs/post/view?bid=57&id=2569072&sty=1&tpg=1&age=-1
(三)面试篇
面试篇
ENGLISH面试常见话题的问与答
http://www.dxy.cn/bbs/post/view?bid=11&id=2325564&tpg=1&ppg=1&sty=1&age=0#2325564
英语面试自我介绍范文1
http://www.cnblogs.com/fjchenq/archive/2008/01/23/1050533.html
英语面试自我介绍范文2
http://www.cnblogs.com/fjchenq/archive/2008/01/23/1050534.html
posted @
2008-01-23 19:51 灵风 阅读(170) |
评论 (0) |
编辑
大凡找工作的人,都有对面试的担心,而英语面试最令人头痛。面试气氛总是紧张的,一紧张就容易出错,中文“台词”都会结巴,何况英语!
可俗话说,养兵千日,用兵一时,学了那么多年英语,好歹有些积累,总不能栽在这上面。那么,如何过好英语面试这一关呢?
外企英语面试啥样子?
各外企的英语面试形式各异,但基本流程是差不多的。
第一轮面试一般由公司人力资源部的人员担任考官,他们会从你的个人简历出发,询问一些有关个人的问题,比如请你用英语做一个自我介绍。有些公司,也会有一部分英语笔试,如雅芳公司,其笔试中包含一个中英互译的项目,主要考查应聘者基本的语言运用能力。
第二轮面试则由部门主管经理出面,这时候,有关业务方面的问题成了面试的重点,所以英语面试也从个人情况转向了专业领域。比如应聘市场部,则应聘者通常会被要求谈一谈以往最成功的一个案例,或者自身的业务强项等。
如果前面一路绿灯大亮,那么,最后一轮面试就要和bigboss———公司的总裁面对面了。外企的总裁一般是老外,当然面试就变成全英语的了。总裁询问的问题一般会和公司的精神、企业文化有关。一位曾任职默沙东制药的小姐说,她在参加的默沙东最后一轮面试时,默沙东老总看到她是学新闻出身的,便要求她谈谈对中国新闻媒体的看法,因为默沙东制药一直对新闻媒体有其比较独特的态度。通过这样比较宏观的问题,招聘方想要发现的是,应聘者的理念是否与公司的文化精神相契合。
如何应对英语面试
英语从小开始学,可学了10来年,有的人还是“哑巴英语”。到了要找饭碗的紧要关头,则对一些“成功英语面试培训”饥不择食。其实,冰冻三尺,非一日之寒,速成是不可能的,只能在平时积累的基础上,注意一些细节,运用一些技巧,给自己加上几个成功的筹码。
首先,平时要注意训练听力,至少要听得懂考官的问题,如果考官一个问题出来,你却听得云里雾里,然后来两三个“Pardon”,那现场气氛定会急转直下。说话要流利,思维要连贯,层次要清晰,不要夹杂中文,可以用“well”、“however”这样的过渡词来给自己停顿和思考,同时,也使得自己的表述显得口语化一些。
其次,发音要标准。在与外国boss面谈的过程中,发音的正确清晰与否是最为重要的。不要因为害怕犯语法错误而不敢说,大多数时候一些细小的语法错误并不影响交际的进行,老外们也不会特别在意。如果要说某个词却一时想不起来,那就换种说法,尽量避免卡壳,卡壳会导致冷场。总之不管怎么样,都要自信满满地,把英文说得让人听上去像那么回事。
■先期准备
主要是个人情况和业务方面。专业英语的准备要充足,有时会被要求用英语解释一个专业术语或解答一个技术问题。还可去公司的英文网站了解一下企业文化,这在与bigboss面谈的中会有帮助的。
面试英语自我介绍的常用词汇Words & Expressions:
part-time job: 兼职工作
full-time: 全职
position / vacancy: 职位,空缺
manager: 经理
director: 主任
president: 董事长,总经理
General Manager: 总经理
saleperson: 推销员
engineer: 工程师
accountant: 会计
degree: 学位
introduce:(动词) 介绍 introduction: (名词)介绍
Let me introduce myself. / Let me do some introduction. 让我来介绍一下自己。
Which aspect do you want to know about me?
或者 What do you want to know about myself? 您想知道我哪方面的情况?
面试英语自我介绍的常用基本的句子:
1. I noticed that you advertised a job in this morning’s paper. 我看到你们在今早的报纸上刊登的招聘广告。
2. I’m coming for your advertisement for …. 我是来应聘你们广告上的……职位的。
3. I have applied for the position of …. 我申请了贵公司的……职位。
4. Do you have any job for a part-timer? 你们需要兼职吗?
5. I’d like to know if you need any full-time secretary. 我想知道你们是否需要全职秘书?
6. I’m looking for a job. Are there any vacancies? 我在找工作,请问你们有空缺吗?
面试英语自我介绍的常用句型:
1. I got a degree in Literature and took a course in typing. 我获得了文学学士学位,还学过打字。
2. I haven’t done anything like that before. 我以前没有做过这种工作。
3. I think I’m quite fit for assistant’s job. 我觉得我很适合做助理的工作。
4. I used to work as a sale’s manager. 我以前做销售经理。
5. I’m quite familiar with editing. 我做过很多编辑工作。
6. I want a job with a vacation every year. 我想找个每年都能度假的工作。
7. I was thinking of a job in a school. 我打算到学校找份工作。
8. I worked in the accounting section of a manufacturer of electrical products. 我曾在电子产品制造商的会计组工作。
9. I love playing tennis. 我喜欢打网球。
■临场发挥 英语面试范文:
Good morning, my name is jack, it is really a great honor to have this opportunity for a interview, i would like to answer whatever you may raise, and i hope i can make a good performance today, eventually enroll in this prestigious university in september. now i will introduce myself briefly,i am 21 years old,born in heilongjiang province ,northeast of china,and i am curruently a senior student at beijing XX uni.my major is packaging engineering.and i will receive my bachelor degree after my graduation in june.in the past 4 years,i spend most of my time on study,i have passed CET4/6 with a ease. and i have acquired basic knowledge of packaging and publishing both in theory and in practice. besides, i have attend several packaging exhibition hold in Beijing, this is our advantage study here, i have taken a tour to some big factory and company. through these i have a deeply understanding of domestic packaging industry. compared to developed countries such as us, unfortunately, although we have made extraordinary progress since 1978,our packaging industry are still underdeveloped, mess, unstable, the situation of employees in this field are awkard. but i have full confidence in a bright future if only our economy can keep the growth pace still. i guess you maybe interested in the reason itch to law, and what is my plan during graduate study life, i would like to tell you that pursue law is one of my lifelong goal,i like my major packaging and i won"t give up,if i can pursue my master degree here i will combine law with my former education. i will work hard in thesefields ,patent ,trademark, copyright, on the base of my years study in department of p&p, my character? i cannot describe it well, but i know i am optimistic and confident. sometimes i prefer to stay alone, reading, listening to music, but i am not lonely, i like to chat with my classmates, almost talk everything ,my favorite pastime is valleyball,playing cards or surf online. through college life,i learn how to balance between study and entertainment. by the way, i was a actor of our amazing drama club. i had a few glorious memory on stage. that is my pride.
posted @
2008-01-23 19:42 灵风 阅读(8788) |
评论 (1) |
编辑
自我介绍(self-introduce)
1.Good morning. I am glad to be here for this interview. First let me introduce myself. My name is ***, 24. I come from ******,the capital of *******Province. I graduated from the ******* department of *****University in July ,2001.In the past two years I have been prepareing for the postgraduate examination while I have been teaching *****in NO.****middle School and I was a head-teacher of a class in junior grade two.Now all my hard work has got a result since I have a chance to be interview by you . I am open-minded ,quick in thought and very fond of history.In my spare time,I have broad interests like many other youngers.I like reading books, especially those about *******.Frequently I exchange with other people by making comments in the forum on line.In addition ,during my college years,I was once a Net-bar technician.So, I have a comparative good command of network application.I am able to operate the computer well.I am skillful in searching for information in Internet.I am a football fan for years.Italian team is my favorite.Anyway,I feel great pity for our country’s team. I always believe that one will easily lag behind unless he keeps on learning .Of course, if I am given a chance to study ****** in this famous University,I will stare no effort to master a good command of advance ******.
2.Good afternoon .I am of great hornor to stand here and introduce myself to you .First of all ,my english name is ...and my chinese name is ..If you are going to have a job interview ,you must say much things which can show your willness to this job ,such as ,it is my long cherished dream to be ...and I am eager to get an oppertunity to do...and then give some examples which can give evidence to .then you can say something about your hobbies .and it is best that the hobbies have something do with the job.
What is more important is do not forget to communicate with the interviewee,keeping a smile and keeping your talks interesting and funny can contribute to the success.
I hope you will give them a wonderfull speech .Good luck to you !
3.good morning, my name is jack, it is really a great honor to have this opportunity for a interview, i would like to answer whatever you may raise, and i hope i can make a good performance today, eventually enroll in this prestigious university in september. now i will introduce myself briefly,i am 21 years old,born in heilongjiang province ,northeast of china,and i am curruently a senior student at beijing XX uni.my major is packaging engineering.and i will receive my bachelor degree after my graduation in june.in the past 4 years,i spend most of my time on study,i have passed CET4/6 with a ease. and i have acquired basic knowledge of packaging and publishing both in theory and in practice. besides, i have attend several packaging exhibition hold in Beijing, this is our advantage study here, i have taken a tour to some big factory and company. through these i have a deeply understanding of domestic packaging industry. compared to developed countries such as us, unfortunately, although we have made extraordinary progress since 1978,our packaging industry are still underdeveloped, mess, unstable, the situation of employees in this field are awkard. but i have full confidence in a bright future if only our economy can keep the growth pace still. i guess you maybe interested in the reason itch to law, and what is my plan during graduate study life, i would like to tell you that pursue law is one of my lifelong goal,i like my major packaging and i won't give up,if i can pursue my master degree here i will combine law with my former education. i will work hard in thesefields ,patent ,trademark, copyright, on the base of my years study in department of p&p, my character? i cannot describe it well, but i know i am optimistic and confident. sometimes i prefer to stay alone, reading, listening to music, but i am not lonely, i like to chat with my classmates, almost talk everything ,my favorite pastime is valleyball,playing cards or surf online. through college life,i learn how to balance between study and entertainment. by the way, i was a actor of our amazing drama club. i had a few glorious memory on stage. that is my pride.
posted @
2008-01-23 19:40 灵风 阅读(827) |
评论 (0) |
编辑

2007年9月21日
环境: win2003 tomcat 5.5 JDK1.6上
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
</web-app>
jsp代码:

<%
@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
1+2+3 = ${1+2+3} <br>
1+2+3 = <c:out value="6" /> <br>

此时执行没有任何问题。
1+2+3 = <c:out value="${1+2+3}" />执行时就会出现:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions
昨天少了一个jsp,所以一直出现问题。
代码
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
写成
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
今天再试。发现JSTL1.1可以用。但是用JSTL1.0时,出现问题。
就是把JSTL1.1的库放到/WEB-INF/lib/ 下。
刚开始我是netbeans 5.5.1中的JSTL库拷贝出来发现可以用。后来用jstl1.1.2的库,也是可以用。
总结:
JSTL1.1的库 在JSP2.0(Servlet 2.4)及以后(推荐用JSTL1.1及以上)用:
代码
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
</web-app>
在 Servlet2.3及以前,
代码
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
比2.4以后版本少了jsp
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
在Servlet2.3中最好用JSTL1.0,如果用JSTL1.1,请加上
在Servlet2.3中最好用JSTL1.0,如果用JSTL1.1,请加上
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</web-app>
把tld目录下的c.tld拷贝到/WEB-INF?下。
找到官方下载地址:
http://jakarta.apache.org/site/downloads/downloads_taglibs.html
选择 Standard 1.0 Taglib 和Standard 1.1 Taglib 可以下载jstl1.0和jstl1.1版本。
posted @
2007-09-21 17:10 灵风 阅读(2536) |
评论 (2) |
编辑