ITeye博客

2010 年文章归档

共 9 篇文章

ShankMod

-- Constants file, mainly used for character attributes, e.g. Health values EASY_MULTIPLIER = 0.8 NORMAL_MULTIPLIER = 1.0 HARD_MULTIPLIER = 1.2 INSANE_MULTIPLIER = 1.5 GOON_MEDIUM_MULTIPLIER = 9 GOON_LARGE_MULTIPLIER = 2 --------------- -- Shank/Falcone --------------- SHANK_HEALTH = 300 SHANK_HEAL…

2010-12-10 10:37 · Common · Java

SQL中的单记录函数

SQL中的单记录函数 1.ASCII 返回与指定的字符对应的十进制数; SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE --------- --------- --------- --------- 65 97 48 32 2.CHR 给出整数,返回对应的字符; SQL> select chr(54740) zhao,chr(65) chr65 from dual; ZH C -- - 赵 A 3.CONCAT 连接两个字符串; SQL> sele…

2010-09-15 12:30 · Database · SQL · Oracle

Servlet中的八大Listener

JSP/Servlet 中的事件处理写过AWT或Swing程序的人一定对桌面程序的事件处理机制印象深刻:通过实现Listener接口的类可以在特定事件(Event)发生时,呼叫特定的方法来对事件进行响应。 其实我们在编写JSP/Servle程序时,也有类似的事件处理机制,所不同的是在JSP/Servlet中是在web.xml中注册Listener,由Container在特定事件发生时呼叫特定的实现Listener的类。 1. Servlet中的Listener和Event: 在JSP 2.0/Servlet 2.4中,共有八个Listener接口,六个Event类别。 ServletCont…

2010-08-03 18:44 · JavaEE · XML · JSP · Web · Servlet

web.xml 中的listener、 filter、servlet 加载顺序及其详解

首先可以肯定的是,加载顺序与它们在 web.xml 文件中的先后顺序无关。即不会因为 filter 写在 listener 的前面而会先加载 filter。最终得出的结论是:listener -> filter -> servlet 同时还存在着这样一种配置节:context-param,它用于向 ServletContext 提供键值对,即应用程序上下文信息。我们的 listener, filter 等在初始化时会用到这些上下文中的信息,那么 context-param 配置节是不是应该写在 listener 配置节前呢?实际上 context-param 配置节可写在任意位置,因此真正的…

2010-08-03 17:49 · JavaEE · XML · JSP · Tomcat · Web · Servlet

★★★★☆☆Six star english word - Accomplish

Accomplish to succeed and doing, finish successfully, complete 1. They accomplished their mission. 2. A lazy man can never accomplish any thing. 3. We tried to arrange a piece agreement, but accomplished nothing. 4. She's accomplished a lot in the last few weeks. 5. The task of modernization will n…

2010-07-20 11:56 · English

100 frequently used english sentence patterns

Do you like .... Do you like chinese food? Do you like studying chinese? Do you like movies? Do you like our city? Do you like chasing girls? I'm ... I'm an office worker. I work for ... I work for the goverment. I'm happy to ... I'm happy to meet you. I like ... I like your sense of humor. I'm gla…

2010-07-15 12:22 · English · Spring · Go · UP · Office

Quote from Call of duty: Mordern warfare 2

"The more things change, the more they stay the same. Boundaries shift, new players step in; but power always finds a place to rest its head. We fought and bled along side the Russians; we should've known they’d hate us for it. History is written by the victor, and here I am, thinking we'd won. But…

2010-02-26 12:27 · English · REST · Go · UP · SOAP

Cultural Differences between east and west

Cultural Differences 中西对比 There is a table which compares Chinese and English native speakers with respect to certain cultural conventions. 中西差异的实例,不得不看。 Situation1 英国人对家人的帮忙会说谢谢;而中国人认为帮助家里人是一种义务,所以无需言谢。 Interactions: help between family members Conventions: politeness Chinese Conventions: one's ow…

2010-02-04 16:31 · English · 音乐 · Go · UP

如何用英语鼓励别人

我一直都相信心理暗示是管用的。比如在紧张或者缺乏信心的时候,如果身边有人很诚恳地肯定我的能力,对我加以鼓励,那么我在执行任务的时候就会泰然得多。这就是鼓励的力量。今天我们一起来看看怎么用英语去鼓励别人吧。 Don't be scared, he’s up with end. 不要惊慌,他已黔驴技穷。 Don't let us down. 不要让我们失望。 Keep your chin up. 不要气馁。 Keep it up. 坚持下去。 Try to look on the bright side of things. 凡事想开点。 You can do it. 你能办得到。 Be a m…

2010-02-04 13:32 · English · Go · UP