Monday, August 04, 2008

Cheapest VOIP calls to India

I have tried different calling cards/VOIP providers in last few years and following is the list of cheapest VOIP providers for calling to landline/mobile in India.

CompanyLandline (USD)*Mobile (USD)*
SMSDiscount 0.043 0.043
CallEasy 0.034 0.034
VoipRaider 0.042 0.048
Intervoip 0.038 0.038
Nonoh 0.051 0.051
Freecall 0.026 0.026
Webcalldirect 0.034 0.051

Note (*) ==> Rates are including VAT (Most of these companies are betamax companies and based in Europe where customers have to pay VAT)

All of these companies have web based interface to make calls from browsers. All of them have local access number (so that we can call locally which is free for us and we can use our mobile minutes if no local call facility available)

If you come to know about other VOIP providers please leave that in the comment below and I will add it.

Hope this helps!!

Update: Added couple of new VOIP service provider and as of today FreeCall is the best considering rates.

Sunday, August 03, 2008

Double data type in Java and C++

In Java when we parse double value we will be able to parse values in the range 1.79E308 to -1.79E308. If we try to parse double value beyond this range we get infinity.

To parse any value beyond this range in Java we can use BigDecimal data type.

So to handle values beyond the above mentioned range use BigDecimal data type.

Well in most of the real life scenarios it's hypothetical to go beyond this range but QA (quality assurance)people will test your code for this.

In C++ we don't have BigDecimal data type, so it's a limitation of C++ to parse values beyond this range. Either you can throw exception or log an information about the support provided by your software or document the same.

Other way to handle this is to parse input value as String with some checks (decimal, grouping, no alphabets, only digits etc) and returning it as string. [This is possible when you don't have to do further calculation using this value in C++ but have java component on the other side to calculation]