Why I hate Javascript

Javascript is one of the most powerful langauge and has he change the people use computers today, but this post doesn't talk about positive sides of java script.

  1. "NaN" == "NaN" is false. Wow, why was such crap needed, its a programming languages not some movie.  I cant visualize a scenario where such stupid check would help me in product code.
  2. undefined, null and the stories. bullshit.
    • There are two different data types 'undefined' and 'null'
    • Variable that are of type 'undefined' can have only one value and that's 'undefined'
      (wow , why do we need such data types that can have only one value) 
    • Variable that are of type 'null' can have only one value and that's 'null'
      (wow , why do we need such data types that can have only one value) 
    • undefined == null is true
      ( wow sirji, they are different but still same, why? because one operator == converts one to other ) 
    • value undefined is derivative of the value null 
    • 'undefined' is value also and type also :)
    • 'null' is value also type also :)
       People coming from high level programming languages would certainly find it unconventional. I mean if          you just had one value( not type) 'null' and all uninitialized variable were by default 'null' that was 
       enough.  Now with all of this combination and complication,  I need to ensure that not I understand this
       extra undesired stuff but all other engineers working with me also do.

How much has Indore progressed in last ten year?

Well I love Indore, I am the proud founder of a group called Indories-In-Banglaore , which connects about 200 people from my land. yearly once ot twice we organize get-togethers, where Indori food is being served.

Keeping my love for Indore and Indorians aside, this is sarcastic post and mainly describe the pain of a son and brother.

Its been about ten years, when my parents moved to Azad nagar from Ashoka colony, Manikbag Rd. Since then I have been trying my brother has been trying but we never got a BSNL broadband connection.

I work in Bangalore while rest of the family is in Indore, we would want to have a high speed broadband connection, so that we can have skype video call.  I have brought very good HD cameras and good mice for the same, but in spite of being well equipped with all good quality hardware, we  have one basic thing missing, a high speed internet.

Almost every year we applied, and first couple of years were told by officials that, your area is very far from the current BSNL broadband network, and only for one person, we can't expand that network.

Now that I know that BSNL has reached till Teenn imly squre, which is just 0.5 km from my place, we again tried, but Now BSNL has been telling that we dont have permissions for digging. 

As of now we are managing with BSNL USB modem internet eVDO,  but since its wireless speed is pathetically bad, video conferencing( skype) doesn't work properly.

On one one side MP govt wants to make Indore an IT hub and on other hand people in some areas cant get a govt broadband internet connection. 
Not sure when a good internet connection will be as common as water connection. 

samsung gt s5282 mobile phone review

I had bought this phone because it was the feature reach and budget phone in 5k INR range.
One of the most inexpensive android phone, but within first 3-4 months itself i have realized that its so bad.

1) Charger shipped with this stopped working after a month or so.

2)  Mobile would go white screen, entire screen will be white screen, no menu nothing will be visible, tapping any of the button or screen wouldn't make any difference.   if any phone is coming at this time, there is no way you can received this call.  the only way out is switch off the phone and restart after a gap of 10-15 minutes, if you dont give gap issue may reoccure.

3) ONE OF THE BIGGEST PROBLEM WAS : one I received a call from home ( i was called from BSNL landline) that Phone is making huge noise like a rajdoot motor cycle.  my wife on the phone explained that phone had low battery and the moment she plugged in for charging, it started making huge noise like some big old time motor bike. she immediately unplugged the charger, and it started getting very hot temperature was increasing. she tried to remove the battery but dint succeed. thats when she called I felt as if I am bomb squad member and have to help defuse a bomb especially when I am a few kilo meters away and bomb is just about to blast in 30-45 seconds. My family's life was on risk. I asked my wife to keep phone out of the phone and remain inside and then asked to call neighboor for help. I also considered calling police for the same but by then courageous neighbor came and removed the battery and story was closed. we recharged after 6 hours and restarted the phone and it s working fine since last 2 days , but I am scared of carry a mobile that can burst any time.

Samsung please help. you can reach  me at arif[dot]ali[dot]syed[at]gmail[dot]com  or  

Decathlon nabaiji swimming goggle and swimming cap

