Profilo di AakashAakash's spaceFotoBlogElenchiAltro Strumenti Guida

Blog


25 novembre

DON'T drink and drive

I came across this "true" very interesting incident.
Please read through:
(It was posted by: padmahiraskar69 in a yahoo-group)

I was walking around in a Big Bazaar store making shopping, when I saw a Cashier talking to a boy couldn't have been more than 5 or 6 years old.

The Cashier said, 'I'm sorry, but you don't have enough money to buy

this doll. Then the little boy turned to me and asked: ''are you sure I don't have enough money?''

I counted his cash and replied: ''You know that you don't have enough money to buy the doll l , my dear..'' The little boy was still holding the doll in his hand.

Finally, I walked toward him and I asked him who he wished to give this

doll to. 'It's the doll that my sister loved most and wanted so much . I wanted to Gift her for her BIRTHDAY.

I have to give the doll to my mommy so that she can give it to my sister when she goes there.' His eyes were so sad while saying this. 'My Sister has gone to be with God. Daddy says that Mommy is going to see God very soon too, so I thought that she could take the doll with her to give it to my sister.''

My heart nearly stopped. The little boy looked up at me and said: 'I told daddy to tell mommy not to go yet. I need her to wait until I come back from the mall.' Then he showed me a very nice photo of him where he was laughing. He then told me 'I want mommy to take my picture with her so my sister won't forget me.' 'I love my mommy and I wish she doesn't have to leave me, but daddy says that she has to go to be with my little sister.' Then he looked again at the doll with sad eyes, very quietly.

I quickly reached for my wallet and said to the boy. 'Suppose we check again, just in case you do have enough money for the doll?''

'OK' he said, 'I hope I do have enough.' I added some of my money to his with out him seeing and we started to count it. There was enough for the doll and even some spare money.

The little boy said: 'Thank you God for giving me enough money!'

Then he looked at me and added, 'I asked last night before I went to sleep for God to make sure I had enough money to buy this doll, so
that mommy could give It to my sister. He heard me!'' 'I also wanted to have enough money to buy a white rose for my mommy, but I didn't dare to ask God for too much. But He gave me enough to buy the doll and a white rose. My mommy loves white roses.'

I finished my shopping in a totally different state from when I started. I couldn't get the little boy out of my mind. Then I remembered a local news paper article two days ago, which mentioned a drunk man in a truck, who hit a car occupied by a young woman and a little girl. The little girl died right away, and the mother was left in a critical state. The family had to decide whether to pull the plug on the life-sustaining machine, because the young woman would not be able to recover from the coma. Was this the family of the little boy?

Two days after this encounter with the little boy, I read in the news paper that the young woman had passed away.. I couldn't stop myself as I bought a bunch of white roses and I went to the funeral home where the body of the young woman was exposed for people to see and make last wishes before her burial. She was there, in her coffin, holding a beautiful white rose in her hand with the photo of the little boy and the doll placed over her chest. I left the place, teary-eyed,  feeling that my life had been changed for ever.

The love that the little boy had for his mother and his sister is still, to this day, hard to imagine. And in a fraction of a second, a drunk driver had taken all this away from him...

Please DO NOT DRINK & DRIVE.
18 novembre

Should an object object the developer?

My very good friend is an amazing software developer. Yes - his name is "Kris".
He writes amazing software for computers. In today's modern object oriented software development methedology, when his software is run on hardware/virtual-machines, objects get created, used and destroyed (called "garbage-collected"). Objects are usually threads who depend on other threads, communicate with each-other and also have some AI (artificial intelligence) in them. They can think and take decisions.
The developer is ultimate. He can deploy same applications over unlimited number of computers, billions of objects can get created and destroyed. All of them follow the principles of that virtual machine or platform specific rules. He can do dependency-injections, clustering etc in an application server. He could develop Peer-to-Peer applications using JXTA etc and so on.
With the little amout of AI objects have got from this developer, do you think, an object can imagine the developer? Do you think is it fair for an object (or an EJB for example) to object (question or order) the developer?
An object today thought - how the developer looks like? Where he is? and What he is? I am an instance created by him and he has created billions of object instances like me. It seems impossible to imagine him with this little AI I have got unless the developer himself changes my code and makes me understand what he is and the ultimate truth. Until then, I just have to follow the application-logic and provide my service to this currently running application.
An object has cleverly written once (this is english translation of that binary 0100101110100011010101000111 message):
"O developer! Our limited object instances cannot imagine you! I can't understand why these other objects are trying to argue and waste their time and processor power."
 
