2007-11-27

自知

知人者智, 自知者明。
胜人者有力, 自胜者强。
知足者富, 强行者有志。
不失其所者久, 死而不亡者寿。

--
Sent from my iPhone

2007-10-09

Take off to Chong Qing

With my new canon g9 !

2007-09-21

入定

要入定,首先要有入定前的一些觉受。就是说,如果一个人的身心都很舒适,修法又很正确,那么,他要入定之前会产生轻安的现象。即全身非常舒服,一般人的感觉是全身轻飘飘。初学禅定的人,在入定前会有轻安现象:有些人会觉得身体越来越大,甚至整个身体都在膨胀,大到他会觉得充满这个世间;有人会觉得身体越来越小,或身体浮起来。这些都是轻安的现象,这种现象过后,就会产生很快乐的感受,这都是入初禅前轻安的觉受。在禅定里,初禅、二禅、三禅都有不同的快乐感受,到了四禅就没有乐受了。

入定的人一定会觉得全身很舒服很快乐,这快乐的感觉会使他身上原有的病痛等不舒服感消失。另外,当他入定的时候,呼吸一定是非常均匀、非常舒适的,呼吸一定会变得微细。我们可以从这些现象,分辨出入定的一些情形。根据经典说,入初禅会生起觉、观、喜、乐、定五件事,称为初禅五支,初学者入定时是分不清楚这五支的,所以初学者不必先理会初禅五支,以免分心。初学者可以从心念集中了、呼吸变微细了、身体非常舒服了,以这些现象来确定自己已经入定了。另外,初入定的人往往有一种感觉,就是他从非常舒服的感觉中出来之后,会觉得忽然脚酸、麻、痛了;但是,在他出来之前却不知道痛。为什么呢?因为初禅只有乐受没有苦受,所以,你静坐到心念很平静身体非常舒服的时候,一旦休息就感觉全身疼痛,这表示休息前你入了初禅。

小心重复观察入定三件事情:心念、呼吸和乐受,你就会懂得原来入定过程是这么回事。必须重复训练,上去,下来。再上去,再下来,做越多次越好。以后,你就会越来越快地入定。一般人不懂得重复训练入定,只会贪着乐受而住在定中的乐受而不想出来,一直呆,呆到定力退了才出来,如此修定者能入定却不懂怎么入。所以,任何人初入禅定,千万不要一入了定就不出来。应该是一进去就快点出来,然后,再快点进去快点出来。一直重复做,做到你很熟练了,很清楚如何入定后,才来加强定力,所谓加强定力就是进去了不要马上出来。在练习加强定力时,要在定里多久呢?初学者入初禅千万不要太久,五分钟就好了。在里面呆五分钟就要出来,但是不要下座,然后再进去五分钟后出来。为什么呢?因为在初禅里呆得太久,心念可能会更细而离开初禅。甚至于深入到更高禅定,呼吸更细,心念更细,也更快乐。于是你对初禅心念的粗细混乱不清。也就是说练习加强初禅定力时,他在入初禅半小时内,要出入定六次。这样不但修了半小时的初禅,而且懂得出懂得进。当每次出入定五分钟做得很熟悉,很有把握了,你就去入定十分钟或者十五分钟。十五分钟有把握了,你就去坐一小时。就这样地加强定力。当你觉得这个定很稳固了,然后才能设法进入另外一个禅定。这就是所谓入定的技巧。

2007-08-13

工资终于涨了!

值得庆祝!!!

2007-07-13

Hello from the iphone

Hi !

Sent from my iPhone

2007-07-03

最近tnnd也太累了吧

移动,农行就够我忙的了,还有什么渤海银行,新华人寿,东华合创,中行,总部的IRM...这钱真不好赚。

2007-06-21

SAAS

software-as-a-service

http://www.37signals.com
http://www.salesforce.com

2007-06-17

在深圳

到达深圳,又在星巴克买了杯子,也不知道这个杯子什么下场。可怜我的Shanghai和Seoul,一个做了刷牙杯,另一个成天被茶泡着。

在星巴克的时候,收款的小姑娘和我客气:刚回来啊,看起来很疲惫啊。我听了竟然一阵激动。想了一想,自己确实太久没有听过这种温暖的话了。
___

Sent from my treo.

2007-06-13

今天做了件傻事

