Misc

Archived Posts from this Category

TOTO.net Ver2 User Requirement Analysis (Part II)

Posted by tonny.xu on 22 Mar 2008 | Tagged as: Blog System

About the page design, I like the vista Aero effect, so I will create a theme which has an Aero look & feel.

Here is an sample scratch picture.

Click the picture to enlarge it.

Design Ver200803220246

As you can see, this design is inspired by Microsoft.com, because I LIKE it, I like Aero effects, I like vista. If you have any comments, please leave it, let me know. This is the first version, version 0.0.1, so, I will continue to improve it.

This theme will be applied on WordPress, and will be implemented by <DIV> tag, I will try drop away <TABLE> tag completely.

NOTE: I did not copy any source from anybody, everything is designed by my own.

Thank you.

TOTO.net Ver2 User Requirement Analysis (Part I)

Posted by tonny.xu on 21 Mar 2008 | Tagged as: Blog System

Since I have answered those basic questions of why I build this site, I consider it is time to move a little forward.

This time, I think I need to find out what I want to put in my new site. Here is the plan.

  • Basic blog tools, provided by WordPress system.
    • About
    • Search
    • Calendar
    • Categories(Tags)
    • Archives
    • Pages
    • Essay Feeds
    • Comment Feeds
    • links
    • Meta
  • Additional tools. Most common used plugins etc.
    • Recent posts
    • Recent comments
    • Comment authority image
  • Some third part tools
    • Google Adsense
    • Google Album

    When I find more, I will update this post.

How to change the splash screen for Eclipse?

Posted by tonny.xu on 08 Mar 2008 | Tagged as: Blog System

When we open the Eclipse, a splash screen is shown. What if we want to change it? OK, follow me.

Step 1: Prepare your own splash picture, as I just put some words on it. Like the following one.

splash(TOTO)

The picture must be formatted as BMP file and named splash.bmp.

Step 2: Copy this file to <Eclipse installation folder>\plugins\org.eclipse.platform_3.3.3.r33x_r20080129.
Note that the platform folder is always changed as eclipse’s version up. so just find the folder start with org.eclipse.platform, it will be OK. Overwrite the original splash.bmp file, your will get your own splash screen shown on the startup of Eclipse.

Be Careful, if you change the size of splash picture, you might not be able to see those start up information and progress bar.

Changing the splash window is a simple step, Eclipse is aim to be a platform, so anyone who want to customize his IDE could use it as a platform. (Here is the official docs for branding your application based on Eclipse.)

TOTO.net Ver2.0 Requirements

Posted by tonny.xu on 26 Feb 2008 | Tagged as: Blog System

From now on, I’d like to try to use English as my primary language to write the blogs for several reasons.

  • I am not an English native speaker, so the only way to practice and promote my English capability is keep using it.
  • I know I am lacking of vocabularies, so, to enlarge my vocabularies, keeping using English is the best way. Especially, those advanced words.
  • It will force me to think in English way, not the Chinese way, or Japanese way.

Although all these efforts may not help to much, living in America or England will be the best way, but now, the only thing I can do is keep using it.

Meanwhile, I am also learning Japanese,  using Japanese as an additional language is another choice.

 

TOTO.net Ver2.0 Requirements

Writing the requirements here is not a formal way, but, I think it will make the documents a little bit funny.
So, I am going to dig my requirements by asking some questions to myself, hope it will help.

Q: What’s my purpose on building this web site by spending a lot of money every year?
A
: Well, Frankly, I build this site to gain my reputation, to build my image, to show myself, to proof my capabilities. Although, I build this web site about 2 years ago, but I didn’t think throughout of why I build this site. Now, I’d like to say that I had thought it through, and I will do everything I can to realize it. I like a saying in the movie stardust: "Reputation takes a lifetime to build, and a second to destroy." (Stardust). I will try my best to build my personal reputation.(Updated@2008-03-08)

Q: What’s my vision of the site?
A
: Simply I have two goals, first of all, I will lead this site to a professional Java coder’s web site, which will NOT cover all the Java topics, but, some serious, important, professional topics will be covered. Second, I will provide some tutorials based on what I have done in the past few years, and I will add some new tutorials. (Updated@2008-03-08)

