Thursday, December 20, 2012

Jquery datepicker crash with jqueryui/cupertino/jquery-ui-1.8.7.custom.css

If apply jqueryui/cupertino/jquery-ui-1.8.7.custom.css, datepicker  calendar will not appear.
- .ui-helper-hidden-accessible clip property will cause it hidden.

To fix:
add in "clip:'auto' css
- Replace  inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'}); with inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px',clip:'auto'});

Tuesday, December 4, 2012

CIMB 50% Rebate on Your First Purchase Campaign




  • Campaign period: 1st November 2012 - 31st December 2012
  • The principal Cardholder of a new CIMB Card who fulfills the terms of this Campaign will be entitled to a one time and one off fifty percent (50%) rebate off his/her first retail spending transaction (“Rebate”)  within thirty (30) days from the date his/her CIMB Card is approved ("Utilisation Period").
  • The Rebate will be credited to the CIMB Card account within 4 – 6 weeks after the expiry of the Utilisation Period 
  • Maximum Rebate limit of RM250.00.


Monday, December 3, 2012

Online payment page

Digi
https://www.digi.com.my/ocs/myaccount/payonline/pay_online.do

Unifi
https://occ.unifi.my/HSBBCustomerPortal/HSBBCustomerPortal.portal

15% Cash Back with AMEX



The campaign is open to all AMEX Cards issued by Maybank and Maybank Islamic except Corporate Cards. Each principal card holder can earn 15% cash back, with a total cash back of up to RM 300. All you need to do is to spend at 21 participating malls listed below:

  • Mid Valley
  • Gardens
  • Sunway Pyramid
  • 1 Utama
  • Suria KLCC
  • Pavilion KL
  • Starhill
  • Ikano Power Centre
  • The Curve
  • Paradigm Mall
  • Setia City Mall
  • Bangsar Shopping Centre
  • Bangsar Village I & II
  • Gurney Plaza, Penang
  • QueensBay Mall, Penang
  • Suria, Sabah
  • Spring Mall, Sarawak
  • Tebrau City Mall, Johor
  • AEON Bandaraya, Melaka
  • Station 18, Ipoh
  • East Coast Mall, Kuantan

Campaign Period: 1 December 2012 to 31 January 2013

  • Qualified Transaction includes transactions from departmental stores located at the Participating  Shopping Malls for example Isetan, Tangs, Metrojaya, Parkson, Robinson and Jusco Departmental Stores as well as merchants that sign-up before 15 Nov 2012.
  • The Qualified Retail Transaction does not include transactions from: 
  1. Supermarkets/Hypermarkets which are  located  in the 21 Participating Shopping   Malls   including   but not limited to Cold Storage, Jusco Supermarket, Carrefour, Giant, Mercato De Market Place, Village Grocer, Isetan Supermarket, Jason Food Hall & Urban Fresh Market Place.
  2.  Hotels and their F&B  and retails outlets located in the 21 Participating Malls   including   but   not  limited to Boulevard Hotel, Cititel Hotel, Gardens Hotel  &   Residences, One World Hotel,  Mandarin Oriental Kuala Lumpur, JW Marriott Hotel Kuala Lumpur, Sunway Pyramid Hotel, Sunway Resort Hotel & Spa and The Royale Bintang Damansara.
REGISTER NOW at www.americanexpress.com.my/cash4u

To read full terms and conditions, click here.

Monday, November 12, 2012

10% Cash Back with Online Payment

1) Login to Citibank Online 2) Pay a bill with a minimum of RM50 per transaction 3) Get 10% cash back** (reflected in your bill)

The campaign will run in a period of 4 weeks as follows:-

Week 1: 5 November to 11 November 2012
Week 2: 12 November to 18 November 2012
Week 3: 19 November to 25 November 2012
Week 4: 26 November 2012 to 2 December 2012


  • ‘first-come-first-serve basis’.
  •  maximum Cash Rebate of RM200
  • weekly cap of RM 5000 throughout the campaign


