Friday, July 27, 2012

Tangled Ever After



Flynn Rider: This is the story of the day my life ended.
Rapunzel: Eugene...
Flynn Rider: I'm kidding! It was the happiest day of my life. Our wedding day.




Everyone, plus you, including me waited for this golden moment from a long time


Tangled 2 was a dream for us !!!



And so guys here it is...




 “Tangled Ever After” is a short film sequel of 2010 hit “Tangled” directed by Nathan Greno and Byron Howard. It is a 6.27 minute short comedy film starring Zachary Levi, Mandy Moore and Alan Dale. The movie was first screened on theaters on the 13th January along with the re-release of “Beauty & Beast” .Unfortunately though it is only a short film but still it was a ray of hope to all Tangled lovers around the world.






Flynn Rider: Yes, everything was perfect.
[a banner unfurls showing Rapunzel and Flynn; Flynn has a big nose]
Flynn Rider: Oh, come on! They still can't get my nose right!




Well, the movie is full of fun and excitement thanks to the mighty Maximus and darling dear Pascal.
But I really wished for more scenes of charming Eugene Fitzherbert [Flynn Rider] and lovely princess Rapunzel 


Priest: May I have the rings?
[Rapunzel sees Maximus and Pascal without the rings, and gasps]
Queen: Those were my grandmother's wedding rings!
Guard: The kingdom is lost!



Yeah, as I told you earlier this movie so cool, and a great one that you shouldn’t miss. Really it is worth watching

Tangled forever and ever <3








Tuesday, July 24, 2012

Star Pattern using for loop


class star
{

 public static void main(String arg[])
 { 
  int a,b,c;


  System.out.println("\n\nPattern 01\n\n");
  
  for(a=1;a<6;a++)
  {
   for(b=0;b<a;b++)
   {
    System.out.print("*");
   }

   System.out.print("\n");
  }


  System.out.println("\n\nPattern 02\n\n");
  
  for(a=1;a<6;a++)
  {
   for(b=6;b>a;b--)
   {
    System.out.print("*");
   }

   System.out.print("\n");
  }

    
  System.out.println("\n\nPattern 03\n\n");
  
  for(a=1;a<6;a++)
  {
   for(b=0;b<a;b++)
   {
    System.out.print(" ");
   }

   for(c=6;c>a;c--)
   {
    System.out.print("*");
   }

   System.out.print("\n");
  }


  System.out.println("\n\nPattern 04\n\n");
  
  for(a=1;a<6;a++)
  {
   for(b=6;b>a;b--)
   {
    System.out.print(" ");
   }
   
   for(c=0;c<(2*a-1);c++)
   {
    System.out.print("*");
   }

   System.out.print("\n");
  }

 }

}




Wednesday, July 18, 2012

Saving the source code & Execution of the byte code




For writing the source code simply NOTEPAD can be used.
Command Prompt is used for execution
  • In JDK1.7 the Source code (program body in notepad) should be saved with “App.java”after the name

classnameApp.java


  • In JDK1.5(older version can be still found in some institutions) the source code must be saved under the quotation marks “ ”

“classname.java”


  • Compilation of source code to byte code execution of the byte code is same in both versions

Compilation of source code to byte code


javac classnameApp.java [1.7 Version]


Or

javac classname.java [1.5 Version]


Execution of the byte code


java classname




JAVA is like an advanced version of C. Therefore if you know fundamentals C programming you can easily get through JAVA. In the following posts I’m not going to put up all the key words & its relevant task, but I’ll give an idea about how they are used through simple programs.

However if your knowledge is ZERO and if you are a troll in JAVA .Don’t worry I used to be a one, couple years ago. Still I’m not a perfect character and I will never be.Because with the time we learn more and more new things.

So I recommend you to follow the website below.

http://www.tutorialspoint.com/java/index.htm



Tuesday, July 17, 2012

Important Things to keep in Mind



Basic Outline of a Program



class Class_name
{
           public static void main(String arg[])
           {
                                 body
            }
}


Note:

  • The keywords are printed in BOLD in here.

  • S” in “String” must be in uppercase


  • The class with main method
    “public static void main(String
    arg[])”
    is the DRIVER CLASS

  • A class can contain
-collections of fields/variables [Attributes]
-operations [Behaviors/Method]

  • Use a semicolon[ ; ] at the end of a statement
But don’t use it in such cases like
- class declaration
- Method declaration
- Conditional statements


Sunday, July 15, 2012

Tips in Download and Installation


