Dec 5, 2020

好好纪念一下今天 - sports-wear.com.my

 今天是值得纪念的!!

因为我终于把最新的boostrap 网站呈现给顾客了。。。

旧的设计


新的设计

还有就是可以大大声和google 老大讲。。 
我已经是mobile friendly 啦!!





May 23, 2020

Integrate Paypal button with custom value

Successfully integrate with Paypal button with pass over different amount based on the selection.




paypal.Buttons({
createOrder: function(data, actions) {
// This function sets up the details of the transaction, including the amount and line item details.
mySelectedVal = document.getElementById("abc");
return actions.order.create({
purchase_units: [{
amount: {
value: mySelectedVal.options[mySelectedVal.selectedIndex].value
}
}]
});
},
onApprove: function(data, actions) {
// This function captures the funds from the transaction.
return actions.order.capture().then(function(details) {
// This function shows a transaction success message to your buyer.
alert('Transaction completed by ' + details.payer.name.given_name);
});
}
}).render('#paypal-button-container');
//This function displays Smart Payment Buttons on your web page.

Mar 31, 2020

香脆家乡韭菜虾饼食谱

香脆家乡韭菜虾饼食谱:
材料(A):
软壳小中虾
韭菜 1颗,切颗粒
洋葱 1大粒,切丁
芹菜叶 1颗,剁碎
红萝卜 半条,切丝
材料(B):
粘米粉 2大汤匙(让虾饼脆的)
面粉 3大汤匙
水大概半碗
胡椒粉 少许
盐 小半汤匙 (自己试味道)
做法:
1。材料(B)是面糊,所有材料(B)搅拌均匀。
2。将材料(A)放入面糊内(B)
3。用汤匙一汤匙一汤匙的慢慢放入韭菜面糊进入油锅内炸至金黄就可以了

Mar 28, 2020

Website Upload Photo progressing

I need to improve website's coding and website's UI; so that my website will NOT out of date.  From normal coding, until JQuery, until booststrap;   I need to keep on improve it. 

Example, upload photo progress update. 

At first, the UI as below diagram.  Very old fashion design. 


Then I improve it to this (below diagram).

Found out some issue on the second upload photo design.  Every time I need to upload all the photo again.  OR I can't just upload the specify number of photo which I want.  Example, In order to change third photo, then I need to upload all THREE photo again. 

In order to solve that, then I come out this. 


So that I can delete OR change which specify number of  photo I want. 

Mar 22, 2020

封城下的故事


韵律操老师在whatsapp群里, 叫学生们做一些有意义的事。  就比如,体操练习, 画画。。。

女儿知道后, 就马上着手画了这幅画。 文字是以彩虹的颜色排序而成,红橙黄绿蓝靛紫。

在基督里, 彩虹有着另外一个深沉的意义。

創9:11-13 「我與你們立約,凡有血肉的,不再被洪水滅絕,也不再有洪水毀壞地了。」神說:「我與你們並你們這裡的各樣活物所立的永約是有記號的。我把虹放在雲彩中,這就可作我與地立約的記號了。」


当大家都在担心 COVID-19 病毒的侵略的时候, 这个信息带给了我们, 神和我们有约。我们尽管放心, 把一切交付于。 

Jan 15, 2020

最后的晚餐



俗语说:
上帝每关上一扇门,就会打开一扇窗。

As what boss said, "The very, very, very last WNS MY dinner".

See you all soon!!!

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)   泳衣