Huge Discounts on Mobiles, Books, Cameras, Computers etc: @Flipkart
Flipkart.com

Wednesday, May 19, 2010

BSNL 3G: Settings and Speed Check

3G is the current buzz word all around India. BSNL introduced it first and rest are following soon. Auctions are almost done and most of the major providers like Airtel, Vodafone etc should be launching it by 3Q-4Q 2010.

I bought the 3G SIM from BSNL, but since number portability is not yet implemented and also because BSNL is notorious for lousy network and call quality, I am going to stick with Airtel as my primary phone. I will keep 3G as my backup internet connection and also to try out the 3G features on my new Samsung Galaxy Spica (GT-I5700).  Here is how to turn on 3G and use the BSNL 3G network

1) Make sure your phone is set to work on 3G network:
In some phones you have to select "WCDMA" (UMTS) in network mode settings. In Spica, 3G is turned on automatically as long as you haven't disabled it specifically. To disable 3G:  Settings -> Wireless & networks -> Mobile Networks -> Use only 2G networks (saves battery)

You should see "3G" written somewhere on your phone screen if it is connected to 3G network.

2) Create a new connection profile:
Now depending upon the phone, goto Connection settings, there create new connection profile and you are only required to specify APN and you are done. APN stands for "ACCESS POINT NAME" .  In Spica, Settings -> Wireless & networks -> Mobile Networks ->Access Point Names -> New APN

You are required to specify following APN for BSNL 3G settings:
APN = bsnlnet (that's it, leave rest everything as it is)

Most of the phones should connect to 3G when you save and exist, else try restarting the phone.

I compared the 3G speed (Bangalore) vs 1mbps Airtel broadband via WiFi
As you can see above, the max I got for download is 381 kbps and upload of 359 kbps. Not as expected, but still a huge leap over the gprs/edge (~40 kbps).

It is not yet time to disconnect your broadband, but you can definitely consider 3G as your backup connection and for emergency connectivity while travelling!

More info:
http://webcache.googleusercontent.com/search?q=cache:N96ZWmpFaEgJ:www.haryana.bsnl.co.in/BSNL%2520SETTINGS%2520FOR%2520GPRS%2520AND%25203G.doc+bsnl+3g+apn&cd=2&hl=en&ct=clnk&gl=in

Sunday, May 16, 2010

How to capture screen of Samsung Spica (or any Android Mobile)

Initially I used to struggle a lot with my digital camera for getting some screenshots of the Samsung Spica smart phone, but later learnt that it can be done very easily using the android SDK tools itself.

Following are the steps:

1) Download & install Android SDK
http://developer.android.com/sdk/index.html

2) Connect your phone using the USB Cable. Make sure following settings are turned on:
USB Debugging : Settings -> Applications -> Development

3) Open "ddms" in \tools
eg: android-sdk-windows\tools\ddms.bat
DDMS =  Dalvik Debug Monitor Service


4) Your phone should now appear in DDMS as shown above. Select the phone, and then goto Device -> Screen capture (or Ctrl+S)

5) Use the handset to navigate to whatever screen you want a shot of, press “Refresh” and hit the “Save” button

 

More info:
http://developer.android.com/guide/developing/debug-tasks.html
http://www.mobilecrunch.com/2008/10/31/how-to-capture-the-screen-of-an-android-device/

Friday, May 14, 2010

Virtual Machines & Snapshots

Recently I was getting a lot of errors on my VMWare ESXi 3.5 server, that there is not enough space for the redo log etc. When I created the VMs, there was enough space left on the VM Server and suddenly I am out of space and all my VMs are either complaining or not working. Did some dig up and found that some snapshots were created, which was never committed and hence they were growing and eating all my disk space! I always thought the snapshot takes only a little space and it is a one time cost. But only now I came to know that creating a snapshot keeps on consuming more disk space to preserve the previous state and to keep note of the deltas that happened there after. So if you created a snapshot, either revert or delete(commit) it soon, unless you must retain the snapshot and have plans to revert to it. I recovered around 150GB or more after deleting all my snapshots..