I purchased the swimming cap and swimming goggles by nabaiji brand that's sold by Decathlon.
Experience with Swimming cap was good as it would keep my hairs dry even after an hour in swimming pool.
Experience with swimming goggle was pathetic , I tried two model that they had on shelf. 
Xbase Adult and SWIMDOW both would not protect your eyes from water, which is its primary function.
I had first purchased Xbase adult and found its not working water is sipping in always. I went back to their Bannergahtta Rd store staff was humble they offered me to buy SWIMDOW. 
I insisted that I would want to  test it here in bucket of water. I tested it and decathlon employee also tested,
and SWIMDOW also failed the test, please find the photograph  here for the proof.

  Earlier I had a swimming goggle from Speedo, and that use to work fine, but recently my son broke it and my hunt began for another good swimming goggle.

I have still not bought another swimming glasses, I am hunting for one. Any suggestions are welcome.
If i find something good I will update here.

Get rid of cockroaches in home / kitchen

Like most people we also always have  had cockroaches as part of our family and have been sharing the space with them. 
  1. Tried Red Hit, Kala Hit, and all sort of sprays, none of them gave any permanent solution.
  2. Lakshman rekha and many  of other chalks. 
1st solution spray , will just kill the lazy cockoches whom you could chase and spray on them.
2nd solution will kill all those who cross the chalk line in next 24 hours. 

Certainly 2nd approach ,chalks,  were better than sprays.  but new generation would come back in next 2-3 weeks. 

I recently tried following herbal product  "Exit No Entry", its some local product manifectured in Bangalore itself.

I bought 5-6 packets of it, its some green color gel type stuff,  I made out small-small balls out if it.
balls as small as half inch diameter. (they are as big as keys on my keyboard ) , half size of of normal naphthalene balls.

Planted them all in all my house. 50% of it was in kitchen.  

In Kitchen: Below wash basin , in all storage below kitchen platforms and on shelf etc. behind refrigerator.  
Since its sticky gel just like M-seal, you can stick it in places where its not visible to kids.

In Living Room : I kept in all corners of TV stand inside and behind  shoe rack , in the bottom of sofa.
In Bedroom : in wardrobes/dressing table in bedroom.  
In bathrooms.  All chhajja storage in home, even in store room.

Result was not immediate like Lakshman rekha, whenever  I put Lakshamn rekha, all of them would die in next 24 hours.  while in with this herbal solution I kept in cleaning dead cockroaches till on week, after putting this herbal solution, and its been 3 months now i have not seen a single cockroach in house.

Eariler whenever I use to wake up in night and go to kitchen for drinking some water or to eat something, 
the moment I put on the light, there use to be cockroaches stampede. 

Now  I dint find any of them in the middle of night also. Once I kept some eatable on kitchen platform and checked at 1 -2 AM but there was no one to eat the left over.

Bottom line: Any Herbal products like "Exit - No Entry" does work.  buy two packet for kitchen and one packet for all other room.

Disclaimer : I am not connected with this product called "No Entry" in any case. Just sharing my experience. I think other herbal products that are available on nearest groceries shop should work as well.

Which water purifier to buy?

Water is one of the most important thing in our life.

If drinking  water is not pure, you and your family's health may get affected, so you should be using the best of best water purifier which will cost you just 15000-20000 , off course that amount is not as valuable as your family health.
That's what you watch/hear in commercials of allwater purifier manufacturing companies.
But before you listen to any of them or get impressed by a commercial of any water purifier,
Know what you need, which depends on source of your drinking water ( Muncipal/Corporation supplied or Borewell) .
Summary(Final recommendation) :

If your drinking water comes from Muncipal/Coporation : 
Any water purfier that UV purification stage is good enough for you.
If you are drinking Ground water( borewell,well) get your water's TDS level tested and if your water's TDS level is below 500, you can still go for UV filtration based water purifier,  if you water's TDS level is above 500, it's recommended that you go for water purifer that has RO filtration stage.
Detail explanation: 
Water Purification stages in home water purifiers:  
  • UV purification
  • Reverse Osmosis
  • Activated carbon filtering
  • Distillation
  • Ion exchange
  • Electro deionization
Not all of them may be necessary for you, it depends on the source of drinking water.

RO is most important(wrong): Water purifier with RO filtration comes 5-8K costlier than the general one (UV filters) , and most people consider RO to be best without knowing if it is actually needed or not? ( and there are some people like one of my friend who says ...costliest product is the best product, because it must be having more/better qualities than other ;o). 
"Gaurav bhai ki Jay ho" ).
What is TDS?
TDS stands for Total Dissolved Solids.
What is the recommended level of TDS?
If you are drinking a water which already has TDS level between 100 to 500, that good enough,
If you are drinking a water below TDS level 100, you missing many minerals and salt that you body is suppose to get, and you are advised to increase salt intake to fulfill your body's need.
What is the TDS Level of my water? 
Municipal corporation water: If you are drinking the water provided by your municipal/corporation , your water is most probably suppose to have TDS level below 500, and you do not need and RO purifier, and if you are still using RO purifier, purified water's TDS level will be below 50, which is not good.
If Municipal/Corporation is providing you water it means, it has to be less than 500 TDS,
As per Mr. Sunny(associated with research water purification industry )  highest TDS level of municipal/corporation  supplied water is in Kolkata which is 450, most of the city's are in the range of 150-350.