Note:
  • Citibank Platinum, Gold, Silver, Clear, Choice, and CitiBusiness (personal underwriting) cardmembers earn Citi Rewards points, AirAsia cardmembers earn AirAsia points, while Cash Back Platinum, Giant and Shell cardmembers earn Cash Rebates.
  • This Campaign is opened to individuals who are existing Citibank principal credit cardmembers who has received  an invitation by direct mailer,  short messaging service (SMS), electronic direct mail (EDM) or any other manner deemed fit from Citibank exclusively (“Eligible Person”).
  •  Each  Participant or Weekly Winner  is only entitled to receive the Cash  Rebate ONCE regardless of the number of Qualifying Transactions made during the Campaign Period;

Click here for full terms and conditions.

Friday, November 9, 2012

鸡蛋壳的妙用

1、洗衣服

可把蛋壳捣碎,装进薄布袋或丝袜里,然后放入盆中用热水浸泡5分钟后取出,用此水清洗衣服,格外白净。

2、可作漂白剂

白色手帕、台布大多数会泛黄,可把蛋壳放入一起煮,煮后小心地洗涤。

3、使皮肤细腻滑润

把蛋壳内一层蛋清收集起来,加一小匙奶粉和蜂蜜,拌成糊状,晚上洗脸后,把调好的蛋糊涂抹在脸上,过30分钟后洗去,常用此法会使脸部肌肉细腻滑润,使皮肤细腻滑润。

4、清除奶瓶、细口瓶等各种瓶子及油桶中的污垢

将蛋壳碾成碎末,放入陶瓷器皿、热水瓶、玻璃瓶中,加清水后左右摇晃,可以去垢。 如果油污严重,放入蛋壳加满水,放置1—2天,中间摇晃几次,就可以将油污洗净。对于油桶的清洗非常有效。 对于清洗奶瓶更是很好的方法,因为不用清洁剂,所以给宝宝用是非常安全的。

5、鸡蛋壳的碎片可以清洗杯子

6、清洁果汁机

果汁机刀刃部份很难清洗,容易伤到手,可以将半个鸡蛋壳加一些水和洗洁剂倒入果汁机中,打磨几分钟后细碎的鸡蛋壳就可以将果汁机清除干净,然后用清水冲洗。

7、消炎止痛

用鸡蛋壳碾成末外敷,有治疗创伤和消炎的功效。

8、治烫伤、治汤伤

如果身体有轻微的烫伤或烧伤,可以取鸡蛋壳中一层薄薄的蛋膜,蛋液向皮肤敷在伤口上,每天更换一次,而且敷上后能止痛,三至五天即可愈合。

9、去水垢

烧开水的水壶有一层厚厚的水垢,坚硬难除,用它煮两次鸡蛋壳,即可全部去掉。

10、擦拭玻璃或家具

新鲜蛋壳在水中浸泡,会产生蛋白与水的混合溶液。擦玻璃或家具,可增加光泽。

11、养花卉当肥料

将清洗蛋壳的水浇入花盆中,有助于花木的生长。 将蛋壳捏碎放在花盆里,既能保养水分,又能为花卉提供养分。再放新蛋壳前,把旧蛋壳清出就可以了。

12、灭蚂蚁

把蛋壳用火偎成微焦以后碾成粉,撒墙角处,可以杀死蚂蚁。

13、制作小工艺品

可以用蛋壳做一些小工艺品,比如蛋壳蜡等。

14、减轻胃痛

将鸡蛋壳洗净打碎,放入铁锅内用文火炒黄(不能炒焦),然后碾成粉,越细越好,每天服一个鸡蛋壳的量,分2次~3次在饭前或饭后用水送服,对十二指肠溃疡和胃痛、胃酸过多的患者,有止痛、制酸的效果。

15、做简易漏斗

要把油装入瓶子里,一时找不到漏斗,可用蛋壳代替。在洗净的蛋壳一端打一小孔,就是一个小漏斗。

16、鸡蛋壳内膜去黑头

鸡蛋壳内层的那层膜,把它小心撕下来贴在鼻子上,等干后撕下来,这是去黑头很好的方法。

17、煮咖啡
煮咖啡时,加一些蛋壳(约两杯咖啡加半个鸡蛋壳),可以使咖啡澄清味甘。

