Help with Minus

hi guys.. Need your suggestions...
I have got two tables in two different dbs with similar table structure and data. For eg.
Table  1 :
claims1_
clm_nbr varchar2(10)
claim_dt date
Table  2 :
claims2_
clm_nbr varchar2(10)
claim_dt number
Data in claims1:_
clm_nbr          clm_dt          
000001          18-Oct-12     
009898          null
Data in claims2:_
clm_nbr          clm_dt          
000001          18102012     
009898          0
I want to do a Minus on these tables such that the end result is zero .. coz the data is the same only the format/data types are different.
Please help me with the query.

Hi,
I suggest converting the DATE claim_dt column to a NUMBER, and not vice-versa:
SELECT     clm_nbr
,     NVL ( TO_NUMBER ( TO_CHAR ( claim_dt, 'DDMMYYYY'))
         , 0
         )     AS claim_dt
FROM    claims1
    MINUS
SELECT     clm_nbr
,     claim_dt
FROM     claims2
;One of the many reasons why storing date information in a NUMBER column is such a bad idea is that you'll get invalid "dates", such as 29022013 or 17002012. You can always convert a DATE to a NUMBER, however.
Note that the query above will only give you the rows from claims1 that are not also in claims2. There may be rows in claims2 that do not match any rows in claims1. To see them, do another query, with the branches of the MINUS reversed.
SELECT     clm_nbr
,     claim_dt
FROM     claims2
    MINUS
SELECT     clm_nbr
,     NVL ( TO_NUMBER ( TO_CHAR ( claim_dt, 'DDMMYYYY'))
         , 0
         )     AS claim_dt
FROM    claims1To get all the results in one result set, use UNION ALL.
You could also do a FULL OUTER JOIN to get the information you want.

