Pages

Wednesday, April 3, 2013

USB mass storage device is not recognized in "My Computer" But shows in Device Manager



USB mass storage device is not recognized in "My Computer" But shows in Device Manager


Most likely, this problem occurs if the USB drive is more than 16GB 
For USB flash/ drive, try the following:

Run "regedit" and select the "HKEY_LOCAL_MACHINE go to SYSTEM go to MountedDevices" . 

See all the "\DosDevices\C:" listed. you will see C: D: or  physically mounted drive (HDD or Disc) also the USB one like E: and/or F: Double click each device listed and see if you see text saying something like "U.S.B.S.T.O.R...". It is in binary format. That is USB registry.



sample


Anyway before doing below process. I mean, When you are on regedit page click 'f5' button to refresh. and try to connect the flash/thumb drive and see if gets recognized. If not go to the below step.

Once you find that device, right click it and select "Rename". Now change the drive letter only to something unused... like P, Q etc. or something. 
Close regedit, 
disconnect the USB device and reconnect again. 



Suggestions are always welcome..!  Without signing also you can send your comments.



Thursday, January 24, 2013

images are not working on website - hosting

Cause of Issue:

  1. check naming convention
  2. check case sensitivity
  3. check file path
  4. check security settings in your hosting control panel - the status of hotlink protection should be disabled.

Suggestions are always welcome..!  Without signing also you can send your comments.



Thursday, December 20, 2012

SQL1042C - hostname changed on db2 server windows/unix


1.       Run the following commands:

·         db2admin stop
·         db2stop

2.       The same hostname will be repeated twice on a single line in the db2nodes.cfg file. 

*Note that, only DB2 ESE has a db2nodes.cfg file. If you are running other editions (WorkGroup Server, or Personal Edition) then you can skip this step and go to 3rd step.

File Location:
UNIX/Linux:
db2 instance home directory/sqllib/db2nodes.cfg
All Windows flavors running DB2 v8 and v9.1:
Program Files\IBM\SQLLIB\DB2\db2nodes.cfg 
Windows XP and 2003 running DB2 v9.5:
Documents and Settings\All Users\Application Data\IBM\DB2\DB2COPY\DB2\db2nodes.cfg

NOTE: Application Data is a hidden folder
Windows Vista and later operating systems: ProgramData\IBM\DB2\DB2COPY\DB2\db2nodes.cfg
3.       Use the db2extsec command to update the authorities for the installation-defined groups DB2ADMNS and DB2USERS with new hostname. 
                           
          For example the new hostname = 'newhostname'
                           
     Run the following command:

  •   db2extsec -a newhostname\DB2ADMNS -u newhostname\DB2USERS

4.       Update the DB2 registry variables using db2set command. Run the following commands:

·         db2set db2accountname=newhostname\db2admin
·         db2set db2instowner=newhostname
·         db2set db2system=newhostname



Suggestions are always welcome..!  Without signing also you can send your comments.


Friday, November 23, 2012

My laptop starts automatically from hibernation and drains battery windows 7


My laptop starts automatically from hibernation and drains battery - windows 7
  1. Open Device Manager by clicking the Start button
  2. Click on Control Panel, here click on System and Security
  3. Under System, click on Device Manager. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
  4. In the list of hardware categories, find the device that you want to prevent from waking your computer, and then double-click the device name.
  5. Click the Power Management tab and then clear Allow this device to wake the computer check box.
  6. Click OK.

For example I got issue from wifi hardware. Below you can see image for better info.





Suggestions are always welcome..!  Without signing also you can send your comments.



Thursday, November 1, 2012

How to use SCP command ?

Copying files using SCP command:


SCP ~ Secure Copy, which is used for copying files between local to remote or remote to local or remote to remote. These transfers are based on SSH ~ Secure Shell protocol

SCP options:

-p     preserves the modification and access times, as well as the permissions of the source-file in the destination-file

-P     port, specify only if it is other than the default port 22

-q     does not display the progress bar

-r      recursive, copies the contents of the source-file (directory in this case) recursively

-v     displays debugging messages


Examples:

Copying file to host:
scp /tmp/file_name user@host:/directory/TargetFile

 scp *.log user@remote.server.com:/home/user/
That is going to copy all files with .log extension to the folder /home/user in the remote.server.com host

Copying file from host:
scp user@host:directory/file_name TargetLocation or Folder



scp -r user@host:directory/SourceFolder TargetFolder


If the remote host ssh uses 44, you should specify (other than default port 22) in the command.  
scp -P 44 user@host:directory/SourceFile TargetFile

From a remote host to another remote host:
 scp user1@host1:/tmp/file_name user2@host2:/home/user2/

**  Important:   Don’t try tab button for auto completion of path when using remote host path. If you try ‘tab’ it will take the local host path only. Hence I request you to remember the actual path/location at remote host and use it.


Suggestions are always welcome..!  Without signing also you can send your comments.


Tuesday, October 23, 2012

Outlook 2007 - Restore or copy "AutoComplete suggest names" feature to another pc.



The AutoComplete suggest names are saved as Outlook.NK2 and you can copy that file from your old computer to new one.

             On old computer, please follow the steps:
o   If it is Microsoft Windows XP:
§  Click Start, and then click My Computer,
§  On the Tools menu, click Folder Options,
§  Click the View tab, and then,
§  under Advanced settings,
§  under Hidden files and folders,
§  Click Show hidden files and folders.