18、除炸食物后油的黑色
炸食物的油使用几次后,油会发黑,可在油罐里放一小块鸡蛋壳,蛋壳会把掉在油中的炭粒吸附掉,使油变清。

Standard Chartered Business Card Sign Up Promotion


.
Period: 7 November 2012 until 31 January 2013

The Campaign is open to New Customers who:
successfully apply for any of the following credit cards ("SCB Credit Card”) with the Bank during the Campaign Period:
  • Gold Credit Card,
  • Business Gold Credit Card,
  • Platinum Credit Card,
  • Business Platinum Credit Card,
  • Preferred World MasterCard Credit Card,
  • Priority Banking Visa Infinite Credit Card,
AND

(b)maintain their accounts with the Bank in good standing, without any breach of the terms and conditions or agreements, throughout the Campaign Period.

Sign-Up CashBack
Card TypeCashBack for Application via the Bank's Direct Sales Agencies or via the Bank's branchesCashBack for Online Applications
Principal Gold & Business GoldRM55RM250
Principal Platinum & Business Platinum & Preferred World MasterCardRM55RM300
Principal Priority Banking Visa InfiniteRM55N/A
Supplementary Gold / Business Gold / Platinum / Business Platinum / Preferred World MasterCardRM30RM30
Supplementary Priority Banking Visa InfiniteRM30N/A
- will be credited into the cardholder's credit card account within 30 days from the approval date.

Acquisition Gift (SmartTAG OR Touch 'n Go Card) upon Card Activation
Successful Eligible Customers who:
(a)take up either the Business Gold or the Business Platinum Credit Card, via the Bank’s direct sales agencies or the Bank’s branches( not for online application), as principal cardholders; and
(b)call the Bank’s Contact Centre to activate their approved credit card within 30 days from the date of the Welcome Pack but in any case before 28 February 2013;

 Acquisition Gifts:
West Malaysia
(i) One unit of SmartTAG valued at RM120 (without Touch 'n Go card);  OR
(ii) One unit of Touch 'n Go Card with preloaded value of RM100.

 East Malaysia
(i) cashback of RM80 (to be credited within 60 days from the month in which the card was activated);OR
(ii) One unit of Touch 'n Go Card with preloaded value of RM100.



15% Petrol CashBack Reward
Reward Period (via agent)
(a)Eligible cards approved from 7 – 31 November 2012: until 31 May 2013.
(b)Eligible cards approved from 1 – 31 December 2012: until 30 June 2013.
(c)Eligible cards approved from 1 January 2013: until 31 July 2013.


Reward Period (online applicant)
(a)Eligible cards approved from 11 – 31 December 2012: until 30 June 2013.
(b)Eligible cards approved from 1 January 2013: until 31 July 2013.




Petrol CashBack Rewards are capped as follows:
(i) RM68 per month - credit card applications via the Bank’s direct sales agencies or the Bank’s branches
(ii) RM 100 per month - online credit card application.

Campaign Cap:  RM8,700,000

This Petrol CashBack will be credited within 60 days after the end of the transaction month.

Detail: here
T&C: here



Online Application: RM 300 CashBack(platinum card)+15% Petrol Rebate(Max RM100)
Thru Agent or Branch: RM 55 CashBack+RM120(choose SmartTAG)+15% Petrol Rebate(Max RM68)

Online Application is worth more than thru agent/branch.

Thursday, November 8, 2012

Jquery:Disable right click without alert

Demo




 <a class="demo" href="http://jithuan.blogspot.com/">Demo</a>   
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>   
  <script type="text/javascript">   
    $(document).ready(function(){   
       $(".demo").mousedown(function(event) {   
         $(this).attr('oncontextmenu',"return false");   
       });   
    });   
  </script>   

Good Source Code Formatter for Blogger

http://codeformatter.blogspot.com/

Wednesday, November 7, 2012

Cakephp Basic Ajax Pagination

 <div id="ajaxview">   
      <table>   
           <tr class="paging">   
                <th><?php echo $this->Paginator->sort('name');?></th>   
           </tr>   
           <tr>   
                <td><?php echo $data['Data']['name'];?></td>   
           </tr>   
      </table>   
      <div class="paginga">   
           <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>   
           |<?php echo $this->Paginator->numbers();?>   
           |<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>   
      </div>   
      <script type="text/javascript">   
           $(document).ready(function(){   
                $(".paginga").click(function(){   
                     $("#ajaxview").load(this.href);   
                     return false;   
                })   
           });   
      </script>   
 </div>  

Friday, October 19, 2012

Promotion: 20% Discount For Taiping Zoo & Night Safari


- Promotion period: 01/01/2012 - 31/12/2012
- This voucher just valid for one ticket only.
- Print this voucher in here.
- Show this voucher to ticket counter to enjoy this promotion.

Monday, October 15, 2012

Auto Debit Promotion for Insurance to Get Gift -Citibank


Receive a FREE gift of your choice

Charge your monthly insurance premiums to your Citibank Credit Card and receive an exclusive gift.


Choose Your Gift
Vans Sports Travel backpack Frequent traveler? This trendy backpack has padded compartments for your laptop, tablet and gadgets, padded pocket for your DSLR camera to make your travel needs easy! SMS Keyword GFA Minimum monthly insurance premium RM200Blue Chatter Phone for mobile devices Pick up this radiation free, retro handset hype like the Hollywood celebrities. Skyping made easy with this Chatter phone! SMS Keyword GFB Minimum monthly insurance premium RM150 RM50 Aeon Voucher Enjoy your shopping even more with this RM50 voucher at all AEON outlets nationwide. SMS Keyword GFC Minimum monthly insurance premium RM100


HOW:

1 SMS your gift choice by 31 Oct 2012 to 36700

2 Call your insurance agent to register or transfer your monthly auto debit insurance premiums to your Citibank Credit Card

3 Your gift will be delivered to you within 6-8 weeks your your 2nd recurring insurance payment.


Terms and conditions:
1.Promotion period is from 1 October to 14 Nov 2012.
2.Limited to one (1) gift per cardmember.
3.Each cardmember may only SMS one (1) gift option. If Citibank receives more than one (1) SMS from the cardmember, the first SMS will be taken as final.
4.The pictures are for illustrative purposes only and actual gift color may differ. Only the blue colored Chatter phone will be
given away.
5.A standard SMS cost of 30 sen for each SMS shall be borne by the participant in addition to the usual charges payable by the participant to the relevant mobile service provider.
For full terms and conditions, click here.


Friday, October 12, 2012

30% Cash Back Every Week- Citibank credit card



1. Registration:
i.  To participate in the Campaign, an Eligible Person is required to register with Citibank via one of the following methods:
a) short  messaging service text (“SMS”) to Citibank in accordance with the instructions as set out in Citibank's promotional materials: “ WEEKLY1(space)16-digit credit card number”  to 66399
- An Eligible Person who receives from Citibank an SMS confirmation on his/her mobile phone from which the registration SMS was sent;

or

b) register online at “www.citibank.com.my/weekly” (“Campaign Website”);
- a confirmation message shown on the Campaign Website, from Citibank confirming that the registration is successful.

ii. An Eligible Person with multiple Citibank Cards is only required to register any one of his/her Citibank Card to participate in this Campaign. All other Citibank Cards shall be automatically tracked for purposes of tabulation of the Qualifying Transactions (as defined below) for this Campaign.


To participate in the Campaign, a Participant  needs to  complete,  after Registration,  one transaction on each Qualifying Category with his/her Citibank Cards (regardless of sequence and inclusive of supplementary cards transactions) (“Qualifying Transactions”) within ONE Weekly Cycle (as defined below) with the following requirements:
i. A minimum of RM100 in a single transaction on Groceries;
ii. A minimum of RM100 in a single transaction on Dining; AND
iii. A minimum of RM100 in a single transaction on any Retail Purchase.

  • A Weekly Cap of RM125,000 is allocated from every Saturday to the following Friday with a maximum of RM100 cash back entitlement per week per principal cardmember on a first-come, first-served basis.
  •  In each Weekly Cycle, 30% Cash Back will be given out to Successful Participants.
  • Duration: 13 Oct 2012 - 7 Dec 2012
  • Applicable to all Citibank Credit Cards.
  • "Groceries" transactions must be made at Giant, Cold Storage, Mercato, Jasons Food Hall, Aeon, Tesco, Carrefour, Mydin, Econsave, The Store/Pacific, Village Grocer, Jaya Grocer, Billion, NSK, Servay, 99 Speedmart and Everrise, in Malaysia. 
  • "Dining" includes transactions made at merchants categorized under "Dining" or "Food & Beverages" as per selected Merchant Category Codes (MCC). 
  • "Anything" means any qualifying retail transactions  except the following:
i)  those used to qualify under the above  Qualifying  Categories of  "Groceries" and "Dining";

