Thursday, December 01, 2011

Using Voicemail with Airtel Prepaid Karnataka


  • Call  *321*671# to activate the service on your phone.
  • It will ask you for permission if you want to enable it.
  • To customize the account dial 52555
  • To disable voicemail dial *321*673#
  • You can also activate it by sending out a SMS
  • Send START VMS to 54321 for activation 
  • Send STOP VMS to 54321 for de-activation 

This post if for my own reference. If you have any questions leave a comment and if I know about it I will try and answer it.

Monday, October 24, 2011

Which mobile OS will win the battle?

tl;dr If I had to predict today which OS will finally win the battle it has to be Android.

Once the market stabilizes there are only so many OS's that can survive. Android is to the mobile what Windows is to the PC. It might not be the best to begin with but given enough time it can finally catch up to the competition. There are only that many new features that you can add. Once you've added those there will hardly be any differentiating feature amongst the competing OS's.

In the end it will be about hardware. And as of now only Android is the only OS which can run from a very low end smartphone to the top of the line phone.

Monday, September 12, 2011

Running node.js on windows without using Cygwin

Finally node.js is available as a windows binary without requiring Cygwin to be installed.

As of writing this post you can download the node.js binary 0.5.6. Currently npm does not work with node.js on windows. You need to download and use ryppi.py instead of npm. It works similar to npm but requires python. To setup node.js first set the PATH and NODE_PATH to the where you have copied node.exe.

             set PATH=%PATH%;c:\node
             set NODE_PATH=c:\node


It is better to set these environment variables in the System Properties so that you don't have to set these variables every time. Follow the following steps to do that.
  1. Right-click Computer, and then click Properties.
  2. Click the Advanced system settings in the left side bar.
  3. Click the Advanced tab.
  4. Click Environment variables.
  5. Append the node path to the PATH variable
  6. Create a new variable NODE_PATH and set it to the path where node is installed
Once you are done with it need to install Python as ryppi.py is a python script which works like npm. Once you are done with it you can install any of the libraries by using the following command.

             python ryppi.py install socket.io express

Am assuming here that python is setup using the installer which also will also setup the path of python in the environment variables. 

Friday, May 06, 2011

TIL: In JavaScript function.length returns the number of arguments it supports

function test(a, b, c)
{

}

alert(test.length);

In this piece of code if you use .length on a function it returns the number of named arguments that this function accepts.