Maestro need help also code is 75957252

maestro need help also code is 75957252 for bios password reset
This question was solved.
View Solution.

Try
60635894
****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
2015 Microsoft MVP - Windows Experience Consumer

Similar Messages

  • Maestro need help also code is 75957252 for bios password reset

    maestro need help also code is 75957252 for bios password reset
    This question was solved.
    View Solution.

    Check your other post. I replied there.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Need help for code

    Hi friends,
    I need help to get the java code to be used in netbeans 5.0
    I have to develop:
    1. Merge files using JFileChooser in netbeans 5.0
    2.Create files in the format .html, .doc, .pdf, etc
    3. Browse the file and attach to the MS Outlook
    Can anybody help me out plz to get the code for this or any reference from where I can understand the code for the same.
    Edited by: vinodmatlani81 on Oct 28, 2007 2:05 PM

    You must be using an old Google version, mine found lots of stuff:
    1. Merge files using JFileChooser in netbeans 5.0\\
    Depends on what you're merging, but here's Sun's basic IO tutorial: http://java.sun.com/docs/books/tutorial/essential/io/
    How to use the JFileChooser: http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
    2.Create files in the format .html, .doc, .pdf, etc\\
    For HTML, see the basic IO tutorial.
    PDF: http://www.lowagie.com/iText/
    DOC: http://schmidt.devlib.org/java/libraries-word.html
    3. Browse the file and attach to the MS Outlook\\
    http://www.sun.com/software/products/calendar_srvr/connector/index.xml

  • HT4108 I have a hdmi connector and can not get a picture to come on my tv. Need help also bought the RCA cables and can not get it to work with my iPhone 4 g

    I have a hdmi dock connector and can not get  it to show on my tv. It's a iPhone 4g please help also have a RCA cable to and can not get it to work either

    With what apps?  Not all apps require video output.

  • Need help with code for adding dates to form

    Hello forum goers
    I'm new to making forms and figured out how to auto add the date, however I need the form to change the date for every copy made.
    For example today is 06/08/2012 if I print 10 copies of the form it will output 10 pages ranging from 06/08/2012 to 06/17/2012. If code exists to do this I would be very gratefull to whoever helps, I also wouldn't mind if that is not possible for manually inputing the start / end dates.
    Currently I print 15-30 copies of the form and hand write each of the dates but I'm just getting to busy to do that. I also cannot print one a day it must be in batches.
    Thanks in advanced.

    What you are asking for is more complex than just setting the current date. Each time the form prints it has to know that it has to change the date. I would suggest doing this.
    First, setup a document level script to set the date to the current date. I suspect that you have already done this?
    Next, Create a "DidPrint" document action to increment the date.  To do this the script will need to scan the current text value of the date, add one day to it, and then reformat it.  You'll find information on this type of scripting in these articles:
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-2
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-3
    Since the increment happenes in the Did Print you will need to print each copy individually. If you enter 10 copies in the print dialog it won't work. You have to print one at a time.  You can automate this activity with a console script.
    One of the advantages of incrementing in the DidPrint is that you can also manually enter a date and it will increment from there.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • Newbie needing help with code numbers and if-else

    I'm 100% new to any kind of programming and in my 4th week of an Intro to Java class. It's also an on-line class so my helpful resources are quite limited. I have spent close to 10 hours on my class project working out P-code and the java code itself, but I'm having some difficulty because the project seems to be much more advanced that the examples in the book that appear to only be partly directly related to this assignment. I have finally come to a point where I am unable to fix the mistakes that still show up. I'm not trying to get anyone to do my assignment for me, I'm only trying to get some help on what I'm missing. I want to learn, not cheat.
    Okay, I have an assignment that, in a nutshell, is a cash register. JOptionPane prompts the user to enter a product code that represents a product with a specific price. Another box asks for the quanity then displays the cost, tax and then the total amount plus tax, formatted in dollars and cents. It then repeats until a sentinel of "999" is entered, and then another box displays the total items sold for the day, amount of merchandise sold, tax charged, and the total amount acquired for the day. If a non-valid code is entered, I should prompt the user to try again.
    I have this down to 6 errors, with one of the errors being the same error 5 times. Here are the errors:
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:50: 'else' without 'if'
    else //if invalid code entered, output message
    ^
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:39: unexpected type
    required: variable
    found : value
    100 = 2.98;
    ^
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:41: unexpected type
    required: variable
    found : value
    200 = 4.50;
    ^
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:43: unexpected type
    required: variable
    found : value
    300 = 6.79;
    ^
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:45: unexpected type
    required: variable
    found : value
    400 = 5.29;
    ^
    C:\PROGRA~1\XINOXS~1\JCREAT~1\MyProjects\Sales.java:47: unexpected type
    required: variable
    found : value
    500 = 7.20;
    ^
    And finally, here is my code. Please be gentle with the criticism. I've really put a lot into it and would appreciate any help. Thanks in advance.
    import java.text.NumberFormat; // class for numeric formating from page 178
    import javax.swing.JOptionPane; // class for JOptionOPane
    public class Sales {
    //main method begins execution ofJava Application
    public static void main( String args[] )
    double quantity; // total of items purchased
    double tax; // total of tax
    double value; // total cost of all items before tax
    double total; // total of items including tax
    double totValue; // daily value counter
    double totTax; // daily tax counter
    double totTotal; // daily total amount collected (+tax) counter
    double item; //
    String input; // user-entered value
    String output; // output string
    String itemString; // item code entered by user
    String quantityString; // quantity entered by user
    // initialization phase
    quantity = 0; // initialize counter for items purchased
    // get first code from user
    itemString = JOptionPane.showInputDialog(
    "Enter item code:" );
    // convert itemString to double
    item = Double.parseDouble ( itemString );
    // loop until sentinel value read from user
    while ( item != 999 ) {
    // converting code to amount using if statements
    if ( item == 100 )
    100 = 2.98;
    if ( item == 200 )
    200 = 4.50;
    if ( item == 300 )
    300 = 6.79;
    if ( item == 400 )
    400 = 5.29;
    if ( item == 500 )
    500 = 7.20;
    else //if invalid code entered, output message
    JOptionPane.showMessageDialog( null, "Invalid code entered, please try again!",
    "Item Code", JOptionPane.INFORMATION_MESSAGE );
    } // end if
    } // end while
    // get quantity of item user
    itemString = JOptionPane.showInputDialog(
    "Enter quantity:" );
    // convert quantityString to int
    quantity = Double.parseDouble ( quantityString );
    // add quantity to quantity
    quantity = quantity + quantity;
    // calculation time! value
    value = quantity * item;
    // calc tax
    tax = value * .07;
    // calc total
    total = tax + value;
    //add totals to counter
    totValue = totValue + value;
    totTax = totTax + tax;
    totTotal = totTotal + total;
    // display the results of purchase
    JOptionPane.showMessageDialog( null, "Amount: " + value +
    "\nTax: " + tax + "\nTotal: " + total, "Sale", JOptionPane.INFORMATION_MESSAGE );
    // get next code from user
    itemString = JOptionPane.showInputDialog(
    "Enter item code:" );
    // If sentinel value reached
    if ( item == 999 ) {
    // display the daily totals
    JOptionPane.showMessageDialog( null, "Total amount of items sold today: " + quantity +
    "\nValue of ites sold today: " + totValue + "\nTotal tax collected today: " + totTax +
    "\nTotal Amount collected today: " + totTotal, "Totals", JOptionPane.INFORMATION_MESSAGE );
    System.exit( 0 ); // terminate application
    } // end sentinel
    } // end message
    } // end class Sales

    Here you go. I haven't tested this but it does compile. I've put in a 'few helpful hints'.
    import java.text.NumberFormat; // class for numeric formating from page 178
    import javax.swing.JOptionPane; // class for JOptionOPane
    public class TestTextFind {
    //main method begins execution ofJava Application
    public static void main( String args[] )
         double quantity; // total of items purchased
         double tax; // total of tax
         double value; // total cost of all items before tax
         double total; // total of items including tax
    //     double totValue; // daily value counter
    //     double totTax; // daily tax counter
    //     double totTotal; // daily total amount collected (+tax) counter
    // Always initialise your numbers unless you have a good reason not too
         double totValue = 0; // daily value counter
         double totTax = 0; // daily tax counter
         double totTotal = 0; // daily total amount collected (+tax) counter
         double itemCode;
         double item = 0;
         String itemCodeString; // item code entered by user
         String quantityString; // quantity entered by user
         // initialization phase
         quantity = 0; // initialize counter for items purchased
         // get first code from user
         itemCodeString = JOptionPane.showInputDialog("Enter item code:" );
         // convert itemString to double
         itemCode = Double.parseDouble ( itemCodeString );
         // loop until sentinel value read from user
         while ( itemCode != 999 ) {
    * 1. variable item mightnot have been initialised
    * You had item and itemCode the wrong way round.
    * You are supposed to be checking itemCode but setting the value
    * for item
              // converting code to amount using if statements
              if ( item == 100 )
              {itemCode = 2.98;}
              else if ( item == 200 )
              {itemCode = 4.50;}
              else if ( item == 300 )
              {itemCode = 6.79;}
              else if ( item == 400 )
              {itemCode = 5.29;}
              else if ( item == 500 )
              {itemCode = 7.20;}
              else {//if invalid code entered, output message
                   JOptionPane.showMessageDialog( null, "Invalid code entered, please try again!",
                   "Item Code", JOptionPane.INFORMATION_MESSAGE );
              } // end if
         } // end while
         // get quantity of item user
         itemCodeString = JOptionPane.showInputDialog("Enter quantity:" );
    * 2.
    * You have declared quantityString here but you never give it a value.
    * I think this should be itemCodeString shouldnt it???
    * Or should you change itemCodeString above to quantityString?
         // convert quantityString to int
    //     quantity = Double.parseDouble ( quantityString );  // old code
         quantity = Double.parseDouble ( itemCodeString );
         // add quantity to quantity
         quantity = quantity + quantity;
         // calculation time! value
         value = quantity * itemCode;
         // calc tax
         tax = value * .07;
         // calc total
         total = tax + value;
         //add totals to counter
    * 3. 4. and 5.
    * With the following you have not assigned the 'total' variables a value
    * so in effect you are saying eg. "total = null + 10". Thats why an error is
    * raised.  If you look at your declaration i have assigned them an initial
    * value of 0.
         totValue = totValue + value;
         totTax = totTax + tax;
         totTotal = totTotal + total;
         // display the results of purchase
         JOptionPane.showMessageDialog( null, "Amount: " + value +
         "\nTax: " + tax + "\nTotal: " + total, "Sale", JOptionPane.INFORMATION_MESSAGE );
         // get next code from user
         itemCodeString = JOptionPane.showInputDialog("Enter item code:" );
         // If sentinel value reached
         if ( itemCode == 999 ) {
              // display the daily totals
              JOptionPane.showMessageDialog( null, "Total amount of items sold today: " + quantity +
              "\nValue of ites sold today: " + totValue + "\nTotal tax collected today: " + totTax +
              "\nTotal Amount collected today: " + totTotal, "Totals",           JOptionPane.INFORMATION_MESSAGE );
              System.exit( 0 ); // terminate application
         } // end sentinel
    } // end message
    } // end class SalesRob.

  • Need help with code

    Hi,
    I'm new to java, i'm creating java analog clock application. but i'm getting so many errors. i still try to figur out what are those. can someone please help me with this code. Thank you
    here is my code
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.text.*;
    import javax.swing.*;
    //The main class
    public class AnalogClock extends JFrame
    // Initialize all the variables
    SimpleDateFormat f_s = new SimpleDateFormat ("ss", Locale.getDefault());
    SimpleDateFormat f_m = new SimpleDateFormat ("mm", Locale.getDefault());
    SimpleDateFormat f_h = new SimpleDateFormat ("hh", Locale.getDefault());
    SimpleDateFormat standard = new SimpleDateFormat ("HH:mm:ss", Locale.getDefault());
    int xs, ys, xm, ym, xh, yh, s, xcenter, ycenter, m, h, x, y, mouse_x, mouse_y;
    String temp;
    Dimension d;
    Date now;
    Thread thr = null;
    Image im;
    Boolean M = false;
    Graphics gIm;
    Dimension dIm;
    int sx, sy, sx2, sy2;
    Color digital = Color.blue, hour = Color.blue, minute = Color.yellow,
    second = Color.green, circle = Color.red, hours = Color.blue, mute_logo = Color.green;
    // paint(): the main part of the program
    public void paint(Graphics g)
    d = getSize();
    xcenter = d.width/2;
    ycenter = d.height/2;
    x = d.width;
    y = d.height;
    if(im == null)
    im = createImage(x, y);
    gIm = im.getGraphics();
    dIm = new Dimension(x, y);
    // Get the current timestamp
    now = new Date();
    // Get the seconds
    temp = f_s.format(now);
    s = Integer.parseInt(temp);
    temp = f_m.format(now);
    m = Integer.parseInt(temp);
    temp = f_h.format(now);
    h = Integer.parseInt(temp);
    // Calculate all the positions of the hands
    xs = (int) (Math.cos(s * Math.PI / 30 - Math.PI / 2) * 45 + xcenter);
    ys = (int) (Math.sin(s * Math.PI / 30 - Math.PI / 2) * 45 + ycenter);
    xm = (int) (Math.cos(m * Math.PI / 30 - Math.PI / 2) * 40 + xcenter);
    ym = (int) (Math.sin(m * Math.PI / 30 - Math.PI / 2) * 40 + ycenter);
    xh = (int) (Math.cos((h * 30 + m / 2) * Math.PI / 180 - Math.PI / 2) * 30 + xcenter);
    yh = (int) (Math.sin((h * 30 + m / 2) * Math.PI / 180 - Math.PI / 2) * 30 + ycenter);
    // Refresh the image
    gIm.setColor(getBackground());
    gIm.fillRect(0, 0, dIm.width, dIm.height);
    // Draw the circle of the clock
    gIm.setColor(circle);
    gIm.drawOval(0, 0, d.width-1, d.height-1);
    gIm.setColor(hours);
    // Draw the stripes of the hours
    for(int i = 0;i<12;i++)
    sx = (int) (Math.cos((i * 30) * Math.PI / 180 - Math.PI / 2) * 47 + xcenter);
    sy = (int) (Math.sin((i * 30) * Math.PI / 180 - Math.PI / 2) * 47 + xcenter);
    sx2 = (int) (Math.cos((i * 30) * Math.PI / 180 - Math.PI / 2) * 49 + xcenter);
    sy2 = (int) (Math.sin((i * 30) * Math.PI / 180 - Math.PI / 2) * 49 + xcenter);
    gIm.drawLine(sx, sy, sx2, sy2);
    // Draw the time on the top of the clock
    gIm.setColor(digital);
    gIm.drawString(standard.format(now), 25, 30);
    // Draw the mute logo
    Mute m = new Mute(M, gIm);
    // Draw the hands
    // Seconds
    gIm.setColor(second);
    gIm.drawLine(xcenter, ycenter, xs, ys);
    // Minutes
    gIm.setColor(minute);
    gIm.drawLine(xcenter, ycenter-1, xm, ym);
    gIm.drawLine(xcenter-1, ycenter, xm, ym);
    // Hour
    gIm.setColor(hour);
    gIm.drawLine(xcenter, ycenter-1, xh, yh);
    gIm.drawLine(xcenter-1, ycenter, xh, yh);
    // Paint the generated image on the screen
    if(im != null)
    g.drawImage(im, 0, 0, null);
    if(M == false)
    play(getCodeBase(), "Sound/Click.wav");
    public void update(Graphics g)
    paint(g);
    class Mute
    Mute(Boolean mute, Graphics g)
    g.setColor(mute_logo);
    Polygon p = new Polygon();
    p.addPoint(1, 7);
    p.addPoint(6, 2);
    p.addPoint(6, 12);
    g.fillPolygon(p);
    g.drawLine(7, 5, 7, 9);
    g.drawLine(9, 4, 9, 10);
    g.drawLine(11, 3, 11, 11);
    if(mute == true)
    g.drawLine(13, 3, 1, 11);
    /* // All the mouse events
    public void mousePressed(MouseEvent evt)
    mouse_x = evt.getX();
    mouse_y = evt.getY();
    if(mouse_x <= 11 && mouse_x >= 1 && mouse_y <= 12 && mouse_y >= 2)
    if(M == true)
    M = false;
    } else {
    M = true;
    repaint();
    public void mouseReleased(MouseEvent evt){}
    public void mouseEntered(MouseEvent evt){}
    public void mouseExited(MouseEvent evt){}
    public void mouseClicked(MouseEvent evt){}
    }

    There is a gross misconception among the new and learning programmers that a lot of code is good and once you put that last close scope in place that things are wonderful because you have all the code down...
    Please repeat this: NO, short debugged runs and incremental builds are better.
    As a matter of fact, that is so important, go back and say it again and again until it really truly sinks in.
    This concept is really pounded into your soul when you program in assembler--probably an ailment of the new generation of programmers, they never have had to do assembler or machine coding--but any time you get more than about 20 lines of code that hasn't been checked for bugs, you should start thinking... "Oh, do I really have the skills and patience to go back and debug (yes, actually use the debugger to step through it all.) that big of mess?" The biggest project is just like eating an elephant, you do it one small bite at a time over as long a time as it takes--you don't cook half the elephant and sit down and expect to eat it in one meal; neither do you sit down and decide to code a whole program and then debug it. You just don't have the skill to do it.
    When you modify someone else's code, the same is true--small changes and debug as you change. Making all the changes you want, then debugging just runs into a huge error file of related problems that are basically indiscernible from each other because many of them are probably related.
    Most of the request for "Help, I cannot get this to run." Also contain the words: "I just finished coding..." That statement in and of itself is one of the great flawed concepts that anyone can have--coding is complete when you have an acceptable release candidate, and then only until you decide or are asked to make further changes.
    Work in small blocks of code and incrementally build a project--your frustration levels will be much less. And as you gain skill, increase the size of the code blocks (I had a friend in college that never had 5 consecutive lines of code compile--ever! He works for MS now.) and get to know your debugger. Your debugger is your friend, if you've not been introduced to your debugger, then get acquainted soon! Like maybe before you even try to cut another piece of code.
    On the other side of things... cheer up, we've all been there and learned the lessons... some lessons just come harder than others... make your life less frustrating, it's a lot more fun and enjoyable.

  • Need Help - Error Code : 0x800F0922 I cannot Activate my IIS InetPub

    Hi All Windows Expert;
    Need your kind help.
    When I activate my webservice IIS, it prompt me an error 0x800F0922 and the Installation of the InetPub will not continue.Hoping for your kind help because I need to run my IIS webservice.
    I tried whatever on the internet already but still no result

    Hi,
    Try tcode RSKC perform the tests for the characteristics mentioned by you. Execute and correct errors if any and then try loading data.
    you can also go for error handling option in infopackage that the load should not fail if x number of errors should only fail when the records exceeds the number x.
    Thus it will ignore the number of records you give in error handling
    Thanks
    Puneet
    Edited by: Puneet Chawla on Jan 17, 2008 9:18 AM

  • SSL - Default SSL context init failed: null - need help with code

    Hi!
    Once Again I have problems with SSL.
    I read something about SSL here:
    http://www.javaalmanac.com/egs/javax.net.ssl/Server.html
    Now I tried to test this stuff, that resulted in this program (I simply tried to put the SSL stuff from the above code in a small skeleton):
    import java.io.*;
    import java.net.*;
    import java.security.*;
    import javax.net.ssl.*;
    import javax.net.*;
    public class MyServer
         public static void main(String arguments[])
         try
              int port = 443;
              ServerSocketFactory ssocketFactory = SSLServerSocketFactory.getDefault();
              ServerSocket ssocket = ssocketFactory.createServerSocket(port);
              // Listen for connections
              Socket socket = ssocket.accept();
              System.out.println("Connected successfully");
              // Create streams to securely send and receive data to the client
              InputStream in = socket.getInputStream();
              OutputStream out = socket.getOutputStream();
              // Read from in and write to out...
              // Close the socket
              in.close();
              out.close();
         catch(IOException e)
              System.out.println("GetMessage() = "+e.getMessage());
              e.printStackTrace();
    }     Now I compiled this stuff with : 'javac MyServer.java' - there were no errors. After this I run the program
    with the following command (also taken from java almanac):
    'java -Djavax.net.ssl.keyStore=mySrvKeystore -Djavax.net.ssl.keyStorePassword=123456 MyServer'
    But if I run it, it reports:
    "GetMessage() = Default SSL context init failed: null
    java.net.SocketException: Default SSL context init failed: null
    at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(Dasho
    6275)
    at MyServer.main(MyServer.java:15)"
    createServerSocket() seems to be the wrong line, but what is wrong with it.
    Is there any mistake in my code ?
    Btw. I created my keystore etc. according to the instructions at
    http://forum.java.sun.com/thread.jsp?forum=2&thread=528092&tstart=0&trange=15
    Any help appreciated
    Greets
    dancing_coder

    I got this error last week.
    The problem was that the keystore I was pointing to, was in other location, so it could not initialize the default context.
    I had defined ...
    String CLIENT_CERTIFPATH = getParam("client.certificate.path", "/users/pridas/myKeystoreFile");
    // getParam extracts the location of the keystore from a text file which contains some configuration parameters. The default value will be /users/pridas/myKeystoreFile
    In my case, I will try to develop a secure SOAP conexion using certificates.
    Before to try the conexion, I defined ...
    System.setProperty("javax.net.ssl.trustStore", CLIENT_CERTIFPATH);
    System.setProperty("javax.net.ssl.keyStore", CLIENT_CERTIFPATH);
    ... and the problem when I got this error ... the keystore file was not in the correct location.
    That was how I resolved this error.
    I hope everybody will be oriented about this kind of errors.
    Salu2.

  • Need help adjusting code which allows button activation

    Hi,
    the basis of my problem is this. I have inherited some code
    which is a matrix of buttons which give a score of 1-7 depending on
    which button is pressed. The matrix consist of 6 rows and 7 buttons
    and once all rows have a button pressed the final score is
    calculated and a submit button becomes activated (it is de-active
    until all rows have a score). This works fine, but I have added a
    function in which you can press a button which de-activates one row
    and activated another, so there are now 8 rows instead of 7, even
    though I want the total score to still calculate when there are 7
    scores to tally up the total. The code I have now works with the
    first 7 scores, but when you add the 8th row it won't tally up the
    score, and activate the submit button. I am attaching the code I
    currently have to do this. I think part of te problem, is that I
    don't actually understand every bit of the code. I know what it
    does, but not exactly how it is doing it :-).
    Anyway attached is the current code I have:

    any ideas on this? I also tried adding a zero button to the
    de-activated rows, but this does not work either as a score of 1+
    is needed to activate the function.

  • Need help - Error Code "2SVM/1/2: CPU BO VOLTS"

    Hello,
    My older PowerMac G5 Quad (Late 2005 model) has issue - CPU funs are spinning very fast.
    Checked with Hradware Test.
    It saysError Code: 2SVM/1/2: CPU BO VOLTS
    Also LED #2 and #7 are RED.
    Please help to identify the problem.
    Thank you,
    Taras Pelekh

    Tarasik,
    The most helpful information in those posts is staring you in the face in the very first link:  it's quite possible—even probable—that you are running the wrong version of AHT (Apple Hardware Test).
    Are you 100% certain you're using the version of AHT that came with your particular machine?  AHT is highly machine-specific and you cannot use a version that came with the install media for another Mac.
    I also suspect that another, very important clue is contained in the last version of BDAqua's first post. 

  • Need Help in code optimization

    Hi Experts,
    Its a performance issue. I used simple program to find the combinations based on the input.
    For Example if input is : 123,
    then the possible combinations are,
    23     - without 1.
    13     - without 2.
    12     - without 3.     
    123     
    1
    2
    3
    Like wise i need to find the combination for each input. I developped the code and its working fine upto
    13 digit input[1234567890123].
    But for then 13 digit it took long time to find the combination. Im in the need of reduce the of execution.
    Please find the code below. The Do.. End do is used or input. If Do 3 times means the input is 123. if do 15 times means the input is [123456789012345].
    DATA : lv_input_str TYPE string VALUE '1111'.
    TYPES : BEGIN OF ls_ret_tab,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF ls_ret_tab.
    TYPES : BEGIN OF it_tab,
             index     TYPE sy-index,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF it_tab.
    DATA : lt_ret_tab TYPE TABLE OF ls_ret_tab WITH HEADER LINE,
           it_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE.
    DATA  : BEGIN OF gt_main OCCURS 0,
             index TYPE sy-index,
             level TYPE i,
             table LIKE TABLE OF it_tab,
             total TYPE netpr,
             diffe TYPE netpr,
             END OF gt_main.
    DATA : t1 TYPE i,
           t2 TYPE i,
           t3 TYPE i.
    START-OF-SELECTION.
      DO 13 TIMES.
        it_tab-index = sy-index.
        APPEND it_tab.
      ENDDO.
      CLEAR t1.
      GET RUN TIME FIELD t1.
      PERFORM get_possible_values.
      gt_main-index = 0.
      gt_main-table = it_tab[].
      APPEND gt_main.
      SORT gt_main BY table.
    SORT gt_main BY total DESCENDING.
      DELETE ADJACENT DUPLICATES FROM gt_main COMPARING table.
      GET RUN TIME FIELD t2.
    END-OF-SELECTION.
      DATA : lines TYPE i.
      t3 = t2 - t1.
      WRITE :/ 'time', t3.
      LOOP AT gt_main.
        WRITE :/5 gt_main-index, 20 gt_main-total.
        LOOP AT gt_main-table INTO it_tab.
         WRITE :/15 it_tab-docno.
          WRITE :/15 it_tab-index.
        ENDLOOP.
      ENDLOOP.
    FORM get_possible_values.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
      IF l_lines <= 1.
        "Append Return Table.
        EXIT.
      ELSE.
        PERFORM get_all_values TABLES it_tab.
      ENDIF.
    ENDFORM.                    " GET_POSSIBLE_VALUES
    FORM get_all_values  TABLES it_tab STRUCTURE it_tab.
      DATA : lv_pos TYPE i,
             lv_pos1 TYPE i.
      DATA : it_com     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE,
             lv_input_str_index TYPE i,
             it_main_temp LIKE TABLE OF gt_main WITH HEADER LINE,
             lt_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE..
      CLEAR : lv_input_str_index.
      STATICS : l_level TYPE i.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
      DO l_lines TIMES.
        lv_input_str_index = lv_input_str_index + 1.
        REFRESH it_com.
        LOOP AT it_tab.
          IF sy-tabix EQ lv_input_str_index.
            CONTINUE.
          ENDIF.
          APPEND it_tab TO it_com.
          it_main_temp-total = it_main_temp-total + it_tab-price.
        ENDLOOP.
        READ TABLE gt_main WITH KEY table = it_com[].
        IF sy-subrc NE 0.
          it_main_temp-index = lv_input_str_index.
          it_main_temp-table = it_com[].
          APPEND it_main_temp.
        ENDIF.
        CLEAR : it_main_temp-total.
      ENDDO.
      SORT it_main_temp BY table.
      DELETE ADJACENT DUPLICATES FROM it_main_temp[] COMPARING table.
      APPEND LINES OF it_main_temp[] TO gt_main.
      LOOP AT it_main_temp.
        DESCRIBE TABLE it_main_temp-table[] LINES l_lines.
        IF l_lines <= 1.
          CONTINUE.
        ELSE.
          PERFORM get_all_values TABLES it_main_temp-table[].
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " GET_ALL_VALUES
    Thanks,
    Helps will be appreciated.
    Edited by: Nandini on Mar 1, 2010 11:28 AM

    DATA : lv_input_str TYPE string VALUE '1111'.
    TYPES : BEGIN OF ls_ret_tab,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF ls_ret_tab.
    TYPES : BEGIN OF it_tab,
             index     TYPE sy-index,
             docno     TYPE vbeln,
             price     TYPE netpr,
            END OF it_tab.
    DATA : lt_ret_tab TYPE TABLE OF ls_ret_tab WITH HEADER LINE,
           it_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE.
    DATA  : BEGIN OF gt_main OCCURS 0,
             index TYPE sy-index,
             level TYPE i,
             table LIKE TABLE OF it_tab,
             total TYPE netpr,
             diffe TYPE netpr,
             END OF gt_main.
    START-OF-SELECTION.
      DO 13 TIMES.
        it_tab-index = sy-index.
        APPEND it_tab.
      ENDDO.
    PERFORM get_possible_values.
    gt_main-index = 0.
      gt_main-table = it_tab[].
      APPEND gt_main.
    SORT gt_main BY table.
    *  SORT gt_main BY total DESCENDING.
      DELETE ADJACENT DUPLICATES FROM gt_main COMPARING table.
      GET RUN TIME FIELD t2.
    END-OF-SELECTION.
    DATA : lines TYPE i.
    LOOP AT gt_main.
        WRITE :/5 gt_main-index, 20 gt_main-total.
        LOOP AT gt_main-table INTO it_tab.
    *      WRITE :/15 it_tab-docno.
          WRITE :/15 it_tab-index.
        ENDLOOP.
      ENDLOOP.
    FORM get_possible_values.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
    IF l_lines <= 1.
        "Append Return Table.
        EXIT.
      ELSE.
        PERFORM get_all_values TABLES it_tab.
      ENDIF.
    ENDFORM.                    " GET_POSSIBLE_VALUES
    FORM get_all_values  TABLES it_tab STRUCTURE it_tab.
    DATA : lv_pos TYPE i,
             lv_pos1 TYPE i.
    DATA : it_com     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE,
             lv_input_str_index TYPE i,
             it_main_temp LIKE TABLE OF gt_main WITH HEADER LINE,
             lt_tab     TYPE STANDARD TABLE OF it_tab WITH HEADER LINE..
      CLEAR : lv_input_str_index.
    STATICS : l_level TYPE i.
      DATA : l_lines TYPE i.
      DESCRIBE TABLE it_tab LINES l_lines.
    DO l_lines TIMES.
        lv_input_str_index = lv_input_str_index + 1.
        REFRESH it_com.
    LOOP AT it_tab.
          IF sy-tabix EQ lv_input_str_index.
            CONTINUE.
          ENDIF.
    Edited by: Nandini on Mar 1, 2010 11:56 AM

  • Need help in code

    I'm a student in computer science faculty and I need to know how to make a simple application consists of two parts Client and Server which the Server sends vedio and voice and Client can show it
    please I need it urgently

    I'm a student in computer science faculty and I need
    to know how to make a simple application consists of
    two parts Client and Server which the Server sends
    vedio and voice and Client can show it
    please I need it urgentlyYou've simply got to be kidding ... this is not "Free coding at your service". These forums are designed to help people learn Java and to find answers to questions they may have along the way. At times, packages or snippets are offered for particular purposes. But you can't ask people - many of whom are working folks - to code up your application and expect them to do it. That is not what this is all about. Regards,
    ~Bill

  • Video Producer needs help with code error

    Hi all!
    At the risk of getting long winded, I am a video producer who
    has in the last 6 months gotten into web development for myself and
    to offer to clients.
    I am in the process of learning DreamWeaver and like it very
    much, but I must say that the worlds of web development and video
    production are extremely different and in some ways, building a
    website is far more difficult. I have because of this, a new found
    respect for good web developers as they are worth their weight in
    gold.
    My problem today is that I added a second Quicktime video in
    the index page of an already existing site of my own and this video
    will not show up. It just displays the QT logo.
    Is someone willing to look at the code and maybe offer an
    explanation of what I am doing wrong? The site is
    www.coosbaytv.com. The issue is on the homepage and very apparent
    when you scroll to the lower half of the page. The first video is
    fine, the second (D'S MEDI-TANZ) is not.
    I am completely stumped and need to get this resolved.
    Thanks, Jay

    <I have... a new found respect for good web developers as
    they are worth
    their weight in gold.>
    You betcha! I wish everyone felt that way.
    http://www.coosbaytv.com/medi-tanz.mov
    Page cannot be found.
    Upload your QT movie to the server.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "coosbaytv" <[email protected]> wrote in
    message
    news:fc1c1v$rmv$[email protected]..
    > Hi all!
    >
    > At the risk of getting long winded, I am a video
    producer who has in the
    last
    > 6 months gotten into web development for myself and to
    offer to clients.
    > I am in the process of learning DreamWeaver and like it
    very much, but I
    must
    > say that the worlds of web development and video
    production are extremely
    > different and in some ways, building a website is far
    more difficult. I
    have
    > because of this, a new found respect for good web
    developers as they are
    worth
    > their weight in gold.
    >
    > My problem today is that I added a second Quicktime
    video in the index
    page of
    > an already existing site of my own and this video will
    not show up. It
    just
    > displays the QT logo.
    >
    > Is someone willing to look at the code and maybe offer
    an explanation of
    what
    > I am doing wrong? The site is www.coosbaytv.com. The
    issue is on the
    homepage
    > and very apparent when you scroll to the lower half of
    the page. The first
    > video is fine, the second (D'S MEDI-TANZ) is not.
    >
    > I am completely stumped and need to get this resolved.
    >
    > Thanks, Jay
    >

  • I need Help with codes. It isn't working

    I had once writing a code for finding the factorial of a number in elementary programming with C. I tried to incorporate it into my work. However, it is not working.
    Below are the major hitches:
    1. I have a problem with entering two numbers by simply pressing the buttons. Once i try to input another number the second number displaces the first on the textfield. Which suffices to say that entering a two or three digit number via the buttons is not working.
    2. What I intend to archieve is such once I have enter the numbers using the buttons i could get the factorial of whatever number i entered by simply pressing the n! button. Once i attempt pressing the n! button it displays error in the command prompt (a long list of error comments).
    How should I Proceed.
    Below is my full code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PanFrame extends JFrame implements ActionListener
         JTextField jTfd =new JTextField(20);
         JButton jbtn7 = new JButton ("7");
         JButton jbtn8 = new JButton ("8");
         JButton jbtn9 = new JButton ("9");
         JButton jbtn4 = new JButton ("4");
         JButton jbtn5 = new JButton ("5");
         JButton jbtn6 = new JButton ("6");
         JButton jbtn1= new JButton ("1");
         JButton jbtn2 = new JButton ("2");
         JButton jbtn3 = new JButton ("3");
         JButton jbtn0 = new JButton ("0");
         JButton jbtnFT = new JButton ("n!");
         public PanFrame (String title)
                   super (title);
                   Panel pan1 = new Panel();
                   getContentPane().setLayout(new FlowLayout ());
                   pan1.add(jTfd);
                   Panel pan2 = new Panel();
                   getContentPane().setLayout (new GridLayout (4,5,2,2));
                   pan2.add (jbtn7);
                   pan2.add (jbtn8);
                   pan2.add (jbtn9);
                   pan2.add (jbtn4);
                   pan2.add (jbtn5);
                   pan2.add (jbtn6);
                   pan2.add (jbtn1);
                   pan2.add (jbtn2);
                   pan2.add (jbtn3);
                   pan2.add (jbtn0);
                   pan2.add (jbtnFT);
                   getContentPane().add(pan1);
                   getContentPane().add(pan2);
                   //adding the Listener     
                   jTfd.addActionListener(this);
                           jbtn7.addActionListener(this);
                   jbtn8.addActionListener(this);
                   jbtn9.addActionListener(this);
                   jbtn4.addActionListener(this);
                   jbtn5.addActionListener(this);
                   jbtn6.addActionListener(this);
                   jbtn1.addActionListener(this);
                   jbtn2.addActionListener(this);
                   jbtn3.addActionListener(this);
                   jbtn0.addActionListener(this);
                   jbtnFT.addActionListener(this);
                   validate();
                   this.addWindowListener (new WindowAdapter()
                        public void windowClosing (WindowEvent we)
                                  setVisible (false);
                                  System.exit (0);
               public void actionPerformed(ActionEvent ae)
                        jTfd.setText(ae.getActionCommand());
                   if(ae.getActionCommand()=="n!")
                                  int num= Integer.parseInt(jTfd.getText());
                             int i;
                             long fact=1;
                             for(i=1; i<=num; i++)
                                       fact *=i;
                             jTfd.setText(String.valueOf(fact));
         public static void main (String arg [ ])
                   PanFrame ObjFr = new PanFrame ("Two Panel in One Frame");
                   ObjFr.setSize (400, 400);
                   ObjFr.setVisible (true);
    }bakes

    Perhaps something like this?
    private String tempText = "";
    public void actionPerformed(ActionEvent ae) {
    if (jTfd.replaceSelection( jbtn.getActionCommand()
    ) )=="n!") {
              tempText = "";
              long fact=1;
    for(int i=1; i<=Integer.parseInt(jTfd.getText());
    ); i++)
                   fact *=i;
              jTfd.setText(String.valueOf(fact));
         else {
    tempText +=
    += ((JButton)ae.getSource()).getActionCommand();
              jTfd.replaceSelection(tempText);
               * // Alternately, you can try:
    * jTfd.setText(jTfd.getText() +
    ) + ((JButton)ae.getSource()).getActionCommand());
         }}I tried out what you suggested above but it gave the following eror:
    PanFrame.java103:cannot resolve symbol
    symbol: variable jbtn
    location: class PanFrame
    if (jTfd.replaceSelection( jbtn.getActionCommand() )=="n!")
    'void' type not allowed here
    if (jTfd.replaceSelection( jbtn.getActionCommand() )=="n!")
    I do not think "if(jTfd.replaceSelection(jbtn.getActionCommand())=="n!")"
    is the correct way of expressing what i intend to archieve. When i first wrote it out it did not make sense to me but i could not find an alternative. so i said let me give it a triy.
    i have also attempted to structure it this way
    public void actionPerformed(ActionEvent ae)
                   JButton jbtn = (JButton)ae.getSource();
                   jTfd.replaceSelection( jbtn.getActionCommand() );
                   if (ae.getSource()==jbtnFT)
                        int num= Integer.parseInt(jTfd.getText());
                             int i;
                             long fact=1;
                             for(i=1; i<=num; i++)
                                       fact *=i;
                             jTfd.setText(String.valueOf(fact));
              } the action i performed having structured it as stated above was: I pressed the button 5 and it displayed 5 in the textfield then i wanted to find the factorial of 5. so i pressed the (n!) button. instead of calculating the factorial of 5 and displaying the output in the textfield, the factorial symbol was displayed after the number 5 and error messages were displayed in the command prompt. i have tried to type out some of the messages below:
    java.lang.NumberFormatException: For input string: "5n!" at java.lang.NumberFormat Exception.forInputString(NumberFormatException.java.48)
    at java.lang.Integer.parseInt(Integer.java: 477)
    at java.lang.Integer.parseInt(Integer.jaa:518)
    at PanFrame.actionPerformed(Drum.java:107)
    at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    Please could you do me favor i am posting the entire code below: copy it and run it then you can see the error messages in its entirety. It is quite lenghty was i tried to type out were jus the first few lines.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class PanFrame extends JFrame implements ActionListener
         JTextField jTfd =new JTextField(20);
         JButton jbtn7 = new JButton ("7");
         JButton jbtn8 = new JButton ("8");
         JButton jbtn9 = new JButton ("9");
         JButton jbtnFT = new JButton ("n!");
         JButton jbtn4 = new JButton ("4");
         JButton jbtn5 = new JButton ("5");
         JButton jbtn6 = new JButton ("6");
         JButton jbtn1= new JButton ("1");
         JButton jbtn2 = new JButton ("2");
         JButton jbtn3 = new JButton ("3");
         JButton jbtn0 = new JButton ("0");
         public PanFrame (String title)
                   super (title);
                   Panel pan1 = new Panel();
                   getContentPane().setLayout(new FlowLayout ());
                   pan1.add(jTfd);
                   Panel pan2 = new Panel();
                   getContentPane().setLayout (new GridLayout (4,5,2,2));
                   pan2.add (jbtn7);
                   pan2.add (jbtn8);
                   pan2.add (jbtn9);
                   pan2.add (jbtnFT);
                   pan2.add (jbtn4);
                   pan2.add (jbtn5);
                   pan2.add (jbtn6);
                   pan2.add (jbtn1);
                   pan2.add (jbtn2);
                   pan2.add (jbtn0);
                   getContentPane().add(pan1);
                   getContentPane().add(pan2);
                   //adding the Listener     
                   jTfd.addActionListener(this);
                           jbtn7.addActionListener(this);
                   jbtn8.addActionListener(this);
                   jbtn9.addActionListener(this);
                   jbtnFT.addActionListener(this);
                   jbtn4.addActionListener(this);
                   jbtn5.addActionListener(this);
                   jbtn6.addActionListener(this);
                   jbtn1.addActionListener(this);
                   jbtn2.addActionListener(this);
                   jbtn3.addActionListener(this);
                   jbtn0.addActionListener(this);
                   validate();
    public void actionPerformed(ActionEvent ae)
                   JButton jbtn = (JButton)ae.getSource();
                   jTfd.replaceSelection( jbtn.getActionCommand() );
                   if (ae.getSource()==jbtnFT)
                        int num= Integer.parseInt(jTfd.getText());
                             int i;
                             long fact=1;
                             for(i=1; i<=num; i++)
                                       fact *=i;
                             jTfd.setText(String.valueOf(fact));
    public static void main (String arg [ ])
                   PanFrame ObjFr = new PanFrame ("Two Panel in One Frame");
                   ObjFr.setDefaultCloseOperation(EXIT_ON_CLOSE);
                   ObjFr.setSize (400, 400);
                   ObjFr.setVisible (true);
    }

Maybe you are looking for