Tuesday, August 07, 2012

[linux] 如何把使用加入sudo group

如果在ubuntu 下建立一個新使用者,如何加入sudo group ?

$ sudo adduser yourname sudo

Monday, July 16, 2012

[Eclipse] SVN

如果在 eclipse 3.6 下設定 SVN, 在Ubuntu 12.04 下會出現錯誤
1.刪除原本在Ubuntn 的lib svn
$ sudo apt-get purge libsvn-java

2.把 update 到 subversion-1.7
$ sudo add-apt-repository ppa:dominik-stadler/subversion-1.7
$ sudo apt-get update
$ sudo apt-get install libsvn-java

3.尋找libsvn 安裝目錄
$ sudo find / -name libsvnjavahl-1.so

 ex: libsvn 安裝目錄為:/usr/lib/jni/libsvnjavahl-1.so
 則在eclipse 的安裝目錄下修改 eclipse.ini

 $ vim eclipse.ini 指定Djava.library.path 為libsvn的安裝目錄

 -Djava.library.path=/usr/lib/jni/ 

 4.重新啟動eclipse , 如果沒有出現exception ,則設定成功



如果作業系統為 CentOS (64bit) :

1. $ sudo yum install subversion-javahl.x86_64

2.  找出libsvn 的安裝目錄
$ sudo rpm -ql subversion-javahl
     /usr/lib64/libsvnjavahl-1.la
     /usr/lib64/libsvnjavahl-1.so
     /usr/lib64/libsvnjavahl-1.so.0
     /usr/lib64/libsvnjavahl-1.so.0.0.0
     /usr/lib64/svn-javahl
     /usr/lib64/svn-javahl/include
     /usr/lib64/svn-javahl/svn-javahl.jar

3)修改eclips.ini
      在Eclipse安装路径下找到eclipse.ini

-Djava.library.path=/usr/lib64/
完整文件如下:
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
../Common/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
-install
/root/Genuitec/MyEclipse for Spring 8.6
-vm
/root/Genuitec/Common/binary/com.sun.java.jdk.linux.x86_64_1.6.0.013/bin/java
-vmargs
-Djava.library.path=/usr/lib64/
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m

Sunday, January 21, 2007

The Effects of Invention or Innovation in Modern Life(A3-final)

To me ,living in modern life is very good. You can use many inventions to make your life become more convenient and easier. But they have disadvantages in modern life, too. I will mention three effects:to make our life more convenient, to change our habits ,and the negative effects of invention or innovation.

Firstly,invention or innovation makes our life more convenient. For example, scientists invented airplane and car, they reduce the transportation time, you don't need to take more time to walk from one area to another area. Scientists also invented computer which increases our work efficiency. By using automatic computer, the factory has greatly increased its productivity. Furthermore, they invented television which can circulate information rapidly and deliver knowledge to all over the world. Through the televison, you can easily understand what happen in the world.


Secondly, invention or innovation changes our habits. For example, after Thomas Alva Edison invented a light bulb, people can work all day. After engines were invented, machines replaced manpower; people can work easily ,such as moving hung objects and push heavy things.

One of the negative effect of invention is arms, such as nuclear weapons ,guns and landmines . The arms are so powerful so many people died from them. The gunman can easily kill people. Technical innovations increases the factory productivity,but it may destroy our earth's ecology and environment,such as accounting for air pollution, greenhouse effect...ect.--

In summary,invention or innovation makes people no longer live in the old time and stimulate the growth of civilization ,but they maybe accounting for the negative effects. Most of the inventions or innovations are good for people, so I hope people don't invent on arms to harm each other.

What are the differences between living in the dormitory and at home?(A2-final)

  There are some differnece between live in dormitory and at home . There are advantages both for living at home and in the dormitory. However, I prefer living in the dormitory now because I want to learn how to be independent and adapt to social life.I have lived in the dormitory for two year. When I first lived in NTUST's dormitory, I don't adapt to the life . Because you have to do everything by yourself, such as washing clothes, eating dinner...etc.

Unlike living at home, living in dormitory is more convenient. For example, I do not need to get early to take bus or MRT, because it is on campus . Now I can save time of transportation on sleeping. When I study, I discuss to learn problem with my roommates . I go shopping or travel with my roommates. It is so happy! I use school's resources , such as gym , swimming pool .Living in the dormitory is freer than at home, I don't worry about parent punish me.

It is independent life in dormitory , that I learn about many life skills,such as communication with roommates and cooperation . Living in dormitory is freer;whereas, I can't control myself.My life becomes disordered. Everyday I stay up playing computer games, and I do not feel like studying day by day. I very miss my family,such as father 's instruction and mother's dinner.I don't like going out to eat .It's really expensive.I regret that my life is disordered. In the future, I hope I can learn how to control myself.

Share music

Proud of you <揮著翅膀的女孩> by Fiona Fung

Love in your eyes 你眼中充滿愛意
Sitting silent by my side 靜靜的座於我身旁
Going on Holding hand 沿途挽著你的手
Walking through the nights 慢步整個晚上
Hold me up Hold me tight 抱起我 抱緊我
Lift me up to touch the sky 讓我能摸倒天空
Teaching me to love with heart 懂得了用心去愛
Helping me open my mind 助我把心窗打開


I can fly 我會飛了
I'm proud that I can fly 飛讓我驕傲
To give the best of mine 給我最佳的思考
Till the end of the time 直至時光停頓
Believe me I can fly 我真的會飛
I'm proud that I can fly 飛另我驕傲
To give the best of mine 給我最佳的思考
The heaven in the sky* 天上的天國


Stars in the sky 天上繁星
Wishing once upon a time 希望有一天
Give me love Make me smile 愛的降臨讓我歡笑
Till the end of life 直至我的一生


Repeat*


Can't you believe that you light up my way 你可相信、你已照亮了我的前路
No matter how that ease my path 我的路途如何巳不重要
I'll never lose my faith 我決不失去信心
See me fly 看我飛
I'm proud to fly up high 高飛讓我驕傲
Show you the best of mine 給你看最佳的思考
Till the end of the time 直至時光停頓
Believe me I can fly 我真的會飛
I'm singing in the sky 在天上高歌
Show you the best of mine 給你看最佳的思考
The heaven in the sky 天上的天國
Nothing can stop me 沒怎麼能停止我
Spread my wings so wide 展翅高飛
----------------------------------------------------


I love to listen this song, because the voice is pure and I can learn some grammar form this song.

Thursday, January 18, 2007

95 (1)English Composition list

95 (上)英文寫作名單

同學分享的網站連結,都是學習英文好幫手,而且常常閱讀別人的文章,可以發現他人的想法,發現別人的優缺點,改進自己的寫作。有鑑於此,所以我把老師的英文寫作名單,拷貝到我的網站,以方便搜尋英文網站教學

Monday, January 15, 2007

Freewriting 4:The tired life.

I feel tired in this month.I get a part time job at bookstore.When final exam time is coming,I become very busy everyday.Homework or report have to hand in on tomorrow,so I have to stay up late. When exam is coming,it have a same case.I hate this life! I need more sleep!! Maybe I don't know how to control my time. I use time very feckless. I hope I can solve this problem on next semester.

Freewriting 3:Happy new yeat in 2007



I had good time with my ART's club-mate. We ate dinner together at 韓江館銅板烤肉.
After dinner, we went black to school by MRT, every station jammed a lot of people,maybe all people were going to take part in New Year Eve's Celebration see firework show at Taipei City Hall.At school, when firework show stared, it was very beautiful. I was so happy with my friend to go beyond the year.

Sunday, January 07, 2007

Freewriting 2:The Effects of Invention or Innovation in Modern Life

---To me ,Living in modern is very good,you can use many invention to change your life become more convenient and easier.but they have disadvantage in modern life.I will mention three :to make our life more convenient, to change our habit ,and negative invention or innovation.

---First,invention or innovation make our life more convenient ,they let our life become more convenient then antique. For example, Scientist invent airplane and car, they are decrease transport time one from other area ,you don't take more time walk from other area. They invent computer, it is increase work effect. By using automatic computer, the factory has greatly increased its productivity. They invent television,it make information circulate rapidly and disperse knowledge all over the world,you can easier understand what happen on the world.

--Second, invention or innovation change our habit. For example, when Thomas Alva Edison invent a light bulb, it let people can work all day, people don't worry about blinding in dark. when engine invented,machine exchange manpower, people can easier on work ,such as moving hung object and push heavy things.

--One of the results of negative invention or innovation ,the worst invention is arms,such as nuclear weapons ,gun and landmine . the arms are so powerful then many people died.The gunman can easier kill people. Technical innovations ,it increase the factory productivity,but it maybe destroy our earth's ecology and environment,such as
accounting air pollution,accounting greenhouse effect...ect.

--In summary,invention or Innovation make people left ancient life and stimulate civilization growth,but they maybe accounting negative effects.Most of invention or innovation are good for people,so I hope people don't invent arms to harm each other.

Benefit of running

Thesis statement:Running is benefit your body and reduce disease.
I.Running is benefit your body.
---A. It is increase breathing capacity.
----1. When you running,you must breathe a lot of air,so it can increase breathing ----capacity.
---B. It is decrease pressure.
---C. It is reduce weight.
II.Running is reduce disease.
---A. It is increase immunity against virus.

Tuesday, December 26, 2006

homework (CH8 .P192)

Thesis statement:It is necessary to stimulate business growth and create jobs.
1.Advantage live on our life.
----A.It has different custom form country
-----1.example-capitalist nations have no advantage.
----B.Everywhere have advantage.
-----1.example-buses,buildings,clothes.
2.Advantage is stimulating business growth.
---A.Advantage are attract consumer and sell their product.
---1.example- Burger King use ads to making Burger King's hamburgers look as good or ----batter then McDonald's.
3.Advantage stimulated economy is creation of jobs.
---A.This creates jobs for many people.
-----1.example- As Burger King has grown,it has hired many new people to fill both -----management and waiter jobs in its restaurants.