Menyingkat if else

You may recall from Comparison with the Equality Operator that all comparison operators return a boolean trueor falsevalue. Sometimes people use an if/else statement to do a comparison, like this: function isEqual(a,b) { if (a === b) { return true; } else { return false; } } But there's a better way to do this. Since ===returns trueor false, we can return…Read more Menyingkat if else

How to make “Love” with CSS

<style> .heart { position:absolute; margin:auto; top:0; right:0; bottom:0; left:0; background-color:pink; height:50px; width:50px; transform:rotate(-45deg); } .heart:after { background-color:pink; content:""; border-radius:50%; position:absolute; width:50px; height:50px; top:0px; left:25px; } .heart:before { content:""; background-color:pink; border-radius:50%; position:absolute; width:50px; height:50px; top:-25px; left:0px; } </style>

When your sudo apt-get update verylong time????

Hy guys, are you have a problem to your apt-get update ? read it beacause i have a solution for your troble, you just do it , in your teminal sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update may be useful guys.... reference : https://askubuntu.com/questions/156650/apt-get-update-very-slow-stuck-at-waiting-for-headers?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Cara mengatasi error npm install di linux dalam project laravel

Hai semua disini saya ingin mendocumentasikan error yang pernah saya alami saya belajar vue js di laravel, saat setelah saya menginstal vue router dan bulma di project laravel saya, lalu saya menjalankan npm install di terminal yang terjadi setelah lama menunggu installanya terjadi error seprti ini sh: 1: node: not found bla bla bla ............ tentu…Read more Cara mengatasi error npm install di linux dalam project laravel

How to Export Import excel in Laravel

You can see this video  Export Excel   part 1 untill 3, if you get an error export excel view your log laravel in directory storage/log/laravel.log . if error like this local.ERROR: Class 'ZipArchive' not found {"exception":"[object], this is because your php not found ZipArchive, you can download with copy paste this code on terminal sudo apt-get install…Read more How to Export Import excel in Laravel

Cara mengupdrade php apache di ubuntu linux

Assalamu alaikum bismillah, hai semua hari ini saya ingin menuliskan sebuah tutorial cara meng-Upgrade php apache kalian Jalankan perintah ini di terminal kalian sudo add-apt-repository ppa:ondrej/php Selanjutnya update lah linux kalian dengan cara ketikan kode ini di terminal sudo apt-get update Sekarang mari kita lanjutkan meng Upgrade phpnya dengan cara salin kode di bawah ini…Read more Cara mengupdrade php apache di ubuntu linux