I need another pair of eyes.... my loops have got me twisted!

Hey I'm trying to put together a basic tic tac toe game without using any classes. I've written enough code to allow one person to choose a valid position and for next to do so as well. So the game begins and the first player is asked to choose a position on the board,... you select a valid space between 1 and 9, otherwise you have to choose again, after you enter a valid number between 1 and 9 and second bit of code takes the integer value you've entered and converts it into a string for us to compare against the position. Since the 3X3 array is initialized to the numbers 1-9 corresponding with the positions the user selects, if anything other than the number entered appears in the position, the spot has previously been filled and the user is supposed to be prompted to select another position. So... getting back to the problem, after the user selects a bad position the code jumps back up to the top instead of executing the specific error code i tried to have triggered. Along the way you'll notice I've that I've commented out entire blocks of code with some ideas that I've had the have pretty much brought me back to the same place. I feel I've been looking at this thing for too long and i need some fresh perspective. I'm sure I'll be kicking myself when one you nobles points out my flaw.
By the way player 2 code differs from player one so choose a base and let me know which approach works best.
thanks for the consideration
import java.util.Scanner; // importing the scanner to be able to accept user input
public class ticTacToe { // matches the name of the file "ticTacToe.java"
     public static void main(String[] args) { //declaring the main class
// *** Beginning: declaring all variables and objects ***
          Scanner keyboard = new Scanner (System.in); //creating the scanner object to accept user input
          char [][] board = new char [3][3];
          int row, column, i ,j;
          int userInput;
          char userInputChar;
          boolean emptySpotTest = false;
          //boolean userInputTest;
// *** End: declaring all variables and objects ***
// *** Beggining of Header ***
          System.out.println("X O X - Welcome to Benjamin's Tic Tac Toe Game - O X O\n");
          System.out.println("This Game has been designed to be played by two players.");
          System.out.println("As usual, one person will be player X and the other O.");
          System.out.println("When you choose where you'd like to place your piece enter a number between 1 and 9.\n");
          System.out.println(" 1 | 2 | 3 ");
          System.out.println("---|---|--- ");
          System.out.println(" 4 | 5 | 6 ");
          System.out.println("---|---|--- ");
          System.out.println(" 7 | 8 | 9");
//*** End of Header ***
          //Initialize all of the elements in the array
          for(i = 0; i < 3; i++){
          board [0] = Integer.toString(i + 1).charAt(0);
               for(i = 0; i < 3; i++){
               board [1][i] = Integer.toString(i + 4).charAt(0);
                    for(i = 0; i < 3; i++){
                    board [2][i] = Integer.toString(i + 7).charAt(0);
               for (i = 0; i < 3; i++){
                         System.out.printf( " %c | %c | %c", board[i][0], board[i][1], board[i][2]);
                         if (i != 2) System.out.print("\n---|---|---\n");
int moveCounter = 0; //used to count the number of moves to trigger a test for a winner
while (moveCounter >= 0){ //starting a game
     while (moveCounter % 2 == 0){ //finding out if player 1 should go
          emptySpotTest = false; //initialize the test to negative to be sure to run the tests every time we go in the above while loop
               do{ //get an integer between 1 and 9 from the user
                    System.out.print("\nPlayer X please choose your spot on the board: ");
                    userInput = keyboard.nextInt();
               } while (userInput < 1 || userInput > 9);
               // figure out what position the player has selected
               row = (userInput - 1) / 3;
               column = (userInput - 1) % 3;
               userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
               // finished converting the position to a string
          do{     
          if (board [row][column] == userInputChar){
          board [row][column] = 'X';
          moveCounter++;
               else{
          while (emptySpotTest = false) {
               System.out.print("Error: Player X, please enter a position that has not been taken: ");
               userInput = keyboard.nextInt();
//               figure out what position the player has selected
               row = (userInput - 1) / 3;
               column = (userInput - 1) % 3;
               userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
               // finished converting the position to a string
               if (board [row][column] == userInputChar){
                    board [row][column] = 'X';
                    emptySpotTest = true;
                    moveCounter++;
               }else emptySpotTest = false;
          } while (emptySpotTest = false);
                    do{
                                        System.out.print("Error: Player X, please enter a position that has not been taken: ");
                                        userInput = keyboard.nextInt();
                                   } while (userInput < 1 || userInput > 9);
                                        //figure out what position the player has selected
                                        row = (userInput - 1) / 3;
                                        column = (userInput - 1) % 3;
                                        userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
                                        // finished converting the position to a string
                                        if (board [row][column] == userInputChar){
                                             board [row][column] = 'X';
                                             emptySpotTest = true;
                                             moveCounter++;
                                        }else emptySpotTest = false;
                    } //end of else statement
          //} while (emptySpotTest = false); //end of while for 2nd test
     }//end of while statement for palyer 1
while (moveCounter % 2 != 0){ //finding out if player 2 should go
          emptySpotTest = false; //initialize the test to negative to be sure to run the tests every time we go in the above while loop
               do{ //get an integer between 1 and 9 from the user
                    System.out.print("\nPlayer O please choose your spot on the board: ");
                    userInput = keyboard.nextInt();
               } while (userInput < 1 || userInput > 9);
               // figure out what position the player has selected
               row = (userInput - 1) / 3;
               column = (userInput - 1) % 3;
               userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
               // finished converting the position to a string
          do{     
          if (board [row][column] == userInputChar){
          board [row][column] = 'O';
          moveCounter++;
               else{
                    emptySpotTest = false;
          } while (emptySpotTest = false);
                         do{
                              if (emptySpotTest = false){
                                   do{
                                        System.out.print("Error: Player O, please enter a position that has not been taken: ");
                                        userInput = keyboard.nextInt();
                                   } while (userInput < 1 || userInput > 9);
                                        //figure out what position the player has selected
                                        row = (userInput - 1) / 3;
                                        column = (userInput - 1) % 3;
                                        userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
                                        // finished converting the position to a string
                                        if (board [row][column] == userInputChar){
                                             board [row][column] = 'O';
                                             emptySpotTest = true;
                                             moveCounter++;
                                        }else emptySpotTest = false;
                         }while (emptySpotTest = false);
          } //end of while statement for palyer 2
}//end of gamecounter while
}//end of public static void main
}//end of public class ticTacToe
          //begin player 2 code
          while (moveCounter % 2 != 0){ //finding out if player 2 should go
               emptySpotTest = false; //initialize the test to negative to be sure to run the tests every time we go in the above while loop
                    do{ //get an integer between 1 and 9 from the user
                         System.out.print("\nPlayer O please choose your spot on the board: ");
                         userInput = keyboard.nextInt();
                    } while (userInput < 1 || userInput > 9);
                    // figure out what position the player has selected
                    row = (userInput - 1) / 3;
                    column = (userInput - 1) % 3;
                    userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
                    // finished converting the position to a string
               if (board [row][column] == userInputChar){
               board [row][column] = 'O';
               emptySpotTest = true;
               moveCounter++;
               else {
                         do{
                              do{
                              System.out.print("Error: Player O, please enter a position that has not been taken: ");
                              userInput = keyboard.nextInt();
                              } while (userInput < 1 || userInput > 9);
                              //figure out what position the player has selected
                              row = (userInput - 1) / 3;
                              column = (userInput - 1) % 3;
                              userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
                              // finished converting the position to a string
                              if (board [row][column] == userInputChar){
                                   board [row][column] = 'O';
                                   emptySpotTest = true;
                                   moveCounter++;
                              }else emptySpotTest = false;
                         }while (emptySpotTest = false);
               } //end of else statement
          }//end of gamecounter while
     }//end of public static void main
}//end of public class ticTacToe
          if (board[row][column] == userInputChar){ //test condition for the while statement directly below
               board [row][column] = 'X'; //mark the spot with an X if it's empty
               emptySpotTest = true; //set the boolean to to true meaning the spot is empty
               moveCounter++; //test code
               System.out.print(emptySpotTest); //test code
               System.out.println(" " + board[row][column]); //test code
          else {
               emptySpotTest = false;
          System.out.print(emptySpotTest); //test code
          System.out.println(" " + board[row][column]); //test code
          while (emptySpotTest = false){
               do{
                    System.out.print("Error: Player X, please enter a position that has not been taken: ");
                    userInput = keyboard.nextInt();
               } while (userInput < 1 || userInput > 9);
               if (board[row][column] == userInputChar){
                    board [row][column] = 'X'; //mark the spot with an X if it's empty
                    System.out.print(emptySpotTest); //test code
                    System.out.println(" " + board[row][column]); //test code
                    emptySpotTest = true; //set the boolean to to true meaning the spot is empty
                    moveCounter++; //test code
                    System.out.print(emptySpotTest); //test code
          } //this segment of code is run after the user initially enters the number than it checks to see if
          //the space is free if not it keep looing until it's satisfied
          for (i = 0; i < 3; i++){
               System.out.printf( " %c | %c | %c", board[i][0], board[i][1], board[i][2]);
               if (i != 2) System.out.print("\n---|---|---\n");
          //moveCounter++; //increment the move counter
          while (moveCounter % 2 != 0){ //finding out if player 2 should go
               emptySpotTest = false;
               do{ //get an integer between 1 and 9 from the user
               System.out.print("\nPlayer O please choose your spot on the board: ");
               userInput = keyboard.nextInt();
               } while (userInput < 1 || userInput > 9);
               // figure out what position the player has selected
               row = (userInput - 1) / 3;
               column = (userInput - 1) % 3;
               userInputChar = Integer.toString(userInput).charAt(0); //convert the users input positions into a char to match the array type
               if (board[row][column] == userInputChar){ //test condition for the while statement directly below
                    board [row][column] = 'O'; //mark the spot with an X if it's empty
                    emptySpotTest = true; //set the boolean to to true meaning the spot is empty
                    System.out.print(emptySpotTest); //test code
                    System.out.println(" " + board[row][column]); //test code
               else {
                    emptySpotTest = false;
               while (emptySpotTest = false){
                    do{
                         System.out.print("Error: Player O, please enter a position that has not been taken: ");
                         userInput = keyboard.nextInt();
                    } while (userInput < 1 || userInput > 9);
                    if (board[row][column] == userInputChar){
                         board [row][column] = 'O'; //mark the spot with an X if it's empty
                         System.out.print(emptySpotTest); //test code
                         System.out.println(" " + board[row][column]); //test code
                         emptySpotTest = true; //set the boolean to to true meaning the spot is empty
                         System.out.print(emptySpotTest); //test code
               } //this segment of code is run after the user initially enters the number than it checks to see if
               //the space is free if not it keep looing until it's satisfied
               System.out.println(board[row][column]);
               System.out.println(emptySpotTest); //test code
               System.out.print("\n");
               for (i = 0; i < 3; i++){
                    System.out.printf( " %c | %c | %c", board[i][0], board[i][1], board[i][2]);
                    if (i != 2) System.out.print("\n---|---|---\n");
               System.out.print("\n");
               moveCounter++; //increment the move counter
          System.out.print("\n" + moveCounter);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

I suggest you try using a debugger to step through the program to see what it is doing.
This will help you understand what you program does.
I also suggest you try formatting your code in a readable manner or using a code formatter to do this for you.

Similar Messages

  • Maintenance Windows - I need another pair of eyes

    Hello Everyone,
    I am looking for a second pair of eyes to ensure I have this process down 100%. The goal is a scheduled client computer reboot following the May patch install.
    Assign a 12 hour maintenance window on my client computer collection.
    Enforce a 10 hour reboot cycle (initial notification).
    Enforce a non-dismissible notification at the 3 hour mark.
    I am running some final tests today. Below is my maintenance window:
    This is the reboot behavior I assigned:
    My first test this morning resulted in the computer say it was going to reboot in 90 minutes! I double checked the computer only had the single maintenance window applied and the client settings were assigned and set properly. I'm concerned there may be
    some hidden maximum value on the restart settings.

    Ensure that you don't have any applications/updates that are set to install and reboot outside of maintenance windows.
    If my answer helped you, check out my blog:
    DeployHappiness. Subscribe by
    RSS or
    email. 

  • Stacking quotes - need another pair of eyes

    Oracle 11.2.0.1 SE-One, 64-bit
    Oracle Linux 5.6 x86-64
    Given the following procedure, and focusing on the call to dbms_scheduler
    create or replace
    PROCEDURE dw.fix_job_timezone(
        p_jobschema_in IN VARCHAR2 default null)
    IS
    type sched_jobs_tbl_type
    IS
      TABLE OF dba_scheduler_jobs.job_name%TYPE INDEX BY binary_integer;
      t_sched_jobs sched_jobs_tbl_type;
      v_job          VARCHAR2(128);
    BEGIN
      SELECT
        job_name
      bulk collect INTO
        t_sched_jobs
      FROM
        dba_scheduler_jobs
      WHERE
        owner = p_jobschema_in
      ORDER BY
        job_name ;
      FOR i IN t_sched_jobs.first .. t_sched_jobs.last
      LOOP
        v_job := '"' || p_jobschema_in || '"."'||t_sched_jobs(i) || '"';
        dbms_output.put_line('Processing '||v_job);
        dbms_scheduler.set_attribute_null (v_job, 'START_DATE'); 
      END LOOP;
    END;If the owner of the above procedure connects and calls dbms_scheduler directly:
    SQL> show user
    USER is "DW"
    SQL> exec DBMS_SCHEDULER.set_attribute_null ('"ESTEVENS"."EDS_SQLNAV_JOB1"', 'ST
    ART_DATE');
    PL/SQL procedure successfully completed.Yet, when calling the above procedure:
    SQL> exec dw.fix_job_timezone('ESTEVENS');
    Processing "ESTEVENS"."EDS_SQLNAV_JOB1"
    BEGIN dw.fix_job_timezone('ESTEVENS'); END;
    ERROR at line 1:
    ORA-27486: insufficient privileges
    ORA-06512: at "SYS.DBMS_ISCHED", line 4398
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2892
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 3028
    ORA-06512: at "DW.FIX_JOB_TIMEZONE", line 78
    ORA-06512: at line 1
    SQL>Maybe a problem with the enclosing quotes, or lack of?
    Change the key line to
    dbms_scheduler.set_attribute_null ('v_job', 'START_DATE');  And we get
    SQL> exec dw.fix_job_timezone('ESTEVENS');
    Processing "ESTEVENS"."EDS_SQLNAV_JOB1"
    BEGIN dw.fix_job_timezone('ESTEVENS'); END;
    ERROR at line 1:
    ORA-27476: "DW.V_JOB" does not exist
    ORA-06512: at "SYS.DBMS_ISCHED", line 4398
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2892
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 3028
    ORA-06512: at "DW.FIX_JOB_TIMEZONE", line 78
    ORA-06512: at line 1Or
    dbms_scheduler.set_attribute_null ('''||v_job||''', 'START_DATE');  And get
    SQL> exec dw.fix_job_timezone('ESTEVENS');
    Processing "ESTEVENS"."EDS_SQLNAV_JOB1"
    BEGIN dw.fix_job_timezone('ESTEVENS'); END;
    ERROR at line 1:
    ORA-27452: '||v_job||' is an invalid name for a database object.
    ORA-06512: at "SYS.DBMS_ISCHED", line 4398
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2892
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 3028
    ORA-06512: at "DW.FIX_JOB_TIMEZONE", line 78
    ORA-06512: at line 1
    dbms_scheduler.set_attribute_null ('v_job', 'START_DATE'); 
    And getERROR at line 1:
    ORA-27476: "DW.V_JOB" does not exist
    ORA-06512: at "SYS.DBMS_ISCHED", line 4398
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2892
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 3028
    ORA-06512: at "DW.FIX_JOB_TIMEZONE", line 78
    ORA-06512: at line 1
    I’ve been chasing my tail to get the right combination of single-quotes and possibly concatenation, but it has eluded me.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    EdStevens wrote:
    ... If the owner of the above procedure connects and calls dbms_scheduler directly:
    SQL> show user
    USER is "DW"
    SQL> exec DBMS_SCHEDULER.set_attribute_null ('"ESTEVENS"."EDS_SQLNAV_JOB1"', 'ST
    ART_DATE');
    PL/SQL procedure successfully completed.Yet, when calling the above procedure:
    SQL> exec dw.fix_job_timezone('ESTEVENS');
    Processing "ESTEVENS"."EDS_SQLNAV_JOB1"
    BEGIN dw.fix_job_timezone('ESTEVENS'); END;
    ERROR at line 1:
    ORA-27486: insufficient privileges
    ORA-06512: at "SYS.DBMS_ISCHED", line 4398
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 2892
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 3028
    ORA-06512: at "DW.FIX_JOB_TIMEZONE", line 78
    ORA-06512: at line 1
    Remember that privileges granted through roles don't count in AUTHID DEFINER stored procedures.
    Your procedure doesn't specify AUTHID, so it defaults to DEFINER; therefore, the privilges to do anything in the procedure must be granted directly to the procedure owner (or to PUBLIC), and not merely to some role that the procedure owner has.
    Maybe a problem with the enclosing quotes, or lack of?I don't think so. If the quotes were wrong, I would expect a compile-time error, not a run-time error. Also, regardless of when you got the error, I would expect the error message for misplaced quotes to be something about syntax, like "keyword not found where expected', rather than something about privileges.
    You're already doing the smart thing:
    {code}
    dbms_output.put_line('Processing '||v_job);
    dbms_scheduler.set_attribute_null (v_job, 'START_DATE');
    END LOOP;
    {code}displaying v_job pefore running it. If you can run that same command in an EXEC command (as the procedure owner), then it's definitely an AUTHID DEFINER problem, and you need the privileges granted directly to you.

  • Need another pair of eyes to help on this form..........

    Hello Everyone,
    I have a form that needs a little love.....I have it setup to take values from drop downs and match the values from numeric fields with the dropdowns and multiply the information depending on what is selected.  The problem I am running into is it isn't always working.  If I select one of the first two options in packDes1 then it works exactly like it should though if i select any other monthly option it doesn't multiply correctly.
    The form is found at the following URL for Download:
    http://www.shingleme.com/NewCostForm_6_15_2010.pdf
      Any help is appreciated

    Paul,
    Thank you again for coming through!!!!!!  Once I fixed the typo and put the "if" code block on one line it worked. I have a strange question then though.  can you do something like
    var j = 'justin';
    textfield.rawValue = j.rawValue (Where j is the value justin and justin is the name of a textfield)
    The reason I ask is I went and used find/replace for the other rows in the form to separate all of them but wanted to use inplace substitution though wasn't sure how to do it.
    Justin

  • Seeking another pair of eyes - MSI H77MA-G43 + i5 2500K

    Hello everyone,
    I have read the CPU compatibility sticky and I think I have come to a conclusion but I wanted to run it past a larger group.
    I have a MSI H77MA-G43 that won't POST (sits in a power cycle "infinite loop") and I *believe* it is possible my MSI H77MA-G43 has a BIOS that is not compatible with my i5 2500K CPU.
    Using the CPU Compatibility checker for my motherboard (tried to post the link - cant) - I can see that 2500Ks with D2 stepping are supported on BIOS version 7756v10.
    Core i5   Sandy Bridge   i5-2500K   100   3.30   1M   6M   D2   95      7756v10.zip
    So - I believe my issue may be I have an older motherboard BIOS and if I could find a spare CPU that will boot it - I could boot the BIOS and flash to upgrade it.
    Does anyone have an opinions if that seems sane or not?
    Thank you,
    -A-

    Dear XFM and flobelix,
    Edit: I finally read it correctly Flobelix - there is no version NOT supporting :-) -- Good news!!
    XFM - I'm not home right now but I will post more detailed information. For troubleshooting purposes I only have RAM (single stick or dual stick tried both) and a Geforce Ti560 video card installed.
    I'm running the system outside of a case and I've tried replacing the power supply with another one - and same behavior EXCEPT there are now 3 "medium" duration beeps that occur as the system cycles on and off power.
    Edit: Nevermind - symptoms exactly the same. 3 Beeps was clearly memory - I didn't have the memory seated well when I did my single channel test. Checked memory seating VERY carefully and now (with new power supply) have the identical issue.
    Edit Again: My old motherboard has 2 x4pin 12V ATX connectors and the "big" ATX connector with its additional little "4pin" add on. The new motherboard has the big connector (duh + 4pin) but it only has 1x4pin 12V ATX connectors....
    Any chance this has something to do with it?
    Tonight I re-thermal pasted my CPU hoping it was some kind of thermal shutdown issue...no change. Still endlessly loops - I'm going to let it sit for 30minutes endlessly looping and see if anything changes.
    Thank you,
    -A-

  • I need another set of eyes

    Can someone help me spot the problem? My if statement seems to take the original values not the new values?
    class MixMatchWindow extends JInternalFrame implements ActionListener
         String[] InFile = {"dog", "cat", "mat", "door"};
         String[] defFile = {"define dog", "define cat", "define mat", "define door"};
         int length = InFile.length;
         double randomNum[] = new double[length];
         double temp = 0.0;     
         int count = 0;
         public MixMatchWindow()
              super("Mix and Match",false,true,false,false);
              setBackground(Color.blue);
              setVisible(true);
              setBounds(0,0,710,570);
              getContentPane().setLayout(null);
              for(int r = 0; r < length; r++)
                   randomNum[r]= 10+(Math.random());
                   JLabel In = new JLabel("in rand loop "+randomNum[r]);
                   getContentPane().add(In);
                   In.setBounds(0,0+(r*25),210,35);
              for(int b = 0;b < length; b++)
                   /*JLabel InArray = new JLabel(InFile);
                   getContentPane().add(InArray);
                   InArray.setBounds(100,50+(b*50),100,25);*/
              for(int l = 0; l < length; l++)
                   for(int i = 0; i < length; i++)
                        if(temp > randomNum)
                             temp = temp;
                        else
                             temp = randomNum[i];
    //just for testing, these are the values I need
                   JLabel In3 = new JLabel("value of temp "+temp);
                   getContentPane().add(In3);
                   In3.setBounds(450,400+(l*25),150,35);
                   for(int w = 0; w < length; w++)
                        if(temp == randomNum[w])
    //just for testing
                   JLabel In2 = new JLabel("count loop "+count);
                   getContentPane().add(In2);
                   In2.setBounds(0,150+(w*25),110,35);
    //just for testing,revert to old values
                   JLabel In4 = new JLabel("temp loop "+temp);
                   getContentPane().add(In4);
                   In4.setBounds(100,150+(w*25),110,35);
                             /*JLabel RandArray = new JLabel(defFile[count]);
                             getContentPane().add(RandArray);
                             RandArray.setBounds(300,50+(w*50),100,25);*/
    //just for testing
                   JLabel In = new JLabel("b def loop "+randomNum[w]);
                   getContentPane().add(In);
                   In.setBounds(0,300+(w*25),110,35);
                             randomNum[count] = 0;
                             count = 0;
                             temp = 0;
                             break;                         
                        count= count+1;
              repaint();
         public void actionPerformed(ActionEvent e)

    You have two if statements, and it's far from clear what you mean. Be more explicit, and use code tags:
    [code]
    Program here

  • 5310 w/ dead display - need a pair of eyes

    Hi.
    The display on my 5310 has died but otherwise the phone works fine as long as you can remember the shortcuts. Anyway, this sucks and I need someone to tell me exactly what to click in order to change the USB mode to PC Suite (it is currently data storage). I am going to export everything and import it to a new phone.

    Press keys in following order menu key>left nav key>menu key>7 times down nav key>menu key>2 times down nav key>menu key>2 times up nav key>menu key . Now its done to pc suite mode if it helped plz kudo

  • Can I get another pair of eyes on this?  CSS and IE

    Can someone please have a look at this code, it is driving me nuts...
    It isn't really a JSP problem, more of a CSS problem with IE 6 I think... anyway here is a simple version of the code:
    <html>
      <head>
        <link type="text/css" rel="stylesheet" href="simpTest.css"/>
        <style type="text/css">
               .defaultsidebaritem
                   background : transparent url(/HomeMVC/images/inactive.gif) no-repeat scroll center;
              .defaultsidebaritem#moused
                   background : transparent url(/HomeMVC/images/hover.gif) no-repeat scroll center;
                   color:red;
              .areasidebaritem
                   background  : transparent url(/HomeMVC/images/inactive.gif) no-repeat scroll center;
              .areasidebaritem#moused {
                     background  : transparent url(/HomeMVC/images/hover.gif) no-repeat scroll center;
         </style>
      </head>
      <body>
        <div class="sidebar">
          <div class="defaultsidebaritem" id="default-1" onMouseOver="this.id='moused';"
                  onMouseOut="this.id='default-1';" onClick="document.location='/HomeMVC/default.do';">
            <div class="sidebartext">The Luke's Home Page</div>
          </div>
          <div class="areasidebaritem" id="web-1" onMouseOver="this.id='moused';"
               onMouseOut="this.id='web-1';" onClick="document.location='/HomeMVC/index.do';">
            <div class="sidebartext">Start Here</div>
          </div>
          <div class="defaultsidebaritem" id="default-7" onMouseOver="this.id='moused';"
                  onMouseOut="this.id='default-7';" onClick="document.location='/HomeMVC/html/index.do';">
            <div class="sidebartext">HTML - How To</div>
          </div>
        </div>
      </body>
    </html>
    (the CSS code)
    .sidebar
         width   : 200px;
         float   : left;
         clear     : left;
    .defaultsidebaritem
         height     : 30px;
         width      : 150px;
         cursor     : pointer;
         float:left;
         clear:left;
    .areasidebaritem
         height     : 30px;
         width      : 150px;
         cursor     : pointer;
         margin-left: 10px;
         float:left;
         clear:left;
    .sidebartext
         background-color : transparent;
         float            : left;
         width            : 150px;
         height            : 20px;
         margin-top       : 6px;
         text-align      : center;
         color           : white;
    .areasidebaritem#moused {
    }Basically, is is supposed to be a side bar where when you mouse over the buttons, the div'sbackground image changes.
    In Mozilla this works fine. In IE, exactly as written, only the first and the last images will have the change in image.
    1) Only the <div class="areasidebaritem"> does not work, the other two do.
    2) If I move the style for .areasidebaritem#moused to an external CSS, then it works. I cut and paste it from the external css into my JSP and it no longer does.
    3) The javascript involved is fine: alerts placed around show correct ids before and after the event is fired.
    4) No style inside the areasidebaritem#moused definition will be changed (as long as the style sheet is included in the .jsp file, if it is inside an external .css everything works). The .areastylesheet styles (class without the id) work correctly.
    5) If I change the <div>'s class to defaultsidebaritem it works fine.
    6) If I change the <div>'s class to anything else (like asidebaritem) and update the css involved to include those classes, it still won't work
    It can't be a missing image problem, because as I have it now, defaultsidebaritem and areasidebaritem use the same images.
    Any clue as to why IE might be screwing around here? I am just about ready to include a caption saying "IE users will be missing some functionality" or some such... because I honestly do not see why the middle button won't work :-(
    Thanks for any help yall might be able to provide...

    Observations after some fiddling with it:
    - only the first #moused declaration in the style block seems to work
    - If you swap the order of the declarations, the other one works.
    - If you declare a new style block, and put the second rule in there, it works
    - If you use a different id eg #moused2 it also works.
    I would probably put it in the category of browser bug.
    Cheers,
    evnafets

  • Opening .txt file - Need another set of eyes

    Hi folks - The attached file opens in Notepad and MS Excel as 9999 rows x 3 columns (X,Y,Z values, respectively).  I have tried different delimiters using 'Read From Spreadsheet File.vi' to bring in all the data but only successful bringing in the first column of 9999 values.  Can someone take a look at this and give me the trickto get it open using LabVIEW?  I expect it is something very simple but it is a Monday, isn't it?
    Thanks in advance.
    Don
    Solved!
    Go to Solution.
    Attachments:
    XYZ.txt ‏292 KB

    If you've ever been burned by this before, please kudo altenbach's Idea Exchange submission...
    Indicate the display format of Strings
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Need another set of eyes...

    i'm trying to build a search string and either my tick/quote marks are messing me up or i'm building the LIKE statement wrong. if a user types 'JOHN' in item :P1_LASTNAME, i'd like for all records with 'JOHN' to be returned (ex. JOHN, JOHNSON, JOHNNY).
    Declare
    x varchar2(2000);
    Begin
    x := 'select LASTNAME, FIRSTNAME from EMPLOYEES where 1=1 ';
    if :P1_LASTNAME is not null then
    x := x || ' AND upper(LASTNAME) like "%" ' || upper(:P1_LASTNAME) || ' "%" ';
    end if;
    if :P1_FIRSTNAME is not null then
    x := x || ' AND upper(FIRSTNAME) like "%" ' || upper(:P1_FIRSTNAME) || ' "%" ';
    end if;
    x := x || 'order by LASTNAME';
    return x;
    End;

    The code you wrote will concatenate percent signs (%) enclosed in double quotes (") to each side of the search string:
    select LASTNAME, FIRSTNAME from EMPLOYEES where 1=1
    AND upper(LASTNAME) like "%"JOHN"%"
    You want your query to have percent signs on either side of the search string enclosed in single quotes ('):
    select LASTNAME, FIRSTNAME from EMPLOYEES where 1=1
    AND upper(LASTNAME) like '%JOHN%'
    To escape a single quote in PL/SQL use two single quotes ('') as opposed to a double quote ("). They look VERY similar.
    if :P1_LASTNAME is not null then
    x := x || ' AND upper(LASTNAME) like ''%' || upper(:P1_LASTNAME) || '%'''';
    end if;
    ...

  • HT4818 I have installed bootcamp that worked properly.  Then I have partitioned the OS X 10.8.2 and installed another OS X 10.8.2 and I have got two MAC boot options and Bootcamp disappeared from the Option menu. How can I boot Windows again and keep both

    I have installed bootcamp by the bootcamp assistant and worked properly.
     Then I have partitioned the OS X 10.8.2 and installed another Mountain Lion System and I have got two MAC boot options and Bootcamp disappeared from the Option menu. However, Bootcamp still remained in the Startup Disk in the System Preferences. When I tried to boot Bootcamp using the Startup Disk it did not boot and received a message that there is no bootable device. I have not lost any data and can read Bootcamp partition from both OS X systems. Please advise how can I boot Windows / Bootcamp again? Thank you. 

    Recommendation 1: Use a VM for this. It's essentially a giant C.F. to do this with native booting, and is potentially fragile.
    But if you're going to ignore that and do this anyway, realizing that it can break anytime in particular with OS upgrades, and that it's very difficult to impossible to resize the three volumes once you've installed the systems:
    1. create three partitions, setting each to be the size for OS X copy 1, copy 2, and Windows respectively. The Windows partition needs to be set to MS-DOS format (actually FAT32) which later in the Windows installer you'll reformat as NTFS. Do not use Boot Camp Assistant to resize/partition the disk, it simply won't work for this use case.
    2. install OS X copy 1
    3. install OS X copy 3
    4. Use gdisk (available at sourceforge) which is a command line only application, to create a new hybrid MBR adding only the last partition (Windows) to the hybrid MBR and setting it to be bootable. As a concequence you will not be able to see/share either OS X volume from within Windows. The Windows NTFS volume will be visible from within OS X.
    5. Install Windows to the only partition its installer should see (confirm size), you'll need to format it NTFS first, and I suggest using the fast format option if available.

  • What can I do if I have a new iTunes card, but still money left on an iTunes card from another country? The money I have left isn't enough to buy anything and iTunes won't let me change country until I have used all the money!

    What can I do if I have got a new iTunes card, but still have got money left on an iTunes card from another country?
    The money I have got left isn't enough to buy anything, but iTunes won't let me change country until I have used all the money!
    Please help!!!!

    Contact iTunes Customer Service and request assistance...
    Apple - Support - iTunes Store - Contact Us

  • Droid Razr M Red Eye Boot Loop--continues for TOO many customers, need help!

    Droid Razr M problem with red eye boot loop--with ALL of the many posts that can be found online concerning this problem, why is there not a FIX from Motorola and/or Verizon?  All I seem to get are suggestions (I've tried) and "device is now considered out-of -date, you need a new phone".  Why should I purchase a new phone when I will have another issue in 2 yrs to cause me to purchase again?  Amazing how I am back to the 3G Droid Razr X to make due--It is about 5 yrs out-of-date.  Support with phones that are out-of-contract is ...well, pretty much non-existent.  Motorola gives the same "run around" after a 1 hr. call.  Verizon chat tech were helpful/nice but I was sent to motorola when answers could not be found...useless call transfer/number.  Any help for this Verizon faithful customer other than spend more $ for another phone?

    Factory data reset is all that you can try really.  If that does not repair the issue, then the software or hardware might really be at fault, and a repair would be necessary.

  • I have a macbook pro, a mini display port to hdmi cable to hook up to my tv (a toshiba 1080p flatscreen).  what do I do to actually get the image on the tv screen?  Do I need another cable for sound?

    I am trying to watch a tv show that I purchased into I-tunes.  I have the cable and it hooks to the TV okay.  The TV shows the regular apple screen that looks like the universe screen - like when it boots up or is doing an upgrade on the OS.  I can't get the image to go from the laptop to the TV.  I tried under displays and it shows the TV as a display but I can't get the image on the TV.......Please help.

    Rwogera wrote:
    I couldn't transmit sound either, do i need another cable like Kim said? i mean it cant be transmitted through this HDMI port? as for me i have one of the latest mac pro with intel core i5..tnx
    I need to know which MacBook Pro you have.  Only mid-2010  and later MBP's transmit sound through MiniDisplay Port to HDMI.  I have no information about the Mac Pro, so you might want to go to that Forum and ask there.

  • HT4436 Why is my daughter receiving my text messages on her itouch when I send them from my iphone? We are both on icloud so how can I separate the two? Do I need another icould or apple account??

    Why is my daughter receiving my text messages on her itouch when I send them from my iphone? We are both on icloud so how can I separate the two? Do I need another icould or apple account??

    It's happening because you are using the same Apple ID for iMessage.  You don't need to do anything with your iCloud account to fix this.  You should create a separate Apple ID for her device to use with iMessage and FaceTime.  (You can continue to share the same ID for purchasing from the iTunes and App stores if you wish; it doesn't need to be the same as the ID you use for other services.)  Once you've done this, on her device go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with the new ID.  Do the same thing in Settings>FaceTime.
    Another caution is that if you share and iCloud account with her, any data you both sync with the account such as contacts, will be merged and the merged data will appear on both devices.  If you don't want to end up with each other's contacts, calendars, etc. on your devices, you should have separate iCloud accounts to.  If you want to make this change, go to Settings>iCloud on her device and tap Delete Account.  (This only deletes the account from the device, not from iCloud.)  When prompted about what to do with the iCloud data be sure to choose Keep On My iPod.  Then set up a new iCloud account with her new ID, turn on iCloud data syncing again, and when prompted choose Merge.

Maybe you are looking for

  • Performance issue of Concurrency in TimesTen

    Hi, Our project is to test the performance of TimesTen. But we found performance issue when multi processes run concurrently. [Product Version] OS: HP-UX B.11.11 U 4CPU Oracle DB: 9.2.0.4 ?? TimesTen: 7.0.2 [Deployment Description] Oracle DB and Time

  • Internet works in VM but not native OS

    I am running an Ubuntu 9.04 virtual machine in VirtualBox on my Macbook pro. As I understand, VirtualBox tricks the guest OS to think there's an wired ethernet connection and redirects traffic through the hosts' connection. So I find it very strange

  • Making a Photo Book with i Photo 5

    I am in the process of creating a photo book in I Photo 5 using Classic Design theme. Is there any way to change the theme for a particular page. There are always 2 caption boxes under a picture in Classic theme and sometimes a name is automatically

  • About  the dhcp issue

    I am sorry a am i newbie in dhcp. I have a v490 server ,with 4g memory,the server is to be configured as a dhcp server.And i add subnets to the server ,and then distribute IPs for each subnet. The are about 50 subnets and 8000 IPs in each subnet,but

  • Recently I received a letter notifying me that Adobe was discontinuing workspace as of 2015.  As i d

    Recently I received a letter notifying me that Adobe was discontinuing workspace as of 2015.  As I did not see how this pertained to me so I discarded the letter.  Two days ago i attempted to open my Photoshop Elements 11 to work on some pictures I h