Sunday, July 8, 2018

Yuk mulai tutorialnya! C language Course Part 1 : Hello World!

Halo semuanya, jadi seperti yang udah dijanjikan, gw bakal mulai pembelajaran tentang bahasa pemrograman C! Tapi mungkin ada baiknya sekarang gw jelasin apa aja yang diperlukan.

Pertama-tama kalian download dulu compiler. Apa sih compiler itu? Singkatnya compiler itu buat terjemahin kode yang udah kalian buat jadi program yang bisa dijalanin. Tergantung bahasanya, compiler yang dipakai juga bisa beda-beda. Karena kita bakal beljar bahasa C, kita pake yang namanya GCC (GNU Compiler Collection). Linknya gw kasih disini ya. http://tdm-gcc.tdragon.net/download

Pastikan kalian download GCC yang sesuai dengan komputer kalian (32 atau 64 bit). Cara ngeceknya bisa buka properties dari ‘My Computer’ atau ‘This PC’ kayak gambar dibawah. Karena punya gw yang 64 bit, gw download yang 64 bit.




Kalau misalnya udah download, tinggal diinstall aja. urutannya itu Create -> MinGW –w64/TDM64(32-bit and 64-bit) -> Pilih Directory -> pas pilih region, bebas -> nah ini. checklist semua aja atau ikutin gambar dibawah. Terus next deh, kelar.



Oke, semisalkan udah kelar, sekarang tinggal install environment buat ngodingnya atau mungkin istilahnya itu ngoding enaknya dimana sih? Ada banyak macemnya, dulu gw sempet disuruh pake codeblocks. Tapi makin kesini gw merasa pakai notepad aja juga cukup. Gw merekomendasikan pakai notepad++. Linknya gw kasih disini lagi ya. https://notepad-plus-plus.org/download/v7.5.7.html

Terus cara mastiin kalau semuanya udah terinstall dengan baik? Yuk kita coba coding “Hello World!”. Di dunia programming, “Hello World!” sering dipake buat ngecek apakah semuanya udah keinstall atau belum.

Jadi buka notepad++ kalian, terus ketik ini.

#include <stdio.h>

int main(void)
{
   printf("Hello World!");
   return(0);
}

Telen dulu ya programnya, next lesson bakal dijelasin kokk. Kalau udah disave dengan nama hello.c yaa. Sekarang yuk kita coba jalanin! Caranya buka command prompt kalian, caranya teken tombol keyboard windows+R dan ketik cmd. Nanti bakal muncul windows kayak gini.


Disana, kalian arahin ke tempat kalian save programnya. Caranya ketik cd terus arahin ke directorynya. Misalnya kalau gw ada di “C:\Users\Bryan Reynald\Desktop\blog\2018\july\hello world” jadi gw ketik di cmd kayak gini gambar dibawah ini.


Kalau udah masuk ke folder kalian, tulis 'ls' atau 'dir', nanti bakal dilist ada file apa aja disana. Di dalam folder gw udah ada yang namanya hello.c. Yuk kita jalanin. Di command prompt ketik “gcc –o hello hello.c” artinya kita minta agar compiler itu compile program hello.c terus namanya jadi hello. Nanti bakal dicetak program namanya hello.exe. kalau misalnya kalian tulis “gcc –o world hello.c” nanti outputnya jadi world.exe. kalau udah, tulis ‘ls’ atau 'dir' lagi dan hasilnya bakal kayak gambar dibawah.


Sekarang kita tinggal jalanin program hello.exe. caranya? Ketik hello.exe di command prompt. 


Selesai! Program pertama kalian udah jadi! Kalau misalnya ada yang ga ngerti, boleh ditulis di komentar di bawah yaa



Saturday, July 7, 2018

Kata Pembuka Dulu. C language Course Part 0

Halo semuanya, udah lama ga ngepost, sekali-kali ngepost sesuatu yang berbobot yak. jadi gw berencana mau bikin course atau pembelajaran tentang programming. Jadi mungkin gw mau bikin FAQ dulu tentang course programming ini.

“Hah? Kenapa tiba-tiba ngajarin programming? Lu bukannya jurusan teknik elektro?”

