Tuesday, May 29, 2012

DND service in India

If you want to stop receiving promotional calls/SMS, you have to message STOP DND [toll free] to 1909 (for all operators). However even after messaging STOP DND and START 0 (fully blocking) I was unable to successfully de-register myself.

The simplest way was to call 1909 and talk to the CSR to get rid of the service.

Tuesday, May 15, 2012

Tata DOCOMO Internet settings for Android

Just SMS internet to 52270 and save the settings as default on your mobile. Then log on to the internet browser of the handset and go to settings option and select “DOCOMO internet” APN(Access Point Name).

  1. Settings->Wireless and Networks->Mobile Networks->Access Point Names->New APN
  2. Give any name (does not matter)
  3. APN=TATA.DOCOMO.INTERNET
  4. MCC=405
  5. MNC=039

Nothing else needs to be set. Important point is point 3. Now just purchase voice prepaid services followed by Mobile Prepay Packs and enjoy Smile

Tuesday, May 08, 2012

Make Linux (Ubuntu) safe and secure

Viruses are now written in Java or Adobe/Flash exploits. These are (for the most part) OS independent. Other than those, most of viruses are written for Windows and don't run on Linux. Google "rootkits" if you want to read more about Linux viruses.
To protect yourself on Linux:
1. Disable scripts in your web browser or only allow trusted sites. Your browser should have settings which you can control. A quick google will tell you what you need to know. NoScript works well if you use Firefox.
2. Disbale Flash in your web browser or only allow trusted sites. Your browser should have settings which you can control. A quick google will tell you what you need to know. Flashblock works well if you use Firefox.
3. Keep Adobe Reader up to date. They send out security updates frequently. Another option is not to use Adobe Reader at all. Just use something else to view PDFs.
4. Enable your Firewall. Ubuntu ships with UFW (Uncomplicated Firewall). The setup is easy. Start here: https://wiki.ubuntu.com/UncomplicatedFirewall. Be sure to set it up so everything is blocked by default, then enable what you want.
5. Enable your router's firewall. Google the security settings for your firewall and beef up your security. Again, disable access by default and enable whatever you want to use.
6. Scan for rootkits every so often. Rootkit Remover works well. Don't install it on the Linux machine since any good rootkit will look for it and either get rid of it or reconfigure it so it won't be of much use. A Linux Live CD comes in handy here.
7. Encrypt your data. Ubuntu allows you to encrypt your home directory (which is where most people store their documents, etc.) easily. Take advantage of that.
8. Change your passwords at least a few times each year. Don't use the same password for everything.
9. Some sites allow you to see the IP addresses/login times which you account is used from. Check info from time to time. Some sites have a setting to email you if your account is accessed from an unknown IP.
10. If you are still worried, run an anti-virus program. AVG works well and is free.
See here: https://wiki.ubuntu.com/Security/Features for more info.

For Macs

  1. Virus Barrier
  2. run a scan with Sophos Antivirus

Sunday, May 06, 2012

CloudFoundry NATS server problem


ejvyas@ubuntu:~$ cd cloudfoundry/
cd ejvyas@ubuntu:~/cloudfoundry$ cd vcap
Using /home/ejvyas/.rvm/gems/ruby-1.9.2-p180
ejvyas@ubuntu:~/cloudfoundry/vcap$ bin/vcap start
router              : STOPPED
LOG:
 [2012-01-27 11:06:56] router - 14786 40fa 5678   INFO -- Starting VCAP Router (0.98)
[2012-01-27 11:06:56] router - 14786 40fa 5678   INFO -- Listening on: 0.0.0.0:2222
[2012-01-27 11:06:56] router - 14786 40fa 5678   INFO -- Listening on unix domain socket: '/tmp/router.sock'
[2012-01-27 11:06:56] router - 14786 40fa 5678   INFO -- Socket Limit:1024
[2012-01-27 11:06:56] router - 14786 40fa 5678   INFO -- Connections: [Clients: 0, Apps: 0, Total: 5]
[2012-01-27 11:06:56] router - 14786 40fa 5678  ERROR -- EXITING! NATS connection failed: Could not connect to server on nats://localhost:4222
cloud_controller    : STOPPED
dea                 : RUNNING
health_manager      : STOPPED
LOG:
 [2012-01-27 11:07:28] hm - 15015 397f a1ab  ERROR -- NATS problem, Could not connect to server on nats://localhost:4222/
[2012-01-27 11:07:28] hm exception 15015 397f a1ab  ERROR -- NATS::ConnectError("Could not connect to server on nats://localhost:4222/", [])
stager              : STOPPED
LOG:
 [2012-01-27 11:07:32] vcap.stager.server - 15133 451b 8e55  ERROR -- NATS error: Could not connect to server on nats://127.0.0.1:4222