o   Go to "C:\Documents and Settings\&ltuser&gt\Application Data\Microsoft\Outlook"
o   Copy the file name Outlook.NK2 and Close Outlook in the new computer before pasting this file in the same location.
o   Restart the outlook to get it back.

o   If it is Windows 7: 
·  Open ‘My/ Computer’ or any folder and then click on Organize,
·  Here click on Folder and search Options,
·  Click the View tab, and then,
·   under Advanced settings,
·   under Hidden files and folders,
·   click Show hidden files and folders.

o   Go to "C:\Users\&ltuser&gt\AppData\Roaming\Microsoft\Outlook"
o   Copy the file name Outlook.NK2 and Close Outlook in the new computer before pasting this file in the same location.
o   Restart the outlook to get it back.


Suggestions are always welcome..!  Without signing also you can send your comments.


Friday, August 3, 2012

Download & Installing " OSGi JPA " Feature Pack using Installation Manager on WAS 7.0


Installing OSGi and JPA Fix Pack 1.0.0.1 Feature Pack using Installation Manager and Augmenting the Profile.
  1. Download WAS import software to enable import option on installation manager-                                        http://public.dhe.ibm.com/software/websphere/downloads/was/import/ 
  2. Download required OSGI and JPA feature pack-  http://www-01.ibm.com/support/docview.wss?uid=swg27020060
  3. Or you can download a whole package from this link- http://www-01.ibm.com/software/webservers/appserv/was/featurepacks/osgi/instopt/index.html
  4. Extract file to safe location. Better to extract it in IBM\Installation Manager Location (option)

Installation Instructions:

Perform the following tasks to install Feature Pack for OSGi & JPA Version 1.0.0.1 on WebSphere Application Server Version 7.0.0.9:
  1. Install WebSphere Application Server V7.0.
  2. Install WebSphere Application Server Fix Pack 7.0.0.9 using the Update Installer 7.0.
  3. Install IBM Installation Manager. You can download and unpack a compressed file containing the Installation Manager appropriate for your operating system from the IBM Installation Manager Web site.
  4. After Installation, start /open IBM Installation Manager.
  5. We need to add repositories. Repository is a location where updates or extensions to the packages are stored.
  6. Adding a repositories-
    • Go to File > Preferences in installation manager. Click on "Add Repository". Browse for repository.config files from the extract (ariesjpa and WAS import repositories zip files).
    • WAS import repo config file location : \local-repositories\repository.config
    • Feature Pack config file location: < ariesjpa_ repositories > \ariesjpa\ repository.config


  • ***Before importing Make sure to stop all (WAS Processes) servers and applications on the WebSphere Application Server installation that is being imported. ****
  • Import WebSphere Application Server into Installation Manager.






  • Install OSGi and JPA Fix Pack 1.0.0.1 using Update option on IBM Installation Manager main page. This can also be done by using either Web-based Repository or Local Repository.






  • If you want you can check “Show all Versions” and click on “Check for other versions, fixes and extensions”

**Install Feature Pack for OSGi and JPA Version 1.x using IBM Installation Manager. This can be done by using either Web-based Repository or Local Repository. Whenever possible, you should use the remote Web-based repositories so that you are accessing the most up-to-date WebSphere Application Server base-product import and feature pack installation files. The feature-pack version of IBM Installation Manager is preconfigured to use both the local repositories (if they are set up) and the remote repositories. **







Augmentation:
  1. After completing the installation of a feature pack, it requires to augment a profile to make the required profile compatible with a particular feature pack.
  2.  You can augment the profile using the manageprofiles command or Profile Management tool (GUI).
  3. Here I am going with Profile management tool:




**Note: It will allow selecting only one at a time

  1. Select the particular profile to apply feature Pack.
  2. After selecting click on “Augment”.




**Note: It will allow selecting only one at a time.



After installing JPA feature then start doing same exercise for OSGI.

Done !



Suggestions are always welcome..!  Without signing also you can send your comments.

Wednesday, August 1, 2012

Oracle sql developer - " Unable to find Java Virtual Machine ... "

After successful installation of Oracle 64 bit, When we try to open sql developer ( sqldeveloper.exe) , it ends up with the following error message:


"Unable to find Java Virtual Machine. To point to a location of a Java Virtual Machine, please refer to the Oracle Install Guide(java\install.html)."





Issue Resolved:

I found that the Oracle - SQL developer is NOT supported on 64 bit JDKHence I installed a 32 bit / x86 JDK and updated java loaction at sqldeveloper config file.

  1. JDK Installation url:  http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html 
  2. Select windows x86, download and install jdk
  3. Edit the “sqldeveloper.conf
  4. Location of conf file:  <OracleHome>\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
  5.  Now point “SetJavaHome” to your 32 bit JDK location. 

Example: “SetJavaHome C:\Program Files (x86) \Java\jdk1.6.0_25



Suggestions are always welcome..!  Without signing also you can send your comments.

Sunday, July 15, 2012

pinging but not connecting with putty ssh

ssh service is not running
try to start it if not install it.
# apt-get install openssh-server



Suggestions are always welcome..!  Without signing also you can send your comments.

Friday, July 13, 2012

Cannot ping by hostname in ubuntu

Install samba it will work. If its already there then remove it.

For installing:
           :~# apt-get install samba
 For removing:
           :~# apt-get remove samba



Suggestions are always welcome..!  Without signing also you can send your comments.