Friday, September 3, 2010

分享: 般若波罗蜜多心经

缘起,小时候大概是初中一二左右,每星期都有两三天会梦见自己半梦半醒之中和灵体有所接触,甚至到来抚摸我的额头,恐怖到极点。

在机缘巧合之下,和般若波罗蜜多心经结下了缘,除了背上了心经,还在房间里贴上了心经。说也奇怪,自从房间里贴上了心经后,那些灵体有关的梦就结束了。

最记得一次的怪遇是有一次我在谁梦中被灵体骚扰,弯起了我的手往自己的喉咙捉去,结果在最紧张的时刻,我心里只念了一句“观自在菩萨”, 整个世界突然什么也没了,我的手也松了下来,心经实在是太不可思议了。如果你有缘看到这篇文章,希望你也赶快的背诵心经,好好的感受心经的胜殊。记得哦,背诵心经会开智慧的哦!


般若波罗蜜多心经


唐三藏法师玄奘译

 

观自在菩萨 行深般若波罗蜜多时
照见五蕴皆空 度一切苦厄

舍利子
色不异空 空不异色
色即是空 空即是色
受想行识 亦复如是

舍利子
是诸法空相 不生不灭
不垢不净 不增不减
是故空中无色 无受想行识
无眼耳鼻舌身意 无色声香味触法
无眼界 乃至无意识界
无无明 亦无无明尽
乃至无老死 亦无老死尽
无苦集灭道 无智亦无得 以无所得故

菩提萨陲 依般若波罗蜜多故
心无 碍 无 碍故 无有恐怖
远离颠倒梦想 究竟涅盘

三世诸佛 依般若波罗蜜多故
得阿耨多罗三藐三菩提

故知般若波罗蜜多
是大神咒 是大明咒 是无上咒
是无等等咒 能除一切苦 真实不虚

故说般若波罗蜜多咒
即说咒曰 揭谛揭谛 波罗揭谛
波罗僧揭谛 菩提娑婆诃
般若波罗密多心经



Tuesday, June 15, 2010

青木瓜泡茶 痛風不見了 治療尿酸效果更佳

Papaya tea for gout
青木瓜泡茶 痛風不見了
這是真的有效果,用一般綠茶茶葉泡也可以,我
堂哥吃了有效,我也教有痛風的朋友喝(他腳趾關
節已變形),一週後就有很明顯的改善,兩週後就
正常了,事隔有近三年了,沒聽他說有痛過,不
過他怕復發,每月都會喝1~3次。
This is a really effective, just mix green papaya cubes to the ordinary green tea, my cousin brother tried and found it very effective. I have also shared with a friend with gout to try this (his "toe joints" started to deform), after a week of drinking this formula there is significant improvement, after two weeks the toe joints heal and revert to normal state. It is almost th! ree years now, the joint pain is gone, but he maintain the intake between 1-3 times monthly to avoid relapse.
其他的朋友喝了都有解決多年痛風的困擾,沒事也可喝,還不錯。
Other friends suffering from years of gout problem have also recovered. It is good for all, even those without gout.
好方法喔~~趕快告訴需要的人吧!!!!
Good formula! Do share with the people in need!
中國藥學院--- 賴 教授改良新方式:
An improved sequence by Professor Lai from the China School of Pharmacy :
將青木瓜切成丁放入水中煮沸後才放入茶葉,泡茶過程和一般茶葉相同。
據實際臨床經驗效果更佳,而且治療尿酸效果更佳(須常期喝)
Cut green papaya into small cubes, place into the water, brin! g to boil, then add green tea leaves, similar to the tea-making process. Clinical tests show that this brings better effects for treatment of gout, subject to frequent drinking of this formula.
青木瓜泡茶
台南縣仁德鄉後壁村長劉結慶患胃痛多年,把青木瓜當做茶壺泡茶喝,一個月後竟治癒宿疾,家人尿酸過多喝木瓜泡茶也不藥而癒,劉村長因而種了許多木瓜,送給有病的親友鄉親。
Mr Liu Qing, Chief of the Rende Town in Tainan, was suffering for years from severe stomach pain around the posterior wall of stomach. He used green papaya as a tea pot to prepare the family tea daily, after a month his chronic disease condition was much improved. His family members with high uric acid were also healed by the same papaya tea. For this Mr Liu planted a lot of papaya to sha! re with relatives and friends with similar sickness.
劉村長說,青木瓜最好選擇果實肥短,容量比較大,將木瓜頂部切開,挖出木瓜內的種籽,再開一個小缺口方便倒茶水,8 F一邊開個小洞透氣,放入茶葉、倒進沸水後蓋回木瓜頂部,並以牙籤固定,泡茶過程和一般茶葉相同。
According to Mr Liu, in selection of the Green Papaya as tea pot, pick those whose shape are fat and short, with larger capacity. Cut off the top part of the papaya, clear away the seeds, open a small hole at the upper side wall to facilitate pouring of tea. Create a small ventilation hole at top cover, put in the tea leaves, pour in boiling water, place the top cover back to papaya, you may use the toothpicks to secure the top cover. Similar to normal process of preparing tea.
劉村長表示,茶葉使用一般品質的烏龍茶即可,味道不錯,他當做茶水喝了一個月,困擾多年無法治癒的胃痛居然不藥而癒,自己也感到驚訝,他把木瓜茶葉拿給在醫學中心任職的友人檢驗,證實木瓜酵素有益健康,現在只要果園木瓜有適合的果實,就拿來與親友分享。
Liu like to use Oolong tea as the taste is good. He was pleasantly surprised that the stomach pains he suffered for many years was healed after a month of drinking tea from the green papaya pot, without taking any other medication. He passed some green papaya leaves to a friend who worked at a Medical Center to test and analyse the content. The tests confirmed that healthy the enzyme present in papaya is beneficial to human health. Now as papaya in Mr Liu's orchard is yeilding suitable size fruit, he would share the fruits with family and friends.
種植木瓜多年的農民徐福昌說,本地民眾所指的青木瓜,就是還未成熟! 、果皮仍呈青綠色的木瓜,一般木瓜要四個月左右才會成熟,但成熟後就沒有療效,青木瓜大約在三個月大左右採收,這時果實較,果實內的「木瓜奶」含有木瓜酵素、木瓜等有B健康成份,不但可泡茶喝,還可以切塊連同排骨熬,或切細絲加蒜頭炒,都非常可口,對人體也沒有不良影響。
Xu Fuchang, an experienced papaya farmers, the green papaya refers to papaya that is not ripe, where the skin is still green in colour. Generally, the papaya takes about four months to fully mature and ripe, but there healing effect would be lost after it is fully ripe. Green Papaya should be harvested when the papaya is approximately three months old, when the fruit is still firm, and the "papaya milk" contains high papaya enzyme and other healthy ingredients. Not only the green papaya can be used in tea drinking, you may also cut them into cubes, and boil with the ribs, or even slicing the green papaya into fine long pieces and fried with garlic, very tasty, and no adverse effects on ! the human body.