ii) installments paid under Citibank's Flexi Payment Plan or Easy Payment Plan (as defined in Citibank's Website);

iii) payments made by standing instructions or auto-billing;

iv) Qualifying Transactions which are subsequently cancelled or refunded;

v) cash advance or cash withdrawal debited to the account of the Citibank Card;

vi) Dial-For-Cash (DFC) or Balance Conversion (as defined in Citibank's Website);

vii) government service tax and any other similar taxes;

viii) disputed, unauthorized or fraudulent purchase transactions;

ix) payment of annual Citibank Credit Card membership fees,

x) interest & principal payments;

xi)  late payment fees, charges for cash withdrawals and any other form of service/miscellaneous fees; and

xii) transactions made by Participants with any merchant associated with or controlled by them (whether as business owner, shareholder or director)

Saturday, October 6, 2012

Search for cheapest air ticket

http://www.wego.com/
- not support all flight company booking

http://www.skyscanner.com.my/
- link to flight website, you no need to search the ticket again in the flight website

http://www.kayak.com/
- link to flight website, you no need to search the ticket again in the flight website
- hacker price available(leave and return ticket is from different flight company)
- link to travelocity and vayama

Friday, October 5, 2012

Malaysia:Carrefour catalog (05-11 Oct 2012)

The Carrefour website load too slow...
so
























































