Jun 26, 2019

请问你会把你的弱点放在最显眼的地方吗?

请问你会把你的弱点放在最显眼的地方吗?

还是你会把你的弱点放在最适当的地方?

就好像一个网站, 你还没做好付费的连接, 你会把这个信息放在网站的第一页吗?

还是你就让顾客下订单, 然后, 到了付费的时候才告诉顾客。 
这样你的单继续收, 钱慢点收。 重点是顾客下订单, 对吗?

你把这个信息放在第一页, 你是帮公司倒米; 也间接把顾客对公司的信心毁掉了。。。

Jun 13, 2019

Google reCaptcha - file_get_contents problem

Finally I solved Google reCaptcha problem.

I was followed exactly what's Shahid Shaikh wrote in his article - google-recaptcha-tutorial
But then I am getting empty response.

$url = 'https://www.google.com/recaptcha/api/siteverify?secret='. urlencode($secretKey) .'&response='. urlencode($captcha); 
$response = file_get_contents($url);

I knew the problem is on file_get_contents($url),  because I tried to put the URL into browser and its 100% working well.

Uhmmmmm..................

Then I tried to change it to using PHP CURL. 

$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL ='https://www.google.com/recaptcha/api/siteverify',
CURLOPT_POST = true,
CURLOPT_POSTFIELDS = [
'secret' = $secretKey,
'response' = $captcha,
'remoteip' = $_SERVER['REMOTE_ADDR']
],
CURLOPT_RETURNTRANSFER = true
]);
$response = curl_exec($ch);
curl_close($ch);
$responseKeys = json_decode($response,true);



Its work perfectly with PHP CURL. 



Jun 4, 2019

福州歇後語- 蚊咬牛角

最近学到的一句福州歇後語- 蚊咬牛角 (用福州话讲)

意思是被人欺负了, 还不知道发生什么事。
最后,那只牛死掉。


蒙蒙查查。。。

Mar 12, 2019

Sg Lembing, Kuantan Itinerary Plan - 林明村

第一天
- 吉隆坡启程 (4小时路程)
- 参观 Muziam Sungai Lembing
- 参观 林明锡矿隧道

- 吊桥
- 水晶屋 (入门费 - RM2)
- 拍照

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

第二天
5:30am - 12:00pm  彩虹瀑布
12:00pm - 2:00pm  午餐
2:00pm - 6:00pm    补眠
5:30pm - 7:00pm    阿定柴香烧肉
7:00pm - ???           晚餐

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

第三天
5:50am - 8:00am  日出, 云海
8:00am - 10:00am  早餐 -- 阿鳳山水豆腐
10:00am - 12:00pm  酒店休息, 收拾东西
1:00pm - 5:00pm      回吉隆坡

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


准备项目
1)运动鞋
2)拖鞋
3)手电筒或大头灯
4)盐 
5)电话 / 相机 / power bank
6)   泳衣