没弄清楚公司自己的Consulting team和外面的代理商之间的关系。他们之间似乎是竞争的...但也没那么严重,如果我今天不说,过几天他们同样会知道。毕竟要一起去现场见客户,我不说又有什么用呢?

2007-06-10

Building a XUL total commander

It will be wonderful !

2007-06-07

北京真闷热啊

怎么和武汉似的...



把第一次到哈尔滨的印象记一下,免得以后忘了:



  1. 出租司机带着我飙车,满世界闯红灯躲一个大货车。大货在后面拼命追,因为出租把它别了一下。
  2. 太阳岛不是岛,是公园
  3. 黑龙江移动下岗职工在公司门口堵门,拉标语,要求返岗。
  4. 中央大街那个马迭尔宾馆二楼的西餐很~好吃
  5. 没了


等在机场

本来想写成 困在机场,但又想想,在机场等三个小时飞机,也不能算是困,最多是个长时间的等待。



坐在咖啡厅里喝着茶,看着别人的blog,看到别人的文字,别人的生活,恍惚间忘记了自己身在异地。



人最怕无聊,无聊的时候就多事。要不是在机场等飞机,我也不会有这么多时间来写这些东西。其实手机上也是随时可以写的,但面对着那个320x320的小屏幕,一只手都放不下的小键盘,确实找不到写下自己心情的感觉。还是笔记本电脑好,什么时候咱也弄个x60之类能用电池工作6个小时的,再等我的积分换手机到期了去弄个随意行.....玩了这么多年数码,连小黑都没有过一台,太不专业了。



这些日子出差很多,发现满世界带着个单反,带三个镜头,确实累。接下来也好久没折腾了,要不把单反全套出了,换个旁轴?还是把镜头全出了,换个18-200 VR? 要不要去弄个小黑?还是小白?tnnd,这生活也是够沉闷了。

2007-06-06

单身

今天在机场买的新闻刊上,封面文章就是“中国单身报告”。看来单身真的是一种社会现象了。



单身是一种生存状态,更是一个人生道路的选择结果。单身可是是physical的,也可以是mental的。



从单身走入婚姻,需要缘分、精力;从婚姻回到单身,需要的则是勇气。



单身的生活是否真的象看起来那么好?自由是否真的那么好?



还是看自己啊,一个幸福的人,无论在任何状态下,肯定都会幸福的。

2007-05-17

happy birthday

生日,出差去深圳

2007-05-11

从珠海回来

刚从珠海回来,去了工行开发中心。用户真是IBM的铁杆啊,用IBM的CM都开发了快三年了。

下周一全天被订,周二周三中有半天被订,周四周五还要去深圳,tnnd,真累啊。

2007-04-22

At Seoul

Do not like this city.

2007-03-22

很久没写

总是这样,在闲的时候有很多可写,一旦有点小事忙起来,就一点也不想写。所以,不写是好事,证明自己不无聊......



blogger又被gwf封掉,真是莫名其妙。

2007-03-06

竟然可以从docs.google.com发布到blogger?

测试一下,它的标题是怎么确定的?

2007-03-06: 不能用,setting里设置的blogger beta可以test成功,不能保存。

2007-03-06: 好了,NoScript起的作用。有另外两个google服务的site,如果NoScript forbidden它们的话,就无法保存。

原来根本就没有标题...

似乎transfer的事要定了

就要步入新的工作了,现在手头的工作也可以不用太上心了...

2007-03-05

switching back to windows

Getting tired of linux. Considering vista...

2007-03-03

HUGO


HUGO, originally uploaded by Archive My Life.

买的时候因为它的气味最不象香水,半瓶用下来,越来越喜欢。

Get ubuntu release name

to get the release name of your running ubuntu, just cat /etc/issue:



jason@jason-laptop:/etc$ cat /etc/issue

Ubuntu feisty (development branch) \n \l



2007-03-02

Ubuntu chooses compiz over beryl

in the latest ubuntu Feisty Fawn, ubuntu includes a package named "desktop-effects" under the "ubuntu-desktop" meta-package, which use compiz instead of beryl.

desktop-effects
Depends: compiz
Depends: libatk1.0-0 ( 1.13.1)
Depends: libc6 ( 2.5-0ubuntu1)
......
The options are limit:


BPM vs Workflow

BPM与工作流的区别



BPM来源于工作流。从技术角度出发,可以认为BPM是工作流 + EAI + 管理分析工具。