Friday, September 28, 2012

Use session in model

CakePHP way:

 App::import(‘Component’, ‘SessionComponent’);  
 $session = new SessionComponent();  
 $auth = $session->read("Auth.user");  

Normal PHP way:
 $auth=$_SESSION['Auth']['user'];  

Tuesday, September 25, 2012

Credit card for Movie

GSC - Visa 1 for 1

Buy 1 get 1 free ticket and win a 7" Samsung GALAXY Tab with GSC Cinema

Purchase one movie ticket online via www.gsc.com.my with your Maybank Visa card and get another one for free - any class, any day
Valid from 17 September to 31 October 2012

GSC Silver Jubilee Celebration Contest

Win a 7" Samsung GALAXY Tab
Valid from 1 October to 18 November 2012
Eligible cards (for both promotions): Valid for ALL Maybank Visa Debit and Credit cards


Terms and Conditions:

Free ticket is only valid for the same movie screening as the purchased ticket, maximum 2 transactions per day per Visa card.

Applicable across all GSC Outlets within Malaysia, available every day of the week, across all seat classes.

Only available for online purchases.

Contest details are made available on GSC website: http//www.gsc.com.my

For the contest, the judges' decision is final and no correspondence will be entertained

Payment must be settled with Maybank Visa card to enjoy the privileges

Am bank


50% Cash Back at Cathay, GSC, MBO & TGV




- From 15Aug to 15 Dec 2012 and is only applicable to ticket puchases made on weekend
- The 50% cash back is only applicable for cardmember who accumulate a minimum retail spend of RM500 during that month excluding the movie ticket purchase price.
- Cash rebate capped:
* RM 30/month for gold/classic card
* RM50 for Platinum / Signature / World / Infinite Card
- The rebate pool is capped at RM20,000 per month.

Sunday, September 23, 2012

Install phpMyAdmin in Ubuntu (apt-get install)

1.
sudo apt-get install phpmyadmin

