Thursday, January 27, 2011

Computer Graphics: 3D Bouncing Ball

I have promised that I will share my final tasks in the last semester to this blog. OK, firstly I will share my Computer Graphics final task. I created 3D Bouncing Ball using Java Programming Language. Ups sorry, I didn't create it by myself. I just modified it. Greg Hopkins is the real creator of this program. Originally, this program was too simple. You could just see a ball bouncing up and down. So, I modified this program till it becomes more interesting. :D


The image above is the screenshoot of modified program. I added some property: stop button, x speed, y speed, z speed. Ah yeah, this program could interact against user. So you can control each property, including control the scale of ball. Well, here the instructions:

Tuesday, January 25, 2011

It's Now Finally Over!

Woaa! I still can't believe it. All of my task and test are now finally over. And it means HOLIDAY! :D Yeah, because of those complicating things, I couldn't update this blog. :( Well, that's ok. It's now finally over. So I can write a post again. :D

I arrived in Lumajang yesterday. This town is just so nice for me. Of course, it's my hometown. Ah, my parents! They spoil me so much! Here at home, I don't have to clean my room, wash & iron my clothes, etc. I'm just free. :D

Okay, enough for talking about my home. In the next post, I want to share about my final tasks. Computer Graphic, Database Design, and Algorithm & Data Structure. I think it would be nice to share here. Okay, just wait it, guys! :D

Tuesday, December 28, 2010

Garuda Fights Back!


I was so shocked when Indonesia National Team was defeated in Bukit Jalil 2 days ago. I still can't believe it. Final score 0 - 3 is so bad. Yeah, very painful. It will so hard to beat Malaysia in Gelora Bung Karno tomorrow. But actually, Malaysia didn't win the game fairly. Malaysian supporters use lasers to disturb Garuda Team's concentration. Da*m! I really hate what they have done! You know, #malaysiacheatlaser became Trending Topic on Twitter for about 6-7 hours. What a shame!

Well, it's not the end. We still have 90 minutes to avenge Malaysia tomorrow. Go Timnas Indonesia! I support you whatever the result. I believe Indonesia will win AFF CUP 2010. Yeah! Garuda Fights Back!!

--     --     --     --     --     --     --     --     --     --     --     --     --     --  

BTW, I was given a gift by Esther. Thanks a lot, Esther. I almost forgot to receive it. :P

Wednesday, December 22, 2010

When I was a Child

image: http://www.andhrauniversity.info
when I was a child, my Mom always took care of me.

when I was a child, my Mom always guided me when I was learning something new.

when I was a child, my Mom always accompanied me to go to school and waited me till the school was over.

when I was a child, my Mom always told me a story before I fell to sleep

when I was a child, my Mom always woke up every night to calm me down from a nightmare.

when I was a child, my Mom always suggested me not to do a bad thing.


when I was a child, my Mom always praised me when I did something good.

I just realized, there are so many things Mom has done when I was a child. Now, I'm growing to be adult. And you are so far from me. But that's not any matter. I know, you always pray for me every midnight. Yeah, I should give a big thank to God because I have a Mom like you, because your love and affection become bigger than when I was a child.

Thank you Mom, happy Mom's Day. :)

Friday, December 10, 2010

Draw Parametric Curve Using Java

Guys, have you known about Parametric Curve? I do not really know about its definition exactly. But you may need to read here to get more information. Actually, I heard it from Computer Graphic course in my college. I like this course, especially this chapter (about Parametric Curve). Why? You'll know it soon. :)

Now, we'll draw a Parametric Curve to computer screen using Java programming language. Ok, here we go:

Just for information, I use Netbeans IDE to code these source. Here the first Parametric Curve.


Nice! I created that from this formula:

x(t) = (r1 + r2) * cos (t * 2) – p * cos ((r1 + r2) * t / r2)
y(t) = (r1 + r2) * sin (t * 2) – p * sin ((r1 + r2) * t / r2)


Saturday, December 4, 2010

2nd Award!

Hey, everyone! I suddenly miss to write a post on my blog. Yeah, I don't have enough spare time recently to update this beloved blog. :( And, once again, it seems like i will do "one month one post" again. :P

Emm, I almost forgot that I should receive an award given by Esther before I write another post. I have promised to her that I will do it soon after all of my task are finished (er, my tasks are actually not done yet >_<). Anyway, thank you Esther, here I pay my promise. :)


To accept the Blogger Award there are some rules to follow:
  1. Thank and link back to who gave you the award.
  2. Share seven things about yourself.
  3. Pass it along to seven blogs you've recently discovered and enjoy.
  4. Leave your recipients a note, telling them about the award.

Thursday, November 11, 2010

Infix to Postfix Conversion Using Java


Hey, guys! Yeah, I just wanna share my knowledge even NOW I'm still bustling with my Mid Semester Test! Ummh, where should I start? Okay, firstly you have to understand what infix and postfix are. Well, just read here and here. :D

Now, we will make a program in Java that can convert infix notation to postfix notation instantly. Ok, there are so many kind of source code that you could find on internet. But the source code below, I made it by my self. I'm sorry if this source code isn't really good. I'm still in learning process. Here we go: