Friday, June 19, 2009

J2ME Http Tester Application

Http Tester

Blackberry Experience

Lately i have been involved in working on a J2ME application which runs on sprint network. This application was built for a Motorola handset and i was asked to make some feature enhancements. So far so good. I have delivered the build and everyone is happy.

Now i have been asked to port this application to a blackberry device and here come the worries. This phone has OS of version 4.6.1

1) File handling issues.
http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=40896#M40896

The way files are organized in blackberry is quite different that other J2ME handset. It took me a while to figure out where can i look at the file created by the application. I was using /home/user as the URL. It seemed to work fine on the emulator as in the application i was able to see that i have been successful in writing to a file and from other part of the application i was able to read the content. But on the device it was throwing Security Exception.
It took me 3-4 days and countless google search to realize that you need to sign the .cod file using blackberry signature tool before it is usable at the device. So if someone who is new at blackberry and trying out file handling don't forget to sign it.
Now to look at the file you have created. Click on the option button from main menu. Now select folder "media". Selection option button again and pick "explore". Now you will see "DeviceMemory". Inside device memory there is "home" and inside "home" you will see "user" folder. You see it is not so easy to find this directory.

2) HTTP Connection issue.
In this application i post some data to a server (php page) and then read the data returned by the server. It works perfectly fine on the emulator and motorola handset. So there must be something special needs to be done at blackberry. If you have solved it please drop a note. I have posted it at blackberry forum too.

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=43155

Wednesday, May 6, 2009

Kindle DX

Today Amazon announced the launch of Kindle DX. It makes me happy to know that now it has support for pdf documents. But one thing it still annoys me is why do amazon require us to send the documents to them. Why can't we simply upload it using USB, when it is rechargeable using USB. At $489 it is out of my budget anyways. So i guess i will have to wait for some other device which is cheap and satisfies my complain. Sony are you listening??

Tuesday, April 28, 2009

Labors of life

These are the days I struggled.
The freedom only brought pain and trouble.

These shoes are worn to the sole.
This hard work has mean, i gave it all.

These are the times that i got tough.
I wanted to go back home, i had enough.


---------------

PS: I have borrowed this poem from Yaser (A high school student from Fremont)

Monday, March 2, 2009

Good lines from movie

There are moments which mark your life. Moments when you realize nothing will ever be the same and time is divided into two parts. Before this and after this. Sometimes you can feel such a moment coming. That's the test. Oh so i tell myself. I tell myself, at times like that, strong people keep moving anyway. No matter what they are going to find.
Denzel Washington (Fallen)

Monday, February 23, 2009

Oscar 2009

I am a movie fan. Well a little movie addict. So to watch Oscar ceremony is a something which should be done. Further this year it was special because there were high hopes of A R Rehman will win the prestigious award.
I don't have a cable connection so i rely on my indoor antenna to get the tv reception. The ceremony was on Channel ABC and it took me some positioning and tuning to get the channel in a decent state. I am sure Anshu (my wife) will not be happy when she notices that the antenna is still lying on the chair, instead of its position on the top of tv :-)
Anyways the award ceremony began. I was ready with netflix website to order the dvds of movies which i haven't seen in theater. I did add a few movies. Most of them were already in the queue. Meanwhile i was also busy in setting my gmail status to the whatever current event happening at oscar (as if all the people in world are looking at my status message to find the exclusive news of oscar). The proud moment came when "Smile Pinki" won the award. I immediately pinged few friends and emailed some more to let them know about it (sorry guys i was high !!!). And then when AR Rahman got two awards it was just awesome. Me, my wife and my mother in law all were very excited. With our cumulative excitement even my 5 month old son got excited. And thus it ended. Now admitting my guilt, i haven't seen Slumdog yet and plan to do that as soon as it is released in DVD.

Thursday, February 19, 2009

Life in Saudi Arabia

The following text is copied from an article in The Economist.
King Abdullah of Saudi Arabia made the most thorough reshuffle of his government since assuming the throne in 2005. He promoted reformers, sacked reactionaries and appointed his first-ever female minister, for women’s education. But women are still not allowed to drive a car.

Sunday, February 15, 2009

My Tax Filed

This BBC Article about tax filing in US is pretty much true. I have been in US since 2002 and every year during this time, filing taxes is a thing of great concern. Furthermore i am afraid of the fact that Al Capone was sent to Alcatraz for Tax evasion crime. So just to make sure i don't land into any problem with Uncle Sam i have been very careful. Many people go to HR block and other tax professionals. But since i am the only bread earner and haven't inherited a fortune from a very rich uncle, i think it will be just a waste of money if i go and pay 100-200 dollars for something which i can do on my own. But mind you it consumes easily 6-7 hours of time even if i use Tax software like Turbo tax. Past few years turbo tax was kind enough to let me file for free. But this time they charged me about 15 dollars. Well last night i filed taxes and today morning i got the email from turbo tax that return has been accepted by IRS. What a relief..

Saturday, January 17, 2009

White Tiger

Just finished reading White Tiger. I have been planning to read this book for quite some time. Amazing book.

Thursday, October 9, 2008

Book Review (3 mistakes of my life)

I have just finished reading the book 3 mistakes of my life written by Chetan Bhagat. This is probably one of the first book i have read written by a recent indian author. Ofcourse people like Arundhati Roy and Salman Rushdie are famous. But somehow i didn't get chance to read about them.
Well coming back to book. This book has a very interesting story which encompasses real events happened in recent india. The story never loses momentum. I am not a big fan of cricket. But in this book it has been described in such an engrossing way that i cannot help appreciate the passion for cricket lovers. The book is not very thick (only 144 pages). I finished it in couple of days. I was so engrossed in reading this that i had to ignore my newborn son too.

I thank my dear brother Anand for sending the book.

Thursday, September 11, 2008

Latest Reading (Biography of Mandela)

Who doesn't know about Nelson Mandela. As far my knowledge about him is concerned i only knew that he has been the president of South Africa and has been jail for a very long time. Recently in a Times article i got to know more about him. I learnt about his political acumen from that article. This prompted me to find out more about him. In Fremont library i was looking for his autobiography "A long walk to freedom". I couldn't find it. But instead i found another biography. The book looks thick (577 pages). And after a very long time i have read such thick book which is not a fiction book.
My journey with that book started about 7 weeks ago. Yes it took me that long to finish it!! It has been an amazing experience for me. It is very interesting to see how a boy from rural area transforms himself into the political arena. How great man adapt themself for the betterment of everyone. I learnt about the Apartheid system, and the sanctions imposed by world. Now this explains why South African cricket team has started playing at international level suddenly (this happened when i was in class 8, about 16 years ago). I didn't know the real reasons at time except that there was a ban on them.
Further it was good to find that there were many persons of Indian origin who struggled with Mandela.
Now i have read a serious book. I am looking forward to reading some easy going fun book.