2. Configuration
If /etc/phpmyadmin/apache.conf or /etc/apache2/conf.d/phpmyadmin.conf not exist,
symlink /etc/phpmyadmin/apache.conf file to /etc/apache2/conf.d/phpmyadmin.conf.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf


Wednesday, August 29, 2012

Temporarily disable 'modified'

-set 'modified' => false
eg:
  function view($id){  
      $this->data=$this->Item->read(null,$id);  
      $this->data['Item']['view']+=1;  
      $this->data['Item']['modified']=false;  
      $this->Item->save($this->data);  
 }  

Saturday, August 11, 2012

电吹风机之妙用

风干
  • 衣服 -- 没干的衣服急着穿时,可用电吹风机的热风对着吹,很快就会干了。
    P / S:放到袖筒,裤管中效果更好。
  • 鞋子潮湿而又需要穿时,可用电吹风机向鞋内吹几分钟,能快速干燥。
    P / S: 
    鞋面被雨水等打湿时要阴干,不能用此法,以防皮变硬,开裂。
  • 刚洗过的瓶子,杯子想马上干燥,可甩几下水,用电吹风向瓶内吹几分钟。

去受潮
  • 饼干等食品受潮变软不好吃了,可用电吹风机吹一下,恢复酥脆口感。
  • 电视机,收音机等家电的电子元件受潮,可用电吹风机除湿去尘。
  • 受潮有霉味的衣柜,箱子,用电吹风机吹后霉味可减轻。


去貼紙
  • 标签不好撕掉,可用电吹风机热风吹一下,就能轻松而不留痕跡地撕下來了。

