Wednesday, March 13, 2013

Lisbon - Week29

A nightly walk at Entre Campos
[14/03/2013] The second semester is getting hotter. ;) We have received the project specifications for 3 out of the 4 modules. We have already submitted the project proposals for 2 of them. We are researching Jikes RVM for the Virtual Execution Environments module.

[13/03/2013] - These days, I was busy buying flight tickets. It was a good learning experience. I was not aware of the clause, "LOW COST FARE. CANNOT BE CHANGED OR CANCELLED" and this means, we can not change a flight or cancel it. I confirmed it from the two airlines concerned, and they mentioned that this can be changed only by the travel agents (eDreams), but the travel agent eDreams policy doesn't let changing the reservation of the "Economy Restricted" tickets. I find it interesting. I should note that TAP Portugal outlet at Marques De Pombal officers were pretty much helpful.

I am enjoying the nightly walks in Lisbon. 2013 is different. I should start writing a blog post on how the year 2013 is remarkably different. :)

Saturday, March 9, 2013

Lisbon - Weeks 27 & 28

From Cabo Ruivo to Parque das Nações..
[07/03/2013] - EMDC 2013 batch now received the official invitations, and they are being added to the Facebook group of EMDC. The group is getting more and more active. The excitement of the students remind me the early 2012, when I was expecting the day to join EMDC - good old days. ;)

[05/03/2013] - I have been elected as an Erasmus Mundus Course Representative for the EMDC, for the year 2013. However, since the GA is scheduled on the day of the AVExe exam, I had  to let one of my colleagues from UPC, Barcelona to represent EMDC in the General Assembly. I will miss the GA though.

[27/02/2013] - I bought a Sony Xperia J from fnac, and realized it was locked by Vodafone. It keeps asking "SIM Network Unlock PIN", when I start the phone with the MOCHE SIM, instead of the Vodafone SIM that came bundled with the phone, and without it, it was not working with the MOCHE SIM.

From Spain to Portugal - A boat of descubriter.
I visited fnac and asked whether they could unlock my phone, when I realized that I couldn't unlock it myself or via online services, without paying for their service. Fnac pointed me out that I should contact the service providers to unlock the phone. I reached Vodafone and paid 47.47 Euros to unlock the phone, which included the discount due to the bond with the service provider and the service charge + tax.

I was told I will be sent an sms with the unlock code, in 3 days, which is supposed to be a Saturday. I didn't get any. Assuming they may not work in weekends, I waited further, and eventually waited till the Monday. I still didn't get it! So I reached to them again on the Tuesday, where they unlocked my phone, by entering the unlock code themselves. Never mind, I got it sorted out, at least! :)

[22/02/2013] - Parque das Nações never fails to amuse me. It is full of interesting restaurants, seagulls, and cold wind. The small port of Parque das Nações provides a stay for the mini boats. Parque das Nações surely is a highlight of my year 2013.

Saturday, March 2, 2013

Building Jikes RVM on Ubuntu 12.04 / 64 bit from source

Jikes RVM is a research virtual machine, built using Java. Building Jikes RVM from the source (trunk) is pretty interesting.


Installing the pre-requisites

Mercurial is the version control system of Jikes RVM. (To learn the basics of Mercurial, please refer to this article.) Jikes RVM is built using Apache Ant. Make sure to install these.
sudo apt-get install mercurial ant

Install gcc, g++, gcc-multilib, and g++-multilib
sudo apt-get install gcc-multilib g++-multilib


Checking out the source

Checkout the source code of Jikes RVM.
hg clone http://hg.code.sourceforge.net/p/jikesrvm/code jikesrvm

Updating the source
If you have already checked out the source code sometime back, you may have to update it to reflect the later changes.
To view the information of the working directory, such as the version number, from the root directory,
hg log -l1


To update,
hg pull

hg update



Building using Ant
Find the target architecture of your system.
uname -m
x86_64


Build using Ant from jikesrvm (the root directory of Jikes RVM).
 ant -Dconfig.name=prototype -Dhost.name=x86_64-linux -Dtarget.name=x86_64-linux

