Getting visa approved, booking accomodation and flight for Sweden

Since I got admitted for my masters program I have applied for Swedish visa (also known as residence permit) and prepared my self for booking accommodation air line tickets etc. I have yet to start doing my packing and it’s just 6 weeks till I leave.I applied for my residence permit on May 19th and was given an interview date of June 9th. Around July 8th upon inquiring from the Embassy I got to know that I was granted my visa. I have yet to get my passport back with the RP stamped in it.

I shall be flying from Lahore to Gothenburg via Frankfurt on Lufthansa airlines in last week of August. I got the ticket for around 47000 Rs . (around 430 Euro). I was also able to book a room from chalmersstudentbostader. Their international student apartment booking is password protected and is usually pretty swamped when there is a chance that apartments would be posted. I used a trick to book my apartment (it has to do with how a simple Java EE application is hosted,normally its running at port 8080 and its proxied from port 80 to this place, instead of using no port in URL, which implies HTTP port 80, I used HTTP port 8080) and I also had a cron script running looking for a new room postings every 15 minutes. Then after booking the apartment I filled my contract and with help of a friend submitted my deposit.

Though I have arranged for my accommodation, I have yet to get a temp accommodation for the few days I shall be not in my booked room.

There are excellent resources for Pakistani students at PakSirZameen.net (which is maintained by a highly motivated pakistani guy, in Linkoping Sweden). It also has a list of different mailing lists of Pakistani student associations across Sweden.This site helped me a lot. It also inspired me to open up my own chat room for incoming Pakistani students to Sweden.

Leave the first comment

OpenNMS Poller Tests

For past few days I have been working on OpenNMS poller tests. I have to adapt the curretn tests so that they can better utilize the Hibernate upgradation i am taked for do for my SoC project. A quick grep led me to find the following java files in my svn branch.

Under trunk/opennms-services/

src/test/java/org/opennms/netmgt/config/PollerConfigFactoryTest.java
src/test/java/org/opennms/netmgt/config/PollerConfigManagerTest.java
src/test/java/org/opennms/netmgt/mock/MockPollerConfigTest.java
src/test/java/org/opennms/netmgt/poller/PollerTest.java
src/test/java/org/opennms/netmgt/poller/remote/PollerBackEndIntegrationTest.java
src/test/java/org/opennms/netmgt/poller/remote/PollerBackEndTest.java
src/test/java/org/opennms/netmgt/poller/remote/PollerFrontEndIntegrationTest.java
src/test/java/org/opennms/netmgt/poller/remote/PollerFrontEndTest.java

Under trunk/opennms-webapp/

src/test/java/org/opennms/web/services/PollerServiceTest.java

I have skipped remote poller tests for now. I have started with PollerTest as it seems to be the most obvious. As per suggestions of OpenNMS community I am extending this Test class from AbstractTransactionalDaoTestCase. But since AbstractTransactionalDataSourceSpringContextTests comes in its parent hierarchy, which sets setUp and tearDown as final. This means that eiteher a new way of setUp and tearDown have to be figured out, or spring context has to be provided from with in the indivisual tests. I think the second way means much of boilerplate code in different unrelated places and hence duplication.

I am still updating the code, more to come on this blog entry.

Leave the first comment

Hibernate Tools and OpenNMS

I was in need of checking my HQL queries from within Eclipse so I could check for their validity. Furthermore since it was for a Spring/Hibernate based project (namely OpenNMS for my Google Summer of code) so there was no hibernate.cfg.xml to begin with (OpenNMS has loads of other configurations in which it stores what it needs to do with hibernate and databases). So the solution was simple, to make a brand new hibernate.cfg.xml for own use (this file wont be committed, but i think a provision of such thing should be there so there is easy way for new comers to startup hibernate tools)

I have been reading up alot for my Summer of Code, I have completely read Harnessing Hibernate  and am currently taking reference from Beginning Hibernate and from Java Persistence with Hibernate. These are all excellent books. Harnessing hibernate was helpful in the setup of hibernate tools in Eclipse.

Following are some screenshots of hibernate tools on my system.

hibernate tools tab completion.
Hibernate tools tab completion.


Hibernate tools executing HQL query on OpenNMS model

Leave the first comment

LinkDotNet DSL at Home