Monday, June 14, 2010

[Backup for peronal reference]

Process Forking with PHP

Posted March 4th, 2004 in PHP

Unix supports the process of forking which allows a parent process to spawn a subprocess and continue running both processes concurrently. It is possible to do this in PHP using the PHP Process Control Functions. Note that you should never attempt to use these process control forking functions when using a webserver; you shuld only fork applications when using the PHP command line client.

Before you can use the PHP process control functions you must compile the PCNTL extensions into PHP using the --enable-pcntl configure option (ie ./configure --enable-pcntl along with all the other configuration options you would like to compile into the PHP binary). No additional libraries need to be pre-installed. Note that these process control extensions will not work on non-Unix platforms (ie Microsoft Windows).

Basic Forking Example

A very basic and commonly used example for forking a process in PHP is as follows:

$pid = pcntl_fork();

if($pid) {
// parent process runs what is here
print "parent\n";
}
else {
// child process runs what is here
print "child\n";
}

Running this will output the following:

child
parent

Child process is a copy of the parent process

What actually happens when you call the pcntl_fork() function is that a child process is spawned which is exactly the same as the parent process and continues processing from the line below the function call. All variables and objects etc are copied into the child process as-is but these are new copies which belong to the new process. Modifying them in the child process does not affect the values in the parent (or any other forked) process.

The parent process will have a value assigned to $pid whereas the child process will not, hence the if test. Note that in the above example, both processes would continue running whatever code is after the if statement, something which is rarely mentioned in examples of PHP process forking on the web.

To illustrate this, we'll modify the example above slightly to add additional output as follows:

$pid = pcntl_fork();

print "start\n";

if($pid) {
// parent process runs what is here
print "parent\n";
}
else {
// child process runs what is here
print "child\n";
}

print "end\n";

Running this will display the following:

start
child
end
start
parent
end

Making the parent process wait until the child has finished

So ideally you want to let either the child or parent continue processing the rest of the script and make the other process exit after the process is forked. If you exit from the parent process, however, you'll end up with "zombie" processes running which do not belong to any process. Therefore the parent process needs to wait until all the child processes have finished running before exiting itself. You can do this using the pcntl_waitpid() function, which will cause the parent process to wait until the child process has completed. You can then either just let the parent process exit, or do any tidy up code that is required.

An example of doing this is as follows:

$pid = pcntl_fork();

if($pid) {
// this is the parent process
// wait until the child has finished processing then end the script
pcntl_waitpid($pid, $status, WUNTRACED);
exit;
}

// the child process runs its stuff here and then ends

...

The exit call in the parent process ensures that processing stops at that point and the parent does not execute any of the code intended for the child. Another way of doing the same thing without the exit code would be as follows:

