Apr 18, 2012

Windows 7 SSD Tips

The list may be updated.


  • You probably already know this:
    Install large programs on the HDD instead of the SSD drive.
  • Disabling hibernation saves you X GBs on the SSD drive, where X is the size of your RAM.
    Run cmd as administrator.
    Type in:  powercfg -h off
  • Move Documents, Movies, Pictures, Music folder on the HDD drive.
    Moving these directories is easy. Just right-click on them, click Properties, click Location and click Move.
  • Move AppData folder - this is the folder where your installed programs store temporary and/or your local data which is used by those programs. It can grow really large in size.
    There is no simple procedure to do this, so this option is not really preferred.
  • Move the whole Users folder.
    LifeHacker has an article about it. Again, not a really simple solution.

Apr 17, 2012

Windows 7 File permission problem after reinstallation


Run command line as administrator

For Folders or Directories (will perform action recursively):

takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t


Replace file_name or directory_name with actual file name or folder name, with path when applicable. The first command will take ownership of the file or folder specified, and the second command will grant full control permissions to administrators user group. Note that when using command for folders, to command will run recursively. To prevent the task been perform recursively, remove the “/r” and “/t” switch.


Source: http://forum.thewindowsclub.com/windows-tips-tutorials-articles/18379-how-take-ownership-full-control-permissions-files-folders-windows.html

Apr 14, 2012

Google Maps API Key for Android (Eclipse, Windows)

There are two main types of keystores in Eclipse - one is for debugging (a keystore with no password) and the other one is when you create a new one yourself, with a password.

To make Google Maps work on your Android app, you need to enter a MD5 fingerprint of your keystore in Google Maps API signup: http://code.google.com/android/maps-api-signup.html

And here's how you get your keystore's MD5 fingerprint in Windows.

  1. You probably already have JDK installed. Find out your Java bin directory. Mine is:
    C:\Program Files\Java\jdk1.6.0_24\bin
  2. Enter this directory path in your PATH Environment variable (see picture).
  3. Start "cmd" and navigate to your
    C:\Users\<yourusername>\.android
    directory
  4. Type this command:
    keytool -list -keystore debug.keystore
  5. The password is empty, just hit enter
  6. You're done. Copy the MD5 fingerprint in that url, you get an API key, which you use in your Android MapView Layout file.
    android:apiKey="your api key here"