Thursday, June 8, 2017

JUST CALL- SAY HI, JUST INVITE- PLEASURE TO MEET YOU !!!!!!

Recent years all major events happening in our life is always spread through social network, Facebook, Twitter or Whatsapp such as engagement, marriage, baby shower,so on. The days are gone where we visit friends or relatives home and invite them personally. Every event were considered important and everybody were considered special and not to be missed.

I stumble on my memories when I used to go with my parents to invite our relatives and friends for marriages or local festivals, it was so much fun !!! I get to meet lot of my uncles and aunties who would love to see me, offer delicious meals, take me to temples, movies and buy some snacks which my parents forbid, get to play games with my siblings and at last while returning back home they would offer a candy or trivial cash as token of love. I just perish those lovable moments.And when they arrive home a week earlier for occasion, house will be filled with people. No place to sit. This is the time when TV gets complete rest 😌 All ladies will help each others in cooking, chiming in decoration ideas, taking care of kids/babies, singing songs. All men would drink lot of coffee/tea, read newspaper, purchase items required, keep roaming in the car. All kids will be playing games and form rivals against disliked kids.

NOW, its all through emails or posts πŸ‘€ We are more concerned on getting the most number of likes on our profile picture updated rather than making time to talk to all the friends in our friends list.

Where are we heading to ? whats the purpose of our life. Think for a second what we achieve saving all the time inviting in-person. Life is to experience, not be like ROBOT.

I would say our parents and generations before are the luckiest as they had true friends and they respected each other. Let me ask you a question, when was the last time have you or your friend have talked on phone and how long has it lasted?

So please people,  come out of your comfort zone. Stop your speed and start living. Take a break and speak to your loved ones. Plan for lunch party and have fun. Its really a stress buster to meet all friends and relatives and spend some quality time with them. I am sure you will never need blood pressure tablets (only if you choose them wisely) πŸ˜‚

Sunday, March 19, 2017

First Scala Application in Eclipse -Windows

Here we shall learn to write simple Scala application so that you can try the legacy Hello World application yourself. Before moving forward, its required to set the environment by following my post.

Creating new Scala application

1. Go to "File" - "New" - "Other..." and select "Scala Project" from the folder "Scala Wizards"
2. Choose a project name and select "Finish"


3. Create package by right clicking on "src" folder. Give a name and click finish.



4. Select "File" - "New" - "Scala Object" to create a new object



5. Write statements/logic of application. This scala object is similar to Java's Main method class. For this, we can follow any of the two approach, 1) either extend "App" to this object or 2) explicitly write main method.

extend App 

use "main" method



You would  have noticed that each statement doesn't end with semicolon(";") . Yeah , Scala saved us from the ceremony to type semicolon as the compiler is made smart to determine the termination of statements. You can still type semicolon if needed but its void by Scala compiler.

6. Save the application and Run by right clicking on the Scala object and choose "Run as" - "Scala Application"


7. Output would be printed at the console


we successfully wrote our first Scala application !!!

Alternatively,If you want existing project to be imported in Eclipse, can be done as similar to importing Java or other applications, "File" - "Import" - "Existing Projects into Workspace". If still finding problem importing the project, then the project is compiled but not compatible to use in Eclipse. To make so, we need to compile project to support Eclipse. Open terminal and either go to the root directory where SBT is installed in order to make sure any applications in the system is compatible to use in Eclipse or navigate to the project folder path to make specific project compatible. Type the command

C:\Users\Profile> sbt eclipse
You should see response something like this

[info] Successfully created Eclipse project files for project(s):
[info] YourProjectNameHere
If there is an error then there would be problem with the plugins.sbt file setup under SBT root directory.To fix this, navigate to .sbt folder and check for plugins folder.  If not found then create a folder naming "plugins" and inside the plugins create a file named plugins.sbt. write the following into the file


addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
Reload the SBT from terminal by passing the command

> reload
Well done !!! So now import the project and you should see the project in Eclipse.

Since you are familiar with running Scala application, lets lecture on how to use REPL environment in Scala. If not familiar with REPL please read from here. Having said, we need to create Scala worksheet by going to "New"- "Scala WorkSheet"


Give a name to your worksheet and click "finish".

Now you can write each statement in the worksheet and see the results towards right.


So easy !!!!. Have fun with Functional Programming !!!


Saturday, March 18, 2017

Using Scala in Eclipse - Windows


Scala is Programming Language that supports Functional Programming. Scala source code is intended to be compiled to bytecode, resulting in flexibility to be run on Java Virtual Machine.In order to work on Scala, you need to have the following tools installed on your machine:

  • Java Development Kit (JDK)
  • Scala Build Tool (SBT)
  • Editor such as Eclipse,Intellij IDE or any other IDE of your choice

Check whether you have Java installed by typing in the console:

java

or check the latest version

java -version

If not installed then download java from the Oracle website ,run installer and include bin directory of installed JDK in Path environment variable as explained here.

