2009-04-05

i'm using eclipse wtp

Build Type:Integration
Build Name:3.1
Stream:R3.1
Build Date:Thu, 2 Apr 2009 -- 04:46 (UTC)


  1. download parts...

    • No.ComponentsFile Name
      1.Eclipse Platform (Platform, JDT)eclipse-SDK-3.5M6-win32.zip
      2Web App Developerswtp-I-3.1-20090402044606.zip
      3EMF v2.5 Runtime Minimum executable codeemf-runtime-2.5.0M6.zip
      4EMF XSD v2.5 Runtime Minimum executable codexsd-runtime-2.5.0M6.zip
      5Graphical Editing Framework (GEF)GEF-SDK-3.5.0M6.zip
      6Data Tools Platform (DTP) (required only for EJB or JPT development)dtp-sdk-1.7.0M6-200903160500.zip

  2. unzip
    1. Eclipse Platform (Platform, JDT)
    2. Web App Developers
    3. EMF v2.5 Runtime Minimum executable code
    4. EMF XSD v2.5 Runtime Minimum executable code
    5. Graphical Editing Framework (GEF)
    6. Data Tools Platform (DTP) (required only for EJB or JPT development)

2009-04-03

得找工作的 thursday...

oh sh*t...
真的应征了居安思危这句话。。。
不思的话,若出了事情结果只有慌乱。。。

毫无准备的我,只有拿着“经验”向新的战场,向前冲了。。。
希望,结果是有惊无险地让我找到不错的战国投靠咯。。。

妈妈说,机会是给有准备的人。。。
希望我这临时抱佛脚的准备,可以再靠运气遇到临时/迟到出门的机会咯~
呵呵

cheerz...

2009-03-26

Nokia - 隐形的备用电池

source: http://nokia.zol.com.cn

极少有人知道的手机隐藏功能

极少有人知道的手机隐藏功能

隐形的备用电池

  你的手机电量不足了,为了让它能够继续使用,按*3370#键,手机会重新启动,启动完毕后,你就会发现电量增加了50%。这部分隐藏的备用电量用完了你就必须得充电了,再次充电的时候,隐形的备用电池也同时充电,下次电量低的时候又可以用这个方法。知道这个在紧急情况下如果手机电量不足非常管用。

2009-02-19

myName

Windows Live SpacemyName(agian).

周: [ zhōu ]
[ 国标码:D6DC 部首: 笔画:8 笔顺:35121251 ]  

1. lap
2. week
3. thoughtful
4. (surname)
5. complete
6. encircle
7. circuit
8. cycle
9. all
10. every
11. attentive

其它相关解释:
<Chou> <main pipe> <perimeter> <Zhou> 


秉: [ bǐng ] / [ bǐng ]
[ 国标码:B1FC 部首: 笔画:8 笔顺:31511234 ]  

1. maintain
2. (surname)
3. to grasp
4. hold


晟: [ shèng ]
[ 国标码:EAC9 部首: 笔画:10 笔顺:2511135534 ]  

1. splendor
2. brightness of sun

2008-11-17

DISABLED & READONLY

Attributes for DISABLED & READONLY
READONLY and DISABLED both remove the functionality of the input field, but to different degrees. READONLY locks the field: the user cannot change the value. DISABLED does the same thing but takes it further: the user cannot use the field in any way, not to highlight the text for copying, not to select the checkbox, not to submit the form. In fact, a disabled field is not even sent if the form is submitted.
Currently only MSIE recognizes either of these attributes.
this code
produces this




It's important to understand that READONLY merely prevents the user from changing the value of the field, not from interacting with the field. For many types of fields, READONLY is irrelevent because you don't normally change the value. In checkboxes, for example, you can check them on or off (thus setting the CHECKED state) but you don't change the value of the field. DISABLED, however, actually prevents you from using the field. Notice in these examples that you can set the checkboxes even though they are "read only":
this code
produces this
mushrooms

onions

peppers
mushroomsonionspeppers
mushrooms

onions

peppers
mushroomsonionspeppers

2008-11-05

java string contains string

source from: http://www.exampledepot.com/egs/java.lang/HasSubstr.html
found by: java string contains string

