2009-06-19

彩色兵马俑

Pictures source from: http://jianghua9161.blog.sohu.com/114969895.html





:
转图(快载):http://2su.de/Er (picasaweb.google.com)
原图(慢载):http://2su.de/VfM (Chinese Version)

兵马俑中英文介绍 (Chinese / English version)

24年等待彩色兵马俑方阵出土 (Chinese Version)

秦始皇兵马俑时隔24年今日第三次发掘(图) (Chinese Version)

江蘇出土彩色漢兵馬俑 (Chinese Version)

出土彩色木俑比兵马俑早500年 (Chinese Version)

2009-05-15

Struts - multiple message-resources

source from: http://viralpatel.net/blogs/2008/11/multiple-message-resource-property-file-in-struts.html

Multiple message resource property file in Struts



Make an entry of message resource file name in struts-config.xml file.





Once this is done, the message resource file can be accessed by using the key (in this case we have myResource & myOtherResource). The key should be used in tag in jsp to display perticular message from the resource property file. bundle=”" attribute of is used to identify the perticular property file.


key="somekey.in.myresource" />
key="somekey.in.myotherresource"/>

2009-05-05

TTplayer 5.5 beta, i love it

what i love TTplayer 5.5 beta:
  • application in utf-8 encoding.
  • 重命名文件 (个别、批件式) (single or batch file rename)
  • 2b continue...

2009-05-04

Web Application - MVC Layers

source found: http://www.javapassion.com/strutscodecamp/

Three Logical Layers in a Web Application: Model, View, Control
? Model (Business process layer)
– Models the data and behavior behind the business process
– Responsible for actually doing
? Performing DB queries
? Calculating the business process
? Processing orders
– Encapsulate of data and behavior which are independent of presentation
? View (Presentation layer)
– Display information according to client types
– Display result of business logic (Model)
– Not concerned with how the information was obtained, or from where (since that is the responsibility of Model)
? Controller (Control layer)
– Serves as the logical connection between the user's interaction and the business services on the back
– Responsible for making decisions among multiple presentations
? e.g. User's language, locale or access level dictates a different presentation.
– A request enters the application through the control layer, it will decide how the request should be handled and what information should be returned

Web Applications
  • It is often advantageous to treat each layer as an independent portion of your application
  • Do not confuse logical separation of responsibilities with actual separation of components
  • Some or of the layers can be combined into single components to reduce application complexity

what's the different of these???

  • logical separation of responsibilities
  • actual separation of components

2009-04-22

GPS Mt KK path tracking

Found this: 神山(Mt. Kinabalu, Timpohon Gate - Laban Rata)
http://maps.google.com/maps/ms?msa=0&msid=116154094173339195464.0004652566f7f86852958&ct=onebox&cd=2&cad=onebox,cid:16864761765956365071


maps.google.com searched by:
  1. Laban Rata
  2. "Mt. Kinabalu, Timpohon Gate - Laban Rata)"















found this: 沙巴的神山Mt Kinabalu攻略| 海外游
googled by: "神山(Mt. Kinabalu, Timpohon Gate - Laban Rata)"



source pic from: http://www.haiwaiyou.com/haiwaiyoublog/?p=1087

more detail have to visit: http://www.haiwaiyou.com/haiwaiyoublog/?p=1087

2009-04-20

一个玩笑

当你有个孩子
你不好好教他
你就害你全家
当你有个女儿
你不好好教她
你就害别人全家
所以你跟谁有仇
很简单嘛。。。
你就宠坏你的女儿
嫁给他儿子
他全家都完了
大仇就报了。













极端的人,可以把以上的话题放大,把一个玩笑变成严肃的言论。。。
相反的人,可以领悟到话里的话,从中理解不同的内容。。。

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時並不區分指的是哪個部分。

Google Referrals