Kalau soal programming memang yang lebih sakti itu anak informatika. Tapi berhubung fakultas gw STEI (Sekolah Teknik Elektro dan Informatika), gw tetap belajar programming.

Mungkin bedanya itu kalau informatika programmingnya bikin software, kalau elektro itu programmingnya buat programming hardware. Ilmunya mirip kok tapi.

“Bahasa pemrograman yang dipake itu apa?”
  


Rencananya gw mau pake bahasa pemrograman C dulu. Alasannya bahasa C cukup manusiawi buat dipelajari karena termasuk high level language.

Rencana kedepannya lagi gw mau bahas pake bahasa pemrograman python. Yang bahasanya lebih high lagi. makin high makin gampang. Tapi kalau mau dapet konsep, ada baiknya belajar dari yang low level. Kalau mau liat piramida bahasa kayak dibawah.



(Referensi gambar : https://www.webopedia.com/TERM/H/high_level_language.html)

“Yang bakal dipelajari apa aja?”

Gw berencana jelasin dari cara install dulu karena install aja bisa ribet.

Setelah berhasil install, gw mau jelasin cara ngetik yang baik di programming (biar enak dibaca). Terus bikin sampai operasi matematika, logika, etc.

Terus buat masalah materi, gw mau jelasin INTI dari programming. jadi inti dari programming menurut gw cuman 4 ini:
-         Conditional if else
-         Looping
-         Array
-         Function

Pokoknya jangan khawatir, bakal dijelasin sejelas mungkin. Kalau ga ngerti tanya aja bakal dijawab kok.

Akhir kata

Semua bahasa itu logikanya sama, yang bikin beda itu bahasanya. Contohnya, kalau orang mau makan, orang indo bilang ‘gw mau makan’ dan orang inggris bilang ‘I want to eat’. Jadi selama kalian ngerti logikanya (bukan kalau laper malah bilang I want to take a bath), kalian tinggal pelajari masalah bahasanya.


Semoga yang gw bakal jelaskan nanti bisa berfaidah terutama buat yang ga pernah nyentuh programming tapi pengen bisa, atau minimal bisa ngerti arti kodingan orang. Suksess

Thursday, May 17, 2018

H-6 Sidang! WISH US LUCK!

Astaga Dragon. Hampir mendekati penghujung semester, Sidang juga semakin dekat, doakan gw semoga gw lancar sidang dan lulus tepat waktu ya gais :”). Mungkin gw cerita tentang TA setelah gw keluar nilai TA ketegangan hilang dulu.