Ground water( bore well,well ) TDS level : In general it is suppose to have high TDS  level ( 500-1000) and may need a RO purfication,  but there is no thumb rule that ground water's TDS is always high , so it's better to get tested. some places it's ground water TDS can be as low as 300-500, like some areas in my native Indore(M.P.)

Where to get TDS level tested in Bangalore?
You can get in touch with Public Health Department of Bangalore Municipal Corporation or analytical laboratories like Public Health Laboratory (BWSSB) 22210248, Mineral Engineering Services - 25432968, 9448024304, Cosmic Industrial Laboratories Ltd - 28520541, 1522, 1523, Essen Labs - 23341230/1567, Crystal Aqua Purity Systems (CAPS)- 23362882, 28601762, 28603450, Bangalore Test House - 23356415/23388895/23502684, Viswas Environmental Laboratory - 080-25262987,25277870. These laboratories conduct variety of tests on taken water sample for impurities, TDS, turbidity, minerals (calcium, magnacium, Ph value, chlorides, Nitrates, Arsenic, pesticides, bacteria etc. It costs around Rs 1,000 and onwards. Electrodes used in on-spot testing may be meant for pH levels, but doing through testing will give reading on variety of components and their permissible or ideal limit in water

but after you get it tested please post the result here as comment.
Source: here

How long purified water would stay good if stored?
Answer to this question does't come from any source, this is my own and personnel view.
I think we should not keep purified water more than 24 hours,

I currently use a UV + Carbon purifier and once I have observed, larva in the purified water after 4-5 days..

Perhaps the reason for this was that I did not get the filters changes from long time 8-12 months or the water consumption was less during these days and stagnant water can always get infected. 

requesting reader of this post also to conduct similar experiment, do not cover the glass/mug/bucket completely, let there be some place for ventilation, 
and also do not keep it completely open also,  else life in water can come from outside too ;o)

Best price of water purifier?
I personally prefer referring to Compare India before buying any electronics item, for two reasons,
one is I can compare the items based on their feature and second is i get to know "almost correct best price"
Being an Indian I encourage you to still bargain on the best price mentioned on compare india :o) .


Microsoft Teched-2010

Recently attended Microsoft TechEd  in Bangalore and 
I have a mixed opinion. 

Event organization: 
Though it was held at one of the famous "Lalit Ashok"  but still i felt even organization company 
was not able to properly manage such a huge event but it's OK i don't blame them , because 
whenever we also have organized any event Be it a marriage in family or Bday or any other company event, 
we also make some mistakes. 
But what I disliked most was making us have lunch in full son...it the summer ,
Forget about a AC hall ( even though it's Lalit Ashok) , there was no shelter also. 

Visual Studio 2010 DEMOs:
a) IDE:
The presentation began with Launch of Visual Studio 2010.
Where they demonstrated two features of IDE, which I found
other products have since last 5 years. 
1. Zoom in/Out in source code (Notepad ++  already had it, since year) 
2. Docking out the documents from IDE ( Common this is a very common feature)

but later on when they came up with the Demo of IntelliTrace.
I said "Ohh boy, that's awesome". 
IntelliTrace can help developer debug & fix, Non reproducible bugs reported 
by QEs.

c)Team Foundation Server : Basically it's version control + build server. It can help managers,team lead and architect enforce rule for check in. 
  •  Architectect can enforce architectural rule for example SetProperty Functions should not be called from
    this DLL/this project etc. 
  • Don't allow check-in if doesn't compile or breaks architectural rule.
  • Scenario execution : QEs/Dev can record scenarios and build server will automatically run all these scenario test once the build is over. 
  • We can also set a rule if any scenario test fails don't allow check-in.
But What I dislike most is Microsoft is continuing to put on it's efforts on .NET  and forgetting their C++ users.  IntelliTrace doesn't work at all for C++  on other hand Team Foundation Server's
Scenario execution part doesn't work with unmanaged code.