I have to confess that I have never owned a DSL connection. It was always a Fiber optic connection or a shared T1 line at the workplace/university. With the ongoing price wars for DSL connections I decided to get a connection for my self at home (actualy it was for my sister). The connection was ordered in April 2008 and then there was a long wait. Every time I would call to them they would make up some excuse. In the end around June 15th I decided to lynch the call center guys. In limits of decency I lynched him on the phone, and the next thing you know that with in 24 hours the installation of modem was done. It was running fine for one week, when it suddenly it stopped working.

On inquiring from the people in Tech support I was told that this connection was not installed to begin with. I admit that there were probably few loose ends to tie, for example when ever there was an incoming or outgoing phone call the DSL connection would drop. And even though the connection was dropped if the DSL device was on, there would be noise. I had to literally beg the equipment installation guy to make my connection work as I had lots of work to catch up to, he gave me some one elses ID (how typical of Pakistan, solve a problem by breaking rules).

Then I lodged a complains a few times with PTCL(the telephone company) to clear the noise and they always give me a token number (like its a big prize). In short getting a DSL connection in Pakistan is not easy even though as compared to previous years prices have come down considerably. With no electricity or sane internet I wonder why people think Pakistan is an ideal place for outsourcing.

Leave the first comment

Unlimited GPRS through Zong on my Ubuntu laptop using SonyErricson W810i

My telephone line at home was out of order for about 3 weeks now and I was in need of an internet connection at home. I decided to give using internet through my cell phone (GPRS) a try. The reason for this was simple, I needed an internet connection which would make me truly mobile and was cost effective as well. And ofcourse an implied requirement was that it should work with Linux(easily). So I searched up the internet for tarrifss of local cellular companies and compared them with other options which I had. I decided to go with Zong’s (a China Mobile comapny) unlimited GPRS package. I was skeptical about the internet speed and was not even sure how I would be ablt to connect my laptop with the internet as it was only recently that I had begun using internet through my Mobile.

First I got hold of a Sony Erricson data cable as I had lost the one which came with my phone. This cost me 200Rs (3 US$), then I purchased some Zong credit for testing. Then using another internet connection I searched on how to use ubuntu with GPRS enabled phones. I found an article at softpedia to be very helpful. I found through dmesg that on my system, my phone was registering itself at ttyACM0 as well

 


[528.702039] usb 4-1: new full speed USB device using uhci_hcd and address 3
[528.873965] usb 4-1: configuration #1 chosen from 1 choice
[528.987405] cdc_acm 4-1:1.1: ttyACM0: USB ACM device
[528.989688] cdc_acm 4-1:1.3: ttyACM1: USB ACM device
[528.991639] usbcore: registered new interface driver cdc_acm

Then I installed gnome-ppp and used it as per described in the article. The APN for Zong is zonginternet and apprently there is no username and password, but I still used zon/zong so that gnome-ppp could dial out. I also had to ensure that my user was in the modem/dial_out group. I tested the internet connectivity and was delighted to see that after dailing in there was nothing else to be done. Later I called up Zong customer services after feeding in some extra credit of 550 Rs (roughly 8US$) and activated my monthly unlimited internet package.

Later I tried watching a Youtube video, the bandwidth was not enough for me to stream it live but I was able to download a 9 MB file in a relatively short time compared to dialup connection. I was able to go to a download speed of 15KB/sec which I think is more than enough for day to day browsing and coding related tasks. I am looking forward to using this connection for my summer of code activities.

Leave the first comment

Danish Embassy Blasts

There was a suicide attack outside the Danish embassy on 2 June. The Embassy is located in a posh residential area of F-6/2. The attack claimed 8 lives and 24 injured almost all of them Pakistanis and most of them belonging to the office adjacent to the Embassy. The attack has triggered few other embassies to close down operations temporarily including embassy of Sweden of whose closure affects me personally. There are few problems which I think need to be addressed.

In entire Islamabad there is a severe shortage of housing and office space. On top of that all the good spots are taken up by foreign missions etc. They should be moved into an isolated locale so that they don’t affect day to day operations of Pakistani citizen.

