
Happy Anniversary my dear WordPress!
If it was an actual relationship that I had, i might consider marrying you any day soon :p
Someone once said to me, “You will find a lot of door of opportunity in the following years”. They also said, “Sometimes you need to close one of the door in order for you to find others”. What they said seems good and logical, one door that you close will enable you to find other door leading you to possibly brighter different path.
What they didn’t know is the following: What if most of your doors that you’ve opened up until know are indeed the doors that define who you are. Doors that you constantly open while believing there will be some kind of hidden treasure in the end. Doors that you constantly open while they improve yourself in the process.
Or maybe, the perfect image that we built of this ideal goal only exist in our mind. Yes it’s good in the sense that it enables us to grow in our full potential, but it’s not real. Maybe we need to start realizing that life is not a maze where there is exist only one route to a goal. Life is indeed full of possibilities and offers multiple ways. It’s only up to us to explore what life brings.
But that’s only possible if we are brave enough to close one door and search another.
Computer scientists tend to think in worse case scenario. “Is this code secure enough?”, “What if it isn’t?”, “What if someone try to do this way in my code?”, “How fast is my algorithm? What if i use more data?”, and so on and so forth. In achieving so, and over-worrying that, they often forgot that they can do more with their time and man-resources.
Sometimes that mentality makes them see the world through the over-worried hyper-pessimistic spectacles. “Am I doing this correctly?”, “What if someone come and ruins my expectation of the world?”, “Can I survive this?”, and so on and so forth.
According to Abraham Maslow in his famous Hierarchy of Needs, commonly drawn as a triangle with leveled sections, we as human need to fulfill our basic needs at the base before we can fulfill our other needs in the top level. He split the triangle into two distinct sections: the four very bottom levels called “defficiency needs” (consists of Physiological, Safety, Love and Belongingness, Self-esteem) and the four very top levels called “growth needs” (consists of Cognitive, Aesthetic, Self-actualization, Self-transcendence). In order for us to fulfill something in the “growth needs” parts, we need to fulfill our “defficiency needs” parts, all of it, Maslow said. He also said that the two very top parts of the Hierarchy of Needs define the purpose of our life, self-actualization (fulfilling our personal potential) and self-transcendence (the need to move beyond the self and connect to something higher, such as God, or help others realize their potential).
But have you ever feel that when you feels so disconnected with God you feel that your whole needs are not fulfilled? You feel like you are living your life in such routine that makes you feel like an autonomous working zombie. Sometimes we need to see the Pyramid from the top, an aerial view. Sometimes we need to get closer to God in order for God to grant us with what we need in our life, and fulfill it.
So yeah, sometimes change in point of view is needed.
Credit, i adopt this material based on the book “The Psychology Book” p138 ISBN-13: 978-0756689704
Misalkan kita sedang ada di sebuah kuis televisi swasta terkenal dan kita ada di suatu babak dalam kuis tersebut dimana kita diminta untuk memilih satu dari tiga tirai. Dari ketiga tirai tersebut satu berisi hadiah mobil mewah (harganya satu miliar rupiah, misalkan aja :p) dan dua lainnya berisi zonk (bayangin isinya kambing yang udah tua :p). “Silakan memilih salah satu tirai” sang pembawa acara menawarkan kepada kita. Kita memalingkan pandangan ke arah penonton. “Nomor satu!” salah satu teman terbaik kita berkata. “Iya, pilih nomor satu aja!” teman kita yang satu lagi menimpali. “Saya pilih tirai nomor satu!” kita berkata ke sang pembawa acara. “Anda yakin?” sang pembawa acara bertanya. Kita yang ngerasa sangat yakin dengan pilihan pun menjawab “Saya yakin!”. Sang pembawa acara yang pastinya mengetahui isi dari ketiga tirai tersebut akhirnya berkata “Baiklah, sekarang mari kita buka tirai lainnya!”, sembari membuka tirai nomor tiga. Ternyata tirai tiga adalah zonk! Isinya seekor kambing. “Wah anda beruntung tidak memilih tirai nomor tiga” sang pembawa acara berkata. “Apakah anda ingin mengganti pilihan tirai anda?” dengan raut muka yang baik hati sang pembawa acara memberikan tawaran kepada kita. “Hmmm…” kita berpikir dengan serius. Haruskah kita mengganti pilihan kita?
Ya! Kita sebaiknya mengganti pilihan kita. Dalam hal contoh diatas kita sebaiknya mengganti pilihan tirai kita menjadi tirai dua, karena kemungkinan untuk memenangkan mobil lebih besar. Loh kok bisa? Bukannya kemungkinan untuk menang mobil di tirai dua dan tirai satu sama besarnya? Salah.
Jika kita tetap pada pendirian kita, kemungkinan untuk memenangkan mobil adalah 1/3, sedangkan jika kita mengganti pilihan tirai kita maka kemungkinan untuk memenangkan mobil adalah 2/3, 2/3 tentunya lebih besar daripada 1/3 bukan?. Eh tunggu, itu kenapa ada angka tiga? Bukannya sisa tirainya cuman dua? Berarti kemungkinan keduanya cuman 1/2 dong? Salah.
Sekarang coba kita ganti jumlah tirainya. Misalkan sekarang ada 1000 tirai, dan salah satunya berisi mobil mewah serta kapal pesiar (misalkan aja sih :p) sedangkan 999 lainnya berisi zonk (bayangin kambing aja deh ya biar gampang). Misalkan kita memilih tirai nomor 1 (bisa tirai nomor berapapun sebenarnya) dan sang pembawa acara membuka 998 tirai lainnya dan ternyata semuanya berisi kambing. Tirai yang tersisa hanya tinggal tirai nomor 1 yang tadi kita pilih dan satu tirai lain, misalkan tirai nomor 696. Tentunya kita ingin mengganti pilihan kita kan? Pasti dong, karena pilihan pertama kita tadi kemungkinan menangnya hanya 1 dari 1000 sedangkan tirai nomor 696 kemungkinan menangnya lebih tinggi (999 dari 1000).
Permasalahan ini dinamakan “Monty Hall problem” (http://en.wikipedia.org/wiki/Monty_Hall_problem iya, ini pake sumber wikipedia, problem? :p). Pertama kali aku kenal soal ini pas jaman kuliah, mata kuliah Matematika Diskrit, salah satu “dafuq” momen pas kuliah, karena pas ditunjukin solusi perhitungannya aku berkata dalam hati “njir bisa gitu” hahaha.
Elizabeth Loftus mengatakan bahwa “What we believe with all our hearts is not necessarily the truth”. Hey, kita percaya banget pada pilihan kita yang pertama, tapi apakah itu pilihan terbaik?. Terkadang kita perlu berpikir sejenak dan merenungi pilihan-pilihan kita dalam hidup. Jika kita diberikan kesempatan untuk mengubah pilihan dan pilihan lain yang akan kita pilih itu setelah kita pikirkan secara matang akan membawa kita kearah lebih baik, kenapa nggak mengubah pilihan?
Hei kamu, apa kabar?
Sudah genap dua tahun tak berbincang.
Selama ini aku lebih memilih yang lain untuk berbagi semua kegiatanku, masalahku, dan pikiranku. Continue reading “Hello again”
Wow, lagi coba-coba posting blog pake wordpress for android nih
Moga-moga aja bisa keren yak hasilnya hehe
Udah jam 6 sore, lagi ada di lab kampus, saya pun kebingungan didepan komputer, bingung mau ngapain.
Mungkin ini namanya “resource overload” *istilah ngasal, jangan di-quote*, kalo diem di kosan aja, nggak ada internet, langsung pengen browsing ini-itu, tapi giliran ada internet sepuasnya, cepet, mantep di kampus langsung terpaku -.-
Oke lah ya daripada ngenet nggak jelas, dan bingung mau buka apaan, mending bikin postingan iseng tentang “Fun”Pro ah xD
In computer science, functional programming is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids state and mutable data. – wikipedia
Di semester 4 ini ada mainan baru, functional programming (y)! Continue reading “Functional Programming -.-“
Dijkstra’s algorithm, conceived by Dutch computer scientistEdsger Dijkstra in 1956 and published in 1959,[1][2] is a graph search algorithm that solves the single-source shortest path problem for a graph with nonnegative edge path costs, producing a shortest path tree.
Hoahmm, Okelah kalo Dijkstra tapi cuman ngecek bobot perjalanan aja, masih nggak terlalu susah lah implementasinya, tinggal ngeliat algoritma yang ada di wikipedia aja sih.
Let the node at which we are starting be called the initial node. Let the distance of node Y be the distance from the initial node to Y. Dijkstra’s algorithm will assign some initial distance values and will try to improve them step by step.
- Assign to every node a distance value. Set it to zero for our initial node and to infinity for all other nodes.
- Mark all nodes as unvisited. Set initial node as current.
- For current node, consider all its unvisited neighbors and calculate their tentative distance (from the initial node). For example, if current node (A) has distance of 6, and an edge connecting it with another node (B) is 2, the distance to B through A will be 6+2=8. If this distance is less than the previously recorded distance (infinity in the beginning, zero for the initial node), overwrite the distance.
- When we are done considering all neighbors of the current node, mark it as visited. A visited node will not be checked ever again; its distance recorded now is final and minimal.
- If all nodes have been visited, finish. Otherwise, set the unvisited node with the smallest distance (from the initial node) as the next “current node” and continue from step 3.
Tapi ini tugas terakhir Struktur Data dan Algoritma, salah satu matakuliah yang paling wow di kampus saya.
Yok ah, deadlinenya Sabtu, masih banyak waktu hahahahaha #stress
Itulah tampilan awal account Twitter yang saya buat untuk Twitter Bot xD
Entah ini karena Twitter sudah tidak mengijinkan mengakses APInya selain menggunakan OAuth atau Twitter mendeteksi Bot yang saya buat terlalu annoying..hahaha (http://groups.google.com/group/twitter-api-announce/browse_thread/thread/c03fa2b1ae90d2a9)
Account yang di suspend ini menggunakan cara sederhana untuk melakukan update ke server twitter (https://hesahesa.wordpress.com/2010/08/09/twitter-bot-iseng-iseng-ah-xd/)
Saatnya bikin Bot versi baru yang support penggunaan OAuth *baca-baca tentang OAuth* *liat dev.twitter.com*