Similar Messages

  • HT4208 When I tap the Apple store, youtube and the itunes apps on my iPad they do not open. Any help with this please?

    When I tap the Apple store, YouTube and the iTunes apps, they don' launch. Any help with this?

    1. Double-click the Home button to close all Inactive Apps in Task Bar
    2. Hold the Apps in Task Bar down for a second or two until you see the minus sign
    3. Tap the minus sign to close App
    4. Tap center of screen to return to Home Screen
    5. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo. Ignore the red slider

  • URGENT Help With Scientific Calculator!

    Hi everybody,
    I designed a calculator, and I need help with the rest of the actions. I know I need to use the different Math methods, but I tried tried that and it didn't work. Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
    I will really appreciate your help with this program, I can't get it to work and I'm frustrated, I need to finish this for next Tuesday 16th. Please e-mail me at [email protected].
    Below is the code for the calcualtor.
    Thanks a lot!
    -Maria
    // calculator
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class calculator extends JApplet implements
    ActionListener
      private JButton one, two, three, four, five, six, seven,
      eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
      mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
      private JLabel output, blank;
      private Container container;
      private String operation;
      private double number1, number2, result;
      private boolean clear = false;
      //GUI
      public void init()
        container = getContentPane();
        //Title
        //super("Calculator");
        JPanel container = new JPanel();     
        container.setLayout( new FlowLayout( FlowLayout.CENTER
        output = new JLabel("");     
        output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
        output.setPreferredSize(new Dimension(1,26));     
        getContentPane().setBackground(Color.white);     
        getContentPane().add( "North",output );     
        getContentPane().add( "Center",container );
        //blank
        blank = new JLabel( "                    " );
        container.add( blank );
        //clear
        clear = new JButton( "CE" );
        clear.addActionListener(this);
        container.add( clear );
        //seven
        seven = new JButton( "7" );
        seven.addActionListener(this);
        container.add( seven );
        //eight
        eight = new JButton( "8" );
        eight.addActionListener(this);
        container.add( eight );
        //nine
        nine = new JButton( "9" );
        nine.addActionListener(this);
        container.add( nine );
        //div
        div = new JButton( "/" );
        div.addActionListener(this);
        container.add( div );
        //four
        four = new JButton( "4" );
        four.addActionListener(this);
        container.add( four );
        //five
        five = new JButton( "5" );
        five.addActionListener(this);
        container.add( five );
        //six
        six = new JButton( "6" );
        six.addActionListener(this);
        container.add( six );
        //mult
        mult = new JButton( "*" );
        mult.addActionListener(this);
        container.add( mult );
        //one
        one = new JButton( "1" );
        one.addActionListener(this);
        container.add( one );
        //two
        two = new JButton( "2" );
        two.addActionListener(this);
        container.add( two );
        //three
        three = new JButton( "3" );
        three.addActionListener(this);
        container.add( three );
        //minus
        minus = new JButton( "-" );
        minus.addActionListener(this);
        container.add( minus );
        //zero
        zero = new JButton( "0" );
        zero.addActionListener(this);
        container.add( zero );
        //dec
        dec = new JButton( "." );
        dec.addActionListener(this);
        container.add( dec );
        //plus
        plus = new JButton( "+" );
        plus.addActionListener(this);
        container.add( plus );
        //mem
        mem = new JButton( "MEM" );
        mem.addActionListener(this);
        container.add( mem );   
        //mrc
        mrc = new JButton( "MRC" );
        mrc.addActionListener(this);
        container.add( mrc );
        //sin
        sin = new JButton( "SIN" );
        sin.addActionListener(this);
        container.add( sin );
        //cos
        cos = new JButton( "COS" );
        cos.addActionListener(this);
        container.add( cos );
        //tan
        tan = new JButton( "TAN" );
        tan.addActionListener(this);
        container.add( tan );
        //asin
        asin = new JButton( "ASIN" );
        asin.addActionListener(this);
        container.add( asin );
        //acos
        acos = new JButton( "ACOS" );
        cos.addActionListener(this);
        container.add( cos );
        //atan
        atan = new JButton( "ATAN" );
        atan.addActionListener(this);
        container.add( atan );
        //x2
        x2 = new JButton( "X2" );
        x2.addActionListener(this);
        container.add( x2 );
        //sqrt
        sqrt = new JButton( "SQRT" );
        sqrt.addActionListener(this);
        container.add( sqrt );
        //exp
        exp = new JButton( "EXP" );
        exp.addActionListener(this);
        container.add( exp );
        //pi
        pi = new JButton( "PI" );
        pi.addActionListener(this);
        container.add( pi );
        //percent
        percent = new JButton( "%" );
        percent.addActionListener(this);
        container.add( percent );
        //eq
        eq = new JButton( "=" );
        eq.addActionListener(this);
        container.add( eq );
        //Set size and visible
        setSize( 190, 285 );
        setVisible( true );
    public static void main(String args[]){
        //execute applet as application
         //applet's window
         JFrame applicationWindow = new JFrame("calculator");
    applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //applet instance
         calculator appletObject = new calculator();
         //init and start methods
         appletObject.init();
         appletObject.start();
      } // end main
      public void actionPerformed(ActionEvent ae)
        JButton but = ( JButton )ae.getSource();     
        //dec action
        if( but.getText() == "." )
          //if dec is pressed, first check to make shure there
    is not already a decimal
          String temp = output.getText();
          if( temp.indexOf( '.' ) == -1 )
            output.setText( output.getText() + but.getText() );
        //clear action
        else if( but.getText() == "CE" )
          output.setText( "" );
          operation = "";
          number1 = 0.0;
          number2 = 0.0;
        //plus action
        else if( but.getText() == "+" )
          operation = "+";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //minus action
        else if( but.getText() == "-" )
          operation = "-";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //mult action
        else if( but.getText() == "*" )
          operation = "*";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //div action
        else if( but.getText() == "/" )
          operation = "/";
          number1 = Double.parseDouble( output.getText() );
          clear = true;
          //output.setText( "" );
        //eq action
        else if( but.getText() == "=" )
          number2 = Double.parseDouble( output.getText() );
          if( operation == "+" )
            result = number1 + number2;
          else if( operation == "-" )
            result = number1 - number2;
          else if( operation == "*" )
            result = number1 * number2;
          else if( operation == "/" )
            result = number1 / number2;       
          //output result
          output.setText( String.valueOf( result ) );
          clear = true;
          operation = "";
        //default action
        else
          if( clear == true )
            output.setText( "" );
            clear = false;
          output.setText( output.getText() + but.getText() );
    }

    Multiple post:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30

  • Urgent Help with a my Cheap Greek Hotel!

    Thanks for your help with the pseudocode. I have got many errors with this program in the funtions. The code is below. Is there someone who can help me get my head around them?
    import Date;
    import Money;
    public class Hotel {
        private Room[] rooms = new Room[12];
        public Hotel() {
             for(int i = 0; i<rooms.length; i++){
                 rooms[i] = new Room(i+1,20);
        public static void main (String[]args)
         // public void bookIn(String guest, Date today)
         public void bookIn(String guest, Date today, int roomNumber)
            if (roomNumber < 1 || roomNumber > rooms.length){
                throw new Exception("Room numbers must be within 1-" + rooms.length);
            if (rooms[roomNumber-1].getRoomHolder() !=null){
                throw new Exception("Room " + roomNumber + " not available.");
            rooms[roomNumber-1].setRoomHolder(guest);
            rooms[roomNumber-1].setBookedIn(today);
         // fn to put a guest in ata a specified date
         public void bookOut (Date checkedIn, Date checkedOut)
            //In the date class you can probably check the Calendar class to find
            //out the syntax for subtracting dates
            int nightsStayed = checkedOut - checkedIn;
            //Now I'd have an array of Guest
            //objects, where the room number = the position in the
            //array.  When a guest checks in, you can set whatever
            //info. you need (check in date, guest name, etc.) and
              //set it back to null when a guest checks out.
              new Room[12][roomNumber] = null;
              //calculate the fee
            double price = getFee(nightsStayed);
            System.out.println("You owe: "+price);
         // public double bookOut(Date currentdate)
        }//end method
        public double bookOut (Date currentdate)
        // fn to empty the room and may be calculate & return the value of the bill
        public double getFee(int nightsStayed)
            double fee = (nightlyFee*nightsStayed);
            return fee;
            //end method
            //end class
    }The errors in this program are listed below`
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:31: cannot resolve symbol
    symbol  : method setRoomHolder  (java.lang.String)
    location: class Room
            rooms[RoomNumber-1].setRoomHolder(guest);
                 ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:32: cannot resolve symbol
    symbol  : method setBookedIn  (Date)
    location: class Room
            rooms[RoomNumber-1].setBookedIn(today);
                 ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:40: operator - cannot be applied to Date,Date
            int nightsStayed = checkedOut - checkedIn;
                                          ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: cannot resolve symbol
    symbol  : variable RoomNumber 
    location: class Hotel
              new Room[12][RoomNumber] = null;
                                 ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:46: unexpected type
    required: variable
    found   : value
              new Room[12][RoomNumber] = null;
                    ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Hotel.java:59: cannot resolve symbol
    symbol  : variable nightlyFee 
    location: class Hotel
            double fee = (nightlyFee*nightsStayed);
                          ^
    T:\Year 1\Programming Workshop\Assignment2\Assignment2\Room.java:36: cannot return a value from method whose result type is void
            return bookedIn;
                   ^
    7 errors
    *** Compiler reported errorsIs there anyone who can transfer my pseudocode into language specific java? I really need some help. Thanks.

    Thanks for your Help regarding methods. You managed to help me correct two errors. Which means i know have six. Thanks ever so much. The method setRoom Holder has been recognised aswell as the method setBookedIn.
    What did you mean by "I cannot use minus operators on dates?" Is there any other way that I can code this function so that it is acceptable?
    int nightsStayed = bookedOut - bookedIn;
    Can you help me code these last four functions please? Then my program will have no errors. I have to get rid of six.
    // public void bookIn(String guest, Date today)
         public void bookIn(String guest, Date today, int RoomNumber)
            if (RoomNumber < 1 || RoomNumber > rooms.length){
                throw new Exception("Room numbers must be within 1-" + rooms.length);
            if (rooms[RoomNumber-1].getRoomHolder() !=null){
                throw new Exception("Room " + RoomNumber + " not available.");
            rooms[RoomNumber-1].setRoomHolder(guest);
            rooms[RoomNumber-1].setBookedIn(today);
         // fn to put a guest in ata a specified date
         public void bookOut (Date bookedIn, Date bookedOut)
            //In the date class you can probably check the Calendar class to find
            //out the syntax for subtracting dates
            int nightsStayed = bookedOut - bookedIn;
            //Now I'd have an array of Guest
            //objects, where the room number = the position in the
            //array.  When a guest checks in, you can set whatever
            //info. you need (check in date, guest name, etc.) and
              //set it back to null when a guest checks out.
              new Room[12][RoomNumber] = null;
              //calculate the fee
            double price = getFee(nightsStayed);
            DerbyIO.getString("You owe: "+price);
         // public double bookOut(Date currentdate)
        }//end method
        public double bookOut (Date currentdate)
        // fn to empty the room and may be calculate & return the value of the bill
        public double getFee(int nightsStayed)
            double fee = (nightlyFee*nightsStayed);
            return fee;
            //end method
            //end class
    }

  • Help With Program Please

    Hi everybody,
    I designed a calculator, and I need help with the rest of the scientific actions. I know I need to use the different Math methods, but what exactly? Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
    I will really appreciate your help with this program, I need to finish it ASAP. Please e-mail me at [email protected].
    Below is the code for the calcualtor.
    Thanks in advance,
    -Maria
    // calculator
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class calculator extends JApplet implements
    ActionListener
    private JButton one, two, three, four, five, six, seven,
    eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
    mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
    private JLabel output, blank;
    private Container container;
    private String operation;
    private double number1, number2, result;
    private boolean clear = false;
    //GUI
    public void init()
    container = getContentPane();
    //Title
    //super("Calculator");
    JPanel container = new JPanel();     
    container.setLayout( new FlowLayout( FlowLayout.CENTER
    output = new JLabel("");     
    output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
    output.setPreferredSize(new Dimension(1,26));     
    getContentPane().setBackground(Color.white);     
    getContentPane().add( "North",output );     
    getContentPane().add( "Center",container );
    //blank
    blank = new JLabel( " " );
    container.add( blank );
    //clear
    clear = new JButton( "CE" );
    clear.addActionListener(this);
    container.add( clear );
    //seven
    seven = new JButton( "7" );
    seven.addActionListener(this);
    container.add( seven );
    //eight
    eight = new JButton( "8" );
    eight.addActionListener(this);
    container.add( eight );
    //nine
    nine = new JButton( "9" );
    nine.addActionListener(this);
    container.add( nine );
    //div
    div = new JButton( "/" );
    div.addActionListener(this);
    container.add( div );
    //four
    four = new JButton( "4" );
    four.addActionListener(this);
    container.add( four );
    //five
    five = new JButton( "5" );
    five.addActionListener(this);
    container.add( five );
    //six
    six = new JButton( "6" );
    six.addActionListener(this);
    container.add( six );
    //mult
    mult = new JButton( "*" );
    mult.addActionListener(this);
    container.add( mult );
    //one
    one = new JButton( "1" );
    one.addActionListener(this);
    container.add( one );
    //two
    two = new JButton( "2" );
    two.addActionListener(this);
    container.add( two );
    //three
    three = new JButton( "3" );
    three.addActionListener(this);
    container.add( three );
    //minus
    minus = new JButton( "-" );
    minus.addActionListener(this);
    container.add( minus );
    //zero
    zero = new JButton( "0" );
    zero.addActionListener(this);
    container.add( zero );
    //dec
    dec = new JButton( "." );
    dec.addActionListener(this);
    container.add( dec );
    //plus
    plus = new JButton( "+" );
    plus.addActionListener(this);
    container.add( plus );
    //mem
    mem = new JButton( "MEM" );
    mem.addActionListener(this);
    container.add( mem );
    //mrc
    mrc = new JButton( "MRC" );
    mrc.addActionListener(this);
    container.add( mrc );
    //sin
    sin = new JButton( "SIN" );
    sin.addActionListener(this);
    container.add( sin );
    //cos
    cos = new JButton( "COS" );
    cos.addActionListener(this);
    container.add( cos );
    //tan
    tan = new JButton( "TAN" );
    tan.addActionListener(this);
    container.add( tan );
    //asin
    asin = new JButton( "ASIN" );
    asin.addActionListener(this);
    container.add( asin );
    //acos
    acos = new JButton( "ACOS" );
    cos.addActionListener(this);
    container.add( cos );
    //atan
    atan = new JButton( "ATAN" );
    atan.addActionListener(this);
    container.add( atan );
    //x2
    x2 = new JButton( "X2" );
    x2.addActionListener(this);
    container.add( x2 );
    //sqrt
    sqrt = new JButton( "SQRT" );
    sqrt.addActionListener(this);
    container.add( sqrt );
    //exp
    exp = new JButton( "EXP" );
    exp.addActionListener(this);
    container.add( exp );
    //pi
    pi = new JButton( "PI" );
    pi.addActionListener(this);
    container.add( pi );
    //percent
    percent = new JButton( "%" );
    percent.addActionListener(this);
    container.add( percent );
    //eq
    eq = new JButton( "=" );
    eq.addActionListener(this);
    container.add( eq );
    //Set size and visible
    setSize( 190, 285 );
    setVisible( true );
    public static void main(String args[]){
    //execute applet as application
         //applet's window
         JFrame applicationWindow = new JFrame("calculator");
    applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //applet instance
         calculator appletObject = new calculator();
         //init and start methods
         appletObject.init();
         appletObject.start();
    } // end main
    public void actionPerformed(ActionEvent ae)
    JButton but = ( JButton )ae.getSource();     
    //dec action
    if( but.getText() == "." )
    //if dec is pressed, first check to make shure there
    is not already a decimal
    String temp = output.getText();
    if( temp.indexOf( '.' ) == -1 )
    output.setText( output.getText() + but.getText() );
    //clear action
    else if( but.getText() == "CE" )
    output.setText( "" );
    operation = "";
    number1 = 0.0;
    number2 = 0.0;
    //plus action
    else if( but.getText() == "+" )
    operation = "+";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //minus action
    else if( but.getText() == "-" )
    operation = "-";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //mult action
    else if( but.getText() == "*" )
    operation = "*";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //div action
    else if( but.getText() == "/" )
    operation = "/";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //eq action
    else if( but.getText() == "=" )
    number2 = Double.parseDouble( output.getText() );
    if( operation == "+" )
    result = number1 + number2;
    else if( operation == "-" )
    result = number1 - number2;
    else if( operation == "*" )
    result = number1 * number2;
    else if( operation == "/" )
    result = number1 / number2;
    //output result
    output.setText( String.valueOf( result ) );
    clear = true;
    operation = "";
    //default action
    else
    if( clear == true )
    output.setText( "" );
    clear = false;
    output.setText( output.getText() + but.getText() );

    Multiple post:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30

  • Please Help with range of uncertainty in java program

    I really need help with this, I've been searching for an answer all day and have found nothing.
    This is the original program and I'm trying to make it so instead of stoppingDistance having to be equal to tailgateDistance for it to print minor wreck, it will allow a range of 40 feet. Like a range of uncertainty of plus or minus 20 feet, and I need to use a named constant that is: RANGE = 40.0
    import java.util.Scanner;
    public class StoppingA
    public static void main(String[] args)
    Scanner stdIn = new Scanner(System.in);
    double speed; // speed car is traveling;
    double tailgateDistance; // distance from other car;
    double stoppingDistance; // calculated distance
    System.out.print ("Enter your speed (in mph): ");
    speed = stdIn.nextDouble();
    System.out.print ("Enter your tailgate distance (in feet): ");
    tailgateDistance = stdIn.nextDouble();
    stoppingDistance=speed*(2.25+speed/21);
    if (stoppingDistance < tailgateDistance)
    System.out.println("No problem.");
    else if (stoppingDistance == tailgateDistance)
    System.out.println("Minor wreck.");
    else if (stoppingDistance > tailgateDistance)
    System.out.println("Major wreck!");
    } // end main
    } // end class StoppingA
    Edited by: Ensanvoration on Feb 23, 2010 3:31 PM

    Encephalopathic wrote:
    Ensanvoration wrote:
    Thanks, but I already tried that exact thing and it didn't work either. It's ridiculousIf you don't show us how you tried it, then we can only guess why it's not working.
    ... but if you wait around long enough, I bet you'll see JosAH post a recursive solution! :)Where is JosAH. Is he on vacation? Since I've been back, I haven't seen him.
    Well, let's raise a bottle of Grolsch to him anyway. More for us.
    ¦ {Þ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Help with sparse matrix

    I need to create a sparse matrix implementation. Only allocate space for non-zero matrix elements. Implement methods for addition, subtraction, multiplication and determinant. Here is how I want to implement it:
    Matrix is an array of linked lists.
    Each linked list represents a row.
    Each entry in the linked list has a value and a column associated with it.
    I need help with the setEntry method and creating the array of linked lists.
    Here is what I have so far:
    import java.io.*;
    import java.util.*;
    public class Matrix
      private int numberOfRows;
      int numberOfColumns;
      private IntegerNode[][] entries;
      private IntegerNode head = null;
      private static BufferedReader stdin = new BufferedReader(
                 new InputStreamReader( System.in ) );
      // Constructor
      public Matrix(int numberOfRows, int numberOfColumns)
        if (numberOfRows <= 0)
          throw new IllegalArgumentException("Cannot construct Matrix with " +
            numberOfRows + " rows.  Number of rows must be positive.");
        if (numberOfColumns <= 0)
          throw new IllegalArgumentException("Cannot construct Matrix with " +
            numberOfColumns + " columns.  Number of columns must be positive.");
        entries = new IntegerNode[numberOfRows][numberOfColumns];
        this.numberOfRows = numberOfRows;
        this.numberOfColumns = numberOfColumns;
      public static void main (String [] args) throws IOException {
           File myFile1 = getFileName();
           Matrix myMatrix1 = Matrix.readMatrixFromFile(myFile1, "Matrix 1");
           File myFile2 = getFileName();
           Matrix myMatrix2 = Matrix.readMatrixFromFile(myFile2, "Matrix 2");
           System.out.println();
           System.out.println("Printing out Matrix 1");
           System.out.println("---------------------");
           myMatrix1.print();
           System.out.println("Printing out Matrix 2");
           System.out.println("---------------------");      
           myMatrix2.print();
           String myOperation = getAction();
           Matrix.performActionOnMatrices(myMatrix1, myMatrix2, myOperation);        
       public static Matrix readMatrixFromFile(File file, String fname)
        throws IOException
        BufferedReader reader =
          new BufferedReader(new FileReader(file));
        // first line should be number of rows followed by number of columns
        String line = reader.readLine();
        if (line == null)
          throw new IOException("File \"" + file + "\" is empty.");
        int[] dimensions = readInts(line, 2);
        System.out.println("The dimensions of " + fname + " are " + dimensions[0] + " by " +
          dimensions[1] + ".");
        Matrix matrix = new Matrix(dimensions[0], dimensions[1]);
           for (int row = 0; row < dimensions[0]; ++row) {           
                line = reader.readLine();
                if (line == null)
                     throw new IOException("Matrix in file should have " + dimensions[0] + " rows.");
                int[] rowValues = readInts(line, dimensions[1]);
                for (int column = 0; column < dimensions[1]; ++column)
                     matrix.setEntry(row, column, rowValues[column]);
        return matrix;
      public static String getAction() throws IOException {
           System.out.println("What operation would you like to perform on these matrices? (add, subtract, multiply, or determinant) ... ");
           String actionToTake = stdin.readLine();
           return actionToTake;
      public static File getFileName() throws IOException {
           System.out.println( "Please enter the full path and name of a file that contains a valid matrix ... " );
           String fname = stdin.readLine();
           File someFile = new File(fname);
           return someFile;      
      public static void performActionOnMatrices(Matrix matrix1, Matrix matrix2, String action) {
           if ((!action.equals("add")) && (!action.equals("subtract")) && (!action.equals("multiply")) && (!action.equals("determinant"))) {
               throw new IllegalArgumentException("The only valid actions are add, subtract, multiply or determinant.");           
           if (action.equals("add")) {
                if ((matrix1.numberOfRows != matrix2.numberOfRows) || (matrix1.numberOfColumns != matrix2.numberOfColumns)) {
                    throw new IllegalArgumentException("The matrices must contain the same number of rows and columns in order to perform addition on them.");           
                System.out.println("Performing addition on the two matrices...");
                Matrix addMatrix = Matrix.add(matrix1, matrix2);
                System.out.println("Here is the sum of the two matrices:");
                System.out.println("------------------------------------------");
                addMatrix.print();
           } else if (action.equals("subtract")) {
                if ((matrix1.numberOfRows != matrix2.numberOfRows) || (matrix1.numberOfColumns != matrix2.numberOfColumns)) {
                    throw new IllegalArgumentException("The matrices must contain the same number of rows and columns in order to perform subtraction on them.");           
                System.out.println("Performing subtraction on the two matrices...");
                Matrix subtractMatrix = Matrix.subtract(matrix1, matrix2);
                System.out.println("Here is the result of the subtraction:");
                System.out.println("---------------------------------------------");
                subtractMatrix.print();           
           } else if (action.equals("multiply")) {
                if ((matrix1.numberOfRows != matrix2.numberOfRows) || (matrix1.numberOfColumns != matrix2.numberOfColumns)) {
                    throw new IllegalArgumentException("The matrices must contain the same number of rows and columns in order to perform multiplication on them.");           
                if (matrix1.numberOfRows != matrix2.numberOfColumns) {
                    throw new IllegalArgumentException("The number of rows in the first Matrix must equal the number of columns in the second for multiplying.");                       
                System.out.println("Performing multiplication on the two matrices...");
                Matrix multMatrix = Matrix.multiply(matrix1, matrix2);
                System.out.println("Here is the product of the two matrices:");
                System.out.println("------------------------------------------");
                multMatrix.print();
           }     else if (action.equals("determinant")) {
                int det1 = matrix1.determinant();
                System.out.println("Determinant of Matrix 1");
                System.out.println("-----------------------");     
                System.out.println(det1);
                System.out.println();
                int det2 = matrix2.determinant();
                System.out.println("Determinant of Matrix 2");
                System.out.println("-----------------------");     
                System.out.println(det2);
                System.out.println();           
      //  Sets the entry in the matrix at the given row & column to
      //    the given value.
      public void setEntry(int row, int column, int value)
        if ((row < 0) || (row >= numberOfRows))
          throw new IllegalArgumentException("Illegal row index " + row +
            ".  Index should be between 0 and " + (numberOfRows-1));
        if ((column < 0) || (column >= numberOfColumns))
          throw new IllegalArgumentException("Illegal column index " + column +
            ".  Index should be between 0 and " + (numberOfColumns-1));
        //if (value != 0) {
             IntegerNode newNode = new IntegerNode();
             newNode.setItem(value);
             entries[row][column] = newNode;
      //  Returns the matrix entry at the given row & column
      public IntegerNode getEntry(int row, int column)
        if ((row < 0) || (row >= numberOfRows))
          throw new IllegalArgumentException("Illegal row index " + row +
            ".  Index should be between 0 and " + (numberOfRows-1));
        if ((column < 0) || (column >= numberOfColumns))
          throw new IllegalArgumentException("Illegal column index " + column +
            ".  Index should be between 0 and " + (numberOfColumns-1));
        return entries[row][column];
      //  A primitive routine to print the matrix.  It doesn't do
      //    anything smart or nice about spacing.
      public void print()
        for (int row = 0; row < numberOfRows; ++row)
          for (int column = 0; column < numberOfColumns; ++column)
               if (getEntry(row,column) != null) {
                    System.out.print(getEntry(row, column).getItem() + " ");
          System.out.println();
        System.out.println();
      public void linkNodesInEachRow()
           int counter;
           for (int row = 0; row < numberOfRows; ++row)
             counter = 0;
             for (int column = 0; column < numberOfColumns; ++column)
                  if (getEntry(row,column) != null) {
                       counter++;
                       if (counter == 1) {
                            head = new IntegerNode();
                            head.setItem(getEntry(row, column).getItem());
                       } else {
                       //System.out.print("ITEM NUMBER " + counter + " = ");
                       //System.out.println(getEntry(row, column).getItem() + " ");
             System.out.println();
        System.out.println();
           /*for (IntegerNode curr = head; curr != null; curr = curr.getNext()) {
                System.out.println(curr.getItem());
      //  Returns the determinant of the matrix.
      //  This method checks that the matrix is square and throws
      //    an exception if not.
      public int determinant()
         int determinantValue = 0;
         int counter;
         int plusminus = 1; // start with positive value
         // Make sure the matrix is square before proceeding with
        //   determinant calculation
        if (numberOfRows != numberOfColumns)
          // should really create a MatrixException type
          throw new IllegalArgumentException(
            "Cannot compute determinant of non-square (" + numberOfRows +
            " by " + numberOfColumns + ") matrix.");
        } else {
             // the matrix has the same number of rows and columns 
             if (numberOfColumns == 1)
                  // the matrix is 1x1 - the determinant is just it's value
                  return entries[0][0].getItem();
             else if (numberOfColumns == 2)
                  // the matrix is 2x2 - return ad - bc
                  return entries[0][0].getItem() * entries[1][1].getItem() - entries[0][1].getItem() * entries[1][0].getItem();
             else
                  // the matrix is larger than 2x2
                  // loop through the columns in the matrix
                  for (counter = 0; counter < numberOfColumns; counter++)
                       determinantValue += plusminus * entries[0][counter].getItem() * minor(0, counter).determinant(); // The determinant is the sum of all the n possible signed products formed from the matrix using each row and each column only once for each product.  Notice the recursive call using the submatrix.
                       plusminus *= -1;  // switch the plus/minus sign of the multiplier on each iteration through the loop
             return determinantValue;
    // returns a matrix representing the minor of the matrix
    // for the specified row and column
    public Matrix minor(int row, int column)
        int rowsA;
        int rowsB;
        int colsA;
        int colsB;
        // decrease the size of the resultant matrix by 1 row and 1 column
        Matrix smallerMatrix = new Matrix (numberOfRows - 1, numberOfColumns - 1);
        // scroll through the rows and columns in the original Matrix
        // copy all of the values from the original Matrix except the one row and column that were passed in
        for (rowsA=0, rowsB=0; rowsA < numberOfRows; rowsA++)
           if (rowsA != row)
              for (colsA=0, colsB=0; colsA < numberOfColumns; colsA++)
                 if (colsA != column)
                     // the current row and column do not match the row and column we wish to remove
                     // set the values in the appropriate positions of the sub matrix
                    smallerMatrix.setEntry(rowsB, colsB, entries[rowsA][colsA].getItem());
                    colsB++;
              rowsB++;
        return smallerMatrix;     
      //  Used to parse the row of ints provided in the file input to
      //    this program.  Given a string containing at least numberToRead
      //    ints, it creates and returns an int array contaning those
      //    ints.
      private static int[] readInts(String someInts, int numberToRead)
        StringTokenizer tokenizer = new StringTokenizer(someInts);
        if (numberToRead < 0)
          throw new IllegalArgumentException("Cannot read " + numberToRead
            + " ints.  numberToRead must be nonnegative.");
        int[] toReturn = new int[numberToRead];
        for (int i = 0; i < numberToRead; ++i)
          if (!tokenizer.hasMoreTokens())
            throw new IllegalArgumentException("Cannot read " + numberToRead +
              " ints from string \"" + someInts + "\".");
          String token = tokenizer.nextToken();
          toReturn[i] = Integer.parseInt(token);
        return toReturn;
      public static Matrix add (Matrix a, Matrix b)
           Matrix result = new Matrix(a.numberOfRows, a.numberOfColumns);
          for(int i = 0; i < a.numberOfRows; i++)
             for(int j = 0; j < a.numberOfColumns; j++)
                 int value = a.getEntry(i, j).getItem() + b.getEntry(i, j).getItem();
                 result.setEntry(i, j, value);
          System.out.println("Addition complete.");
          return result;
      public static Matrix subtract (Matrix a, Matrix b)
           Matrix result = new Matrix(a.numberOfRows, a.numberOfColumns);
           for(int i = 0; i < a.numberOfRows; i++)
             for(int j = 0; j < a.numberOfColumns; j++)
                 int value = a.getEntry(i, j).getItem() - b.getEntry(i, j).getItem();
                 result.setEntry(i, j, value);
          System.out.println("Subtraction complete.");
          return result;
      public static Matrix multiply (Matrix a, Matrix b)
          Matrix result = new Matrix(a.numberOfRows, b.numberOfColumns);
          int colSum = 0;
          for(int i = 0; i < a.numberOfRows; i++)
              for(int j = 0; j < b.numberOfColumns; j++)
                  colSum = 0;
                  for(int k = 0; k < a.numberOfColumns; k++)
                     colSum += a.getEntry(i,k).getItem() * b.getEntry(k,j).getItem();
                  result.setEntry(i, j, colSum);
          System.out.println("Multiplication complete.");
          return result;
      public class IntegerNode {
              private int item;
              private IntegerNode next;
              public void setItem(int newItem) {
                   item = newItem;
              public int getItem() {
                   return item;
              public void setNext(IntegerNode nextNode) {
                   next = nextNode;
              public IntegerNode getNext() {
                   return next;
    }

    Please help. The code runs just fine. The only thing is I need to link the nodes together (for each row) into a linked list and then put each linked list into an array. I need help with setEntry. The details of creating a node, attaching it to the list representing a row, etc. need to be in setEntry. Please help.
    For the following matrix:
    1 4 5
    4 2 5
    2 1 2
    There is an array of three linked lists.
    LinkedListsArray[0] = Entry(value=1, column=0)->Entry(value=4, column=1)->Entry(value=5, column=2)
    LinkedListsArray[1] = Entry(value=4, column=0)->Entry(value=2, column=1)->Entry(value=5, column=2)
    LinkedListsArray[2] = .....
    Each entry is a node in the linked list.
    The last twist is that if any values are zero, they shouldn't have nodes associated with them. Don't allocate nodes for zero valued entries.

  • I need help with creating some formulas

    I'm not sure if anyone around here can help me, but I'm trying to create a Numbers document and need some help with creating a formula/function.
    I have a column of amounts and I would like to create a formula which deducts a percentage (11.9%) and puts the result in another column.
    If anyone can help me, it would be greatly appreciated.

    Here is an example that shows one way to do this:
    The original data is in column A.  In column B we will store formulas to adjust the amounts:
    1) select the cell where you want to formula (in this case cell B2)
    2) Type the "=" (equal sign):
    3) click cell A2:
    4) now type the rest of the formula which is: "*(100-11.9)/100"  that is asterisk, then open parenthesis, 100 minus eleven point nine close parenthesis forward slash  one hundred
    The Asterisk is the multiply operator  (times) and the forward slash is the division operator (divide)
    now hit return.  select cell B2 and hover the cursor over the bottom edge of the cell:
    drag the little yellow dot down to "fill" the formula down as needed.

  • Help with my iPad one.

    My iPad one keeps crashing. It never crashed before ios5. Now it even crashes when using Apple apps like Safari. I have done e latest upgrade.

    Start with easy steps. Restart your iPad and if that doesn't help - maybe resetting it will help.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    You can also try quitting apps and restarting the iPad.
    Go to the home screen first by tapping the home button. Quit/close open apps by double tapping the home button and the task bar will appear with all of you recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus (-) sign in the upper left corner to close the apps. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Clearing Safari may help with crashes in that app as well.
    Go to Settings>Safari>Clear History, Cookies and Data. Restart the iPad. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Help with if statement in cursor and for loop to get output

    I have the following cursor and and want to use if else statement to get the output. The cursor is working fine. What i need help with is how to use and if else statement to only get the folderrsn that have not been updated in the last 30 days. If you look at the talbe below my select statement is showing folderrs 291631 was updated only 4 days ago and folderrsn 322160 was also updated 4 days ago.
    I do not want these two to appear in my result set. So i need to use if else so that my result only shows all folderrsn that havenot been updated in the last 30 days.
    Here is my cursor:
    /*Cursor for Email procedure. It is working Shows userid and the string
    You need to update these folders*/
    DECLARE
    a_user varchar2(200) := null;
    v_assigneduser varchar2(20);
    v_folderrsn varchar2(200);
    v_emailaddress varchar2(60);
    v_subject varchar2(200);
    Cursor c IS
    SELECT assigneduser, vu.emailaddress, f.folderrsn, trunc(f.indate) AS "IN DATE",
    MAX (trunc(fpa.attemptdate)) AS "LAST UPDATE",
    trunc(sysdate) - MAX (trunc(fpa.attemptdate)) AS "DAYS PAST"
    --MAX (TRUNC (fpa.attemptdate)) - TRUNC (f.indate) AS "NUMBER OF DAYS"
    FROM folder f, folderprocess fp, validuser vu, folderprocessattempt fpa
    WHERE f.foldertype = 'HJ'
    AND f.statuscode NOT IN (20, 40)
    AND f.folderrsn = fp.folderrsn
    AND fp.processrsn = fpa.processrsn
    AND vu.userid = fp.assigneduser
    AND vu.statuscode = 1
    GROUP BY assigneduser, vu.emailaddress, f.folderrsn, f.indate
    ORDER BY fp.assigneduser;
    BEGIN
    FOR c1 IN c LOOP
    IF (c1.assigneduser = v_assigneduser) THEN
    dbms_output.put_line(' ' || c1.folderrsn);
    else
    dbms_output.put(c1.assigneduser ||': ' || 'Overdue Folders:You need to update these folders: Folderrsn: '||c1.folderrsn);
    END IF;
    a_user := c1.assigneduser;
    v_assigneduser := c1.assigneduser;
    v_folderrsn := c1.folderrsn;
    v_emailaddress := c1.emailaddress;
    v_subject := 'Subject: Project for';
    END LOOP;
    END;
    The reason I have included the folowing table is that I want you to see the output from the select statement. that way you can help me do the if statement in the above cursor so that the result will look like this:
    emailaddress
    Subject: 'Project for ' || V_email || 'not updated in the last 30 days'
    v_folderrsn
    v_folderrsn
    etc
    [email protected]......
    Subject: 'Project for: ' Jim...'not updated in the last 30 days'
    284087
    292709
    [email protected].....
    Subject: 'Project for: ' Kim...'not updated in the last 30 days'
    185083
    190121
    190132
    190133
    190159
    190237
    284109
    286647
    294631
    322922
    [email protected]....
    Subject: 'Project for: Joe...'not updated in the last 30 days'
    183332
    183336
    [email protected]......
    Subject: 'Project for: Sam...'not updated in the last 30 days'
    183876
    183877
    183879
    183880
    183881
    183882
    183883
    183884
    183886
    183887
    183888
    This table is to shwo you the select statement output. I want to eliminnate the two days that that are less than 30 days since the last update in the last column.
    Assigneduser....Email.........Folderrsn...........indate.............maxattemptdate...days past since last update
    JIM.........      jim@ aol.com.... 284087.............     9/28/2006.......10/5/2006...........690
    JIM.........      jim@ aol.com.... 292709.............     3/20/2007.......3/28/2007............516
    KIM.........      kim@ aol.com.... 185083.............     8/31/2004.......2/9/2006.............     928
    KIM...........kim@ aol.com.... 190121.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190132.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190133.............     2/9/2006.........2/9/2006.............928
    KIM...........kim@ aol.com.... 190159.............     2/13/2006.......2/14/2006............923
    KIM...........kim@ aol.com.... 190237.............     2/23/2006.......2/23/2006............914
    KIM...........kim@ aol.com.... 284109.............     9/28/2006.......9/28/2006............697
    KIM...........kim@ aol.com.... 286647.............     11/7/2006.......12/5/2006............629
    KIM...........kim@ aol.com.... 294631.............     4/2/2007.........3/4/2008.............174
    KIM...........kim@ aol.com.... 322922.............     7/29/2008.......7/29/2008............27
    JOE...........joe@ aol.com.... 183332.............     1/28/2004.......4/23/2004............1585
    JOE...........joe@ aol.com.... 183336.............     1/28/2004.......3/9/2004.............1630
    SAM...........sam@ aol.com....183876.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183877.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183879.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183880.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183881.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183882.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183883.............3/5/2004.........3/8/2004.............1631
    SAM...........sam@ aol.com....183884.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183886.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183887.............3/5/2004.........3/8/2004............     1631
    SAM...........sam@ aol.com....183888.............3/5/2004.........3/8/2004............     1631
    PAT...........pat@ aol.com.....291630.............2/23/2007.......7/8/2008............     48
    PAT...........pat@ aol.com.....313990.............2/27/2008.......7/28/2008............28
    NED...........ned@ aol.com.....190681.............4/4/2006........8/10/2006............746
    NED...........ned@ aol.com......95467.............6/14/2006.......11/6/2006............658
    NED...........ned@ aol.com......286688.............11/8/2006.......10/3/2007............327
    NED...........ned@ aol.com.....291631.............2/23/2007.......8/21/2008............4
    NED...........ned@ aol.com.....292111.............3/7/2007.........2/26/2008............181
    NED...........ned@ aol.com.....292410.............3/15/2007.......7/22/2008............34
    NED...........ned@ aol.com.....299410.............6/27/2007.......2/27/2008............180
    NED...........ned@ aol.com.....303790.............9/19/2007.......9/19/2007............341
    NED...........ned@ aol.com.....304268.............9/24/2007.......3/3/2008............     175
    NED...........ned@ aol.com.....308228.............12/6/2007.......12/6/2007............263
    NED...........ned@ aol.com.....316689.............3/19/2008.......3/19/2008............159
    NED...........ned@ aol.com.....316789.............3/20/2008.......3/20/2008............158
    NED...........ned@ aol.com.....317528.............3/25/2008.......3/25/2008............153
    NED...........ned@ aol.com.....321476.............6/4/2008.........6/17/2008............69
    NED...........ned@ aol.com.....322160.............7/3/2008.........8/21/2008............4
    MOE...........moe@ aol.com.....184169.............4/5/2004.......12/5/2006............629
    [email protected]/27/2004.......3/8/2004............1631
    How do I incorporate a if else statement in the above cursor so the two days less than 30 days since last update are not returned. I do not want to send email if the project have been updated within the last 30 days.
    Edited by: user4653174 on Aug 25, 2008 2:40 PM

    analytical functions: http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions2a.htm#81409
    CASE
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/02_funds.htm#36899
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/04_struc.htm#5997
    Incorporating either of these into your query should assist you in returning the desired results.

  • I need help with Sunbird Calendar, how can I transfer it from one computer to the other and to my iphone?

    I installed Sunbird in one computer and my calendar has all my infos, events, and task that i would like to see on another computer that i just downloaded Sunbird into. Also, is it possible I can access Sunbird on my iphone?
    Thank you in advance,

    Try the forum here - http://forums.mozillazine.org/viewforum.php?f=46 - for help with Sunbird, this forum is for Firefox support.

  • Hoping for some help with a very frustrating issue!   I have been syncing my iPhone 5s and Outlook 2007 calendar and contacts with iCloud on my PC running Vista. All was well until the events I entered on the phone were showing up in Outlook, but not

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

  • Help with HP Laser Printer 1200se

    HP Support Line,
    Really need your assistance.  I have tried both contacting HP by phone (told they no longer support our printer via phone help), the tech told me that I needed to contact HP by e-mail for assistance.   I then sent an e-mail for assistance and got that reply today, the reply is as follows  "Randall, unfortunately, HP does not offer support via e-mail for your product.  However many resources are available on the HP web site that may provide the answer to your inquiry.  Support is also available via telephone.  A list of technical support numbers can be round at the following URL........."  The phone numbers listed are the ones I called and the ones that told me I needed to contact the e-mail support for help.
    So here I am looking for your help with my issue.
    We just bought a new HP Pavillion Slimline Desk Top PC (as our 6 year old HP Pavillion PC died on us).  We have 2 HP printers, one (an all-in-one type printer, used maily for copying and printing color, when needed) is connected and it is working fine with the exception of the scanning option (not supported by Windows 7).  However we use our Laser Printer for all of our regular prining needs.  This is the HP LaserPrinter 1200se, which is about 6 years old but works really well.  For this printer we currently only have a parallel connection type cord and there is not a parallel port on the Slimline HP PC.  The printer also has the option to connedt a USB cable (we do not currently have this type of cable).
    We posed the following two questions:
    1.  Is the Laser Jet 1200se compatible with Windows 7?
    and if this is the case
    2.  Can we purchase either a) a USC connection cord (generic or do we need a printer specific cord)? or b) is there there a printer cable converter adapater to attach to our parallel cable to convert to a USB connection?
    We do not want to purchase the USB cable if Windows 7 will not accept the connection, or if doing this will harm the PC.
    We really would appreciate any assitance that you might give us.
    Thank you,
    Randy and Leslie Gibson

    Sorry, both cannot be enabled by design.  That said, devices on a network do not care how others are connected.  You can print from a wireless connection to a wired (Ethernet) printer and v/v.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Going to Australia and need help with Power converters

    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  

    godzillafan868 wrote:
    Facts:
    US uses 110v on 60hz
    Australia 220v on 50hz
    Making sure I understood that correctly.  Devices I plan on bringing that will use power are PS3 Slim, MacBook Pro 2008 model, and WD 1TB External HDD.  My DS, and Cell are charging via USB to save trouble of other cables.
    Ideas I've had or thought of:
    1.  Get a power converter for a US Powerstrip, and then plug in my US items into the strip and then the strip into an AUS Converter into Australian outlet.  Not sure if this fixes the voltage/frequency change.
    2.  Get power converters for all my devices.  But, not sure if my devices needs ways of lowering the voltage/increasing frequency or something to help with the adjustment.
    3.  Buy a universal powerstrip, which is extremely costly and I wouldn't be able to have here in time (I leave Thursday).  Unless Best Buy carrys one.  
    Check the specs on input voltage/frequency of your power supplies.
    Many laptop power supplies are "universal/global" and are specced something like 80-265 volts AC 50/60 Hz, but not all.  These will just need a connector adapter.
    Unsure about the PS3 Slim - if it isn't universal it could be difficult as you'll need a 110/220 transformer, one big enough (power-handling wise) for the PS3 will be very bulky.
    For the external WD HDD, if it doesn't have a universal supply, you're probably best off just finding a new wallwart for it that is capable of running on 220/50.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Creation of context sensitive help with pure FM 12 usage doesn't work

    Hi,
    I hope somebody is able to help me with a good hint or tip.
    I am trying to create a context-sensitive Microsoft Help with FM12 only using the abilities of FM (no RoboHelp). For some reasons, my assigned ID's are not used in the generated chm file and therefore the help does not work context-sensitively.
    What did I do?
    - I created my FM files and assigned topic aliases to the headers. I did this two ways: a) using the "Special" menue and assigning a CSH marker and/or b) setting a new marker of type "Topic Alias" and typing the ID. I used only numeric IDs like "2000" or "4200",
    - I created a .h file (projectname.h) - based on the format of the file projectname_!Generated!.h (I read this in some instructions). So the .h file (text file) looks like this:
    #define 2000 2000 /* 4 Anwendungsoberfläche */
    #define 2022 2022 /* 4.1.1 Menü Datei */
    #define 2030 2030 /* 4.1.3 Menü Parametersatz */
    #define 2180 2180 /* 6.6.7 Objektdialog Q-Regler */
    #define 2354 2354 /* 6.9.2 Objektdialog Extran Parameter */
    #define 2560 2560 /* 6.9.5 Objektdialog Extran2D Parametersatz */
    - I published the Microsoft HTML Help. A projectname_!Generated!.h has been created. My IDs were not used in this file:
    #define 2000    1
    #define 2022    2
    #define 2030    3
    #define 2180    4
    #define 2354    5
    #define 2560    6
    - When I open the .chm file and look in the source code, the ID even is totally different. It is not the one, I assigned in FM, it is not the one which I assigned in the projectname.h file and it even is not the one, which was put in the projectname_!Generated!.h file. It is a generated name starting with CSH_1 ...n in a consecutive way numbered.
    Example:
    <p class="FM_Heading1"><a name="XREF_72066_13_Glossar"></a>Gloss<a name="CSH_1"></a>ar</p>
    What goes wrong? Why does FM not take my assigned IDs? I need to use these IDs since our programmers are using those already - I had to re-create the whole online help but the programs stay untouched.
    Please help!
    Many thanks
    Mohi

    Hi Jeff,
    thanks for your note!
    The text in my marker is just a number like "2000" or "4200". As said, I created manually a my.h file and used this marker there. E.g.
    #define 2000 2000.
    Whereby the first 2000 (in my opinion) is the marker text and the second 2000 is the context ID which the programmers are using for the context sensitive call of the help. My definitions in the my.h file were translated to #define 2000 1 (in the my_!Generated!.h file). The source code "translates" the context ID into CSH_8.
    I am still confused :-/
    Thanks
    Mohi

Maybe you are looking for

  • DvD Studio Pro recently updated, not working properly

    Sometime it seems it just doesn't pay to update software. I Recently updated my OS to Tiger and along with it I updated to the latest FCP and DVD Studio pro. Now in DVD Studio Pro it will not properly read existing projects and when I build a project

  • Need help creating a certain Thumbnail Gallery

    This is the website that has the gallery that I'm trying to build: Howcast.com I've successfully created the section of the application which populates the stage with thumbnails from a XML file. Now, I'd like to spruce it up a bit and create an endle

  • What is the use of OTYPE_REF in Add method

    what is the use of OTYPE_REF in Add method

  • SQL Server Business Intelligence Development Studio 2008, download and install

    Hello, I have been looking for a while now on where to download and how to install BIDS 2008 on top of my current SQL Server 2008 installation but no luck yet. Would you mind helping me out please. FYI, here is my current configuration: - SQL Server

  • EIM WIM v4.3(1) installation error

    Hi all, In my current setup a) 3 servers running app/msg/serv, database and web server all within the same domain b) broadcom hotfix was deployed c) windows authentication was used d) installation was done on the 1st server where all components were