Monday, December 27, 2010

VMWare Player: Cannot ping Guest OS

Host OS: Windows 2008 R2 Enterprise x64
Guest OS: Windows 2003 Standard x86

I somehow couldn't ping Guest OS even though the networking setting is set to Bridged.
Took me a while to figure this out but the problem lied on Firewall.

Solution:
Go to Windows Firewall.
In the Advanced Tab, choose ICMP settings,
check "Allow incoming echo request"
Then, ping command should work!!!

Tuesday, December 21, 2010

SVN client for Eclipse

So I've again started developing android apps seriously.
I haven't used SVN since I moved into Mac OS X.

I'm using Eclipse Helios(Eclipse 3.6) now.
I've decided to go ahead with subclipse svn client since I've used it before.
To install it, go to Help => Eclipse Marketplace...
Then, search for Subclipse, I'm sure you'll find it there.


Here's the subclipse page just for reference.
http://marketplace.eclipse.org/content/subclipse

Ok, here's further notes on how to use svn on Mac OS.
When I tried to upload my source code, it didn't work.
Basically I was missing svn....yes, very embarassing.
So I downloaded and installed MacPorts using binary edition.
Then, I did self update using the following command.
sudo port -v selfupdate

Then, I installed svn client using the following command.
sudo port install subversion

Even after that, I couldn't use subclipse.
I kept on getting some weired JavaHL errors and couldn't proceed to share my project using svn.
The solution was right in subclips wiki page.
http://subclipse.tigris.org/wiki/JavaHL

Basically, I downloaded and installed the OSX package that is provided on openCollabNet.
Then, I modified .profile, just adding one liner (export PATH=/opt/subversion/bin:$PATH) just as instructed on the completion page of the svn installer.

Now, I can finally get down to coding and sharing the project!!! YEAH!!!

Monday, December 20, 2010

Getting Android Gallery Application Source Code Using Git

Suppose you already installed your git on your OS.

Go into the directory where you want to create the project file, then type the following command.
git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git

Then you will get a folder called 'Gallery' with all the source code.

Reference
Git official page
Android Gallery app source code