以Documentum Process Suite为例,这个BPM解决方案包含以下产品:

  1. 分析

    • Business Process Analyzer (graphics modeling)

    • Business Process Simulator (addon of Business Process Analyzer, simulating)

    • Business Process Navigator (web-based client of Business Process Analyzer)

    • Business Integration Package for Visio (Visio based modeling)

    • Process Connectors for third party BPM applications (integration with other apps)

    • Process Connector for IDS Scheer ARIS (integration)

  2. 实施

    • Business Process Manager (graphics modeling, can work without Business Process Analyzer)

    • Forms Builder

  3. 执行

    • Process Engine (carry out the execution)

    • Business Process Services (integration services)

    • Process Connector for ILOG JRules (integration)

  4. 监控

    • Business Activity Monitor (alerts, business performance reports)

    • Process Connector for Cognos ReportNet

BAD MOOD

Feel like a total loser.

2007-02-28

Accessing google talk service from port 443

Keywords: gaim google talk 443 https firewall

Working for a company with firewall like me, it could be problems to get IM clients connected. For the google talk service, it's help tells you to use port 5222 while my company blocks this one.

Luckily, we can use port 443(standard https port) to access the google talk service. For my gaim 2.0.0b6 (installed with Ubuntu Feisty Fawn), I just followed the instructions given by google talk help and change the port to 443.

It seems the google talk developer did this: link

2007-02-27

Open Office 2007 Files In Office 2003

Install the Microsoft Office Compatibility Pack. link

2007-02-26

Mount ISO image

sudo mkdir /media/iso

sudo modprobe loop

sudo mount file.iso /media/iso/ -t iso9660 -o loop

Ubuntu iso images

they are all here: http://cdimage.ubuntu.com

including the newest Feisty.

Adding a sitemap of blogger to google webmaster tools

For the google webmaster tools, if we can add a site map to it. It will index our site quicker.



You can add your full blog feed as the site map, and as google webmaster tools require a highest-level directory for the sitemap file. The url will be:



http://yourname.blogspot.com/atom.xml



2007-02-25

BOAT


BOAT, originally uploaded by Archive My Life.

BOAT AT SEA SHORE.

MONT BLANC BAG


MONT BLANC BAG, originally uploaded by Archive My Life.

MY NEW YEAR GIFT. THANK YOU, HONEY !

Saving flickr photos in blogger

Flickr's free accounts have the following limits:

  • Photostream views limited to the 200 most recent images
  • Only smaller (resized) images accessible (though the originals are saved in case you upgrade later)
Which we can address through flickr API and blogger API.



Fake code:

  1. for each photo in your flickr account

  2. get URLs of small/medium/large/orgninal size of photo
  3. if cannot get orgninal size photo URL, construct it from the medium URL(insert '_o' before .jpg).
  4. get the taken date of the photo
  5. get tags
  6. post to blogger, display the medium or small size of photo, add links to all other sizes, using the date of taken date.
  7. loop for each.


Resolve Nvidia driver and Ndiswrapper conflict in Ubuntu

Use the latest kernel, nvidia driver and ndiswrapper. Currently these are: kernel 2.6.20, nvidia driver 1.0-9746, ndiswrapper 1.37.



Work perfectly in my dell 620 with Dell Wireless 1390 WLAN MiniCard(Broadcom BCM4311).



ref: Ndiswrapper wifi and Nvidia driver conflict.

Soff被告,输

看这里:
http://bjgy.chinacourt.org/public/detail.php?id=43944
可怜的soff,成了被告,要付11w。我的偶像啊,记得前一段时间,他说在soff.net上放google的广告,一天能收入150+ USD。现在成了tencent的眼中钉,被整了。
可怜。

2007-02-23

V


V, originally uploaded by Archive My Life.

SKY AND SEA

OCEAN


OCEAN, originally uploaded by Archive My Life.

SEASIDE


SEASIDE, originally uploaded by Archive My Life.

STREET OF YANTAI


STREET OF YANTAI, originally uploaded by Archive My Life.

2007-02-22

A BRAND NEW YEAR PLAN

a. Eat less meat.
b. Drink more water.
c. Get bed before 23:00
d. Run at 21:30 every night.


Let's check this out the same date next year.

2007-02-21

THE GHOST HOUSE


THE GHOST HOUSE, originally uploaded by Archive My Life.