$pid = pcntl_fork();

if($pid) {
// this is the parent process
// wait until the child has finished processing then end the script
pcntl_waitpid($pid, $status, WUNTRACED);
}
else {
// the child process runs its stuff here
}

Exit codes from the child process

You could optionally have an exit call at the end of the child part of the if statement.

The $status parameter passed to pcntl_waitpid() stores the return value from the child process. If the child process returns 0 (ie success) then it will also be zero. On my Linux desktop the value returned as $status would be the value returned from the exit call multipled by 256. So if the child process ended with exit(2) my system returned 512 as the $status value. Whether this is the same across all Unix systems I do not know.

Getting the parent process to wait until the child process has completed is useful for then doing something else based on the return value of the child process as shown in the following example:

$pid = pcntl_fork();

if($pid) {
// this is the parent process
// wait until the child has finished processing then end the script
pcntl_waitpid($pid, $status, WUNTRACED);
if($status > 0) {
// an error occurred so do some processing to deal with it
}
}
else {
// the child process runs its stuff here
...
if(...successful condition...) {
exit(0); // this indicates success
}
else {
exit(1); // this indicates failure
}
}

Forking multiple child processes

This final example illustrates how you could fork several children from the parent process with PHP. The loop runs three times and forks a child process for each loop, storing the child pids into an array. After running the stuff for the child process the child then exits. A second loop runs in the parent after the first to ensure all child processes have finished running before resuming its own process.

Note it is very important in this sort of process that the child explicitly exits in its section of the script, otherwise each child will continue running through the first, and then second, loop.

$pids = array();

for($i = 0; $i < 3; $i++) {

$pids[$i] = pcntl_fork();

if(!$pids[$i]) {
// child process
...
exit();
}

}

for($i = 0; $i < 3; $i++) {
pcntl_waitpid($pids[$i], $status, WUNTRACED);
}

// complete parent processing now all children have finished
...

The PHP manual pages for process control functions can be found at www.php.net/manual/en/ref.pcntl.php. There are a number of user contributed notes for each of the functions which should also help with your understanding of process forking in PHP.

Sunday, April 4, 2010

MY FM 重金礼聘 在线 自动计算系统

MY FM "重金礼聘"是我每天早上都会收听的电台游戏节目,基本上DJ 会向参与者提出3个数学问提,只要参与者能顺利在30秒内准确回答这三题,那么DJ就会再向参与者发问最后一题常识题(通常都是从报章上能找到答案的)。
如果参与者能成功的回答到最后一提常识题,那他/她就能赢取大奖,少则数百令吉,多则上万的奖金。有于该游戏的赞助商为MAGNUM, 所以数学题的答案有点像是4D 那样。参与者每成功回答一题数学题,他/她就能赢取RM50.00, 那只要能把三题数学题给答好,RM150.00 就拿定了。
DJ首先会向参与者发出 10 个 数字,然后参与者必须利用这 10 个数字完成以下数学题:
假设该10个数字为 1,2,3,4,5,6,7,8,9,9

题 1) DJ会给参与者一个数字,然后参与者必须从10个数字里选出4个数字,如果这4个数字的总和与DJ的数字一样,那就算答对了。(假设DJ要的是12, 那参与者必须回答 1236 或 1245, 1+2+3+6=12, 1+2+4+5=12)

题 2) DJ会给参与者一个数字,然后参与者必须从10个数字里选出4个数字,如果这4个数字相减与DJ的数字一样,那就算答对了。(假设DJ要的是3, 那参与者必须回答 9123 或 9213, 9-1-2-3=3, 9-2-1-3=3)

题 3) DJ会给参与者一个数字,然后参与者必须从10个数字里选出4个数字,如果这4个数字的数学计算(加减加)与DJ的数字一样,那就算答对了。(假设DJ要的是25, 那参与者必须回答 8919 或 9819, 8+9-1+9=25, 9+8-1+9=25)

对于一般的市民,通常要在30秒内答对3题数学题是有一定的难度,有的参与者找了好几位助手都折腰哩!
讲了一大堆的废话,就是想告诉你,昨晚半夜孩子发梦,一脚踢到我头上,无辜的我,摸着无辜的头,睡意全失, 在早上两点钟,为 my fm 200万广大的听众写下来 “MY FM 重金礼聘 在线 自动计算系统”, 网址为 http://kimwah.net/myfm/

有了“MY FM 重金礼聘 在线 自动计算系统”,那RM150.00的奖金肯定是随手可得。
如果你有严重的“斗鸡眼”和“发瘟手”,连那几个数字也可能错误输入的话,千万别使用这系统,免得我给你咒到半夜又给孩子发梦踢醒。

如果你是有良心的话,在赢取MY FM + MAGNUM 的奖金时,记得捐助一点点给 WorldVision, 慈济MaknaUnicef