e72. Determining If a String Contains a SubstringSee also e423 Quintessential Regular Expression Search Program. String string = "Madam, I am Adam";

// Starts with
boolean b = string.startsWith("Mad"); // true

// Ends with
b = string.endsWith("dam"); // true

// Anywhere
b = string.indexOf("I am") > 0; // true

// To ignore case, regular expressions must be used

// Starts with
b = string.matches("(?i)mad.*");

// Ends with
b = string.matches("(?i).*adam");

// Anywhere
b = string.matches("(?i).*i am.*");

2008-10-30

灵魂身体。。。

sunsun9399@skype: 爱情是两个灵魂,一个身体...友谊是一个灵魂,两个身体...

2008-10-08

problem with html tag properties

with this code
<div style="width: 47px; float: left;">
some of onscreen items couldn't display

when i change to
<div style="width: 47%; float: left;">

things looking fine.
let me a msg if u know what's wrong with this.
thank you.

used codes reference: http://www.htmlcodetutorial.com/characterentities_famsupp_69.html

2008-07-26

me at hometown...

has been a long time x update anything over here.
recently nothing i done, daily task not much to say...

i'm using nokia n70... so, now i can read novel by using my hp.
read many novels that i download from internet, many of those novels is around hundred thousand words... that's really cool...

words to bring the story... or stories...
sometimes i feel that i was there, in the story line...
and i can see things in those novels that in words, but i saw!!!

excellent feeling...

2008-06-12

为什么要知道栈与堆的机制?

问:到底为什么要知道栈(stack)与堆(heap)的机制?
这真的与我有关系吗?


答:
  • 如果想要了解变量的有效范围(sope)、对象的建立、内存管理、线程(thread) 和异常处理,则认识栈与堆是很重要的。
  • 后面的章节会讨论到有关线程与异常处理的部分,其余的都会在这一章讨论。
  • 你无需知道它们是如何实现的,只是能够理解这几页的内容就足够了。

2008-06-03

HeadFirstJava 要点 pg 78

传入与传出方法的值类型可以隐含地方大或是明确地缩小。

实例变量 - instance variable

实例变量
instance variable

CNKI翻译助手

http://dict.cnki.net/
CNKI翻译助手
辅助在线翻译系统(含覆盖专业领域最全面的科技术语汉英在线词典、英汉在线词典)

2008-05-29

Java 是做什么?

語言特性
Java之所以被開發,是要達到以下五個目的:
  • 應當使用物件導向程序設計方法學
  • 應當允許同一程序在不同的電腦平臺執行
  • 應當包括內建的對電腦網路的支持
  • 應當被設計成安全地執行遠端代碼
  • 應當易於使用,並借鑒以前那些物件導向語言(如C++)的長處。

Java技術主要分成幾個部分:Java語言、運行環境JVM、類庫。一般情況下說Java時並不區分指的是哪個部分。

Java modifier

source from: http://www.k8w.net/technology/java/200801/419.html
http://dev.21tx.com/2002/02/07/10057.html

Java语言定义了public、protected、private、abstract、static和final这6常用修饰词外
还定义了5 个不太常用的修饰词,下面是对这11个Java修饰词的介绍:



No.Modifier使用对象介绍
1public类、接口、成员无论它所处在的包定义在哪,该类(接口、成员)都是可访问的
2private成员成员只可以在定义它的类中被访问
3static类、方法、字段、初始化函数成名为static的内部类是一个顶级类,它和包含类的成员是不相关的。静态方法是类方法,是被指向到所属的类而不是类的实例。静态字段是类字段,无论该字段所在的类创建了多少实例,该字段只存在一个实例被指向到所属的类而不是类的实例。初始化函数是在装载类时执行的,而不是在创建实例时执行的。
4final类、方法、字段、变量被定义成final的类不允许出现子类,不能被覆盖(不应用于动态查询),字段值不允许被修改。
5abstract类、接口、方法类中包括没有实现的方法,不能被实例化。如果是一个abstract方法,则方法体为空,该方法的实现在子类中被定义,并且包含一个abstract方法的类必须是一个abstract类
6protected成员成员只能在定义它的包中被访问,如果在其他包中被访问,则实现这个方法的类必须是该成员所属类的子类。
7native成员与操作平台相关,定义时并不定义其方法,方法的实现被一个外部的库实现。
8strictfp类、方法strictfp修饰的类中所有的方法都隐藏了strictfp修饰词,方法执行的所有浮点计算遵守IEEE 754标准,所有取值包括中间的结果都必须表示为float或double类型,而不能利用由本地平台浮点格式或硬件提供的额外精度或表示范围。
9synchronized方法对于一个静态的方法,在执行之前jvm把它所在的类锁定;对于一个非静态类的方法,执行前把某个特定对象实例锁定。
10volatile字段因为异步线程可以访问字段,所以有些优化操作是一定不能作用在字段上的。volatile有时可以代替synchronized.
11transient字段字段不是对象持久状态的一部分,不应该把字段和对象一起串起。