Screenshot of datastore, with snapshots:

Screenshot, after removing snapshots:

Understanding Snapshots
Snapshots let you preserve the state of a virtual machine so you can return to the same state repeatedly. A snapshot captures the entire state of a virtual machine at the time you take the snapshot. This includes:
•  Memory State – Contents of the virtual machine’s memory
•  Settings State – Virtual machine settings
•  Disk State – State of all the virtual machine’s virtual disks

Snapshots operate on individual virtual machines. In a team of virtual machines, taking a snapshot preserves the state of only the active virtual machine. When you revert to a snapshot, you return these items to the state they were in at the time you took that snapshot. If you want the virtual machine to be suspended, powered on, or powered off when you start it, ensure it is in the state you want when you take that snapshot.
Snapshots let you revert repeatedly to the same state without creating multiple virtual machines. With snapshots, you create backup and restore positions in a linear process. You can also preserve a baseline before diverging a virtual machine in a process tree.

Snapshots can be used as restoration points during a linear or iterative process, such as installing update packages, or during a branching process, such as installing different versions of a program. Taking snapshots ensures that each installation begins from an identical baseline.


Multiple Snapshots
“Multiple snapshots” refers to the ability to create more than one snapshot of the same virtual machine. To take snapshots of multiple virtual machines, for example, taking snapshots for all members of a team, requires that you take a separate snapshot of each team member.

Multiple snapshots are not just a new way of saving your virtual machines. With multiple snapshots, you can save many positions to accommodate many kinds of work processes.

Although you can take snapshots to 32 levels, the time it takes to commit or delete those snapshots increases as the levels get deeper. The required time is directly proportional to the amount of data (committed or deleted) and the virtual machine’s RAM size.


Managing a Snapshot
The Snapshot Manager lets you review all snapshots for the active virtual machine and act on them directly.
In addition to the Snapshot tree, the Snapshot Manager dialog box contains the following areas:
•  Details displays the selected snapshot’s name and description. These fields are blank if you have not selected a snapshot.
•  Command buttons: Go to, Delete, Delete All, Edit
•  You are here icon represents the current operational state of the virtual machine. The icon is always selected and visible when you open the Snapshot Manager. You cannot go to or select the You are here state because it represents the current and active state.

The You are here icon represents a state that is never a snapshot itself but rather the virtual machine state after the parent snapshot has been taken. A snapshot is always a static record of a virtual machine state. The You are here state can be operational and changing. Even when you create a snapshot of a powered off or suspended virtual machine, the state is not identical to the snapshot.

To go to a snapshot
1.  Select a snapshot by clicking it.
2.  Click the Go to button to restore the virtual machine to the snapshot.
     The Go to command lets you restore the state of any snapshot.
3.  Click Yes in the confirmation dialog box.
4.  Click Close to exit the Snapshot Manager.

To permanently remove a snapshot from VirtualCenter
1.  Select a snapshot by clicking it.
     Note: Clicking Delete commits the snapshot data to the parent and removes the selected snapshot.
2.  Click the Delete button.
3.  Click Yes in the confirmation dialog box.
4.  Click Close to exit the Snapshot Manager.

To delete all snapshots
Note: Clicking Delete All commits all the immediate snapshots before the You are here current active state to the base disk and removes all existing snapshots for that virtual machine.
1.  Click the Delete All button to permanently remove all snapshots.
2.  Click Yes in the confirmation dialog box.
3.  Click Close to exit the Snapshot Manager.


Summary:
Snapshots are not meant for long term, so make a decision soon and based on the decision either merge the snapshot(delete will merge & commit) or revert to previous state. Never use snapshot for backup, as the files are inter-dependent and if any of them is gone, whole VM is gone. Too many snapshots negatively impacts the performance of a virtual machine; and a single snapshot can take up as much disk space as the virtual machine itself

More info:
http://www.petri.co.il/virtual_vmware_snapshot.htm
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009402
http://blogs.techrepublic.com.com/virtualization-coach/?p=143