Langsung ke konten utama

Postingan

Ubah sibuk jadi produktif. Bedah buku`Smarter Faster Better by Charles Duhigg`.

Kali ini gw mau share tentang apa yang gw dapet dari hasil baca buku `Smarter Faster Better by Charles Duhigg`. Jujur buku ini menarik banget. Buku ini ngajarin gimana caranya kita lebih produktif berdasarkan pengalaman atau kejadian sebelumnya dan beserta penelitian yang dilakukan oleh neurolog di bidang saraf. So, check this out. Produktivitas bukanlah perihal bekerja lebih banyak atau bercucuran keringat lebih deras. Di buku ini dijelasin kalo produktif itu bukan berarti lu sibuk. Justru definisi produktif sebenernya itu ketika lu gunain waktu dengan sebaik baiknya, ngelakuin hal hal yang menurut lu itu penting, less efforts and no stress. Dan tiap orang punya arti produktif yang berbeda beda. Misalnya, untuk orang kantoran yang nyempetin olahraga 30 menit lalu nyempetin baca berita berita sebelum pergi ke kantor udah nganggep dirinya produktif. Atau produktifnya seorang ibu rumah tangga itu bisa jadi selesai membereskan rumah sebelum anak anaknya pulang dari sekolah. Tapi untuk se...
Postingan terbaru

How to switch php in linux

I have 2 version php in my linux. Php version 5.3.8 and 7.0. So how i switch them? 1. check your php version $ php -v 2. and then, add path .bashrc $ nano ~/.bashrc 3. add the path that you install php in the end of line PATH=/opt/lampp/bin:$PATH 4. and save file 5. restart your terminal and check your php version

How to install Go Lang in Linux

1. Download the package in https://golang.org/dl/ for linux 2. Open your terminal and set the path in your package location 3. Extract the file with this command -> tar -C /usr/local -xzf name_of_package 4. Export path for go lang. Follow this command -> export PATH=$PATH:/usr/local/go/bin 5. Finish. Go lang already install in your computer. If you wanna test the installation work or not follow this step : 1. create new directory src/hello in /usr/local/go/bin $ mkdir hello 2. create file hello.go inside src/hello. the file content is like below : package main import "fmt" func main() { fmt.Printf("hello, world\n") } 3. and then set the path to src/hello and run this -> go build 4. for run the file, run this command -> ./hello 5. if you see "hello, world" message then your installation is succesfully. Thnks for reading. If you have a problem please feel free to email me in yasminghassani@gmail.com. And i hope i can help yo...

Smartgit can't open in java 1.7

I have a problem when i change my java version from 1.8 to 1.7. The problem is my smartgit can't run and open. So, how to fix it? It's so easy. Just follow this step!! 1. Check your java version $ java -version. In terminal that it show if the version of java is 1.7. So we need to change it because smartgit only run in java 1.8. 2. Run in terminal $ nano ~/.smartgit/smartgit.vmoptions 3. And then add this jre=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ 4. Save the file and try open your smartgit. Tadaaaa...!!! And its work :) Thanks for reading! Give like if its work and usefull.

JSX in REACT

React dapat menggunakan 2 tipe javascript yaitu : 1. Javascript yang biasa kita gunakan, dan 2. JSX yaitu javascript yang penulisan syntaxnya seperti XML. JSX memudahkan untuk mendefinisikan struktur yang berupa tree Dalam penggunaannya, JSX menggunakan 2 tipe dalam penulisan variabel dimana variabel yang diawali dengan huruf kecil adalah untuk mengenali html sedangkan variabel yang diawali huruf besar untuk mengenali komponen dari react itu sendiri. Lihat contoh dibawah ini : - Penulisan variabel untuk render HTML var myDivElement = < div className = "foo" /> ; ReactDOM . render ( myDivElement , document . getElementById ( 'example' )) - Penulisan variabel untuk render komponen React dan HTML var MyComponent = React . createClass ({ /*...*/ }); var myElement = < MyComponent someProperty = { true } /> ; ReactDOM . render ( myElement , document . getElementById ( 'example' ));