meet with new friend, assertion from java island

damn...
kind of simple code, but today i just know...





Fig. 13.9 Checking with assert that a value is within range.
   1  // Fig. 13.9: AssertTest.java
2 // Demonstrates the assert statement 3 import java.util.Scanner; 4 5 public class AssertTest 6 {
7 public static void main( String args[] ) 8 { 9 Scanner input = new Scanner( System.in ); 10 11 System.out.print( "Enter a number between 0 and 10: " );
12 int number = input.nextInt(); 13
14 // assert that the absolute value is >= 0
15 assert ( number >= 0 && number <= 10 ) : "bad number: " + number;
16
17 System.out.printf( "You entered %d\n", number );
18 } // end main
19 } // end class AssertTest



Enter a number between 0 and 10: 5
You entered 5






Enter a number between 0 and 10: 50
Exception in thread "main" java.lang.AssertionError: bad number: 50
at AssertTest.main(AssertTest.java:15)


2008-05-06

mp3 edit

google found by: mp3 edit
URL: http://www.nch.com.au/wavepad/

WavePad Sound Editor
Professional Audio Editing Software

able to load mpg/audio files and trim, edit and convert to other formats.

2008-04-24

车零件和专有名词的介绍以及简称

Source from: http://zhidao.baidu.com/question/22900168.html?fr=qrl
found by: www.baidu.com
with words: 车 零件 介绍


一.外部的一些部件

1.发动器(引擎)罩盖 bonnet(US.E. hood)
2.行李箱 boot(US.E. trunk)
3.保险杠 bumper
4.门 door
5.排气管 exhaust pipe
6.头灯 headlight
7.毂盖 hubcap
8.转向灯 indicator light (US.E. turn signal)
9.牌照 number plate (US,E. license plate)
10.尾灯 rear light (US.E. taillight)
11.后窗 rear window
12.牌照号码 registration number
13.车顶 roof
14.车顶架 roof-rack
15.边灯 sidelight (US.E. parking light)
16.轮胎 tyre (US.E. tire)
17.挡风玻璃窗 windscreen (US.E. windshield)
18.刮水器(雨刷) windscreen wiper
19.翼子板 wing (US.E. fender)
20.后视镜 wing mirror (US.E. side mirror)
21.天线 antenna

二.内部装置

1.油门踏板 accelerator pedal (US.E.gas pedal)
2.刹车踏板 brake pedal
3.阻风门纽 choke
4.离合器踏板 clutch pedal
5.仪表板 dashboard/fascia
6.司机座 driver's seat
7.门把 door handle
8.变速杆 gear-lever (US.E. gearshift)
9.储物箱 glove compartment
10.手刹车 handbrake
11.头垫 head-rest
12.暖气设备 heater
13.喇叭 horn
14.点火开关 ignition switch
15.客座 passenger seat
16.后视镜 rear-view mirror
17.安全带 seat-belt
18.速度计 speedometer
19.方向盘 steeringwheel

三.发动机和底盘

