To use nl2br() function to return the new lines or html markup a data stored within your database within blade template, you should use the following format: {!! nl2br(e($content)) !!}
Delay in JavaScript Loop
setTimeout is not the answer when it comes to delay in loops in Javascript. Using setTimeout will cause the first cycle to have the delay and then it will run to the end of the loop from the second time. for (var i = 1; i < 100; i++) setTimeout(function () { console.log(‘hello’); }, 2000… Continue reading Delay in JavaScript Loop
upgrading to php 5.6 in vesta cp
Yesterday I was told to set up a new php server in company for some small project. I did not really want to set everything up manually as the person who will be using this server is not geeky. So by looking around I came to find Vesta Control Panel aka VestaCP. it sounds lightweight… Continue reading upgrading to php 5.6 in vesta cp
a Week with Arrow Launcher
It’s been a week that I received my new Moto X Pure edition. One of the first things that I was planning to do when I got the phone was trying out Arrow launcher. The Android launcher from Microsoft. Before anything I really admire how Microsoft does dedicate time to develop softwares for other platforms… Continue reading a Week with Arrow Launcher
Me and My Moto X Pure Edition
It’s finally here, For the past 24 hour I was busy all playing with it. Finally my Moto X arrived. Although I was supposed to receive it today, I could not resist waiting and I went to the Local courier Skynet and pick it up myself. All I can say, it’s awesome and I’m not… Continue reading Me and My Moto X Pure Edition