BY THE SEA. YANTAI, CHINA.

VERY OLD HOUSE. LOOKS LIKE A GHOST HOUSE WITH THE GREEN LIGHT.

THE SHARK


THE SHARK, originally uploaded by Archive My Life.

THE SHARK, BY THE SEA. YANTAI, CHINA.

OLD HOUSE


OLD HOUSE, originally uploaded by Archive My Life.

THE OLD HOUSE BY THE SEA. YANTAI, CHINA.

春节没人上网...

gaim上只有我自己。

FW: 10 Linux commands you've never used

http://bashcurescancer.com/10-linux-commands-youve-never-used.html



briefing:



1. pgrep = ps + grep + awk '{print}'

...

7. ldd = depends walker

...

10. lsof = list all open files.

Access new blogger from the traditional blogger clients.

If your blogger account has been migrated into the new blogger, then:

server: http://www2.blogger.com/api
username: your google account name
password: your google account password
Done.

2007-02-19

Beryl but no window border

If you are using nvidia driver, issue the following command:



sudo nvidia-xconfig --add-argb-glx-visuals



which will add the following line into xorg.conf



"AddARGBGLXVisuals" "true"



Then restart your X.

2007-02-18

Moving Blog From Live Spaces To Blogger

Microsoft Live Spaces and Google Blogger both provide APIs. So you can easily move our blog from live spaces to blogger, just like what I just did.

Google's API is "Blogger Data API", you can read more about it here.
Microsoft Live Spaces API is "MetaWeblog API", you can read more here.

Google provides Java/.NET/PHP/JavaScript libraries of it's API, and MetaWeblog is kind of XMLRPC. So Java can be the programming language.

Tricks of programming:

1. I use apache xmlrpc library to access the live spaces. It cannot parse the date format correctly. You need to implement a custom type factory by following the sample of apache xmlrpc's doc(read "Custom data types" of this page). And the date format should be the following:


private DateFormat newFormat() {
return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
}


2. Live spaces API can not return more than 20 posts at one xmlrpc call. So that's what I did:

a. get the most recent post, record the id of the very recent one.
b. post it to blogger
c. update the post's date to 50 years ago.
d. keep a list of all the posts that we modified.
e. loop to a, until reach the recorded very recent post.
f. iterate all the posts we modified, change the date back.

That should be the only way to get all posts of live spaces.

Limits:

There are no APIs of Live Spaces to get the photos/attachments/comments, so we cannot migrate them to the blogger. That is not a problem to me as I don't have much of them.

I've made such an application and moved my blog from http://archivemylife.spaces.live.com to this site. Feel free to contact me if you need it too.

2007-02-17

nm-applet cannot work with static ip address

cannot understand how the application was designed...

2007-02-14

Ndiswrapper wifi and Nvidia driver conflict.

The result is there will be a line like following displayed at the console after like 15 or 20 minutes:

 kernel: [17181336.380000] Disabling IRQ #177

Then the wifi just stops working.

Now all that I can do is removing the Nvidia driver......

Keyring, plz do not ask me the password anymore.

ref1: http://www.ubuntuforums.org/showthread.php?t=187874
ref2: http://www.hekanetworks.com/opensource/pam_keyring/

If your keying password is the same as your login password, you can do the following steps:


1. Get pam_keyring source
2. sudo apt-get install build-essential libtool libglib2.0-dev libgnome-keyring-dev libpam0g-dev
3. tar xzvf
4. ./configure --prefix=/usr --libdir=/lib
5. make
6. sudo make install
7. sudo vi /etc/pam.d/gdm

add the following lines to the end of the file:

 auth optional pam_keyring.so try_first_pass
 session optional pam_keyring.so

Done.

Firefox quick search tip

1. Press "/"
2. Type what ever you want to find
3. It will disappear automatically.

Config QT based app under ubuntu.

Skype is based on QT3. To support chinese characters correctly, we need to config QT3 application font. The gnome-based ubuntu does not have qtconfig installed, so:

    sudo apt-get install qt3-qtconfig
    qtconfig &

2007-02-13

Install XMLRPC::Lite (SOAP::Lite) in ubuntu

sudo apt-get install libsoap-lite-perl
sudo apt-get install libio-socket-ssl-perl

using cpan to get and compile may get error while compiling the ssl support.

2007-02-12

Easytag with unicode support