Karena jurusan gw teknik elektro ITB, kita kalau sidang TA itu sekaligus pameran namanya EE Days. EE Days ini berlangsung dari tanggal 22-24 Mei 2018 jadi gw harus jaga stand pameran alat sampai 3 hari :(. Oh iya, gw sidang tanggal 23 Mei 2018 jam 12.30-14.00 di aula timur. Sidangnya terbuka jadi kalau mau liat boleh banget!

Tujuan gw nulis blog ini sebenarnya pengen promote video produk TA gw namanya PicoSpace. Linknya yang ini ya -> https://youtu.be/_xmngGx8138

Itu alat peraga satelit intinya. Bukan satelit beneran. Tiap orang tanya gw TA bikin apa dan gw bilang alat peraga satelit, pada mikirnya satelit gw bakal ditembak pake roket ke luar angkasa :(. Kalau gitu pas pameran EE days alat gw di langit dong :(.

Tujuan lainnya gw nulis tentang ini, karena gw udah lama banget ga ngeblogging karena sibuk banget dengan TA. Jadi di kesempatan ini gw mau minta maaf karena lenyap untuk beberapa waktu :(.


Semoga kami seangkatan elektro yang bakal sidang dilancarkan dan semuanya lulus tepat waktu. AMINNNNNNNNNNNNN!

Tuesday, March 20, 2018

Finding Hobby : Cooking

Halo semuanya, udah lama juga ya gw ga ngeblog. Maklum yak udah semester 8 masih pusing sama kuliah, tambah pusing skripsi, tambah pusing pas lulus dapet kerja apa, tambah pusing pasangan hidup (cielah). Ya intinya gw pusing dengan banyak hal jadi ga mood buat ngeblog. Daripada gw nulis aneh-aneh? Ya kan? Ya kan? Ya iyalah, masa ya iyadong, duren aja dibelah, bukan dibedong (generasi milenial pasti tau)

Jadi, sebagai blog pertama gw taun ini (wah buset ternyata taun ini gw belom posting?). Kalian yang follow instagram gw pasti tau gw lagi suka ngapain (ig gw @brianreynald, follow yak).

MASAK!

Iyap, masak. Lagi chaos malah masak. Oke jadi di postingan gw sekarang, gw mau cerita kenapa gw tiba-tiba mulai masak.Sebenarnya gw waktu SD pas ditanya cita-cita gw jadi apa, gw pengen jadi chef loh! Gw cukup seneng nonton acara masak-masak waktu kecil. Sayangnya, suatu hari gw liat chef yang masak kura-kura. Kura-kura hidup cangkangnya dihancurin dan dipotong-potong. Alhasil, sejak itu gw agak ‘traumatized’ dan gamau jadi chef lagi.

Sekarang, gw ingin mencoba mencari hobi baru. Mungkin kalau kalian rutin baca blog gw, kalian tau gw pernah mencoba banyak hal dan sekarang gw mau mencoba mengembalikan hasrat gw yang dulu hilang (ahayy) yaitu masak.

Gw sekarang mahasiswa tingkat akhir semester 8 dan sebagai anak kos-kosan yang tinggal di tubis hampir 4 taun, gw udah enek makan makanan sekitaran kosan gw. gw suka naik motor dan ngacir kemana-mana buat kuliner, but somehow I just feel dissatisfied.

Akhirnya gw ke borma semacam supermarket yang lengkap abis isinya. Gw kesana keliling-keliling, liat bahan-bahan makanan, dan rasanya pengen aja nyoba mencampurkan bahan-bahan dan memuaskan nafsu makan terpendam gw.

Waktu pertama kali gw mulai coba hobi masak ini, gw coba bikin kue pake microwave dan hasilnya ENAK! Akhirnya gw pengen nyoba lagi, nyoba lagi, dan nyoba lagi.

Sampai akhirnya hari senin kemarin gw disuruh temen gw bikin channel masak. Nah. Ini yang mau gw omongin sebenarnya.

Channel masak ya. Gw ga yakin gw bisa ngejalanin ini karena banyak alasan yang bakal gw jabarin disini.

1.     Become pressured.
Gw masak dengan tujuan have fun. Bukan cari duit atau apa. Gw seneng kalau orang nonton instagram gw dengan harapan mereka juga tertarik buat ikut masak. Dengan kata lain, gw ga bikin jadwal gw harus bikin menu apa hari ini, dll.

Kalau gw bikin channel, gw harus terjadwal misalnya dalam 1 minggu gw upload 3 video dengan durasi berapa menit. I just do not want to do this. I feel pressured.

2.     Game Project
Mungkin beberapa orang udah tau kalau gw juga lagi bikin game. Gw juga lagi seneng bikin game dan mau lebih fokus kesana. Targetnya sih sebelum gw lulus kelar. Makanya agak susah kalau harus ngurus channel masak.

3.     Budget
Gw masak bukan makanan yang elit-elit kayak spaghetti, apalah itu. Gw lebih ke arah baca resep lalu ganti resepnya sesuai kemampuan keuangan gw sebagai mahasiswa. Jadi kembali lagi. For fun aja ini.

Dengan 3 alasan itu, most likely for now gw gabakal bikin channel masak dulu. But in the future, it might happen.


Doakan gw lulus tepat waktu ya gengs!

Sunday, November 12, 2017

5 Abilities

Talents, Abilities, whatever you call that. Everyone has their own uniqueness regarding those things and can be considered as a genius. But the good news is, most of the talents or abilities we see can be learned for example, dancing, playing music, etc. Me as a human still trying to have new abilities (it is like RPG game isn’t it?) without further redo, these are 5 abilities I really want to have.

1.     Mind Reading & Body Language
Please differ mind reading and telepathy. Telepathy is the purported transmission of information from one person to another without using any of our known sensory channels or physical interaction. What I mean by mind reading is when I interact with someone; I could tell he or she is telling the truth or not. If I meet someone new, I could tell about his personality by the way he or she interacts with me.

This can be learned by knowing the way he or she speaks, the content of their message, the movement or their body, and many other things. The other good things about this, I can control the way I am talking and my body movement. I am still learning about this.

2.     ASL
ASL stands for American Sign Language (not Age Sex Language). I watched some videos about people talking with ASL which is cool. No other reason. Because it is cool.

But for now, it is not my top priority because i do not think this ability is what I need at this moment.

3.     Positive Thinking
The most beneficial and the most difficult thing for me to learn. I do complain a lot because most of the time, things do not go the way I want them to be. Maybe it is a bit selfish, but what if the things I wish will be good for everyone and the things that do not go the way I want is the selfish one?(read my last post about judgement).

The best way to achieve positive thinking is through meditating. For now, I can only meditate for around 5 minutes per day (it is really difficult to just sit and maintain the same position for a long time. while controlling your concentration and breathe of course). It is said that meditating impact will result after 2-3 months. I am still trying that.

4.     Lucid Dreaming
A lucid dream is a dream during which the dreamer is aware of dreaming. During lucid dreaming, the dreamer may be able to exert some degree of control over the dream characters, narrative, and environment.

How cool is that? If I could do this, I might never want to wake up again.

5.     Music Related Things
This is a bit mainstream. Playing music instruments like guitar or piano. Singing also count. But what I want to learn is not like this. I want to learn how to use FL Studio. In other words, I want to learn to compose music. It sounds like what allan walker did. It is the same actually, but with different goal. I want to make my own game with my own BGM. Well at least, that is what I want to do with FL Studio for now.


That is all about 5 abilities I want to learn. What about you?

Saturday, November 11, 2017

How Overthinker Thinks and How to Overcome It?

How overthinking people think? As one of them, I can share my perspective about this.

Overthinking is not as simple you might think. It is not just about making a plan with a backup plan and another plan, and another plan, and another… okay that is enough. It is related to fear and anxiety.

Overthinking also does not recognize what is so called as ‘Time’. I could regret things I did in the past. I could fear of what kind of future I might face later on.

In the end overthinking does not see things whether it is big or small. It could happen in any size.

Let us take an example to make it clear. Overthinkers sometimes hard to decide what to eat for lunch. It is not because they are picky but because they overthink about it. Does this food healthy enough? How much calories does it contain? Do I deserve this kind of meal? How much money I have spent on food this month including my next lunch? Last week I got diarrhea, is it okay for me to eat this? Does this food also exist on Antarctica (okay this is certainly a joke, but you get my point)?



That is just a simple example. But how can we overcome overthinking? The not ‘overthinker’ will say “Do not think and it will be alright!”

Well, technically it is true. But not all overthinking person is stupid enough not to realize that. Personally, I have tried it myself and did not quite work.

With that being said, i will try to explain one method that I used to calm myself when overthinking strikes. Makes everything you doubt into only YES or NO question and ignore everything that does not have a YES or NO as an answer. It is as simple as that.

Taking the lunch example once again. at first glance you will ask yourself What lunch should I have for today? Change it into, Is anything I eat for lunch, okay? If it is a yes, you are done. If it is a no, ask yourself again, using a YES or NO question. Do not ask yourself, what should I eat then? But ask it like, Can I eat steak today?

NEVER use who, what, where, when, why, how when you are in doubt. Remember, use this only when you think you overthink this a bit too much.

With only two option, YES or NO, you will limit yourself to only ‘overthink’ about that YES or NO. you cannot say other than that.

Make this into a Tree flow diagram. It should look like this.




I hope this method also works for you. If not, feel free to ask me for help on brianreynald89@gmail.com. Have a nice Weekend!

Thursday, October 26, 2017

Depression is Quiet

They ask, “How are you doing?”

But what they mean is “Are you over it yet?”

My lips say. “Fine, thanks”

But my eyes tell a different story.

My heart sings a different tune.

And my soul just weeps.



Sad hurts but it is a healthy feeling.

It is a necessary thing to feel.

Depression is very different.



The worst part about depression.

People who do not have it

They just do not get it.



I feel like I cannot open up to my friends about my anxiety and depression

Because they will think I just want attention



I am ready to die.

I am not suicidal and I do not want to take my own life

But I am just ready for it to be over

I feel like I have nothing to fight for


Does that make sense?