Here,
1) host.name and target.name entries should match the names of the properties files present in the directory jikesrvm/build/hosts (without the suffix, .properties).

2) config.name entry should match the names of the properties files present in the directory jikesrvm/build/configs (without the suffix, .properties).

You may alternatively build Jikes using the buildit tool that is included in the project.
 bin/buildit -j $JAVA_HOME localhost production


Common Exceptions

1) You may encounter the below exceptions, if you have 32-bit GTK libraries installed on a 64-bit machine.
     [exec] checking for X... no
     [exec] configure: error: GTK+ peers requested but no X library available

BUILD FAILED
/home/pradeeban/jikesrvm/build.xml:266: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build.xml:272: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/classpath.xml:305: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/base.xml:70: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/base.xml:76: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/classpath.xml:254: exec returned: 1
Passing the flag -Dcp.enable.gtk-peer="--disable-gtk-peer" will fix this issue.

 ant -Dconfig.name=prototype -Dhost.name=x86_64-linux -Dtarget.name=x86_64-linux -Dcp.enable.gtk-peer="--disable-gtk-peer"

2) You may encounter the below exceptions, if you miss gcc-multilib and g++-multilib in your system.

build:
     [exec] checking build system type... Invalid configuration `x86_64-unknown-linux-': machine `x86_64-unknown-linux' not recognized
     [exec] configure: error: /bin/bash ./config.sub x86_64-unknown-linux- failed

BUILD FAILED
/home/pradeeban/jikesrvm/build.xml:266: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build.xml:272: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/classpath.xml:305: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/base.xml:70: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/base.xml:76: The following error occurred while executing this line:
/home/pradeeban/jikesrvm/build/components/classpath.xml:254: exec returned: 1

Running Jikes RVM
Once built, you will find the complete rvm runtime directory at ${dist.dir}/${config.name}_${target.name} (For me, it was dist/prototype_x86_64-linux, as I built with 'prototype' configuration). Now you should be able to run the rvm from the directory. A Java class can be run as below.
javac HelloWorld.java
./rvm HelloWorld

Wednesday, February 20, 2013

Feelings of Erasmus Mundus

Baixa-Chiado Metro Station, a remarkable one for Erasmus Students
Week 26
[20/02/2013] - Since we don't have the lectures in Taguspark campus, we don't have to use the IST shuttle anymore. This saves us a lot of time this semester, compared to the last. However, we miss the good times we had at Taguspark, specially the lunch time together. I used to wake up at 5.30 a.m to catch the 7.15 a.m shuttle on Mondays. This semester, I wake up at 7.30 a.m, the earliest. More time to sleep!

6 months
Today we did our Mobile Computing presentation. This was the first team effort of Team XPD (Xiao Chen, Pradeeban Kathiravelu, and Dipesh Dugar Mitthalal). Now, I am having a break with some music, and decided to blog on the feelings of Erasmus Mundus, which was in my to-blog list for quite a long time. Interestingly, today it is exactly 6 months since I left home and my country, for my masters!

Feelings of Erasmus Mundus
My apartment - a usual meeting spot for us!
Erasmus Mundus is surely one of the best (if not the best) decisions that we all have made. We all came to Lisbon as strangers. I had interest in exploring Lisbon, but no real attachment to it.

Eventually!
Things started to change eventually. The support and helping hand of the locals surely made a positive impact on me. In my opinion, Portuguese are very friendly people. We, all the EMDC students became good friends. It felt good to be a student, after a break, as I became a student after spending two years working in a company. As Erasmus Mundus students, we had a huge opportunity to meet other mobility students, who follow Erasmus, Erasmus Mundus, BRAZIL, and similar programs. Meeting points like Bairro Alto and specifically the Erasmus Corner, became regular places of visit. Moreover, the cultural diversity made our relationships more interesting and spicy! ;) 

Fresher Winds
Nightly walks over Lisbon neighbourhoods!
It was like a rebirth, where we started to learn and earn everything fresh - new courses, new friends, new people, and new experiences. We came to Lisbon, almost with an empty hand and mind, with nothing but hope and expectations. We started to earn people and knowledge. Our relationships are interesting and non-trivial. Erasmus Mundus experience has written many new interesting pages in our life.

