Skip to main content

Posts

Showing posts from 2012

Naming the groups on Start Screen in Windows 8

Windows 8 arranges the application in their own groups. If you want you can arrange the group as expected and even rename the groups. You can create your own groups just by dragging an app's tile to an empty space on the Start screen it'll create own group. To rename the group as shown in below image click at the small (looks like minus) button in the bottom right corner of the start screen. 
Now once you click on small button the application icons will become smaller and allow you to choose to the group. Right-click on any group will brought up the options available as shown below. 
Now click on the name group and name the application group you want.

How to disable switching between the recent apps on Windows 8

Microsoft has done many usability enhancement in Windows 8. One of which is ability to quickly switching between recent applications by clicking on left top corner of the open application.
Recent app thumbnail is shown in image below.

If you want you can disable the turn off the switching off between the recent applications using the group policy editor.
You can launch the local group policy editor by executing command "gpedit.msc" on Run windows or command prompt. 
Once the Local Group Policy Editor is open, on the "Local Computer Policy" tree traverse(expand) to:
User Configuration -> Administrative Templates -> Windows Components -> Edge UI 
Now double click the Setting "Turn off switching between recent apps" and set its value to Enable, and click Apply and OK.

How to enable Start Screen Animation on Windows 8

Note: This post describe the method which involves changing and creating the registry keys. So in order to keep your computer away from any damage, please take the backup of  registry before going ahead.

Windows 8 Start screen supports animation. By default the animation is disabled. You can enable by setting the value of registry key. 
Follow below steps to enable the start screen animation:
Start the registry editor. You can start it by executing command "regedit" in run  prompt or command prompt.Now in registry editor traverse to the folder (key)   HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\Grid.Under Grid folder (Key) create the DWORD value  "Launcher_SessionLoginAnimation_OnShow" and set its value to 1. This will enable the animation immediately. Now go to start screen by pressing start button to see the animation.
You can also control animation with some additional values :

Launcher_SessionLogin_Icon_Offset - Use this DWORD to set th…

Enabling God Mode in Windows 8

Like Windows 7, Windows 8 also has a hidden “God Mode” that displays all of the admin tools and control options at single place.
To use the God Mode, create a New Folder on desktop or anywhere on the hard drive. Rename the folder with any name ending with ".{ED7BA470-8E54-465E-825C-99712043E01C}" just like "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}". 
Once you have renamed the folder icon for the folder will automatically will get changed as shown below. 

Now double click the GodMode icon, it will open control panel displaying all of the admin tools as below.




How to shown hidden system files in Windows 8

Windows 8 has many user interface changes than Windows 7. The file explorer also has tool bar similar to Outlook Ribbon style. To  view hidden system file in the folder you just have to select View toolbar from explorer window. On View toolbar, click Options button as shown in image below. Clicking Options will display menu for "Change folder and search options".
Clicking "Change folder and Search options", will launch the "Folder Options" dialog as shown below.  Now on"Folder Options" dialog un-check "Hide protected operating system files" option, and press Apply & OK.

Now once you go back to explorer it should display the hidden system files as well.

How to add Domain Users to Group in Active Directory through vbscript

In order to add domain user to domain group first get the group object then get the domain user from active directory, then add user's ADsPath to group as shown in below sample code.
Set objGroup = GetObject("LDAP://CN=TestGroup,OU=TestOU,DC=TEST,DC=com")
Set objUser = GetObject("LDAP://CN=TestUser,OU=TestOU,DC=TEST,DC=com")
objGroup.Add(objUser.ADsPath)
Wscript.echo "Successfully added user TestUser to TestGroup"

ADT or Eclipse with ADT plugin crashes with out of memory error

Android Developer Tools or Eclipse loading ADT plugin may crash with Out of memory exception. Sometimes ADT or Eclipse may also crash while loading any activity layout xml with the errors shown in below images.



This may happen because you might be having older version of Java SDK installed. Installing the latest version of JDK like 6 or 7 should resolve these errors.

Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Dialog').

