Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Tuesday, March 31, 2015

Cursor automatically moves / jumps around when typing

When a wireless mouse is used, the cursor sometimes automatically moves to unpredictable places when typing. To fix this problem in a Windows 8 DELL computer, follow the steps below.

1. Adjust the mouse settings.

  • Open the control panel, click on "Hardware and Sound", then under "Devices and Printers" click the "Mouse" hyperlink. 
  • In the pop-up Mouse Properties window, click the link "Click to change the Dell Touchpad settings". 
  • In the pop-up window, click the mouse icon and check the "Disable Touchpad when USB Mouse present" check box. Close the window
  • Click the "Apply" button and the "OK" button.
      If step 1 does not completely fix the problem, continue to do step 2.

2. Adjust the keyboard  setting.

  • Open the control panel, click on the "Easy of Access", then under the "Easy of Access Center" click the "Change how your keyboard works" link.
  • At the bottom of the pop-up window, click the "Keyboard Settings" link.
  • In the pop-up Keyboard Properties window, select the "Speed" tab, increase the repeat delay and decrease the repeat rate by sliding the indicators to the left.
  • Click the "Apply" button and the "OK" button.
      If after step 2, the problem still exists, continue to do step 3.

3. Install the TouchFreeze. TouchFreeze can be downloaded at TouchFreeze.

-------------------------------------------------------------------------------------------------------------

                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

Tuesday, January 13, 2015

The action can't be completed because the file is open in java(tm) platform se binary - not able to delete a file

This usually happens when after you stop running a program, you open the directory on your hard drive to delete the jar file. Even though the program stopped running, the jar file is still open in Java virtual machine.

IDE
If you are running the program in a Java development IDE, check the Output pane to make sure that all related executions are terminated and removed. If this does not solve the problem, close and reopen the IDE shall get it resolved.

Windows
If you are using Windows, you can open the Task Manager by press the three key Ctl+Alt+Delete at the same time. Look at the Applications tab and the Processes tab to end all the java processes.

You can also open the command line and type 'tasklist | grep java' to get all the running java programs. Terminate all the related java programs by command 'taskkill /F /PID pid'.

UNIX/Linux
If you are running on a UNIX/Linux terminal, use 'ps -ef' to get all the processes, and then use 'kill -9 pid' to kill all the programs that use the file you are trying to delete from the folder.

If none of the above works, log out and re-log in your computer will be sufficient to solve the problem. It should not go that far that requires you to reboot your computer, even though that will definitely fix the problem.
       
-----------------------------------------------------------------------------------------------------------------------

                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

Tuesday, October 28, 2014

Java: Copy a directory recursively to a new location

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;

public class DirectoryCopy {
      public static void main(String[] args) {
            try {
                  DirectoryCopy runner = new DirectoryCopy();
                  runner.copyFile("R:\\FileDepot", "C:\\MyFiles\\ProjectDesign");
            }catch(IOException e) {
                  e.printStackTrace();
            }
      }

      public void copyFile(String sourceDir, String desDir) throws IOException {
        File file = new File(sourceDir);
        File file2 = new File(desDir);
        if (file.isDirectory()) {
            if (!file2.exists()) {
                file2.mkdir();
            }
            String[] allFiles = file.list();
            for (String f : allFiles) {
                copyFile(sourceDir+"\\"+f, desDir+"\\"+f);
            }
        } else {
            if (!file2.exists()) {
                file2.createNewFile();
            }
            Files.copy(file.toPath(), file2.toPath(), StandardCopyOption.REPLACE_EXISTING);
        }

    }
}

--------------------------------------------------------------------------------------------------------

                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.

Windows: How to get all the local drives and remote sites mounted/mapped to your computer?

Open the Command Prompt and type 'net use' without the quotes.

-------------------------------------------------------------------------------------------------------------------

                        
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.