Q: Who will read my posts and essays?
A
: Those who think reading my post is not wasting time. Of course, search engine robots will never feel that.(Updated@2008-03-08)

Q: What kind of achievements do I expect?
A
: RESPECT, REPUTATION.(Updated@2008-03-08)

Q: What kind of content do I want to post?
A
: Some particular topics in Java or in other languages. Something make me happy, something make me feel disgusting, something I hate, something I feel pain, etc..(Updated@2008-03-08)

Q: How often will I update this site?1
A
: I plan to update my blog at least one post each week, but it’s not that regulated. but I will try.(Updated@2008-03-08)

I will update this page after I think these questions over or have some other questions. These questions are the most basic questions for me, only after I can answer these questions will I enter the next step.

 (Updated@2008-03-08)

Blog还要继续

Posted by tonny.xu on 25 Feb 2008 | Tagged as: Blog System

很久没有写Blog了,一来是不知道写什么,二来也是比较懒。终于在昨天考完了TOEFL以后,决定继续开始写Blog。主要目的就是给自己留下点东西吧。

大致上来说,我的Blog分为两部分:

TOTO.net @ Live Spaces
这个Blog主要就是记录一些杂七杂八的事情吧。

TOTO.net @ totodotnet.net
这个Blog是主力,目标就是在今年将这块牌子打出去。

Blog的主题仍在继续考虑中,但是总体的目标是言之有物,言之有理,不枉做IT人。

 

近期的目标是将主力Blog的版面以及布局进行重新设计与制作。就当是一个项目吧,自己给自己提需求,自己做设计,自己实现。

初步的日程计划为

  • 3月底初稿
  • 4月中旬 Beta版上线
  • 4月底正式上线

主要开发工具

  • Photoshop CS3
  • DreamWeaver CS3
  • PHP
  • HTML + CSS + JavaScript

主要的开发时间为业余时间,初步就想到这么多。。嘿嘿。。。加油!出发啦~~~~

天声人語(2007年11月12日)

Posted by tonny.xu on 12 Nov 2007 | Tagged as: Foreign Languages

ふりがなついている文書ですが、直接にコピーできないので、画像としてアップロードしています。検索エンジンに対しては友好ではない、しかし、便利ですから、仕方ないわよ!

※実は半年前に天声人語の文書を貼り付けました、そのとき、自分でふりがなと翻訳をやっていたので、時間がたくさんかかりました。毎日4時間の時間は保障できないので、続けられなくなる。

天声人語 2007年11月12日

文章の翻訳はやりたいですけど、しかし、時間があまりないわ! そのままにしろう!

My Dear Waiting

Posted by tonny.xu on 12 Aug 2007 | Tagged as: Blog System

Thanks to xiayuan, thank u to make this wonderful flash album for waiting and thus I have chance to view so many lovely pictures.

2 view lovely waiting’s historical growth, click me.

Java的性能调校

Posted by tonny.xu on 09 Aug 2007 | Tagged as: Blog System

以前做Java的项目,基本上不会遇到对性能进行调校的事情,但是最近遇到了一个比较严重的问题。具体情况不便详细说,但是大致情况如下:

  • Server: Intel Xeon Duo 2 *2
  • Memory: 4G
  • Disk: 3500G
  • JDK: 1.5.0_02
  • Web Server: Tomcat 5.5.19
  • Application: Some kind of OpenSource Project A which contains about 27M’s package.

在Tomcat中配置了虚拟主机,运行了4份A的独立版本。运行起来以后,内存占用3G左右,在安装第5份的时候出现OutOfMemory的异常,由此引发了JVM性能调校的课题。

首先找到了一片比较浅显的文档:

其中提到了性能调校的几个要点:

  • 在所有对JVM的调校进行之前,先做以下的检查:
    1. 是否使用了最新的Java Release?
    2. Java是否更新到了最新的update?
    3. OS的补丁是否已经更新到最新?
    4. OS中是否还跑着其他许多不需要的应用程序?
  • 其次对JVM进行以下的调校:
    1. 是否使用了Server HotSpot?
    2. 有没有使用并行GC?(ParallelGC)
    3. 初始化堆内存(heap size)大小是多少?推荐使用物理内存的1/64
    4. 最大堆内存(heap size)是多少?推荐使用物理内存的1/4
  • 调校之前一定要准确的收集系统的运行情况数据并进行分析
    1. 可以参考使用JVM的管理与监视相关文档

