Summary of 4+ Years Using Linux/Ubuntu :penguin:

:exclamation: My story :exclamation:

I bought my first computer :computer: when I was in high school in around 2012 :smile:, it was Samsung netbook NP/NC-108, I was really excited about that, I had no idea what programming is, what exactly is linux OS or even Ubuntu. I have already familiar with windows OS and my shiny new computer was pre-installed with windows 7, I used my computer just to listen to music, playing some strategy and fun games, watching movies, finding new fun apps, playing/hacking with OS configuration/customization, and also I did graphics design (Photoshop & CorelDraw). I didn’t do anything special with my computer, because I was a dumb.

Click to read more ...

Algoritma Minimax Pada Game Tic-Tac-Toe Android

Apa itu MiniMax

Minimax merupakan suatu algoritma yang digunakan pada pembuatan keputusan dan game theory. khususnya zero-sum game yang dijalankan oleh dua pemain secara bergantian, algoritma ini mencoba untuk mencari langkah yang paling optimal untuk pemain untuk bisa memenangkan permainan, dengan asumsi bahwa lawan juga bermain secara optimal. contoh game ini seperti Tic-Tac-Toe, Backgamon, Catur dsb.

Click to read more ...

Implement Launch Screen/Splash Screen for Android App - The Right Way

I’ve seen many people & friends implemented launch screen (splash screen) on their apps by creating a new activity that shows an image/brand or whatever is inside that launch screen, made it as a default launcher activity, used some codes to wait/delay (stay) on that launch screen activity for about 3 to 5 seconds, then brought you to the main screen/feature of that app.

I think it’s really weird to make user wait for nothing for that amount of time.

Todays post will show you how to make launch screen for android using a theme and won’t delay anything. Here how it looks like.

Click to read more ...

Save and Restore ScrollView and RecyclerView Scroll Position in Android

There are lots of suggestions in the internet on how to save & restore scroll position in android scrollable view, from saving the scroll (x, y) position in onSaveInstanceState(Bundle outState) then restore it in onRestoreInstanceState(Bundle savedInstanceState) and even creating a child class of ScrollView to do this saving & restoring tasks, etc.

Actually it much simpler than I thought, we don’t need to do anything else to have the same behaviour, the framework (ScrollView and RecyclerView) has done the job for us.

Click to read more ...