Interestingly, whatever I have just said is partially true. Actually you can create an array of ArrayList<Double>, but you have to initialize it with untyped ArrayList! Wow! and when you do that JAVA gonna give you an warning because of untyped ArrayList! So guess what, there is just no way to create an array of generics without warning. I don't know whats wrong with the generics array! Sometimes generics in JAVA seems half baked to me.
Wednesday, September 26, 2012
Java Generics
Sometimes JAVA is really bothersome. JAVA has generics for quite some times; okay generics is nice to have. You don't have to cast objects and you can efficiently work with typed objects. I just learned that JAVA does not support the array of generic objects! ooops! Thant's mean you cannot create an array of ArrayList<Double>. What you can do is create an array of
ArrayList<?> or
ArrayList and later cast to
ArrayList<Double> whenever you try to access. What's the purpose of generics if I have to cast! Even worse if you do that without checking the type, JAVA is going to give you a warning! And apparently you can ignore the warning or you can check the type before casting, which means one more if statement (extra complexity)! This is not cheap when you are considering large number of items!
Labels:
Technical
Tuesday, September 25, 2012
Knight Rider
I have been thinking about it lately: a android driven car! I think Google is about to deploy driver-less car on the road. Would it not be nice if Android is running on my car? If my car can run by itself and if takes command by my Android phone I don't think Knight Rider day is far away. I don't have to walk to the parking lot, my car will pick me up from Sarkeys! I don't think lot of people will buy parking permit then, they would just let their car go back home, specially in a small town like Norman.
Labels:
Art of thinking
Driver-less cars
I went to a hike the day before yesterday. It was about two hours drive from home, I wake up early morning and reach there by 8:00 AM. It was obviously pretty boring (by the way, I love driving most of the time and I really enjoy driving). But I what amazes me most is during my entire driving time I didn't have take any critical decision. All I have to do is follow the yellow and white line, signals and other cars' light. Well isn't it interesting? All those pretty mundane task. Then I realized if you follow the traffic rule there is nothing to be excited about driving a car. If you don't follow the rule, you know the consequence!
Interestingly the number of tasks one has to follow in course of driving a car is pretty small and I am amazed we still don't have driver-less car. I wonder why? I don't see any problem from logical perspective, it could be because of hardware. There is a big buzz going on now about driver-less car and plenty of people think it is madness. Most of them are driving fan. I am yet to see a driving fan as well traffic rules fan! One just cannot be both simultaneously.
And finally, when I was coming back, exhausted after eight miles of walking and rock hopping I was dying for a driver-less car. Who loves to drive after a long hike? I think human should get out of the road. We as a human have done enough, it could be a sport but for daily use I don't think it is our job to drive the car anymore. Please leave the street, human being behind the wheel are most dangerous species on earth.
My only concern is driver-less car would definitely increase the traffic on the road and more traffic means more energy!
Labels:
Art of thinking
Saturday, September 22, 2012
Death toll
I just wanted to share one of my albums which I realized one of my favorite subject. Somehow, I can feel the strength of them. Everything is gone still standing tight. Sometimes they make me thinking we know nothing about life. Life as we know it is just an illusion.
Labels:
Photography
Saturday, September 8, 2012
How am I doing?
Right now I am trying to wrap up my dissertation, I need to start writing my dissertation anytime soon. I am looking for job! and still coping with life. I am planning to graduate next year and I need to wrap up what I have done so far. I have to put forward everything I have to impress the committee. I have grown enough to realize that impressing people is the hardest thing on earth. Especially it is even difficult if more than one is involved. There is no unique formula that can win the mind of everyone. Anyway, I working on putting everything together. I haven't start writing my dissertation though. I have to start it anytime soon.
The next big task I have to find a job. I am not sure how difficult or easy it would be but based on other people experience I can tell it not gonna be butter smooth. However, I still have difficulty to accept the idea that finding the job is very difficult in US. Maybe, that's because I never had trouble finding jobs before. Let's see how it goes with jobs. I am right now kind of trying to accustomed with the idea of job hunt, career fair, career center, etc. Hopefully I'll find a way out. I don't think that would be too difficult. The difficult part would be finding time for that.
Finally, life! I don't know why I have always trouble accepting what I am right now. I just don't get it. I am not love with my past. I am not big fan of the idea of living in past. If I don't like something I always look forward not backward. I never wish for undo, I wish for the solution that can solve my current problem. These days I feel very tired. I don't know why? Maybe I am stressed! But I am not sure what I am stressed about. I am having hard time paying attention to specific instructions. I never had problem before. I am sure it is temporary but I am not sure what causing it. Probably I need to learn work under stressed situation.
Well, that's it for now.
The next big task I have to find a job. I am not sure how difficult or easy it would be but based on other people experience I can tell it not gonna be butter smooth. However, I still have difficulty to accept the idea that finding the job is very difficult in US. Maybe, that's because I never had trouble finding jobs before. Let's see how it goes with jobs. I am right now kind of trying to accustomed with the idea of job hunt, career fair, career center, etc. Hopefully I'll find a way out. I don't think that would be too difficult. The difficult part would be finding time for that.
Finally, life! I don't know why I have always trouble accepting what I am right now. I just don't get it. I am not love with my past. I am not big fan of the idea of living in past. If I don't like something I always look forward not backward. I never wish for undo, I wish for the solution that can solve my current problem. These days I feel very tired. I don't know why? Maybe I am stressed! But I am not sure what I am stressed about. I am having hard time paying attention to specific instructions. I never had problem before. I am sure it is temporary but I am not sure what causing it. Probably I need to learn work under stressed situation.
Well, that's it for now.
Labels:
Life Style
Subscribe to:
Posts (Atom)