Category Archives: Development

Macbook Pro 2011 defective GPU

GPU recall were done back in 2015, and now it failed again. This is how I fixed the 2011 Macbook pro with defective AMD GPU, boot into command line and remove all those AMD driver, this will force the OS … Continue reading

Posted in Development | Tagged , | Leave a comment

Laravel using captcha validation

install captcha dependence with composer add the class interface into ‘providers’ section in config/app.php define alias into the ‘alias’ section execute command to create configuration file edit the config file accordingly in config/captcha.php the code to show the captcha in … Continue reading

Posted in Development | Tagged , , | Leave a comment

PHP convert character encoding to UTF-8

a simply function that detect character code and covert to UTF-8

Posted in Development | Tagged , , | Leave a comment

Excel mask out card number

The following code will mask out the card number

Posted in Development | Tagged , | Leave a comment

Convert number into chinese string with php

convert from int to chinese string e.g. 125 -> 一百二十五 2. convert from chinese string into int, eg. 一百二十五 > 125

Posted in Development | Tagged , | Leave a comment