16 novembre

Finding position using Sun SPOTs acceleromete (intro to issues)

I have found on SunSPOTWorld website that it is "impossible" to find position of SunSPOT devices using accelerometer of sun-spots because of the noise they produce. I would still like to try-out if it is possible at all. The results I have got yet are quite positive and encouraging.
 
I started with eliminating the effects of gravity. This was a major issue initially which got solved completely.
So now what acceleration values I get are purely, for example, X-axis acceleration, without any effects of gravity. You can imagine that "g" value is much much larger than acceleration you can provide to sun-spots (which you are interested in measuring).
 
 
Then there were issues converting acceleration values (a) into distance-travelled values (d). And that's mostly because of the noise.
We used a couple of tricks which worked to solve this issue:
1) By taking "average" acceleration value of last-time and current.
2) By putting a lower-bound on "v" velocity values and changing "v" to zero when "a" and "v" values were less than lower bounds values.
 
The simple equations I used were:
v = v0 + a*t
d = v0*t + 0.5*a*t*t
Where a = (a(prev) + a(current)) / 2
 
I am planning to publish the source code soon. And I will provide some more technical details about the approach I've used soon.
Possibly we all together can make this so called "impossible" thing possible.
 
 
15 novembre

Life around from a networking point of view

Ports for communication
----------------------------
I started using a very good Internet Security application which comes with a firewall. Using this firewall,
initially all the ports of the comuputer are closed. Then you can allow certain applications to use certain ports.
I am quite impressed with all the security and watch on traffic going back and forth you can have in your computers
these days.
After looking around in the real world, I have identified two scenarios which I personally don't like and an ideal
scenario:
 
Scenario 1: [GM]
--------------------
- No incoming data is allowed.
- In constrast, outbound connections are established and unnecessary (mostly wrong) information is passed to a
remote location. That remote destination usually has up to date information and ignores these data.
- There is no room for the computer to recieve updates, new/good information and improve itself.
- Sometimes though, surprizingly, some ports are left open and malicious data gets in from those ports.
 
Scenario 2: [TN]
-------------------
- There is no good watch on the activities.
- Bad connections are allowed and often initiated by malicious processes of the very same computer.
- These open ports and "bad" information coming in compromises the computer's security.
- Typical applications include illegal file-sharing applications for downloading movies etc.
 
Scenario 3: [IDL]
--------------------
- An up-to-date security application is used which blocks all known "bad" ports and applications.
- It keeps a watch on data being transferred and stops any mulicious activities.
- Although all the other connections are allowed through which latest information can be retrieved from remote
locations, computer can be updated and used more efficiently.
 
Conclusion:
-------------
You can filter incoming information, validate it and possibly execute it or try to understand it. This can lead to a positive improvement. Although if you close your doors (ports) completely, you will never get any updates and so you will never move towards a positive change. Although it is equally important to have "bad" ports closed and watch all the information going back and forth.
07 novembre

Roots of sadness

Today, while thinking about the sadness and similar feelings, we reached to the roots of where they start from!
From our (long enough) experience, we are concluding this thoughts:
When we initially meet someone, (by the way, surprizingly, it's called honeymoon period), we say "Hi", "Hello", we ask each-other general questions, we have smiles on our face and we feel happy talkig with each other. This other person can be a male, female, kid, elder - doesn't matter! This initial phase is great! At this stage, we don't have any "expectation" from the other person and so we are happy.
As we go further and further with the relationship, we start to initiate expectations in our minds. E.g. "it would be great if you could have lunch with me!" and if the other person can't fulfill them (in most cases) then we feel sad.
Today, after realizing this fact, let's try to eliminate the "expectations" from our friends, brothers, mums, dad, god etc. Let's live life without such expectations which make us sad. Rather, let's just be happy!! Open-mouthed
 
Some lines of gujarati poem which relates:

જે ગમે જગત ગુરુ દેવ જગદીશને,
તે તણો ખરખરો ફોક કરવો;
આપણો ચિંતવ્યો અર્થ કંઇ નવ સરે,
ઊગરે એક ઉદ્વેગ ધરવો
(- નરસિંહ મહેતા)

 
06 novembre

A text message...

A text message from my best friend:
 
मेरे हृदय से कुछ शब्द: हम आपको यह वचन नही दे सकते के हम सदा आपके मित्र रहेंगे क्योंकि हम अमर नही. किन्तु इतना वचन देते हैं की जब तक जीवन की साँस लेते रहेंगे, आपके मित्र बनकर रहेंगे.