The Danish could have made an exception in exercising freedom of speech. They could have just stopped printing of those cartoons the second time. The only messege those cartoons were giving was that freedom of speech is more important than caring about the feelings of millions of muslims. If they had stopped reprinting of those cartoons perhaps it would not have come to blasts in Pakistan. I think there are sensible people in EU and US who would agree with me, freedom of speech does not necessarily mean saying what ever you want, some times making sure that hurtful and hateful message never get across.

Leave the first comment

Getting GSOC Payment Card

On this previous monday I recieved my Google Summer of Code payment card. Its a Master Card from some finance related company run by General Electric. It does not have my name on it, instead it has a number and GSOC 2008 Stundet written on it. The card had no value on it and had a number written on it to enable it. It was a US 1-800 number. I had a hunch that skype should let me call 1-800 numbers for free, and a google search confirmed it. I activated my card at no cost :) .

Leave the first comment

Skype on 64-bit Ubuntu

I have always wanted to try out skype. I had an idea about it’s excellent voice quality from guys a Twit, but today I witnessed it first hand. The thing which was holding me up was the unavailibility of Mic (input sound) on my laptop. Today I figured out what the problem is. On my Acer 7720-6604 I have an internal mic, for some reason it does not work, but an external mic does. I for some reason was thinking that no mic works what so ever. I added a line in /etc for proper module loading (I didn’t have it in my fresh Hardy installation) and in options for volume control I chose Mic as input source. When recording from Gnome’s sound recorder I chose Digital as input of recording. So atleast I am able to record sound now (although not with my internal mic)

Then I checked out this link for installation of Skype on my linux box. On 64 bit machines you have to fool the thing to use 32 bit libraries. I made a test call and it soudedd perfect. Then i even tried a call with webcam and it worked well too. I actually have a conference call with browzow from OpenNMS regarding my summer of code assignment, which has started since this Monday. I have not coded any thing worth committing yet and lets hope I have some small stuff cooked up by the end of this week.

Leave the first comment

Preparing for Sweden (Apprtments, Clothes, Books)

I have started preping for my forthcoming stay in Sweden (I am quite hopeful about the visa). Since there is no tution in Sweden so the biggest expense one has to bear is accomodation, clothes and books. I registered my self to one of the housing comapnies in Gothenburg few days after I recieved my admission offer. The rents begin at around 280 Euros / month (including electricity and internet). I am targetting for an apprtment complex which is very near to the university and is frequented by international students.

As for clothes I am hoping to get some clothes stiched up within coming few months. I will rely alot on Jeans and Tshirts :) but would definetly get a black 3 piece suite. Sweden is a very very cold country so I need to buckle up (I also need some good shoes).

As for books I am on the lookout to buy them from here, but it seems very few books will be available in Pakistan. I will try to put a list of all the required books for software engineering and technology on my blog soon.

Leave the first comment

Applying for Visa

Since I recieved my admission letter from Chalmers University, Software Engineering Masters program, I have been preping to apply for visa. This year’s visa process for studies in Sweden for Pakistani students has few changes. First of all one would need to apply through Visa drop box (which is essentially Gerry’s/FedEx office). They handle visa documents and fee. Swedish Embassy charges 10500 Rs (roughly 100 Euros) in form of Bank deposit and visa drop box further charges 1000 Rs (10 Euros) cash. I also got my pictures snapped from a studio in F-6 Super, they knew exactly how to snap  the pic. The toughest past was to get a Bank Statement, I had to borrow some money from my parents and buy Euros of it. Euro is becoming expensive by the day. They have other requirements filled in on Embassys’s website. One thing which people don’t know is that all photocopies should be on complete A4 page and should not be torn in any way.

I went to FedEx Gerrys office on Thursday (before I submitted my docs) only to find out that they only accept documents from Mon-Wed , 9 am-12 pm which is really a pain. So finally I reached the visa drop box office, this Monday early morning. There was atleast one more student there before me, also applying for Visa. After submitting my documents I was given a date of June 9th for intreview. Hopefully it will be a breeze :)

I am already looking out for cheap air travel from Pakistan to Sweden. It seems that one has to reach Sweden directly or has to fly through France, Netherlands or Germany for some new European Immigration procedure. I am eyeing on a late bird Luftansa from Lahore on Aug 25th now, costing me about 490 Euros. Not bad for half way around the world eh.

One comment so far, add another