知人者智, 自知者明。
胜人者有力, 自胜者强。
知足者富, 强行者有志。
不失其所者久, 死而不亡者寿。
--
Sent from my iPhone
2007-11-27
自知
Posted by jason at 11:58 AM 0 comments
2007-10-09
2007-09-21
入定
要入定,首先要有入定前的一些觉受。就是说,如果一个人的身心都很舒适,修法又很正确,那么,他要入定之前会产生轻安的现象。即全身非常舒服,一般人的感觉是全身轻飘飘。初学禅定的人,在入定前会有轻安现象:有些人会觉得身体越来越大,甚至整个身体都在膨胀,大到他会觉得充满这个世间;有人会觉得身体越来越小,或身体浮起来。这些都是轻安的现象,这种现象过后,就会产生很快乐的感受,这都是入初禅前轻安的觉受。在禅定里,初禅、二禅、三禅都有不同的快乐感受,到了四禅就没有乐受了。
入定的人一定会觉得全身很舒服很快乐,这快乐的感觉会使他身上原有的病痛等不舒服感消失。另外,当他入定的时候,呼吸一定是非常均匀、非常舒适的,呼吸一定会变得微细。我们可以从这些现象,分辨出入定的一些情形。根据经典说,入初禅会生起觉、观、喜、乐、定五件事,称为初禅五支,初学者入定时是分不清楚这五支的,所以初学者不必先理会初禅五支,以免分心。初学者可以从心念集中了、呼吸变微细了、身体非常舒服了,以这些现象来确定自己已经入定了。另外,初入定的人往往有一种感觉,就是他从非常舒服的感觉中出来之后,会觉得忽然脚酸、麻、痛了;但是,在他出来之前却不知道痛。为什么呢?因为初禅只有乐受没有苦受,所以,你静坐到心念很平静身体非常舒服的时候,一旦休息就感觉全身疼痛,这表示休息前你入了初禅。
小心重复观察入定三件事情:心念、呼吸和乐受,你就会懂得原来入定过程是这么回事。必须重复训练,上去,下来。再上去,再下来,做越多次越好。以后,你就会越来越快地入定。一般人不懂得重复训练入定,只会贪着乐受而住在定中的乐受而不想出来,一直呆,呆到定力退了才出来,如此修定者能入定却不懂怎么入。所以,任何人初入禅定,千万不要一入了定就不出来。应该是一进去就快点出来,然后,再快点进去快点出来。一直重复做,做到你很熟练了,很清楚如何入定后,才来加强定力,所谓加强定力就是进去了不要马上出来。在练习加强定力时,要在定里多久呢?初学者入初禅千万不要太久,五分钟就好了。在里面呆五分钟就要出来,但是不要下座,然后再进去五分钟后出来。为什么呢?因为在初禅里呆得太久,心念可能会更细而离开初禅。甚至于深入到更高禅定,呼吸更细,心念更细,也更快乐。于是你对初禅心念的粗细混乱不清。也就是说练习加强初禅定力时,他在入初禅半小时内,要出入定六次。这样不但修了半小时的初禅,而且懂得出懂得进。当每次出入定五分钟做得很熟悉,很有把握了,你就去入定十分钟或者十五分钟。十五分钟有把握了,你就去坐一小时。就这样地加强定力。当你觉得这个定很稳固了,然后才能设法进入另外一个禅定。这就是所谓入定的技巧。
Posted by jason at 4:36 PM 0 comments
2007-08-13
2007-07-13
2007-07-03
最近tnnd也太累了吧
Posted by jason at 10:32 PM 0 comments
2007-06-21
2007-06-17
在深圳
到达深圳,又在星巴克买了杯子,也不知道这个杯子什么下场。可怜我的Shanghai和Seoul,一个做了刷牙杯,另一个成天被茶泡着。
在星巴克的时候,收款的小姑娘和我客气:刚回来啊,看起来很疲惫啊。我听了竟然一阵激动。想了一想,自己确实太久没有听过这种温暖的话了。
___
Sent from my treo.
Posted by jason at 8:38 PM 0 comments
2007-06-13
今天做了件傻事
没弄清楚公司自己的Consulting team和外面的代理商之间的关系。他们之间似乎是竞争的...但也没那么严重,如果我今天不说,过几天他们同样会知道。毕竟要一起去现场见客户,我不说又有什么用呢?
Posted by jason at 12:13 AM 0 comments
2007-06-10
2007-06-07
北京真闷热啊
把第一次到哈尔滨的印象记一下,免得以后忘了:
- 出租司机带着我飙车,满世界闯红灯躲一个大货车。大货在后面拼命追,因为出租把它别了一下。
- 太阳岛不是岛,是公园
- 黑龙江移动下岗职工在公司门口堵门,拉标语,要求返岗。
- 中央大街那个马迭尔宾馆二楼的西餐很~好吃
- 没了
Posted by jason at 10:13 PM 0 comments
等在机场
坐在咖啡厅里喝着茶,看着别人的blog,看到别人的文字,别人的生活,恍惚间忘记了自己身在异地。
人最怕无聊,无聊的时候就多事。要不是在机场等飞机,我也不会有这么多时间来写这些东西。其实手机上也是随时可以写的,但面对着那个320x320的小屏幕,一只手都放不下的小键盘,确实找不到写下自己心情的感觉。还是笔记本电脑好,什么时候咱也弄个x60之类能用电池工作6个小时的,再等我的积分换手机到期了去弄个随意行.....玩了这么多年数码,连小黑都没有过一台,太不专业了。
这些日子出差很多,发现满世界带着个单反,带三个镜头,确实累。接下来也好久没折腾了,要不把单反全套出了,换个旁轴?还是把镜头全出了,换个18-200 VR? 要不要去弄个小黑?还是小白?tnnd,这生活也是够沉闷了。
Posted by jason at 4:41 PM 0 comments
2007-06-06
单身
单身是一种生存状态,更是一个人生道路的选择结果。单身可是是physical的,也可以是mental的。
从单身走入婚姻,需要缘分、精力;从婚姻回到单身,需要的则是勇气。
单身的生活是否真的象看起来那么好?自由是否真的那么好?
还是看自己啊,一个幸福的人,无论在任何状态下,肯定都会幸福的。
Posted by jason at 9:00 PM 0 comments
2007-05-17
2007-05-11
从珠海回来
刚从珠海回来,去了工行开发中心。用户真是IBM的铁杆啊,用IBM的CM都开发了快三年了。
下周一全天被订,周二周三中有半天被订,周四周五还要去深圳,tnnd,真累啊。
Posted by jason at 11:28 PM 0 comments
2007-04-22
2007-03-22
很久没写
blogger又被gwf封掉,真是莫名其妙。
Posted by jason at 7:01 PM 0 comments
2007-03-06
竟然可以从docs.google.com发布到blogger?
测试一下,它的标题是怎么确定的?
2007-03-06: 不能用,setting里设置的blogger beta可以test成功,不能保存。
2007-03-06: 好了,NoScript起的作用。有另外两个google服务的site,如果NoScript forbidden它们的话,就无法保存。
原来根本就没有标题...
Posted by jason at 5:07 PM 0 comments
2007-03-05
switching back to windows
Posted by jason at 11:35 AM 0 comments
2007-03-03
Get ubuntu release name
jason@jason-laptop:/etc$ cat /etc/issue
Ubuntu feisty (development branch) \n \l
Posted by jason at 9:35 AM 0 comments
2007-03-02
BPM vs Workflow
BPM来源于工作流。从技术角度出发,可以认为BPM是工作流 + EAI + 管理分析工具。
以Documentum Process Suite为例,这个BPM解决方案包含以下产品:
- 分析
- 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)
- Business Process Analyzer (graphics modeling)
- 实施
- Business Process Manager (graphics modeling, can work without Business Process Analyzer)
- Forms Builder
- Business Process Manager (graphics modeling, can work without Business Process Analyzer)
- 执行
- Process Engine (carry out the execution)
- Business Process Services (integration services)
- Process Connector for ILOG JRules (integration)
- Process Engine (carry out the execution)
- 监控
- Business Activity Monitor (alerts, business performance reports)
- Process Connector for Cognos ReportNet
- Business Activity Monitor (alerts, business performance reports)
Posted by jason at 3:57 PM 0 comments
2007-02-28
Accessing google talk service from port 443
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
Posted by jason at 2:39 PM 1 comments
Labels: 443, firewall, gaim, google talk, https
2007-02-27
Open Office 2007 Files In Office 2003
Posted by jason at 9:57 PM 0 comments
Labels: office 2007
2007-02-26
Mount ISO image
sudo mkdir /media/iso
sudo modprobe loop
sudo mount file.iso /media/iso/ -t iso9660 -o loop
Posted by jason at 3:12 PM 0 comments
Labels: linux
Ubuntu iso images
including the newest Feisty.
Posted by jason at 1:13 PM 0 comments
Labels: linux
Adding a sitemap of blogger to google webmaster tools
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
Posted by jason at 3:48 AM 0 comments
2007-02-25
MONT BLANC BAG
MY NEW YEAR GIFT. THANK YOU, HONEY !
Posted by jason at 10:46 PM 1 comments
Labels: photo
Saving flickr photos in blogger
- Photostream views limited to the 200 most recent images
- Only smaller (resized) images accessible (though the originals are saved in case you upgrade later)
Fake code:
- for each photo in your flickr account
- get URLs of small/medium/large/orgninal size of photo
- if cannot get orgninal size photo URL, construct it from the medium URL(insert '_o' before .jpg).
- get the taken date of the photo
- get tags
- post to blogger, display the medium or small size of photo, add links to all other sizes, using the date of taken date.
- loop for each.
Posted by jason at 9:26 PM 0 comments
Labels: blogger
Resolve Nvidia driver and Ndiswrapper conflict in Ubuntu
Work perfectly in my dell 620 with Dell Wireless 1390 WLAN MiniCard(Broadcom BCM4311).
ref: Ndiswrapper wifi and Nvidia driver conflict.
Posted by jason at 8:27 PM 0 comments
Labels: linux
Soff被告,输
看这里:
http://bjgy.chinacourt.org/public/detail.php?id=43944
可怜的soff,成了被告,要付11w。我的偶像啊,记得前一段时间,他说在soff.net上放google的广告,一天能收入150+ USD。现在成了tencent的眼中钉,被整了。
可怜。
Posted by jason at 7:45 PM 0 comments
Labels: web
2007-02-23
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.
Posted by jason at 10:17 PM 0 comments
Labels: life
2007-02-21
THE GHOST HOUSE
BY THE SEA. YANTAI, CHINA.
VERY OLD HOUSE. LOOKS LIKE A GHOST HOUSE WITH THE GREEN LIGHT.
Posted by jason at 10:20 PM 0 comments
Labels: photo
THE SHARK
THE SHARK, BY THE SEA. YANTAI, CHINA.
Posted by jason at 10:15 PM 0 comments
Labels: photo
OLD HOUSE
THE OLD HOUSE BY THE SEA. YANTAI, CHINA.
Posted by jason at 10:11 PM 0 comments
Labels: photo
FW: 10 Linux commands you've never used
briefing:
1. pgrep = ps + grep + awk '{print}'
...
7. ldd = depends walker
...
10. lsof = list all open files.
Posted by jason at 1:58 AM 0 comments
Labels: linux
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.
Posted by jason at 12:35 AM 0 comments
Labels: blogger
2007-02-19
Beryl but no window border
sudo nvidia-xconfig --add-argb-glx-visuals
which will add the following line into xorg.conf
"AddARGBGLXVisuals" "true"
Then restart your X.
Posted by jason at 11:41 PM 0 comments
Labels: linux
2007-02-18
Moving Blog From Live Spaces To Blogger
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.
Posted by jason at 1:46 AM 0 comments
Labels: blogger
2007-02-17
nm-applet cannot work with static ip address
Posted by jason at 6:27 PM 0 comments
Labels: linux
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......
Posted by jason at 3:36 PM 0 comments
Labels: linux
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.
Posted by jason at 3:31 PM 0 comments
Labels: linux
Firefox quick search tip
1. Press "/"
2. Type what ever you want to find
3. It will disappear automatically.
Posted by jason at 12:51 PM 0 comments
Labels: firefox
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 &
Posted by jason at 8:37 AM 0 comments
Labels: linux
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.
Posted by jason at 3:27 AM 0 comments
Labels: linux
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...
Posted by jason at 1:03 PM 0 comments
Labels: linux
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"
Posted by jason at 10:15 AM 0 comments
Labels: linux
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
Posted by jason at 3:09 AM 0 comments
Labels: linux
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".
Posted by jason at 2:43 PM 0 comments
Labels: linux
Performancing keyboard shortcut
Press F8 to activate it...
Posted by jason at 1:27 PM 0 comments
Labels: linux
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
Posted by jason at 1:22 PM 0 comments
Labels: linux
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
Posted by jason at 4:17 PM 1 comments
Labels: linux
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
Posted by jason at 3:29 PM 0 comments
Labels: linux
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
Posted by jason at 3:23 PM 0 comments












