Author Archives: ufnec

Getting client’s real IP behind reverse proxy

The problem: when try to retrieve client’s ip in Laravel with $request->ip(); it always return the reverse proxy IP address. In order to retrieve the client’s real IP the frontend server has to forward the client’s IP into the backend … Continue reading

Posted in Development | Tagged , , , | Leave a comment

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