在这样的指导下。我准备对我的系统做以下的操作步骤:

  • 使用JConsole观察Tomcat中JVM的使用情况,并进行分析
  • 使用jvmstat观察并进行分析
  • 在Tomcat的运行参数中添加 -Xprof 参数,进行Profiling

在Java tuning white paper中直接提到了一些GC调整的方式,在使用了ParallelGC以后,系统的运行确实能提高不少,但是具体的仍然有问题,等我的Monitoring和Profiling结束以后再报告。

Restart my blogging

Posted by tonny.xu on 09 Aug 2007 | Tagged as: Blog System

Keeping going Tonny!

From Nov 2006 till now, I didn’t write a single post, and now, I gonna restart my blogging life.

and I will stick to blogging until I feel tired again.

天声人語の勉強(11月25日)

Posted by tonny.xu on 26 Nov 2006 | Tagged as: Foreign Languages

本日から、朝日新聞提供している有名なコラム「天声人語」を勉強します。
今天开始学习著名的由朝日新闻提供的专栏[天声人语]。

まず、天声人語の背景を紹介させていただきます。
首先,让我介绍一下[天声人语]的背景。

天声人語(てんせいじんご)

朝日新聞朝刊一面下段のコラム。長い歴史がある。命名者は杉村楚人冠(すぎむら そじんかん)

明治37年(1904年)に初めて登場した朝刊1面のコラム。「名文」としての評価が高いが、日々、その時代のありさまを鮮明な映し出していて、よく読まれている。大学入試の題材として採用されることも多い。執筆者は原則として一人。当初は西村天囚、内藤湖南、鳥居素川、長谷川如是閑、大山郁夫、永井釈瓢斎、日本の代表的言論人が筆をとり、戦後は嘉治隆一、荒垣秀雄、入江徳郎、疋田桂一郎、深代惇郎、辰濃和男、白井健策、栗田亘が担当している。

ラテン語のVox populi, Vox dei(民の声は天の声)の訳語から来ている。

URLは:http://www.asahi.com/paper/column.html

天声人语

朝日新闻早刊一版下面部分的一个专栏。具有很长的历史,由杉村楚人冠命名。

明治37年(1904年)第一次在早刊的第一版登场。作为“名文”,人们对它的评价很高。每天的内容,都能鲜明的反映出那个时代的境况,有很高的人气,更有很多被作为大学入学考试的试题。执笔者原则上只有一个人,最开始由西村天囚,内藤湖南,鸟居素川,长谷川如是闲,大山郁夫,永井释瓢斋等这些在日本有代表性的人物执笔。战后,由嘉治隆一、荒垣秀雄、入江徳郎、疋田桂一郎、深代惇郎、辰濃和男、白井健策、栗田亘继续执笔。

天声人语的名字来自于拉丁语中的Vox populi,Vox dei(人民的声音是上天的声音)翻译而来。

単語:

鮮明な  せんめい  Vivid/Clear  鲜明的
執筆者  しっぴつしゃ Writer/Author  执笔者/作者

2006年11月25日の天声人語

 筋肉のマヒのため、自宅からスクールバスに乗るまでの200メートルを歩くのに数十分かかる少女がいた。日々大きな苦痛を背負っているとみえた少女には、しかし、朝の楽しみがあったという。

単語:

筋肉  きんにく  肌肉
麻痺  マヒ 麻痹,麻木
スクールバス  SchoolBus  校车
苦痛 くつう 痛苦
負う  おう  背负,负担,遭受

翻訳:

因为肌肉的麻痹,有个少女从自己家里出来,走完到乘坐校车的200米需要数十分钟,但是,每天,看上去背负着巨大痛苦的少女,却说每天早上都有快乐。

 まず喫茶店の前で、店員の女性とあいさつを交わす。言語障害もあるので、周りには「うーうー」としか聞こえないが、女性には「おはよう」と聞こえている。仕出屋の前で最初の休みをとり、猫のクロにもあいさつする。

単語:

交わす  かわす  Exchange  交换
周りに  まわりに  Around/Surrounding  周围
仕出屋  しでや ☆ 。。。 ☆ 食品店
クロ  Black  黑色