[2012-01-27 11:07:32] vcap.stager.server exception 15133 451b 8e55  ERROR -- NATS::ConnectError("Could not connect to server on nats://127.0.0.1:4222", [])
/home/ejvyas/cloudfoundry/vcap/stager/lib/vcap/stager/server.rb:84:in `block in install_error_handlers': Could not connect to server on nats://127.0.0.1:4222 (NATS::ConnectError)
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/nats-0.4.22.beta.4/lib/nats/client.rb:541:in `call'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/nats-0.4.22.beta.4/lib/nats/client.rb:541:in `process_disconnect'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/nats-0.4.22.beta.4/lib/nats/client.rb:531:in `unbind'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:1417:in `event_callback'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:256:in `run_machine'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:256:in `run'
from /home/ejvyas/cloudfoundry/vcap/stager/lib/vcap/stager/server.rb:47:in `run'
from /home/ejvyas/cloudfoundry/vcap/stager/bin/stager:54:in `<main>'
redis_gateway       : STOPPED
redis_node          : RUNNING
mysql_gateway       : STOPPED
LOG:
 [2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08   INFO -- MyaaS-Provisioner: Initializing
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08  DEBUG -- Register update handle callback with #<Proc:0x0000000188ef18@/home/ejvyas/cloudfoundry/vcap/services/base/lib/base/asynchronous_service_gateway.rb:116>
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08   INFO -- Sending info to cloud controller: http://api.vcap.me/services/v1/offerings
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08   INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/mysql-5.1/handles
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08  ERROR -- EXITING! NATS connection failed: Could not connect to server on nats://localhost:4222
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08  ERROR -- Failed registering with cloud controller:
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08  ERROR -- Failed fetching handles:
[2012-01-27 11:08:01] mysql_gateway - 15242 1dbb 3b08   INFO -- Sending deactivation notice to cloud controller: http://api.vcap.me/services/v1/offerings
/home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:1425:in `event_callback': recieved ConnectionUnbound for an unknown signature: 2 (EventMachine::ConnectionNotBound)
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `release_machine'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `ensure in run'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:280:in `run'
from /home/ejvyas/cloudfoundry/vcap/services/base/lib/base/gateway.rb:86:in `start'
from /home/ejvyas/cloudfoundry/vcap/services/mysql/bin/mysql_gateway:27:in `<main>'
mysql_node          : RUNNING
mongodb_gateway     : STOPPED
LOG:
 [2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7   INFO -- MongoaaS-Provisioner: Initializing
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7  DEBUG -- Register update handle callback with #<Proc:0x0000000297fbd8@/home/ejvyas/cloudfoundry/vcap/services/base/lib/base/asynchronous_service_gateway.rb:116>
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7   INFO -- Sending info to cloud controller: http://api.vcap.me/services/v1/offerings
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7   INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/mongodb-1.8/handles
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7  ERROR -- EXITING! NATS connection failed: Could not connect to server on nats://localhost:4222
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7  ERROR -- Failed registering with cloud controller:
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7  ERROR -- Failed fetching handles:
[2012-01-27 11:08:14] mongodb_gateway - 15304 4fc2 e3e7   INFO -- Sending deactivation notice to cloud controller: http://api.vcap.me/services/v1/offerings
/home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:1425:in `event_callback': recieved ConnectionUnbound for an unknown signature: 2 (EventMachine::ConnectionNotBound)
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `release_machine'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `ensure in run'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:280:in `run'
from /home/ejvyas/cloudfoundry/vcap/services/base/lib/base/gateway.rb:86:in `start'
from /home/ejvyas/cloudfoundry/vcap/services/mongodb/bin/mongodb_gateway:27:in `<main>'
mongodb_node        : RUNNING
echo_gateway        : STOPPED
LOG:
 [2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde   INFO -- EchoaaS-Provisioner: Initializing
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde  DEBUG -- Register update handle callback with #<Proc:0x000000020e7bd8@/home/ejvyas/cloudfoundry/vcap/services/base/lib/base/asynchronous_service_gateway.rb:116>
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde   INFO -- Sending info to cloud controller: http://api.vcap.me/services/v1/offerings
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde   INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/echo-1.0/handles
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde  ERROR -- EXITING! NATS connection failed: Could not connect to server on nats://localhost:4222
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde  ERROR -- Failed registering with cloud controller:
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde  ERROR -- Failed fetching handles:
[2012-01-27 11:08:26] echo_gateway - 15368 f297 0cde   INFO -- Sending deactivation notice to cloud controller: http://api.vcap.me/services/v1/offerings
/home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:1425:in `event_callback': recieved ConnectionUnbound for an unknown signature: 2 (EventMachine::ConnectionNotBound)
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `release_machine'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `ensure in run'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:280:in `run'
from /home/ejvyas/cloudfoundry/vcap/services/base/lib/base/gateway.rb:86:in `start'
from /home/ejvyas/cloudfoundry/vcap/services/echo/bin/echo_gateway:25:in `<main>'
echo_node           : RUNNING
nosql_gateway       : STOPPED
LOG:
 [2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4   INFO -- NosqlaaS-Provisioner: Initializing
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4  DEBUG -- Register update handle callback with #<Proc:0x0000000149d878@/home/ejvyas/cloudfoundry/vcap/services/base/lib/base/asynchronous_service_gateway.rb:116>
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4   INFO -- Sending info to cloud controller: http://api.vcap.me/services/v1/offerings
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4   INFO -- Fetching handles from cloud controller @ http://api.vcap.me/services/v1/offerings/nosql-1.0/handles
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4  ERROR -- EXITING! NATS connection failed: Could not connect to server on nats://localhost:4222
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4  ERROR -- Failed registering with cloud controller:
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4  ERROR -- Failed fetching handles:
[2012-01-27 11:08:42] nosql_gateway - 15441 799c 98e4   INFO -- Sending deactivation notice to cloud controller: http://api.vcap.me/services/v1/offerings
/home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:1425:in `event_callback': recieved ConnectionUnbound for an unknown signature: 2 (EventMachine::ConnectionNotBound)
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `release_machine'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:263:in `ensure in run'
from /home/ejvyas/.rvm/gems/ruby-1.9.2-p180/gems/eventmachine-0.12.11.cloudfoundry.3/lib/eventmachine.rb:280:in `run'
from /home/ejvyas/cloudfoundry/vcap/services/base/lib/base/gateway.rb:86:in `start'
from /home/ejvyas/cloudfoundry/vcap/services/nosql/bin/nosql_gateway:25:in `<main>'
nosql_node          : RUNNING

Upgrading to Ubuntu 12.04 LTS