Cun Zhang’s Blog

October 16, 2008

你的名字会被记多久?

Filed under: Uncategorized — Cun Zhang @ 19:29

昨天在听经济之声安然主持的财富星空,听到的故事。
那个晚上的影片好像是南斯拉夫的《桥》。他正要走进电影院,一个青年拦住了他。
那个青年看上去很焦急,说:“这位大哥,售票处已经买不到票了,您能把手中的票卖给我吗?”他一愣,有些为难。他问:“你没有问过别人?”“问过许多人,他们都……”青年的脸色有些黯然,“要不是为了母亲,我也不会麻烦您的……”“你母亲?”“是的,我们从乡下来,我想领着母亲看一场电影。”
就因为青年的孝心,那天他毅然把票给了青年,没要一分钱。青年除了千恩万谢,还郑重地要了他的名字。
这是纷繁的生活中极为普通的一个场景。十多年了,他几乎都把这件事忘记了。有一天,他走在街上,有一个人轻轻地喊他的名字。他一看,站在他面前的是一个笑容满面的中年人。他极力在脑海中搜索着这个面孔,但脑海中一片空白。
中年人说:“大哥,您还记得十几年前您给我的那张电影票吗?那一年,我从乡下来,给母亲看病。母亲病得很重,我怕母亲不能活着从手术台上下来,就想领着母亲看一场电影。那天,多少人都拒绝了我。只有您,慷慨地把票给了我。您知道吗,我母亲手术后又活了一年。那一年里,每当她幸福地说到‘我在城里看过一场电影’这句话的时候,我就在心里用感激一遍一遍地默念着您的名字。是的,大哥,这么多年了,我一直忘不了……”
这是朋友的父亲在一次吃饭时给我们讲的一个故事。就在那次酒席上,他颇有感慨地说:“我就做了那么一点事,却让一个素昧平生的人记住了我的名字,而且一记就是这么多年。说真的,他喊出我名字那一刻,我还是觉出了一种无法言说的幸福。我是说,你们以后的路还很长,你能把自己的名字留在别人的脑海里多长时间呢?”
一语惊心。是啊,这个世界上,有许多人的名字已经被时光的风吹得无影无踪了,而另一些名字,因为爱——爱的付出与施与,却在风中成了不倒的丰碑。
在纸上盲目地追问人生的意义之前,你在心底里问过自己这样一个问题吗:
我的名字被谁记住了,他们会记多久?

October 5, 2008

Chatzilla Shortcut On Desktop

Filed under: Windows — Tags: , — Cun Zhang @ 22:30

Most times, I just want to use chatzilla to connect irc server without  Firefox browser opened. I googled and found a solution:

1.Create a shortcut for Firefox on the desktop, and rename it to “Chatzilla”

2. Change the target to “D:\Program Files\Mozilla Firefox\firefox.exe” -chrome chrome://chatzilla/content/chatzilla.xul
Deletion Reason: Using the above shortcut, you can start Chatzilla,but chatzilla auto-connect URLs can’t work.
Change the target to “D:\Program Files\Mozilla Firefox\firefox.exe” -chat

Now  Double click the “Chatzilla” shortcut, you will open chatzilla without firefox browser opening.

Reference

[1]Firefox’s  Command line arguments

http://kb.mozillazine.org/Command_line_arguments

October 3, 2008

Start Matlab from console under Unix/Linx

Filed under: Linux, Math — Tags: , — Cun Zhang @ 21:48

Under Unix/Linux, you can run matlab without GUI,which always is so usefully for me.

For me, I run Matlab programs for long time in a remote server. If a Matlab  GUI is opened ,I can’t disconnect the remote server. But when I run Matlab without GUI, I can do it with screen command.

Here is a example:

cunzhang@node31:~$ screen -S a

Then enter a visual terminal

cunzhang@node31:~$matlab -nodisplay -r  myprogram

Now you can disconnect your remote server.If you want to see whether your program is done, just run command

cunzhang@node31:~$ screen -r a

For more information, please see:

1. GNU screen’s homepage

2. http://gentoo-wiki.com/TIP_Using_screen

3. http://sunsite.ualberta.ca/Documentation/Gnu/screen-3.9.4/html_chapter/screen_toc.html

4. matlab function reference

foxyproxy custom path problem’s solution

Filed under: Uncategorized — Tags: , — Cun Zhang @ 21:12

Here is the solution from foxyproxy FAQ:

I moved my Firefox profile to another PC or another path. Now FoxyProxy doesn’t work. How to fix?

You must edit the profile’s preferences. In Firefox, type about:config in the address bar. Enter extensions.foxyproxy.settings as a filter. If the preference doesn’t exist, create it as a new string (open the context menu (right-click) on any existing preference, go to the New menu, and select String). Enter extensions.foxyproxy.settings for the preference name. For the value of the string, enter the location of foxyproxy.xml in the form: file:///c:/path/to/file/foxyproxy.xml. For example: file:///C:/Documents%20and%20Settings/
EricJung/ Application%20Data/Mozilla/Firefox/Profiles/
r0yrkjob.prod/foxyproxy.xml
. Note that the path must be URL-encoded (e.g., space becoems %20). You can use this URL encoding calculator to easily URL encode a path.

For Linux and Mac operating systems, exclude the drive letter; e.g. file:///home/ejung/foxyproxy.xml.

If you are using Portable Firefox, the value of extensions.foxyproxy.settings should be a single space (” “). This tells FoxyProxy to look for foxyproxy.xml in the profile directory of the current drive. This is important because the drive letter of a USB drive can change.

Powered by WordPress