Download SBT tool from here. Run the installer and include the bin directory (usually located under C:\Program Files\sbt\bin) in Path environment variable. Check if installed by typing in console

sbt

you will see something like 

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
[info] Set current project to Users (in build file:/C:/Users)

Also you can find the folder .sbt installed under C:\Users\User_Profile\.sbt

Lastly we focus on choosing IDE. Mostly recommended is Intellij IDE as it showcase the environment to run Scala application, but here I will spotlight on using Eclipse.

For Scala we have two options to use Eclipse, 1) either use any existing eclipse IDE (Kepler onwards is preferred as Scala plugin is not supported below Kepler) or 2) use Scale IDE for Eclipse which is very easy - download and use in 2 minutes.

If using regular Eclipse, choose Help/Install => New Software and paste the URL http://download.scala-ide.org/sdk/lithium/e46/scala211/stable/site. You would be provided with the options to install Scala for Eclipse IDE, accept it and download completes. Eclipse will restart.

Now you can create new Scala project if you find the Scala related options under File =>New

Good job guys 😊, Hope this blog helps you !!!


Monday, January 9, 2017

Guide to visit New York and Baltimore for first time !!!

Wish you all a wonderful Happy New Year 2017 !!!!

I hope all had great fun and enjoyed every moment of the new year ball drop with fireworks.

I did enjoy my New Year Eve in New York with my spouse and my friend's family.New York is such an amazing place to spend vacation. Awwww !!!!!! Suddenly thought to help newbies planning for vacation around New York, so here I am to share my experience with the world.

We had planned for five (5) days trip of which three (3) days in New York and rest 2 days in Baltimore.This post will be helpful for people who love lot of walking,it can easily cover 7 to 8 miles a day :)

Usually my husband and me opt to reserve a hotel away from downtown and take the earliest train or bus to downtown the next morning. This time my friend's husband planned to take a hotel in downtown and roam tension free, guess what, it really worked well. We comfortably booked around Times Square and spent whole time walking down all the street day and night.Its really awesome, I definitely mean it.

Day 1: Our travel started with drive to reach Manhattan and visit Time Square.Had lunch in Curry Express (Indian platter shop). Later visited the observatory in Empire State. I ever wondered how the magnificent structure was built in just less than a year. We can't event code a project without errors whereas people in earlier days constructed each story of Empire in a DAY.😲 Something which I want our future generations to follow and which I don't want our parents to know.πŸ˜‰The view from the top is amazing !!!!





We had amazing Mediterranean food from Maoz for dinner. Falafel was amazing !!!

Day 2: Woke up early morning and took a stroll to Time Square with hot coffee from Dunkin Donuts. The view is spellbound, need to watch it all the time.Ever wondered the busiest and crowded street look in the morning, then take look at my pics πŸ’—





I love authentic Indian food so we had the best south Indian breakfast in Saravan Bhavan. Just love the madras filter coffee, mind blowing.
Later visited Central Park and enjoyed the kiss of Sun over the green grass,very authentic.Got chance to see the Balto,dog, statue. We then took a bus ride to Grand Central Terminal. On the way watched the glorying Trump Tower. We had lunch nearby at Minar (again an Indian Restaurant). The Terminal is so magnificent.We headed to Brooklyn Bridge, very crowded yet amazing place. We did around 3 miles of walk over the bridge and took some photos.One of the most amazing place to visit at the evening.
Now was the time to have good dinner and great dessert. Yummm. Oh Yeah!!! So we walked to Little Italy. Had awesome Chinese dumplings at Excellant Dumpling House. Those steamed chicken dumplings are so awesome, am mouth drooling now πŸ˜‹. Time for dessert, so we headed to Cafe Palermo.You guys need to check this place, amazing menu.πŸ’˜

Day 3:  Took a quick stroll to Time Square in the morning. We checked out from hotel and did bit of shopping in Macy's & Uniqlo. Then started driving to New Jersey to Dimple's Restaurant for lunch.It was a hugely crowded restaurant but food was good.We took a short walk nearby as it was hub for all Indian cuisine, jewelry, apparels, dress and condiments. Its one of the place which feels like India :) After the great food we headed to drive to Baltimore- Inner Harbor. We had dinner at local store and ended the day.

Day 4: This was the day to spend in and around Inner Harbor.Wow...Wow..Wow..😲 I tell you its one of the wonderful place to visit.The view is so breathtaking. There is everything around the harbor, ice rink for skaters,restaurants, Ripley's believe it or not,Aquarium,Baltimore World Trade Center,Museums,Federal Hill Park,etc.One day is not enough. 😍.Eateries are around the Harbor walk to please your stomach.






Also don't miss the view from Fells Point.

Day 5:Wrapping our trip and back to home.Whole day was driving, nothing much in particular.😊

Hope you guys liked my post and thanks for reading such a huge blog !!!

P.S:My advice is take the hotel reservation right in the center of the downtown so that most of the time is spent to view the blissful scenario than wasting time on travel 😌