
星期三, 3月 11, 2009
判斷,診斷

星期一, 3月 09, 2009
locate
Locate
Linux 要快速找到檔案在哪, 除了 find 外, 另一個選擇就是 locate.
find是在硬碟中直接查詢,如果已知檔案在特定目錄時使用會比較好。
若都不知道時可考慮使用locate。它是直接查詢linux 內db 的index 速度較快,不過較新的檔案可能會找不到,這時就由root 可以使用updatedb 來更新檔案index資料.
預設該檔案是放在 /var/lib/mlocate/mlocate.db
locate [OPTION...] PATTERN...
常用的參數有
-i --ignore-case
-c --count
-r --regexp
- 例如我要用正規化查te[某個符合]t.txt的檔案在那裡。
- [root@localhost etc]# locate -r te[sabcde]t.txt
/home/webadm/test.txt
星期二, 3月 03, 2009
安裝新版本Java至CentOS5.2
在CentOS 5.2中已有內建JDK1.4.2的版本了。
若是直接從sun下載新版的RPM安裝後,執行起來還是JDK1.4
這時候可以考慮使用alternatives 指令。
它必需是su - 的方式才可執行。
加入一個新的java link
alternatives --install /sur/bin/java java /usr/java/jdk1.6.0_12/bin/java 2
再config它
alternatives --config java
有 2 程式提供 'java'。
選擇 指令
-----------------------------------------------
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
+ 2 /usr/java/jdk1.6.0_12/bin/java
就選擇2就可以使用新的java
星期一, 3月 02, 2009
用Ant包特定package
一般在用Ant 包jar 檔時可能只要包某package 下的classes,這個時候可以使用include 及exclude 欄位參數
一般爬文通常看到的是./xxx/xxx/*.class 針對檔案類型。若是只要特定package下(或目錄)的所有classes時,就使用include
include name="**/JavaMapper/com/mapforce/**"/>
<target name="package" depends="setProperties" description="package all class files">
<jar jarfile="${jar.file}" manifest="./META-INF/MANIFEST.MF">
<fileset dir="${classes.dir}">
<include name="**/JavaMapper/com/mapforce/**"/>
fileset>
jar>
target>
這樣的jar 就會有完整的路徑,而只包特定的package 下的classes..
星期六, 3月 24, 2007
Conference
Subject :Conference
What will you think about conference ?
If your boss assign you to hold a big meeting , what will you do?
First, to avoid being overcrowded, you have to select one meeting room which accommodate the various needs of the groups using it. Next, preparing all arrangements for this meet is important. When making the arrangement for a conference, you arrange more detail is better. Before selecting a site and final location, you like to tour the conference facility for making sure they all suit the necessary details. Then, you can make a rehearsal to check all plan is smooth.
accommodate (SUIT) /əˈkɒm.ə.deɪt/ US /-ˈkɑː.mə-/
verb [T]
to give what is needed to someone:
We always try to accommodate our clients with financial assistance if necessary.
arrange (PLAN) /əˈreɪndʒ/
verb [I or T]
to plan or prepare for; to organize:
arrangement /əˈreɪndʒ.mənt/
noun
1 [C usually plural] a plan for how something will happen:
I'm trying to arrange my work so that I can have a couple of days off next week.
association (GROUP) /əˌsəʊ.siˈeɪ.ʃən/ US /-ˌsoʊ-/
group noun [C]
a group of people who are united in a single organization for a particular purpose:
Have you joined the teachers' association?
attend /əˈtend/
verb [I] FORMAL
to give attention to what someone is saying:
attend (BE PRESENT) /əˈtend/
verb SLIGHTLY FORMAL
1 [I or T] to go to an event, place, etc:
We expect more than 100 members to attend th annual meeting.
get in touch
hold (MAKE HAPPEN) /həʊld/ US /hoʊld/
verb [T] held, held
to make something, especially a meeting or an election happen:
This meeting roome holds at least 80 people comfortably.
location (POSITION) /ləʊˈkeɪ.ʃən/ US /loʊ-/
noun [C] SLIGHTLY FORMAL
a place or position:
The location of the meeting was changed from the Red Room to the Green Room.
overcrowded /ˌəʊ.vəˈkraʊ.dɪd/ US /ˌoʊ.vɚ-/
adjective
containing too many people or things:
As soon as the guests entered the dining room for dinner, Sue Lin could see that the room would become overcrowded.
register (LIST) /ˈredʒ.ɪ.stəʳ/ US /-stɚ/
verb [I or T]
to put information, especially your name, into an official list or record:
noun [C]
1 a book or record containing a list of names:
According to the register, more than 250 people attended the afternoon seminar.
session (FORMAL MEETING) /ˈseʃ.ən/
noun [C or U]
a formal meeting or series of meetings of an organization such as a parliament or a law court:
Due to the popularity of this course, we will offer two sessions.
take part in v to join or participate
星期三, 3月 21, 2007
星期六, 2月 03, 2007
Like and Dislike

Music is a great resource that has a very tranquilizing effect. It can help the mind to concentrate. When arranged and presented in a calming manner, music has many positive physical effects.
Listening to the soothing tones of chant or Native American flute and harp is a great way to get the body resonating back to its natural state. Every cell in the human body has its own natural resonting frequency. When one's frequencies resonate in sync , he or she is " in tune" When the cells are "out of tune" that leads him or her to feel unwell.