Showing posts from 2018

How to use ntpd to setup and sync Hong Kong Time From Gov 2018

First install NTP using: yum install -y ntpd (CentOS) or sudo apt install -y ntpd (Ubuntu)Edit the ntp config file.  Under CentOS it is /etc/ntp.conf
Find the section where it shows:server iburstserver iburstserver iburstserver iburstComment it out (Adding # at the beginning of each line):# server iburst# server iburst# server iburst# server iburstAdd the following line (as of 10 Dec 2018 from  No need to put # at the beginning.  For latest server list please go to: preferserver the file and exit.Final output:Stop the service first: systemctl stop ntpd.serviceAfter stopping the service, trigger the synchronization by typing: ntpd -gq to force the sync.  If success, it will …

How To Edit Business Description in Paypal?

To people who have difficulties in finding where is the place to edit your business description and other settings, here is the step by step method with screenshots (Text in Chinese, but the concept should be the same):

- Go to Tools > Request for payment (Yes it is super stupid!)

- On the bottom right hand corner, you can see (Manage your Paypal.Me Profile)

- Click on the top left hand corner "Manage Your Profile":  Info hidden for security purpose.

- In your profile, click the "Update" link beside your personal message. - Finally, edit your info and save!
One of the most stupid thing is this: you cannot edit your profile while clicking the gear icon on top right.  You cannot find any link that allows you to edit your description.
There are other stupid thing also: it is difficult to find out where to manage your periodic payments also ( I know where it is finally after searching on Google!).  But that doesn't matter.

香港銀行編號/代碼及分行編號/代碼一覽表 2019


XLS - 按此下載

PDF - 按此下載


[Solved] CodeIgniter/CI 3 - 404 Page not found (with or without subdirectory) problem

Check the following if you have 404 Page Not Found error when you deploy your CI application to Linux, while there is no problem under MS Windows.

Check if your controller file name and class name inside that file have identical (not ONLY the same, but Identical) name.  For example, if your controller class name is MyController, your controller file name must be: MyController.php.  mycontroller.php does not work, Mycontroller.php does not work.  It MUST BE MyController.php, identical to class name MyController.
Hope it helps.

[Solved]LiveAgent (LADesk) Rules HTTP Request What is inside HTTP Body?

In short, if you don't know what should be put inside the HTTP Body field when you are using HTTP request as rules, here is the string that contains "Everything".

Just copy and paste the below code to your HTTP Body box and you will get everything sent from LA to your URL.

---- Start Here -------

Microsoft BotFramework - Why my image not show on FB?

One of the reason is because MS BotFramework is assuming you to use HTTPS for everything (link especially).
So if your message outgoing link is not HTTPS, you may not be able to show the image in your FB messenger.
Hope it helps someone.