Tuesday, December 25, 2012

Nothing to Do

I don't know what should I write today. Actually I don't feel like learning anything today. Just do something like usual.
The only difference is today I start the day at 00.00 o clock. Then listen to Foster the People till I get bored.

Next, I went to campus for a little exercise. Running is the only thing that I could do. It's awesome, actually better than just walking, better... lol

That's the only productive thing that I do today, I hope tomorrow will be better.

The last thing that I wanna do is to put a picture about samurai that I like..

Here it is :



Sakata Gintoki

Saturday, December 22, 2012

Second Day of Learning Rails

When I wake up early in the morning, my eyes feel hot and watering all the time. The reason is I slept only 4 hour before. Is it okay to sleep 4 hour a day? actually there are a lot of person who did that but have no effect on their eyes. It's like nothing happened. like usual. the day with enough sleep. Unfortunately its not like me at all. I need more time... everyone who reads this should do the same. Resting yourselves with the time that comfort you.
That was the advice of the day. lol. 
The next one that I would like to talk about is about Rails that I learn today. Its easy to guess, the thing that I learn is almost as easy as pie thing for some people.. haaha.. 

Let me make the Ordered List for what I've done today.
  1. Learning how to linking some letter to another page. Its a common thing if we use <a> </a> anchore right?. In rails, we use a method that we called link_to. The standar signatur that we can use is link_to body, url (i.e. link_to "Home", page_home_path). Its awesome of course, but there is something more awesome than that, and that method is, link_to_unless_current body url. The method is to make the link only if the URI is not the same as url that we passed to the parameter. 
  2. How to make a Controller. Its easy, make a command on cmd prompt using generate. rails generate controller name_of_controller name_of_action name_of_action . . . This command will automatically make some files that we can use to develop our program
  3.  Helpers. I still don't really get it, but it won't take a long time to know the whole thing about helpers. The first thing that I know is Helpers is some kind of thing that can help Controller to make some action as module on a controller. 
  4. The best source of method on Rails is off course Api Rails Site 
Okay then, that was the only thing that I can grasp today. hope that tomorrow will be better.. :D

the Last thing that I wanna share today is some random photos that I get from the net..
here it is.. 

It's cute, I hope that it fall. lol


Friday, December 21, 2012

Freedom on Rails!

Today is the day, the last exam on my 5th semester, and now has ended. Not the end of the world like everybody else said. Happy Ending!  hHaa.. :D
I feel free, I feel awesome and I feel that I acquire a new power. It's not like superhero on everyplace story though. Only new power, power of time.
This time will not be waste, I plan everything that I will do on the next holiday. I'll learn. The thing that interest me right now is Rails. Its the framework of ruby to make some kind of website. And from now on, I'll be hung up with my lovely laptop, my pencil and all of the paper that I will use to get a new skill.
When it come into skills, we are free to choose which one that suits us right? so... what are the skills that you want to trade with the time that you have? for me, like I said before. It will be Rails. lol..

Okay then, I'll tell you what are the thing that I learn today.
  1. How to download html template (sounds easy, its true, very easy)
  2. Make controller file on rails, the command is rails generate controller whatever
  3. How to make a definition or method on that controller 
  4. How to make a view file (create new file with *.html.erb extension)
  5. Some kind of new syntax on rails, it looks like this <%= image_tag "name_of_the_image.bla"
  6. Of course if you want to know more about method that available --like image_tag above-- then you should visit this Rails Site.
  7. The last thing -that I remember- that I learn today is "Andy" is awesome. If you like indie song, perhaps it will be nice to hear this Last Dinosaurs song. hHaaha... :D

Okay then, lets see if you familiar with this picture,


rails logo,
my new friend :D