调身体
  • 感冒着凉,可用电吹风机对着嘴,鼻吹热风,能使流涕停止,并减轻不适。
  • 冻疮初起时,用电吹风机对着患处吹热可缓解。
  • 患肩周炎時,可用电吹风机的热风吹肩部,並按摩,每日2次,每次10分鐘,可以缓解不适症狀。



    Friday, August 3, 2012

    To use controller function in model


     App::import('Controller', 'App');  
     $appController = new AppController();  
     $appController->constructClasses();  
     $appController->Session->setFlash('ACCESS DENIED');  
     $appController->redirect('/');  
    

    Sunday, July 29, 2012

    海水缸中了白点??

    治疗办法:


    1 渗透压法

    改变盐度至1.008或者1.009,直到最后一次发现白点的四周后。之后再慢慢上升盐度,同时再观察病鱼4周。这个治疗办法比较难以控制PH以及水质,但鱼儿压力较小。

    2 铜药法

    药水的说明书怎么写,你就怎么办。一般2-4周见效。治疗结束后,停药,并观察病鱼4周。铜对鱼是有毒性的,也会造成鱼只一定的压力,他们可能会停食。

    3 隔离法

    将病鱼不停从一个鱼缸转移到另一个鱼缸,以隔绝脱离下来的卵囊和病鱼。此大法最起码需要两个检疫缸,鱼儿在治疗时相当遭罪

    p/s: 不要将渗透压大法和铜药大法同时进行。渗透压大法将导致缸内PH震荡,而PH降低的直接后果是铜会对鱼只造成致命的毒害。除非你使用Cupramine这样构成较复杂的铜药。就算如此,还是建议不要将两种大法混用。

    **因为白点虫没有潜伏期,存在时间最长的卵囊大概有60天左右, 所以把缸里所有的鱼移走至少8周,不要把来路不明的海水和活石加入缸中,维持过滤、照明和正常喂食,这段“空窗期”对于根绝缸里的白点寄生虫,成功率高达99.9%。 


    无效但又被广传的方法:

     1 淡水浴法


    淡水浴大法可以杀死鱼体上的一些寄生虫,但部分寄生虫躲在鱼的粘膜下还是会逃过一劫。



    医生虾


    寄生虫寄生在鱼体的时候会钻到粘膜和皮肤的下方,所以医生虾之类的动物对白点寄生虫是无能为力的。


    详细, 参考:海水白点病的事实与真相

    Tuesday, March 6, 2012

    Good online pratice

    PHP-Preg_match
    http://www.functions-online.com/preg_match.html

    Javascript
    http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace3

    Css
    http://www.w3schools.com/css/tryit.asp?filename=trycss_default

    Saturday, March 3, 2012

    SVN: ignore tmp folder in cakephp

    when u are in the cakephp dir
    $ cd app
    $ svn export tmp tmp2
    $ svn rm --force tmp
    $ svn ci -m "remove tmp folder"
    $ mv tmp2 tmp
    $ svn propset svn:ignore tmp .
    $ svn ci -m 'ignoring tmp folder'

    Saturday, February 25, 2012

    泡澡

    • 生姜浴:
    • - 方法:将生姜磨成泥,取约40克左右,挤出姜汁,到入热水中既可。若嫌不够辣可以将姜直接放入。
    • 辣椒浴:
    • - 方法:视水量取5--10只辣椒(红六绿均可)。把辣椒切成小圆圈,与橙皮混合放入旧丝袜~ 纱布中泡入温水中。 如但心太刺激可到入少许醋。
    • 牛奶浴:   
    • - 方法1:倒1公斤牛奶到水里,用手搅拌均匀,让水 变成半透明。 泡澡时间不宜超过20分钟,水深不超过心脏。 
      - 方法2:把略经稀释的牛奶涂抹在身上,15分钟后冲净,能够使皮肤光滑细腻。 
      - 功效:牛奶具有养心肺、润皮肤、补益五脏、生津止渴功效,用牛奶美容可以使皮肤细嫩,头发乌黑发亮亮。
    • 橘子,釉子,柠檬水果浴:  
    • - 方法:将橘子皮放入旧丝袜中,在通风处晾上约一星期。将晾好的陈皮和干燥剂放入密封罐中保存。洗澡时,先抓一把陈皮放在旧丝袜里,即可丢入水中。其他如釉子,柠檬等材料,不需要风干,只要把水果切成薄片,泡进水里即可。
    • 桑叶浴:
    • - 方法: 将干桑叶100克左右,放入锅内,加热熬10-15分钟后,倒入浴盆晾温就可洗用。
      - 功效:具有散风清热、明目等功能。用它作为浴水洗澡,护肤不脱脂,特别是皮肤粗糙者,用后可使皮肤变得细嫩。
    • 薄荷浴:
    • - 方法:取鲜薄荷200克或干薄荷50克放入锅内,加水煎取药液,倒入浴盆就可。 
      - 功效:薄荷叶有散风热、止痒的作用,对外感风热、皮肤发痒、咽喉肿痛、眼结膜充血等病症的人洗浴特别有效。夏季常用此浴法,可预防湿疹、痱子等皮肤病。
    • 菊花浴:
    • - 方法:用鲜菊花500-800克,加水放入锅内,煎成汁倒入浴盆,晾温就可浴用。 
      - 功效:菊花有散风清热,平肝明目的功能。它可防治头晕、眼花等症状,还可使皮肤细嫩洁白。
    • 草药浴:  
    • - 方法:把菊花、熏衣草等草药用文火熬1小时左右,滤去药渣,倒入洗澡水中。注意在洗草药浴时,不要使用香皂或浴液。 
      - 功效:可以促进血液循环,治疗各种疾病,使皮肤光洁。
    • 菖根浴:
    • - 方法:用菖根 50-100克,加水熬汁,倒入浴盆,待温即可用,效果非常好。 
      - 功效:中老年人及肤色较黑的人适用此浴法。因菖根具有镇痛、降压、降血糖,消除皮肤老年斑、汗斑的功能,使关节灵活,肌肉收缩,不易疲劳。
    • 蓟草浴:
    • - 方法:将其洗净放入锅内,加水煎熬半小时左右,过滤去渣,晾温即可洗浴。 
      - 功效:蓟草,有止血、散瘀的功能。洗后可增加皮肤的弹性。特别是一些产妇,可加些地榆、槐花,用以洗涤肛门,既有止血效果,又可防治痔疮、肛裂等疾病。
    • 米糠浴:
    • - 方法:只需将200—300克米糠装入小布袋中,加水煮沸,挤出米糠汁,即可用来浸泡洗浴。稀释浓度可因人因病制宜。泡米糠浴时宜用温水。每次浸泡约15分钟,搔痒症状即可改善,且无任何副作用。 
      - 功效: 对皮肤病、湿疹患者,米糠浴可以改善病情。一般来说,米糠中含有脂肪及蛋白质,可使肌肤光洁嫩滑;其中焦油成份更对皮炎、湿疹和脱皮性湿疹有效。
    • 小苏打浴: 
    • - 方法:在浴池中加入少许小苏打粉。 
      - 功效: 可有效去除皮肤表面的污垢、皮脂腺的堵塞物及分泌物。可使肌肤光洁嫩滑;
    • 盐水浴: 
    • - 方法1: 在水中加入200克食盐。 
      - 方法2:站在浴缸中,直接將鹽揉擦肩部、雙臂、臀部及下肢,以旋轉式揉擦,必要時多用一些鹽。可同時塗上植物油或將鹽與牛奶混合使用(如皮膚太乾)。 - 功效:鹽浴能清潔皮膚、結實肌肉、可以迅速恢复体力,同时还有减肥作用。還有殺菌和去異味的作用
    • 香醋浴:
    • - 方法: 在水中倒入500克醋 - 功效:可使乾燥、發癢的皮膚舒適,治療曬斑,並可使皮肤洁白细腻,延缓衰老过程。
    • 白酒浴:  
    • - 方法:在水中倒入200克白酒。 
      - 功效:可使皮肤光滑柔软,富有弹性,还可以治疗关节炎和皮肤病。
    • 麦片浴:  
    • - 方法:把麦片用开水冲开,混入浴缸。
      - 功效:滋润干燥的皮肤。
    • 花香浴: 
    • - 方法: 把玫瑰花或菊花放在水里煮10分钟,过滤去渣,混入洗澡水,再加入2匙蜂蜜。 
      - 功效:帮助收紧毛细孔,光洁肌肤,消除小皱纹。
    • 茶浴:
    • - 方法:泡一杯濃茶,泡五到十分鐘後,放進浴缸。 
      - 功效:保持黝黑皮膚
    • 葡萄酒浴:
    • - 方法:将浴缸中的水温调到比体温高度后,倒入红葡萄酒3—4杯,搅拌均匀。视自己的身体状况,浸泡不同的时间长 
      - 功效:含有丰富的多种矿物质,如磷、钙、铁、镁、铜等,抗氧化的多酚,预防动脉硬化、心脏病、中风,改善冷虚症、睡眠等方面技高一筹,略带微涩的丹宁可舒缓压力、镇定精神、消除疲劳、调理体质、改善肤质,维滋润肌肤、明目,硼降低胆固醇
    • 玉米浴擦揉:
    • - 方法:將玉米粉和杏仁油擦在皮膚上,再以指尖做小圈圈式揉擦,直到皮膚感到溫暖。並以溫水洗去育米粉和杏仁油。 
      - 功效:可使油性皮膚,柔軟,並消減日曬的痕跡。
    • 燕麥粥擦揉:
    • - 方法:直接用燕麥粥擦在皮膚上 
      - 功效:可吸收皮膚的油脂。
    • 木瓜擦揉
    • - 方法:將新鮮木瓜搗碎,將碎肉塗抹身體半小時 
      - 功效:因木瓜富含維生素A、C、K及一種可除去乾枯細胞的消化酵素─木瓜素。以毛巾擦揉全身,可去除死細胞。

    Tuesday, January 10, 2012

    List all Action in All Controller

     function allControllerAction(){     
          $controllerClasses = App::objects('controller');  
          foreach($controllerClasses as $controller) {  
               if ($controller != 'App') {  
                    App::import('Controller', $controller);  
                    $className = $controller . 'Controller';  
                    $actions = get_class_methods($className);  
                    foreach($actions as $k => $v) {  
                         if ($v{0} == '_') {  
                              unset($actions[$k]);  
                         }  
                    }  
                    $parentActions = get_class_methods('AppController');  
                    $controllers[$controller] = array_diff($actions, $parentActions);  
               }  
          }  
       return $controllers;   
     }  
    
    }