翻訳:

首先,在茶店的门前,和店里的女员工相互打个招呼。因为还存在语言上的障碍,在周围的人们就只听到“うーうー”的声音,店里的女员工知道她在说“早上好”。在(小吃店?)门口做第一次休息,并且和一只黑猫打招呼。

 続いて、まばらに木の生えた所で休み、おしまいの休みは草花の植えてある家の前でとる。マツバボタンにそっと触れて、朝のあいさつは終わる。「少女の朝の数十分の生活を知ったとき、わたしは衝撃を受けました……この少女によって、『子どもが見える』ということの意味を教えられました」。灰谷健次郎さんが「希望への橋——わたしの子ども原論」に書いている(『子どもが生きる』所収・世界思想社)。

単語:

疎らな  まばらな  sparse/sporadic  稀疏的
生える  はえる  Grow/spring up  生长
お仕舞い  おしまい  Closing  邻近的
草花  くさばな  花花草草
植える  うえる  Plant  种植
マツバボタン  ???
そっと  Softly  轻轻地
触れる  ふれる  Touch  触摸
触る  さわる  Touch  触摸
衝撃  しょうげき  Shock  冲击
原論  げんろん  Theory  理论
生きる  いきる  Be alive  活生生的
所収  しょしゅう  Carrying of a book ☆ 收录

翻訳:

接下来,在一个长着稀疏的树木的地方休息,接下来在一个种植了花花草草的房子前休息。轻轻的触摸着“マツバボタン?”,早上的问候就算是结束了。“当了解到这个少女每天早上数十分钟的生活的时候,我受到了一种震撼……从这个少女身上,我了解到了[孩子能能看见]这个说法的意义所在”。灰谷健次郎在他的《通向希望的桥–我的孩子的理论》中如是写道。(由世界思想社出版的《活生生的孩子》所收录)

 小説「兎の眼」や「太陽の子」で知られる灰谷さんが、72歳で亡くなった。神戸で小学校の教師を務めた経験に立ち、学校や大人の社会への厳しい論評を続けた。

単語:

小説  しょうせつ  Novel  小说
兎  うさぎ(ウサギ)  Rabbit  兔子
務める  つとめる  Working/Job  工作
論評  ろんぴょう  Comment/Criticism  评论

翻訳:

因小说《兔子的眼睛》和《太阳之子》而闻名的灰谷君,在72岁的时候去世。因为有在神户当小学老师的经验,所以一直在对学校以及大人们的社会进行严厉的评论。

 「子どもの発する声から人間所在の危機を推察することは十分可能なのに、そうしようとしない教師は自らの人間性を見出せないままでいる、という悲劇まで加わる」(『学校のゆくえ』岩波書店)。

単語:

発する  はっする  Fire/Ignite/Exhale  所发出的
所在  しょざい  Locality/whereabouts  存在的
危機  きき  Crisis  危机
推察  すいさつ  Suppose  推测
見出す  みいだす  Find out/Discover  发现
悲劇  ひげき  Tragedy  悲剧
加わる  くわわる  Join in/become involved in something  促成
ゆくえ  ゆくえ  Whereabouts  关于
岩波  いまなみ 

翻訳:

“从小孩子发出的声音就可以推测出人类所在的危机,有的老师不仅做不到,而且看不到自己的人性所在,这就促成了悲剧”。(《关于学校》岩波书店)

 子どもたちを見るだけではなく、見つめなければ「子どもが見える」ことにはならない。現代の家庭や教育の現場を照らす手がかりを、あの少女や命あるものたちとの触れ合いで得たのだろう。

単語:

見詰める  みつめる  Stare/Gaze fixedly at someone or something  注视
照らす  てらす  Shine on/Illuminate  照耀到
手がかり  てがかり  Scent/Clue  线索/抓头,抓手
命  みこと/いのち  Command/Life  命令/生命
触れ合う  ふれあう  Come into contact with  结合在一起

翻訳:

不仅仅是看看孩子们,不注视着他们的话,就你就“看不到孩子”。在现代家庭和教育的照耀下的种种手段,正是造成那个少女或者说命运之类的东西的原因吧。

Next Page »