Level - up
Erasmus Mundus experience was a level-up. We learned about people and culture. Tried different dishes. A few phrases from each language! From what I learned and experienced, I would recommend every student to study abroad, as an exchange student, or as a graduate student abroad, at least once in their life. The aspects of life we learned during the Erasmus Mundus is much richer than the technological knowledge we have gathered so far during our stay. Balancing the social life and studies without getting too distracted, enjoying the new environment without compromising our unique values and believes, accepting different view points and learning from them, broadening the horizon, were a few interesting challenges the students face.


Walking from Santos to Cais do Sodre
World is not that small. :(
A few friends have already left us and returned to their home countries, as they have completed their study. We already miss them. They have surely left a strong foot print in our minds, which will never fade away. I am sure, I will miss Lisbon when I go to Stockholm next semester, as much as I missed my country when I left it last year. Probably, even more! Lisbon has surely become a second home to me, during the stay of the 6 months. The interesting people we met here from different parts of the world - I am not sure how effective we will be in communication or how much will we be in touch, after we departed. The world is still not that small, and I don't think the online or electronic communication is strong enough to express the human feelings, or replace the face-to-face communications. Quoting our P2P professor, once more. "Human nature: It is difficult to understand."

I just wish everyone of you will be with me, forever!

Monday, February 18, 2013

EMDC Winter Event 2013

Picturesque Segovia
Weeks 24 & 25 
[13/02/2013] - The last two weeks of the vacation were spent at Spain (Photos), in Madrid, Segovia, Barcelona, Nuria, and Sitges.

2nd Semester!
The second semester started on the 13th. The new semester has an interesting time table. We have lectures on Tuesdays, Wednesdays, and Thursdays. Finally, weekend has become longer than the weekdays! Like the first semester, this semester too we have 4 modules - Middleware for Distributed Internet Applications (PADI764), Fault-Tolerant Distributed Systems (SDTF64), Virtual Execution Environments (AVExe364), and Mobile Computing (CMov764). We already have formed the groups for the projects, and are ready for yet another interesting episode. 

Sitges Carnival was full of partiers parading!
Trip to Spain
EMDC Winter Event (6th - 8th, Feb 2013) was held at Vall de Núria. We planned a Spain trip (3rd - 11th, Feb 2013) along with the winter Event, covering Madrid and Barcelona, along with the neighbourhood, including Segovia and Sitges. Our flight itinerary was, Lisbon -> Madrid -> Barcelona -> Lisbon.

We spent the first few days in Madrid (3rd - 5th, Feb). We were at Segovia on the 5th of Feb. Segovia is a silent and charming neighbourhood, with a wonderful architecture, including the Gothic Cathedral of Segovia and Aqueduct of Segovia. We went to Barcelona on the 5th night, and had a brief meeting at UPC, on the 6th.

La Vall de Núria
Heavenly Nuria - This is where we stayed!
Then we moved to Nuria, where we enjoyed the snow, skiing, food, games, and presentations. It was an awesome experience, and the special thanks goes to the professors who organized this event pretty well, and the industry experts and the senior students, who shared their knowledge and experience with us. Travelling by the rack train that connects Nuria to Ribes was a remarkable experience. The change in the landscape and the climate was obvious. Mountains covered with snow, and heavy snow was the norm in Nuria.

We noticed that French border is just in a walking distance, from where we are right now. Snow, and -10°c. (Feels like -24°c). However, in winter, I don't think it's even possible in this heavy snow, except for those who are into adventures.

The Erasmus Mundus EMDC 2012 students from IST and UPC introduced themselves with two presentations. The EMDC-IST introductory presentation introduced all 8 of us.



On the 8th, we returned to Barcelona, where we stayed for the rest of the days, visiting CosmoCaixa Barcelona (formerly known as the science museum of Barcelona), Park Guell, and the other attractions around. Interestingly, we also got the chance to enjoy the carnival at Sitges, on the 10th of February. I enjoyed Spain. However, my preference is still Lisbon/Portugal. The comforting weather, availability of varieties of stylish food, the lovely people, or just my personal preference. Probably, I am just addicted to Lisbon.