The error occurs because the style element Theme.Dialog is declared under "android:style".
Your ApplicationManifest.xml may contain code as:     <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Dialog">
Update the android:theme attribute as given below, the error will get resolved.     <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Dialog">

Error: "Open quote is expected for attribute "{1}" associated with an element type ...

While developing android applications using eclipse you may get error "Open quote is expected for attribute "{1}" associated with an  element type ...". This may happen sometimes because you might have by mistake typed closed quote (“) instead of open quote("). Change the quotes at start and end of attribute and you are done.

Error : "The end date you entered is before the start date..." Outlook 2010

You may get error "The end date you entered is before the start date" when you are trying to save the Outlook Options in Outlook 2010.


In order to resolve the error go to Options -> Calendar -> WorkTime and change Work Hours so that work stat time should be small than ( less than) End time.
Now try to save the Outlook Options.

How to set password for users in Active Directory through vbscript

Below is the sample vbscript to set password for Users in Active Directory

'First connect to container (OU) under which we will create user
TempUserName="TempUser"
Set objUser = GetObject("LDAP://cn=TempUserName,OU=TestOU,DC=TEST,DC=COM")

objUser.SetPassword "Testme123" 'Also set password never expires objUser.Put "PasswordExpired", CLng(1) objUser.SetInfo
Wscript.echo "Sucessfully Set password for user TempUser"


Code above connects to the active directory object with CN=TempUser, ( connects to user TempUser) under TestOU, domain Test.com. The SetPassword will set the provided password for user and additionally we can set Password Never expires flag for that user.  

How to enable user account in Active Directory through vbscript

Below is the sample vbscript to enable the user from Active Directory

Set objOU = GetObject("LDAP://TestDC/OU=TestUO,DC=Test,DC=com")
Set objUser = GetObject("LDAP://CN=TempUser,OU=TestOU,DC=Test,DC=com")
objUser.AccountDisabled = FALSE
objUser.SetInfo
Wscript.echo "Successfully enabled TempUser from Test.Com"
Note: Before executing above script please make sure that the user with samaccount name TempUser exist in the domain and OU with name TestOU exists under Test.Com root container.

How to create User, Computer or Group in Active Directory through vbscript

Below is the sample vbscript to create the Users in Active Directory


'First connect to container (OU) under which we will create user
Set objOU = GetObject("LDAP://TESTDC/OU=TestOU,DC=TEST,DC=COM")
username="TempUser"
Set objUser = objOU.Create("User", "cn="&username)
objUser.Put "sAMAccountName", username
objUser.Put "displayName", "Temp Name"
objUser.SetInfo
Wscript.echo "Created TempUser in Domain Test.com, having domain controller TESTDC"


Above code first connects to the container under which we are going to create user. Then we create the user with CN=TempUser, this will create user object under TestOU, domain Test.com, having domain controller TestDC. Once object is created, we have set some of the user properties such as samAccountName, displayName. SetInfo will save the modified properties of the created object.

Note: Before executing above script please make sure that the user with samaccount name T…

How to install Active Directory Users and Computers for Windows 2008 and R2

Active Directory Users and Computers allows management of users, groups, organizational units, and all other AD DS objects of your domain.  To install Active Directory users and computers you will have to launch the server manager. You can type in "ServerManager.msc" in Run prompt and hit enter(OK). Under Server manager select Features. The click on Add Features. Add Feature will launch the Add Feature Wizard listing the features to add. 
On Windows Server 2008, under Add Feature Wizard expand  Remote Server Administration ToolsRole Administration ToolsActive Directory Domain Services Tools and then select Active Directory Domain Controller Tools which include Active Directory Users and Computers, Active Directory Domains and Trusts etc... On Windows Server 2008 R2, under Add Feature Wizard expand Remote Server Administration ToolsRole Administration ToolsAD DS and AD LDS ToolsAD DS ToolsAD DS Snap-Ins and Command-Line Tools.On selecting these features complete the Wizard to insta…

Project not selected to build for this solution configuration.

When you upgrade your older solution files to latest version of visual studio 2010 or 2012 you may get compilation output as "Project not selected to build for this solution configuration", even though with the earlier version of visual studio these projects were building fine. 
In order to build required project you just have to modify the solution configuration. Steps below mention how to do it.
Launch the Solution properties, by right clicking solution and select Properties.On solution properties dialog box, from configuration properties group select Configuration.For the projects which you are getting the error as above select the check box under Build column if not checked. Save configuration by pressing OK.Now your project being skipped should get built, while building the solution.

Error Code: bX-4wouuu When you try to see blogger stat

When you try to view your blogger stat you may get an error "bX-4wouuu". The message will look similar to below image 

We're sorry, but we were unable to complete your request. When reporting this error to Blogger Support or on the Blogger Help Group, please: Describe what you were doing when you got this error. Provide the following error code. bX-4wouuu This information will help us to track down your specific problem and fix it! We apologize for the inconvenience. This error may caused by the browser cache or some of the installed chrome Extensions.  In order to resolve the error, first clear the browser cache. If this did not resolve the problem then some extension might be the culprit. In my case it was "DAP Link Checker extension".  Disable the extension and relaunch the chrome you should able to see the blogger stat. This extension gets installed by default when you install DAP. 
If you don't have the DAP extension installed then try removing available extensi…

Error : "The local policy of this system does not permit you to logon interactively" during RDC

If you are trying to use the Remote Desktop Connection tool to connect to your another system you may receive the following error message:“The local policy of this system does not permit you to logon interactively.”
All the below mention procedure needs to be carried out on the Remote Machine that you are trying to connect using Remote Desktop Connection tool. Also in order to perform below steps you will require administrative rights on the remote machine.


To resolve this issue, add user with which you are trying to connect to the Remote Desktop Users group: Click Start, point to Settings, and then click Control Panel.Double-click System, and then on the Remote tab, click Select Remote Users. Click Add type in the user account name, and then click OK.
Also, make sure that the Remote Desktop Users group has sufficient permissions to log on through Terminal Services. To check this, follow these steps: Click Start, click Run, type secpol.msc, and then click OK.Expand Local Policies, and t…

How to Factory Data Reset or Hard Reset Samsung Galaxy SIII (GT-i9300)

Note: Performing these steps you will loose all your contacts, messages, all application settings and all installed applications.

If you have trouble with phone software and you want to reset the phone to factory state, you can try factory reset using below steps:

1. Go to System Settings and then select Privacy.
2. Select FACTORY DATA RESET
4. Select RESET PHONE
5. If the password is required,enter it. Then confirm by selecting ERASE EVERYTHING. 

If you’re unable to access the settings menu of your Galaxy S III, to Hard Reset the try this method:

1. Turn phone POWER OFF, or pull the battery out and put it back again.
2. Press the Volume UP + Home Button.
3. Keep pressing these 2 buttons + press POWER button for 2-3 seconds.
4. Release only power button but keep pressing Volume Up, Home button.
5. A Boot Menu will then show, Use the volume up/down to choose and home to select.
6. Select Wipe data/factory reset option and press Power button.

7. Now select Yes - delete all user data and Press Power …

How to Factory Reset or Hard Reset Samsung Galaxy SII ( GT-i9100)

Note: Performing these steps you will loose all your contacts, messages, all application settings and all installed applications.
If you have trouble with phone software and you want to reset the phone to factory state, you can try factory reset using below steps:
1. Go to System Settings and then select Privacy.
2. Select FACTORY DATA RESET
4. Select RESET PHONE
5. If the password is required,enter it. Then confirm by selecting ERASE EVERYTHING. 

If you’re unable to access the settings menu of your Galaxy S II, to Hard Reset the try this method:

1. Turn phone POWER OFF, or pull the battery out and put it back again.
2. Press the Volume UP + Home Button.
3. Keep pressing these 2 buttons + press POWER button for 2-3 seconds.
4. Release only power button but keep pressing Volume Up, Home button.
5. A Boot Menu will then show, Use the volume up/down to choose and home to select.
6. Select Wipe data/factory reset option and press Power button.
7. Now select Yes - delete all user data and Press Power…

error C2065: 'in6addr_allnodesonnode' : undeclared identifier

If you are converting VC++/C++ project form Visual Studio 2003 or Visual Studio 2005 to Visual Studio 2008 or later you may hit the error "error C2065: 'in6addr_allnodesonnode' : undeclared identifier" or many such undeclared identifier errors.

One way to resolve the error is to modify the include sequence of the below mentioned header files:


#include <Ws2tcpip.h> #include <mstcpip.h>to #include <mstcpip.h> #include <Ws2tcpip.h>Else you will have to declare the WinVer > 0x500

MSMQ error : "A workgroup installation computer does not support the operation."

You may get exception saying "A workgroup installation computer does not support the operation.", when you are trying to create or send message to MessageQueue.
In order to resolve the error :
Check your installation of the MSMQ if it is installed in the Workgroup Mode? You should select AD integration mode during installation.If you had selected AD integration mode, then check the event logs for MSMQ installation if it had failed during initialization. Insure that your domain controller is accessible from the machine where MSMQ is installed.In any of the cases event logs should able to provide you the required details if installation or initialization is failed.

MSMQ Error :"The specified format name does not support the requested operation."

You may get the error: "The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted.", when you are trying to access message from the MSMQ using Direct format Name over the HTTP or HTTPS. As Direct format names that specify the HTTP or HTTPS protocol cannot be used to peek at or receive messages, only to send them. You can get more information about the format names herehttp://msdn.microsoft.com/en-us/library/windows/desktop/ms706037(v=vs.85).aspx

Error: The method loadUrl(String) is undefined for the type Activity

If you are trying to build an Android Application using PhoneGap/Apache Cordova, you may get this error. The error may occur in two conditions : You have not included the PhoneGap.jar / cordova-2.0.0.jar to your build path. To do so, first copy the jar file to /libs directory under project directory.  Then right click on project directory in eclipse, click "Build Path -> Configure Build Path". Under Java Build Path Select Libraries tab and click on "Add JARs" button. Choose the copied jar file from "lib" directory.  You have not extended your activity from DroidGap. Check the java source file of your project the main activity should be derived from DroidGap as below:
public class MainActivity extends DroidGap.This should resolve the error.

How to switch boot order within Windows & Linux

If you have both Windows and Linux installed on your computer, default  booting operating system would be Linux.
If you are frequent Windows user than Linux, the default booting OS(Operating System) should be Windows else you will waste time in every time choose boot to Windows.
Note that to change the boot sequence you will require the root level access as you are going to modify "/boot/grub/grub.cfg".
If you are using x windows system, open the file "/boot/grub/grub.cfg" using any text editor. If you don't have root level access then open text editor using sudo command as:
sudo -u root gedit Then open the file grub.cfg. In the grub.cfg search for "menuentry" and check for menuentry having "Windows " loader line.
Count the number of menuentries before Windows entry. Do not count Windows entry as menu entry start from 0. Set the counted value at:
set default="0" in the grub.cfg file as set default="5" now save the grub.cfg f…

How to flash CWM Recovery to Samsung Galaxy SL( GT-I9003) using Odin

** I Will Not responsible for any damage done with use of below mentioned methods. ** To flash the CWM recovery to your Samsung Galaxy SL you will require to following things in place: Odin  : you can download it from here.CWM Recovery image : you can download it from here. Thanks to XDA-developers. USB driver to connect your phone with computer. Install Samsung Kias so it will install the USB driver. Once you have downloaded above required items and installed the USB driver, reboot you phone to download mode. You can read how to reboot phone in download mode from here. Now connect the phone with USB cable to computer. 
Extract the Odin from the zip file that you have downloaded at some location on your computer and launch the Odin executable by double clicking it. Wait for Odin to detect your phone.You will be able to see it in yellow once detected on odin screen as shown below.
Click the PDA button to select the CWM recovery image. Once you have selected the recovery image, check the od…

How to boot Samsung Galaxy SL( GT-I9003) in download mode

** I Will Not responsible for any damage done with use of below mentioned methods. ** Power off your Samsung Galaxy SL (GT- I9003) to start in download mode. Once you have power off the phone, press and Hold Volume DOWN and HOME button. Make sure you have hold volume up, and don't press in the middle of the volume buttons.  Now keep pressing these two buttons(VOL DOWN + HOME) and pressPOWER button. Keep pressing these Buttons, until you see the screen shown below. Once you see download mode screen release all the buttons. Now you have entered to download mode.


How to boot Samsung Galaxy SL( GT-I9003) in recovery mode

** I Will Not responsible for any damage done with use of below mentioned methods. ** Power off your Samsung Galaxy SL (GT- I9003) to start in recovery mode. Once you have power off the phone, press and Hold Volume UP and Home button. Make sure you have hold volume up, don't press in  the middle of the volume buttons.  Now keep pressing these two buttons(VOL UP + HOME) and presspower button for 2-3 seconds. Release only power button, but keep pressing Volume Up + Home Button, until you see the screen shown below. Once you see recovery screen release the Home button else your phone will restart as first selected option will be restart and pressing home will make that happen.

In the recovery mode, volume up & down act as a up scroll and down scroll buttons, by pressing Home button you will be able to click the selected option.

Error: Invalid layout param in a LinearLayout: layout_alignParentTop

The error "Invalid layout param in a LinearLayout: layout_alignParentTop or layout_centerHorizontal or layout_centerVertical or layout_alignParentLeft" occurs when you have declared the Linear Layout but included these layout parameters for the button, textview or any other layout element.
Removing these attribute such as "alignParentTop" declared for any of the layout element such as textview or button will resolve the error.
For an example you may get above error if you have declared linear layout as below:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >
    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="…

How to access files on Android Mobile to Ubuntu/Linux

Connect your Android mobile to the computer. If the connection is detected by mobile then change the USB connection setting on phone to "Mass storage". Even after this if you are not able to access the files on your Ubuntu, follow below steps. Connect your mobile using USB cable.Execute "lsusb" command on terminal as  : $ sudo lsusbIn the output displayed by lsusb command check if your mobile device is listed or not. Ideally it should be displayed with your mobile device vendor ( LG, Samsung, HTC etc...) or with Google Inc. name.If you are able to locate the device in the list then unplug the device from computer.Now install the newest Version of "libmtp" by following steps mentioned in the post http://www.humans-enabled.com/2011/12/how-to-fix-samsung-galaxy-nexus-mtp.htmlOnce you have installed "libmtp", you can connect your device and use gMTP to view the files on device.

Error: "The server is not operational"

If you face an issue "The server is not operational" while executing Active directory queries or using tool which connect to Active Directory, you will need to check the connectivity with the active directory.
In order to resolve the issue follow the steps mentioned in the KB article http://support.microsoft.com/kb/325322
If still issue persist you will need to check domain DNS entries. Check if forward and reverse look-up entries are populated correctly, for the active directory domain you are trying to connect.
If above steps does not resolve the issue and if you programatically connecting to active directory then try to use cached connections for the different queries.

Extended initializer lists only available with -std=c++0x or -std=gnu++0x

You may get error "Extended initializer lists only..." while you are compiling your C++ code. This error is encountered when you are trying to assign the elements of the array as:
     array[10]={9,8,7,6,5,4,3,2,1,0};

Which you have already declared some where in your code as
    int array[10];  

You can only specify the initialization list during declaration of the array hence the error, if you want to assign the values somewhere else in your code except declaration then use the for loop or direct assignment at particular index such as
    for(int i =0; i< 10; ++i)
        array[i] = value;
or
    array[0] = value0;
    .
    .
    .
    array[9] = value9;

Hope this helps...

Undefined reference to `std::cout'

You may get the error "undefined reference to `std::cout'" while compiling C++ program in Linux/Ubuntu.  In order to resolve the error check: Have you included the iostream header file in your program. If no then include "iostream" in the code. ORAre you trying to compile c++ program using gcc command. You should compile C++ program using g++ such as: $ g++ test.cpp

File format not recognized; treating as linker script

If you are getting error "file format not recognized; treating as linker script
while compiling C++ program using g++ in Ubuntu, then you might have used incorrect file extension for your code file.
As File names are is case sensitive in Linux the file extension that you have specified for your program code file also matters while compiling the code.
You should use ".CPP" (All in capital letters) or ".cpp" (All in small letters) extension to your code file.

How to install gcc on Ubuntu

To check if you have gcc installed on your Ubuntu type gcc on the terminal. If terminal shows you following error means you don't have gcc installed.
"gcc: fatal error: no input files"
To install gcc, all you need to do is to follow the below commands:
sudo apt-get update sudo apt-get upgrade sudo apt-get install build-essential Once the installation completed for essentials, you can check the installed gcc version by command
gcc --version

How to install download accelerator for Firefox in Linux

You will have to install the add-on for the Firefox, there are DownThemAll, FlashGot and many more add-ons available for the purpose of download acceleration.Visit the webpage https://addons.mozilla.org/en-US/firefox Click on the Most popular list, or search for above mentioned add-ons or for any of the download accelerator add-on you know, and Click on "+ Add to Firefox" button.  Firefox will download the add-on, Then select the add-on and press Install and you are done.

How to install the Utorrent in linux or ubuntu

1. Download utorrent from http://www.utorrent.com/. Right click the downloaded file and click 'Extract Here'.
2. Open the extracted folder.
3. Right click the file with name 'utserver' and make it executable.
4. To make it executable right click on utserver -> properties -> permissions -> add check the check box of "Allow executing file as program".
5. Now execute the file 'utserver' by double clicking it.
6. utserver runs as background program so you will not see any user interface on execution.
7. Open your browser like firefox , chrome etc.
8. Now type in URL : http://localhost:8080/gui/
9. It will prompt for the authentication. Type username: admin
   leave password field blank and press ok.

If you fail to see the ui of utorrent the reason could be you don't have a dependent lib that utserver required, check this post for resolving the error.

unable to see utorrent webui in Ubuntu / Linux

You have downloaded the Utorrent and trying to use the utorrent using webui. But if the webui is not showing up, then you need to check if the "utserver" is running or not.
You can check this by executing command
"sudo ps -e | grep utserver"
to see if utserver running.
If utserver is not running, execute the utserver by double clicking "utserver". Now check if the utserver is running. If it still fails to execute, then go to terminal, traverse to the directory where you have download and extracted the utorrent. Now execute the utserver by executing command
"./utserver".
If it fails to execute you may see the error on terminal. It might be case that you will be missing the dependent lib. Install the dependent lib and start utserver again. It should start successfully.

Unable to load CorelDrw.dll. Error Code : 998

You may get the error "Unable to load CorelDrw.dll. Error Code : 998" when you are trying to launch the Corel Draw. This problem appears when you have installed "searchqu" application on your system. You may not have intentionally installed this application, it may be part of some freeware getting installed. Go to Add/Remove programs in the control panel. In Add/Remove program list find the "searchqu" application and uninstall it. Try launching the Corel Draw now. This should resolve the problem. Update: If you don't have "searchqu" installed,  check if you have "iliveid" installed, it also does the same. If iliveid is installed uninstall it.

LG Optimus 2X stuck in S/W Upgrade please wait while upgrading

** I Will Not responsible for any damage done with use of below mentioned methods. **

If you are not trying to apply the update from LG  and if your LG Optimus 2X or T-Mobile G2X is freezes after this message for long long time then follow below steps in order to recover the mobile. 
- Remove the battery. Wait for some time and put battery back again. Now start the mobile with power button. Do not hold any other button.
- Even this time as well if you see the same S/W upgrade message you will need to install the custom recovery tool on your mobile using NVFlash or OneClickRecoveryFlasher. Follow the link http://forum.xda-developers.com/showthread.php?t=1044326.
- Else you can use the SmartFlash Tool for LGP990 and recover the mobile with LG stock ROM. Follow the link  http://forum.xda-developers.com/showthread.php?t=1448803  for how to use SmartFlash tool. 
Note: You may loose your data by following above steps.

Error: command failure: partition download failed

This post is for those who are trying to flash ClockworkMod using NVFlash or OneClickRecoveryFlasher or manually using command prompt on LG Optimus 2X or T-Mobile G2X. 
Carefully looking at the error you can recognize that error is about the partition failure, it means command failed to recognize/find the partition you have specified in the command.  If you are using OneClickRecoveryFlasher you may find the FlashCWMRecoveryXXXX.cmd file which will contain the commands that I am talking about. The partition number is mentioned after the --download flag. As marked in red in below command :
nvflash.exe --bct E1108_Hynix_512MB_H8TBR00U0MLR-0DM_300MHz_final_emmc_x8.bct --bl fastboot.bin --download 5 recovery-clockwork-5.0.2.0-p999.img
In order to resolver the error the partition number must be correct.  In case if your trying to flash the recovery in T-Mobile G2X use partition number as 5.  In case if your trying to flash the recovery in LG Optimus 2X use partition number as 14. 

How to install Custom ICS (Android 4.0) ROM on LG Optimus 2x (P990)

I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGE CAUSED BEFORE, DURING, AND/OR AFTER INSTALLING CUSTOM ROM. PLEASE READ EVERYTHING, MAKE BACKUPS, AND FLASH AT YOUR OWN RISK.

With the help of ROM Manager application you can easily upgrade your LG Optimus 2X (LGP 990) with ICS 4.0.4 custom ROM. 
For this you will have to first ROOT your device. To know how to root your LG Optimus 2X click here. Then install a free ROM Manager application available in Googly Play market. 
Now download the custom ROM that you want to install/apply. Copy the custom ROM to your internal memory of LG Optimus 2X (LGP 990), you can even copy the ROM to external SD card as well.  Now follow below mentioned steps to apply the custom ROM.


1. Launch the ROM Manager application, you will see the UI as below:
2. Click OK. Firstly you should backup your current ROM. You can have backup in two forms with Data and only ROM. You should take backup in both the form so that you can at least return to old ROM if something goes wro…

Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder

While working with Android 4.0 and later you may face this error. This error appears when you try to create the AVD for Android 4.0 or later. 
Root cause of the error is that you have not downloaded the "ARM EABI v7a System Image" while downloading the Android SDK. 



In order to resolve the error, launch the Android SDK manager. Install the "ARM EABI System Image" for the Android version that you are using.  Once the "ARM EABI System Image" is installed, go ahead and create the AVD.

Error: Intent, View cannot be resolved to a type.

You may get this error during compilation of the Android project if you have declared/used a Intent variable in your code. The error appears because the Intent type is unknown to compiler, I mean you have not included a library which describes the Intent type. 


Resolution: 
In order to resolve the error include following line in our project 
import android.content.Intent;


Including the above line will cause compiler to search the Indent definition which is declared in android.content.Indent package.
You may also get "Error: View cannot be resolved to a type" if you have used View object in your code.  To resolve view related error "import android.view.View;" in your code.





Error : Move 'classname.java' to the default package.

During development of android application using eclipse you may get this error. 
Cause of this error is the class which you have declared with "classname" is not included in any of the package. 


Resolution: 
In order to resolve this error the newly declared class should be included in your application specific package or under default package. Default package is your application default package. 
Just add a line "package packagename;" at the top of your "calssname.java" file, will resolve the error.


Click on the error icon shown in the eclipse editor, it will show you two options either to move class in your application specific package or to move in default package.


A Java package is a mechanism for organizing Java classes into namespaces. Packages are typically used to organize classes belonging to the same category or providing similar functionality. Java packages can be stored in compressed files called JAR files, allowing classes to download faster as a gr…