Sunday, February 28, 2010

Spring in the air again!

Another spring! Spring in the air again, warmer days, windy outside, lovely!

Tuesday, February 16, 2010

Cold & flu

This is the fifth time I got cold and flu this year (stupid!) Last year I was pretty good and this year I don't know why my body is not working. Something is seriously wrong. Cold and flu is fine but stupid runny nose is driving me nuts. I just can't concentrate on anything. This is not good at all. I have too many things to do and too few time to get all of them done. I feel little bit week these days, I don't know why (!?) Probably I should work on my nutrition too. I should not stand this too long.

The funny thing is this is the first time I am having vitamin tablets regularly but apparently no luck. I went to the doctor but she said I am all good but the stupid cold is coming back periodically. I think the culprit is my room. The heating system of my room doesn't work properly. I spent very few time there but last Sunday I spent the entire day and Monday I got cold !? hmmm... I think I should stay at my office, may be it would help! I just hate runny nose :(

Saturday, February 13, 2010

Get lucky

I got the Marc Knopfler's latest album "Get Lucky" yesterday, wow! Marc Knopfler is addictive, I can't stop listening since then :( There is something in this album that takes me away and I feel very relaxed. The amazing voice with fabulous guitar works, hard to stop listening. The album is an wonderful collection of rocks.

I'm better with my muscles
Than I am with my mouth
I worked the fairgrounds in the summer
And go pick fruit down south

And when I'm feel them chilly winds
Where the weather goes I follow
Pack up my traveling things go with the swallows

And I might get lucky now and then
You win some, you might get lucky now and then
You win some

I wake up every morning
Keep on eye on what I spent
Gotta think about eating
Gotta think about paying the rent

I always think it's funny
It gets me everytime
I wonder about the happiness and money
Tell it to the breadline

But you might get lucky now and then
You win some, you might get lucky now and then
You win some

Now I'm rambling through this meadow happy as a man can be
Think I just lay me down under this old tree
On and on we go through this old world of shuffling
If you got a truffle dog, you can go truffling

But you might get lucky now and then
You win some, you might get lucky now and then
You win some

[Marc Knopfler' 2009]

Friday, February 12, 2010

Java memory leak

I had a interesting problem regarding JAVA memory leak couple of days back. Typically, java garbage collector collects all the un-referred memory space. My problem was interesting, I had a fixed array of objects and some of them (in random) hold the information about few other objects in the array. The array was like a queue and object are coming from one direction and going out from another direction. When each object left the array, the object is theoretically dead to me. I don't keep any other reference to it. Interestingly, it was causing an chain of references where the last object sitting on my array and the first object died long ago. The problem was interesting.

I am having memory problem again and this time I did some google on JAVA memory leak problem. I found that I am not the only one having similar kind of problem, there are thousands having similar kind of problem with their JAVA codes. Obviously I would not say this is the problem of the java platform, this is just a bad practice. The interesting thing I conclude is a bad programming practice can cause the harm no matter how good the platform is!

Monday, February 8, 2010

OU Supercomputer!

Last few days the OU supercomputer is screwing me! I had several tasks and each of them takes a day or two to complete. So I get an account in the OU supercomputer to execute my tasks. It was quite okay but the problem is they have such a long queue that my tasks were waited in the queue for the entire week. Still, I was okay but then some of my jobs were terminated in the middle (huh!) and I have no clue why? I have talked to them and they said it's because of memory usage! alas! So I have to go throw the whole process again, submit the jobs, wait in the queue and finally when they will get chance (I hope they will!) to execute I don't know what going to happen this time?

One more interesting thing. They have two more powerful machine than their regular machines but I found the powerful machine takes longer time than regular machine, funny! Why is that? I still don't have very good explanation for that. Maybe it's because of threads! The jobs which are running on powerful machines have more threads than the jobs running on regular machine. But then again, the powerful machine has twice as many core as in regular machine and my threads are all non-blocking threads. So, the context-switching should not deteriorate the performance but somehow it does!