ref: http://ubuntuforums.org/showpost.php?p=1714180

steps recorded:

1. install build env:

 sudo apt-get install build-essential binutils cpp cpio dpkg-dev file gcc libc6-dev make patch perl dh-make debhelper devscripts fakeroot lintian

2. install all needed to build libid3

 sudo apt-get build-dep libid3-3.8.3c2a

3. get sources

 mkdir ~/build && cd build
 apt-get source libid3-3.8.3c2a

4. edit the erring file:

 vi id3lib3.8.3-3.8.3/src/io_helpers.cpp

change the line 368 from

 unicode_t ch = (data[i] << 8) | data[i+1];

to

 unicode_t ch = (static_cast<unsigned char>(data[i]) << 8) | static_cast<unsigned char>(data[i+1]);

5. change the debian package version

 vi id3lib3.8.3-3.8.3/debian/changelog

change the version info of the first line, for
 
 id3lib3.8.3 (3.8.3-5.1.0.0.jason.1) ...

6. build it !

 cd id3lib3.8.3-3.8.3
 dpkg-buildpackage -us -uc -rfakeroot

7. got the deb @ ~/build and install it...

2007-02-10

Install fcitx in Ubuntu 6.10

1. get fcitx

sudo apt-get install fcitx

2. config fcitx to start with X11

sudo sh -c " echo 'export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE="fcitx" ; fcitx ' > /etc/X11/Xsession.d/95xinput "
sudo chmod 755 /etc/X11/Xsession.d/95xinput

3. modify /etc/gtk-2.0/gtk.immodules

modify the line: "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh" to:

 "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"

Apply themes in Ubuntu 6.10 Edgy Eft

Some themes downloaded from gnome-look.org cannot display correctly. It may because lack of one package:

$sudo apt-get install gtk2-engines-pixbuf

2007-02-09

Font problem in Gaim chat window

There may be weired font in Gaim MSN chat window, but gtalk works well at the same time.

The reason is MSN protocol messages carry font information along with the text. The Gaim tries to display accordingly. When there is no exact font in your machine, Gaim (or the font rendering system) will try to find a replacement which may not be the same as your system font configuration.

To revolve this problem, just go to "Tools->Preferences" and uncheck the "Show formatting on incoming messages".

Performancing keyboard shortcut

Press F8 to activate it...

Disable Ubuntu Window Animation

$ gconf-editor

expand /apps->metacity->general

check "reduced resources"

goto "System->Preferences->Assistive Technology Preferences", enable it. (to avoid the wiring thing while moving windows).


powered by performancing firefox

2007-02-07

Config Dell 1390 Wireless Adapter in Ubuntu

You should use Ndiswrapper to drive the Dell 1390 wireless adapter.

1. install ndiswrapper
 sudo apt-get install ndiswrapper-common
 sudo apt-get install ndiswrapper-utils-1.8
 sudo apt-get install ndisgtk


2. download dell driver:
 http://ftp.us.dell.com/network/R115321.EXE

3. extract the R115321.EXE using unzip and get the bcmwl5.inf and bcmwl5.sys

4. add the free wireless driver to black list
 echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist

5. attach the driver
 sudo ndiswrapper -i bcmwl5.inf

6. list the driver
 sudo ndiswrapper -l

7. install the WPA support
 sudo apt-get install wpasupplicant

8. install the network-manager
 sudo apt-get install network-manager
 sudo apt-get install network-manager-gnome

9. update config

 sudo gedit /etc/network/interfaces

Comment out everything other than “lo” entries in that file and save the file
Create a file called /etc/default/wpasupplicant, add entry ENABLED=0 and save the file

 sudo touch /etc/default/wpasupplicant

Reboot your system


powered by performancing firefox

Install Java plugin 1.4 in firefox under Linux

1. download java installer from sun
2. install the jdk or jre
3. Symbol link the plugin file under ......./jre/plugin/i386/ns610-gcc/libjavaplugin_oji.so to the firefox plugin directory.
4. access about:plugins from firefox.


powered by performancing firefox

Post to Windows Live / MSN Spaces using performancing

Firstly you need to enable "Email publishing" and choose a secret word for the email publishing. Then if your live space URL is http://username.spaces.live.com, you should login using "username" and the secret word.

--
2007-02-13

This strange username/password combination comes from MS MetaWeblogAPI: details