1.空气过滤器 air filter
2.车轴 axle
3.蓄电池 battery
4.鼓式制动器 brake-drum
5.汽化器 carburettor (US.E. carburetor)
6.底盘 chassis
7.离合器 clutch
8.量油尺 dip-stick
9.手刹车 handbrake
10.差速器 differential gear
11.发电机 dynamo
12.排气歧管 exhaust manifold
13.风扇 fan
14.风扇皮带 fan belt
15.变速箱 gearbox
16.导线 leads
17.汽油箱 petrol tank (US.E. gas tank)
18.冷却器 radiator
19.避震器 shock absorber
20.消声器 silencer (US.E. muffler)
21.火化塞 sparking-plug (US.E. spark plug)
22.起动发动机 starter motor
23.悬挂装置 suspension
24.传动轴 transmission shaft (US.E. drive shaft)

"US.E."代表是美式英语
参考资料:http://hi.baidu.com/ferrari1

自己如何清洗汽车

source from: http://www.xche.com.cn/bbs2/1/?art=http://www.xche.com.cn/art/6579/65795.html
found by: www.google.com
with words: 挡风 玻璃 窗 车 如何 清洗

* 自己如何清洗汽车
本文相关车型:四川丰田
  


电动洗车虽然快速、省力,但不省钱,而且有一些死角无法洗到,表面清洁也不是十全十美。所以,有时候也不妨自己动手清洗汽车。

(1)先用清水清洗车身,方法是从车顶往下冲洗污物。

(2)用清水仔细冲洗前后车身及前后挡风玻璃上附着的污泥。

(3)用清水冲洗两侧玻璃门窗。

(4)用清水柱冲洗车轮挡泥板内侧及凹缘内处,并用手或布擦或挖凹缘内的积泥。

(5)用水柱冲洗减振器上的积泥。

(6)用清水冲洗车门板下的淤泥。

(7)用软毛刷子及清水刷洗前后保险杠上的污泥。

(8)用布或软毛刷子或海绵刷洗轮圈护盖上的污泥。

(9)用水柱彻底冲洗前挡泥板上的污泥。

(10)用水柱彻底冲洗后挡泥板、后保险杠与车身连接处接缝中泊污泥。

(11)用清水清洗后照镜与车窗及连接处的污泥。

(12)用水大力冲洗车身下底盘各处污泥和油秽。

(13)用水大力冲洗车轮污泥,并用刷子或螺丝刀清除轮胎纹沟中的小石子和其他脏物。

(14)用毛巾或布配合清水擦洗全车。

(15)用半干半湿毛巾按"车顶-前挡风玻璃-后车身-行李箱盖-发动机盖-前后保险杠-左右两侧及车窗"的顺序擦去残留污痕。

(16)用干毛巾按上述程序擦干全车。

如果有高压水枪,可先将车身全部喷射清洗一次,然后按"前后挡风玻璃及通风口-左右车门及挡风玻璃-车门板下部及门饰板和饰条-底盘各处及门槛间和缝隙和车轮顶部-前后保险杠及其与车身的接缝处-车轮及轮胎"的顺序进行冲洗,然后进行上述的(14)至(16)步即可。

2008-04-03

eclipse: steps for [New Java Project]/[Create project from existing source.]

eclipse: steps for [New Java Project]/[Create project from existing source.]





  1. Create new workplace.

  2. Configure(add) JRE 1.5 ([Window > Preferences]>[Java > Installed JREs > Add])


    1. browse jdk1.5.0_12 directory. -> click OK.

    2. select the JRE which just added. -> click OK.

    3. (need to change Compiler compliance level@Window.Preference.Java.Compiler)

  3. Configure Tomcat version:


    1. Select Tomcat version 5.x

    2. browse Tomcat Home -> click OK.

    3. -> click Apply.



  1. Create New Project (pure new/from existing source)


    1. File > New > Project

    2. Java > Java Project.-> Click Next.

    3. -> Type Project Name

    4. Choose Contents -> Click Create Project from existing source.

    5. Browse source directory(location path) -> Click OK.

    6. Optional to check Add project to working set. -> Click Next

  2. go to Libraries tab


    1. Check if Tomcat doesn't in the list.


      1. (create user libraries for tomcat - jasper-runtime.jar, jsp-api.jar, servlet-api.jar)

  3. database xml Configuration


    1. edit config.xml (path, port, id, password)

    2. edit hibernate.cfg.xml (path, port, id, password)


done.

Google Referrals