Welcome new comers for JAVA. In this post I’m trying to give some basic ideas for you at the first level. I’m sure you will bump into more thrilling experiences in future.



What is JAVA?

JAVA is a Platform Independent Language; therefore you can write & execute the program in any operating system (Anywhere – Windows, UNIX, Linux etc)


How to download JAVA?

If you are a Windows user before downloading JAVA first find out whether the system is 32 bit or 64 bit
There are some ways to find out it
  • Start >Run>dxdiag
Under SYSTEM tab, System Operation the version is found can be found in Operating System:
  • Start>Run>System Information
          The bit version can be found at SYSTEM TYPE




    Here is the step to download JAVA :-
http://www.oracle.com > Downloads >JAVA for Developers >JAVA Platform >
& then select the version you need.

If you have a problem about the version that you must download, refer
http://www.JAVA.com/en/download/faq/JAVA_win64bit.xml#verify browser
A bit old link, but it really helped me personally.
Then install JAVA to your PC


How to check the installed JAVA version

Here is a simple program for Windows users to check whether they have installed the correct version

class Bitversion
{
 public static void main(String args[])
{
System.out.println("version ="+ System.getProperty("sun.arch.data.model"));
}
}


Setting the PATH

It is recommended to set the path initially before starting your work.
At the Command Prompt, you have to set the path

PATH = C:\Program Files\JAVA\jdk1.7.0_05\bin

But this temporary you have to set it again & again

.
To set the path permanent follow the steps below

Control Panel> System>Advanced>Environmental Variables>System Variables>Path>edit
In var value add the location of your JDK bin folder
(Do not delete the things inside add a semi colon [ ; ] then put the address beside it)

Welcome to JAVA people :)




Monday, July 9, 2012

Blood and Chocolate

Beloved stranger,
Listen to the voices in darkness
A secret is sealed,
and you are not to see it

Do not come any closer,
I'm out of reach
life is a riddle,
mysterious than you think
Please...
leave me my love
as i never want to
loose you,

or
to say
Good bye...
 

                         - Vivian




Blood and chocolate movie plot revolves around Vivian, and how she experiences different events in her life.
From the beginning of the film it is shown that Vivian is a tough girl with less feminine behavior. She always try to hide from world. Though she is just a teen she has a prominent place in her pack since she was adopted by Astrid, the former wife of the pack leader. In addition she gets an extra attraction as Gabriel; the pack leader is longing to make her as his mate. On the contrary poor Vivian wants to be normal without any attention from others,which makes her lonely in her little world.
But her life changes after coming across with Aiden, a young graphic novel artist

The movie plot is entirely different from the book. They flow in different directions.
Vivian is less aggressive than in the book, plus she has a control in herself.




From the first sight Aiden develops a feeling towards Vivian. After all Aiden was a comic artist and she was just like his dream girl. But Vivian hides her emotions. It’s true she always needed someone for her, but she is afraid of herself as werewolf. In the movie she struggles to prevent the change and only does to save Aiden from hunt. As Vivian tries to cover from him, Aiden becomes more curious about the mysterious wolf girl.
Vivian is mesmerized with Aiden’s gaze. (Hugh Dancy does a terrific job here)
His cool behavior makes her more live than she used to be. Besides Aiden In the movie has more positive points than the one in the book. I mean the movie character is back boned, and he really acts like a man with true love. He is a bit shocked when he finds out about Rafe,but in the end he comes in Vivian’s need. therefore I think the end was just the thing it should be. Vivian made the correct decision by choosing Aiden.Even if Aiden is a human he is the perfect match for her.


Overall the the movie was great. Even the transformation into werewolf is so spiritual, and it looked like real.i really hates the movies that have super unnatural beasts which ruins the whole fiction. However soon after watching it, I wished to be much longer. The story should had lengthen a little bit, may be for another 20-30 minute. The audience needs more Aiden-Vivian scenes.


So there is no point of rejecting the movie. The only thing is,the story has to be more developed. Blood and chocolate is certainly a good movie for teens.But you just make sure not to compare it with the movie.


<<Enjoy this clip, I don't own any right of this video
thanks a lot for the editor. It is awesome:)


Sunday, July 8, 2012

තවත් ආදර කතාවක්


නෙත් ගැටුනු සැණෙක
සෙනෙහසින් ළං වී
අත් දුටු විගස
නොදොඩාම වෙන්වගියද,
රැදි සිටින්න
ජිවිත ටෙලියේ
එය තවත්
කෙටි විරාමයක්ම පමණි...