Boolean matrix - Please Help

Would anyone be able to help me out with code to create a boolean (1/0) for a GUI? Iam looking to use a matrix of up to 10 rows and columbs that would resize depending on an entered value. It would then be possible to use the mouse to click on each element within the matrix to make it a 1 or a 0. I would appretiate any help.

yay !!!!
import java.awt.*;
import java.awt.event.*;
import java.util.BitSet;
import javax.swing.*;
import javax.swing.event.MouseInputAdapter;
* @author  Ian Schneider
public class BooleanMatrix extends JPanel {
    BitSet bits;
    int w = 10;
    int h = 10;
    /** Creates a new instance of BooleanMatrix */
    public BooleanMatrix() {
        resizeMatrix(w,h);
        MouseUpdater updater = new MouseUpdater();
        addMouseListener(updater);
        addMouseMotionListener(updater);
    public boolean isSet(int x,int y) {
        return bits.get(idx(x,y));
    public void toggle(int x,int y) {
        bits.flip(idx(x,y));
    private int idx(int x,int y) {
        return x + y * w;
    public void resizeMatrix(int w,int h) {
        bits = new BitSet(w * h);
        this.w = w;
        this.h = h;
    public Dimension getPreferredSize() {
        return new Dimension(w * 10,h* 10);
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        for (int i = 0, ii = w; i < ii; i++) {
            for (int j = 0, jj = h; j < jj; j++) {
                if (isSet(i,j))
                    g.setColor(Color.green);
                else
                    g.setColor(Color.red);
                g.fillOval(i * 10 + 2,  j * 10 + 2, 6,6);
    class MouseUpdater extends MouseInputAdapter {
        public void mouseClicked(MouseEvent me) {
            int x = me.getX() / 10;
            int y = me.getY() / 10;
            toggle(x,y);
            repaint();
        public void mouseDragged(MouseEvent me) {
            mouseClicked(me);
    public static final void main(String[] args) throws Exception {
        JFrame f = new JFrame();
        f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);
        f.getContentPane().add(new BooleanMatrix());
        f.pack();
        f.setLocationRelativeTo(null);
        f.show();
}The rest of the exercises are left to the student :)

Similar Messages

  • Tirplets in grid matrix - please help!

    Hello All,
    I just switched from ableton live and am very pleased indeed , the macbook pro and logic 7 really do go hand in hand! - However one issue i have is that i cannot program triplets in the matrix editor - for example if i have an ultrabeat set up i cant snap the grid[on the channel's midi grid not the inbuilt step sequencer] so that i can do swingy hi hat patterns - on ableton one just presses ctrl+3 and it switches from 16 to 16/t for example but on logic it seems that it just goes 8-12-16 etc
    sorry if i expressed my question in a slightly jumbled manner but i'm desperate to get stuck into some nitty gritty drum programing!
    thanks in advance!

    on th left side of the matrix editor just under the tool box is a small box, the default is 16. change it to 12 for 8th note triplets, 24 for 16

  • URGENT (PLEASE HELP) AC Analysis Matrix Singular Error

    Hi all (sorry to post on a new thread again Yao) , my project is due tomorrow at 9 am. Therefore please please please help me on this circuit.
    I can't perfom AC analysis on the circuit for that there is a matrix singular error. May anyone please tell me what is wrong ??
    Please! Thank you!!!
    Attachments:
    489project2.ms10 ‏105 KB

    OK, I added a current probe to measure the current thru the multimeter (You could also use a current - controlled voltage source) but no matter what I look at I can't get an ac analysis to give a non-zero gain.  I simplified the circuit some more and set the option for the node numbers to show. There is something fundamentally wrong in the area of the ac voltage source V1 and the voltage controlled capacitor. As long as the voltage source is in parallel with the capacitor, the capacitor current will be driven only by the voltage source. The capacitor voltage will always be equal to the voltage source V1. The current source A4 doesn't accomplish anything - its current will just be sunk into the voltage source V1. I thought maybe you really meant to measure the voltage controlled capacitor current and feed that back into one of the inputs of A4 but I can't really tell what you are trying to accomplish. Maybe this will give you some ideas.
    Attachments:
    489project2r1.ms10 ‏82 KB

  • Boolean Datatype declaration in PowerBuilder...Please HELP

    Hi,
    I have Oracle Stored procedure with last parameter as boolean, When I am calling this stored procedure in
    PowerBuilder 6.5 in the DECLARE I am getting compilation error and it is not working...
    I heard that there is some round about way to solve this problem...
    Any one knows the solution...please help me out...

    I don't know about PowerBuilder but we had a similar problem with Java not understanding Oracle's BOOLEAN implementation. I'm afraid we solved this by substituting a VARCHAR2 parameter with values of 'TRUE' and 'FALSE'. Not very elegant I'm afraid, but if your stored procedure is in a package you can at least overload it.
    cheers, APC

  • Please help me, boolean function

    Hello everyone, this is my first post in this forum. I have this function but I cant get it to work because I get this "missing return statement". Im desperate now, I cant figure how to fix it. Please help me.
    public static boolean es(String inst) {                              // Verificador de validez
              int ad=inst.indexOf("ADELANTE");
              int at=inst.indexOf("ATRAS");
              int iz=inst.indexOf("IZQUIERDA");
              int de=inst.indexOf("DERECHA");
              int bo=inst.indexOf("BORRAR");
              int ho=inst.indexOf("HOGAR");
              double numero;
              try {
                   if ((ad==0)&&(inst.charAt(8)==' ')) {
                        numero = Double.parseDouble(inst.substring(9));
                        if (numero>0)
                             return true;
                        else return false;
                   if ((at==0)&&(inst.charAt(5)==' ')) {
                        numero = Double.parseDouble(inst.substring(6));
                        if (numero>0)
                             return true;
                        else return false;
                   if ((iz==0)&&(inst.charAt(9)==' ')) {
                        numero = Double.parseDouble(inst.substring(10));
                        if ((numero>0)&&(numero<360))
                             return true;
                        else return false;
                   if ((de==0)&&(inst.charAt(7)==' ')) {
                        numero = Double.parseDouble(inst.substring(8));
                        if ((numero>0)&&(numero<360))
                             return true;
                        else return false;
                   if (bo==0) return true;
                   if (ho==0) return true;
                   else return false;
              catch (NumberFormatException ex) {
         }The objective of this function is to check if the user entered one of these words: "adelante", "atras", "izquierda" or "derecha" followed by a positive number. Thank you in advance for your help.

    you need to have a return statement at the very end of you method.
    here's a rewrite of what you provided...instead of a bunch of returns everywhere, i set a variable to return. i also put else if statements instead of if since you only want to see if one of the instances exist
    public static boolean es(String inst) {                              // Verificador de validez
              int ad=inst.indexOf("ADELANTE");
              int at=inst.indexOf("ATRAS");
              int iz=inst.indexOf("IZQUIERDA");
              int de=inst.indexOf("DERECHA");
              int bo=inst.indexOf("BORRAR");
              int ho=inst.indexOf("HOGAR");
              double numero;
              boolean answer = false;
              try {
                   if ((ad==0)&&(inst.charAt(8)==' ')) {
                        numero = Double.parseDouble(inst.substring(9));
                        if (numero>0)
                             answer = true;
                        else answer = false;
                   else if ((at==0)&&(inst.charAt(5)==' ')) {
                        numero = Double.parseDouble(inst.substring(6));
                        if (numero>0)
                             answer = true;
                        else answer = false;
                   else if ((iz==0)&&(inst.charAt(9)==' ')) {
                        numero = Double.parseDouble(inst.substring(10));
                        if ((numero>0)&&(numero<360))
                             answer = true;
                        else answer = false;
                   else if ((de==0)&&(inst.charAt(7)==' ')) {
                        numero = Double.parseDouble(inst.substring(8));
                        if ((numero>0)&&(numero<360))
                             answer = true;
                        else answer = false;
                   else if (bo==0) answer = true;
                   else if (ho==0) answer = true;
                   else answer = false;
              catch (NumberFormatException ex) {
    answer = false;
              return answer;
    Message was edited by:
    muzic

  • Please help : How to print a matrix from the console...

    Hi..
    Please help:
    How to print a matrix on the console , but i want to take all the input from the console.. like...
    if the matrix is of size...
    mxn
    where
    m : row
    n : column
    and the all the elements of the matrix from the console it self... .
    Please help...

    Thanks...
    I am able to print the elements of the array but i am not able to assign those values to the array ....
    How to do that...
    I just did a little change in my code...
    import java.util.Scanner;
    public class CreatingAMatrix {
        public static void main(String[] args) {
         // TODO Auto-generated method stub
         System.out.print("Enter the number of rows: ");
         Scanner scanner1 = new Scanner(System.in);
         int m = scanner1.nextInt();
         System.out.print("Enter the number of coulmns:");
         Scanner scanner2 = new Scanner(System.in);
         int n = scanner2.nextInt();
         System.out.println("The size of the matrix is : " +m+" x "+n );
         int[][] a = new int[100][100];
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              Scanner scanner3 = new Scanner(System.in);
              int o = scanner3.nextInt();
             System.out.println();
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              System.out.print(a[i][j] + "\t");
             System.out.println();
    }I am getting an output as this
    output:
    Enter the number of rows: 2
    Enter the number of coulmns:1
    The size of the matrix is : 2 x 1
    1
    2
    1
    2
    3
    5
    0     0     
    0     0     
    0     0     
    how should i assig those input values to my array..
    Please help

  • Matrix of Radio buttons on Datagrid please help!

    Hi,
        Anyone help me walk through this, I have a Datagrid object which uses radio button as item renderer.
    To be more specific this is a matrix of radio buttons on datagrid. The datagid columns are dynamically generated depending on the number of items i have in my database record, (e.g could be 10, 20, and so on...). The rendering of items goes well. Now my question would be how am I able to group the radio button in my datagrid "per column or per row"? since it appears to me that groupName is not working if applied on the item renderer. I also set the a radio button group on the item renderer parent document but it sets all the button to only one group.
    Any hints, and ideas how am I able to accomplish this? Please help this novice trying to wrap himself in flex.
    Thanks!
    Best Regards

    try this.
    <mx:RadioButtonGroup id="groupA"/>
    <mx:RadioButtonGroup id="groupB"/>
    <mx:DataGrid>
         <mx:dataProvider>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
              <mx:Object Group="A" Price="11.99" groupName="groupA"/>
              <mx:Object Group="B" Price="11.99"  groupName="groupB"/>
         </mx:dataProvider>
         <mx:columns>
              <mx:DataGridColumn dataField="Group">
                   <mx:itemRenderer>
                        <mx:Component>
                             <mx:RadioButton groupName="{data.groupName}" label="{data.Group}"/>
                        </mx:Component>
                   </mx:itemRenderer>
              </mx:DataGridColumn>
              <mx:DataGridColumn dataField="Price"/>
         </mx:columns>
    </mx:DataGrid>
    You may want to set the groupName dynamically in your data provider.

  • Please help in Matrix...Z-A

    I am getting the Month wise sorting order also.
    ItemCode Jan Feb -- Dec YEARTOTAL
    001 200 300 400 900
    002 400 200 200 800
    003 100 500 600 1200
    I am calculating 12 months total in YEARTOTAL COLUMN and I want this YEARTOTAL COLUMN to be in Decending to check the total sale Qty from Maximum to Minimum.
    Please help me to sort on YEARTOTAL COLUMN decending order.
    Thanks and regards,
    Syed Muzzammil

    Hi Syed,
    I am assuming that you re calculating the "YearTotal" sales in a summary column inside your report's data model. If that is the case, then reports does not know the values of this column before creating the report. It calculates this value in every row. So it will not be able to sort by this column, because for sorting you need to know all the values beforehand.
    What you can do is - in Reports data model, you introduce a Formula Column inside the same Group as Item_Code. In this Formula Column, use PL/SQL to calculate the value of YearTotal sales (just total sales for one product over all months). Then go to the Property Inspector of this column, and set Break Order > Descending. This should do to trick.
    Make sure that you drag this column in group to be at the top (above Item_Code).
    For more information, see Builder help on "Break Order property".
    Navneet.

  • Cannot log into AD on Mountain Lion. Please help! I got the logs

    My company has been experiencing this problem ever since Mountain Lion released.
    The problem is, we cannot log into AD on all of our MAC who currently runs Mountain Lion. We, however, can log into AD fine with Lion and Snow Leopard just fine. We only use AD, we don't use Open Directory or have any Apple server.
    I have gather some logs using the SSH. Please help me view the logs and let me know what's going on if possible.
    Here are the steps that I performed before capture these logs.
    I format the hard drive and installed a new OS X 10.8.2 on the hard drive using the Recovery Mode (Hold down option Key while boot).
    I created a new computer name call ittest-mac3 in AD and assigned to proper OU. I changed the computer name under System Preferences ==> Sharing to "ittest-mac3".
       3.  I bind this Macbook Pro to our Active Directory via xyz.com. The bind was successful. I enabled "Create mobile account at login", "Required confirmation before creating a mobile account", " Force local home directory on start up disk", " Use UNC path from active directory to derive network home location", "Default user shell: /bin/bash/. Network protocol to be used: smb:
    After I reboot the Mac client, I was unable to log into it using our regular AD user account (consider all of our employees has regular account).
    I created 2 test accounts for Mac on Active Directory, they are "mac test" and "mac test 2".
    With "mac test" account, I configured everything the same as our regular account in AD. Which I was not able to log into the Mac client using this account.
    With “mac test 2” account, I configured everything the same as our regular account in AD EXCEPT for UNIX Attributes. I was successfully logged into the Mac client using this user account.
    So the problem is ... set the Unix Attributes for NIS domain on the AD account prevent everyone of us in our company to log into AD on any client that have Mountain Lion OSX installed.
    Here are the logs:
    Log1. This logs showed successful when log into AD on a Mountain Lion OSX using an AD account that don't have UNIX attributes setting configure.
    login as: administrator
    Using keyboard-interactive authentication.
    Password:
    Last login: Mon Dec 17 08:43:38 2012
    ittest-mac3:~ administrator$ sudo su -
    WARNING: Improper use of the sudo command could lead to data loss
    or the deletion of important system files. Please double-check your
    typing when using sudo. Type "man sudo" for more information.
    To proceed, enter your password, or type Ctrl-C to abort.
    Password:
    ittest-mac3:~ root# cd /var/log
    ittest-mac3:log root# tail -f system.log
    Dec 17 09:02:19 ittest-mac3.local SecurityAgent[650]: *** WARNING: -[NSImage com                                                                            
    positeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Pleas                                                                             
    e use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:02:50 ittest-mac3.local sshd[659]: Accepted keyboard-interactive/pam f                                                                            
    or administrator from 10.10.202.63 port 50738 ssh2
    Dec 17 09:02:50 ittest-mac3.local sshd[659]: USER_PROCESS: 665 ttys000
    Dec 17 09:04:59 ittest-mac3.local sudo[673]: administrator : TTY=ttys000 ; PWD=/                                                                             
    Users/administrator ; USER=root ; COMMAND=/usr/bin/su -
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_authenticate(): authenticat                                                                             
    ion succeeded
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_acct_mgmt(): The group chec                                                                             
    k succeeded.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_acct_mgmt(): OpenDirectory                                                                              
    - Membership cache TTL set to 1800.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in od_record_check_pwpolicy(): retval                                                                             
    : 0
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_open_session(): No session                                                                              
    type specified.
    Dec 17 09:04:59 ittest-mac3.local su[674]: in pam_sm_open_session(): Going to sw                                                                            
    itch to (root) 0's Background session
    Dec 17 09:07:19 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'config.modify.com.apple.familycontrols.override' by client
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] for authorization created by
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] (3,0)
    Dec 17 09:07:19 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'config.modify.com.apple.familycontrols.loginwindow.override' by
    client '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resource s/parentalcontrolsd' [679] for authorization created by
    '/System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/Resources /parentalcontrolsd' [679] (3,0)
    Dec 17 09:07:19 ittest-mac3.local SecurityAgent[650]: User info context values set for mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got user: mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got ruser: (null)
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Got service: authorization
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Context initialised
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): Stashing kcm credentials in enviroment for kcminit: [email protected]
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_authenticate(): pam_sm_authenticate: ntlm
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_acct_mgmt(): OpenDirectory - Membership cache TTL set to 1800.
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in od_record_check_pwpolicy(): retval: 0
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in od_record_attribute_create_cfstring(): returned 2 attributes for
    dsAttrTypeStandard:AuthenticationAuthority
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Establishing credentials
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got user: mtest2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Context initialised
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got euid, egid: 0 0
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done getpwnam()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done setegid() & seteuid()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: init credential cache
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: storing credential for: [email protected]
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Got cache_name: API:164370296:1
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Environment done: KRB5CCNAME=164370296:1
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Cache closed
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup2
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup3
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done seteuid() & setegid()
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): Done cleanup4
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in ac_complete(): ac_complete returned: 0 for 164370296
    Dec 17 09:07:19 ittest-mac3.local authorizationhost[680]: in pam_sm_setcred(): pam_sm_setcred: ntlm done, used domain: PROS1
    Dec 17 09:07:19 ittest-mac3.local SecurityAgent[650]: Login Window login proceeding
    Dec 17 09:07:19 ittest-mac3.local ManagedClient[644]: ODUGetMCXRecordWithCache(): [ODRecord setNodeCredentialsWithRecordType:"dsRecTypeStandard:Users"
    authenticationType:kDSStdAuthNodeNativeRetainCredential authenticationItems:["mtest2", password]]) == 2100 (Connection failed to the directory server.) [This
    error is ignored and is only being flagged for notification]
    Dec 17 09:07:20 ittest-mac3 kernel[0]: Sandbox: kcm(681) deny mach-lookup com.apple.networkd
    Dec 17 09:07:20 ittest-mac3.local MCXCompositor[690]: CFPreferences: user home directory for user kCFPreferencesCurrentUser at  is unavailable. User domains
    will be volatile.
    Dec 17 09:07:20 ittest-mac3.local UserNotificationCenter[696]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It
    should not be used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:07:24 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/CoreServices/ManagedClient.app' [644] for authorization created by '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:24 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:24 ittest-mac3.local ManagedClient[644]: ODUMakeMobileMCXRecord: updating record from kDSNAttrOriginalHomeDirectory =
    <home_dir><url>smb://pros-fsvr2/home/mtest2</url><path>/</path></home_dir>
    Dec 17 09:07:24 ittest-mac3.local ManagedClient[644]: ODUMakeMobileMCXRecord: updating record to   kDSNAttrOriginalHomeDirectory =
    <home_dir><url>smb://pros-fsvr2/home/</url><path>mtest2/</path></home_dir>
    Dec 17 09:07:25 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:26 --- last message repeated 1 time ---
    Dec 17 09:07:26 ittest-mac3 com.apple.launchd[1] (com.apple.launchd.peruser.164370296): Throttling respawn: Will start in 4 seconds
    Dec 17 09:07:26 ittest-mac3.local writeconfig[697]: Unable to talk to lsboxd
    Dec 17 09:07:26 ittest-mac3.local writeconfig[697]: SFL(697): AddNewItemWithProperties_rpc returned 5
    Dec 17 09:07:26 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.preferences' by client
    '/System/Library/PrivateFrameworks/Admin.framework/Versions/A/Resources/writecon fig' [697] for authorization created by
    '/System/Library/CoreServices/ManagedClient.app' [644] (100002,0)
    Dec 17 09:07:30 ittest-mac3.local distnoted[721]: # distnote server agent  absolute time: 3817.482079135   civil time: Mon Dec 17 09:07:30 2012   pid: 721
    uid: 164370296  root: no
    Dec 17 09:07:30 ittest-mac3.local distnoted[721]: Bug: 12C60: liblaunch.dylib + 23849 [2F71CAF8-6524-329E-AC56-C506658B4C0C]: 0x25
    Dec 17 09:07:30 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.login.console' by client
    '/System/Library/CoreServices/loginwindow.app' [641] for authorization created by '/System/Library/CoreServices/loginwindow.app' [641] (100003,0)
    Dec 17 09:07:30 ittest-mac3.local loginwindow[641]: Login Window - Returned from Security Agent
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort,
    err: 1102
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: USER_PROCESS: 641 console
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.gamed): Ignored this key: UserName
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.gamed): Ignored this key: GroupName
    Dec 17 09:07:31 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.ReportCrash): Falling back to default Mach exception handler. Could not find:
    com.apple.ReportCrash.Self
    Dec 17 09:07:31 ittest-mac3.local loginwindow[641]: Connection with distnoted server was invalidated
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/System/Library/CoreServices/UserAccountUpdater' [727] for authorization created by '/System/Library/CoreServices/UserAccountUpdater' [727] (2,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/launchdadd' [730] for authorization created by '/System/Library/CoreServices/UserAccountUpdater' [727] (100002,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Session 100015 created
    Dec 17 09:07:31 ittest-mac3.local MRT[731]: MRT finished scan. Malware files were not found.
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/MRT' [731] for authorization created by '/usr/libexec/MRT' [731] (2,0)
    Dec 17 09:07:31 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'com.apple.ServiceManagement.daemons.modify' by client
    '/usr/libexec/launchdadd' [730] for authorization created by '/usr/libexec/MRT' [731] (100002,0)
    Dec 17 09:07:31 --- last message repeated 1 time ---
    Dec 17 09:07:31 ittest-mac3.local blued[68]: kBTXPCUpdateUserPreferences gConsoleUserUID = 164370296
    Dec 17 09:07:31 ittest-mac3.local locationd[738]: Incorrect NSStringEncoding value 0x8000100 detected. Assuming NSASCIIStringEncoding. Will stop this
    compatiblity mapping behavior in the near future.
    Dec 17 09:07:31 ittest-mac3.local locationd[738]: NOTICE,Location icon should now be in state 0
    Dec 17 09:07:31 ittest-mac3.local UserEventAgent[725]: cannot find fw daemon port 1102
    Dec 17 09:07:34 ittest-mac3.local com.apple.SecurityServer[15]: Succeeded authorizing right 'system.login.done' by client
    '/System/Library/CoreServices/loginwindow.app' [641] for authorization created by '/System/Library/CoreServices/loginwindow.app' [641] (100002,0)
    Dec 17 09:07:36 ittest-mac3.local CalendarAgent[753]: Could not find Meta Data for persistent Store
    Dec 17 09:07:37 ittest-mac3.local WindowServer[76]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:07:37 ittest-mac3.local WindowServer[76]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:07:37 ittest-mac3.local genatsdb[764]: ########## genatsdb Sandboxed. ##########
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: CGSCopyWindowShape: pid (763) passed NULL window
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: could not update menu bar region, 1000
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: CGSSetWindowTransformAtPlacement: Singular matrix [0.000 0.000 0.000 0.000]
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: *** WARNING: Method convertRectToBase: in class NSView is deprecated on 10.7 and later. It should not
    be used in new applications.
    Dec 17 09:07:37 ittest-mac3.local SystemUIServer[763]: *** WARNING: Method convertRectFromBase: in class NSView is deprecated on 10.7 and later. It should
    not be used in new applications.
    Dec 17 09:07:38 ittest-mac3.local SystemUIServer[763]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:07:38 ittest-mac3.local SystemUIServer[763]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:07:39 ittest-mac3.local genatsdb[764]: *GENATSDB* FontObjects generated = 392
    Dec 17 09:07:53 ittest-mac3 kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
    Dec 17 09:07:53 ittest-mac3 kernel[0]: macx_swapoff SUCCESS
    Dec 17 09:07:59 ittest-mac3.local Setup Assistant[751]: INFO: MMAccountMgr_Private: finishedSetup called.
    Dec 17 09:07:59 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 39931
    Dec 17 09:07:59 --- last message repeated 4 times ---
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.afpstat-qfa[793]): Job failed to exec(3). Setting up event to tell us when to
    try again: 2: No such file or directory
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.afpstat-qfa[793]): Job failed to exec(3) for weird reason: 2
    Dec 17 09:07:59 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 39931
    Dec 17 09:07:59 --- last message repeated 4 times ---
    Dec 17 09:07:59 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mrt.uiagent[783]): Exited with code: 255
    Dec 17 09:07:59 ittest-mac3.local NetworkBrowserAgent[796]: Starting NetworkBrowserAgent
    Dec 17 09:07:59 ittest-mac3.local imagent[786]: [Warning] Setting up a new messages database.
    Dec 17 09:07:59 ittest-mac3.local Finder[775]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be
    used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:07:59 ittest-mac3.local Finder[775]: *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be
    used in new applications. Use convertRectToBacking: instead.
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: dict count after removing entry for window 0xfe is 0
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=243
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Could not terminate job: 3: No
    such process
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Using fallback option to
    terminate job...
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] ([0x0-0x44044].com.apple.AppleSpell[767]): Exited: Terminated: 15
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.quicklook[803]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification
    kLSNotifyApplicationDeath to notificationID=272
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[813]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: DEAD_PROCESS: 641 console
    Dec 17 09:09:09 ittest-mac3.local migCacheCleanup[736]: Cache cleanup: cleanup for user 164370296 took 0.07 seconds
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=260
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXRestartSessionWorkspace: session workspace exited for session 257 (on console)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (0 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: loginwindow connection closed; closing server.
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: CGSFlushWindowContentRegion: Invalid connection
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSGetNextEventRecord (Inline) connection 0x201b, 16384 bytes
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=15883 Died
    Dec 17 09:09:09 ittest-mac3.local loginwindow[826]: Login Window Application Started
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Server is starting up
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: init_page_flip: page flip mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: mux_initialize: Mode is dynamic
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor enabled for tile size [256 x 256]
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXGLInitMipMap: mip map mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: WSMachineUsesNewStyleMirroring: true
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x4 for display 0x042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x5 for display 0x003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x6 for display 0x003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x7 for display 0x003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (2464, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (2465, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (2466, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXPerformInitialDisplayConfiguration
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x042803c0: MappedDisplay Unit 0; Alias(4, 0x11); Vendor 0x610 Model 0xa00f S/N 0 Dimensions
    13.03 x 8.15; online enabled built-in, Bounds (0,0)[1440 x 900], Rotation 0, Resolution 2
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003f: MappedDisplay Unit 3; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2464,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003e: MappedDisplay Unit 2; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2465,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003d: MappedDisplay Unit 1; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2466,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXMuxBoot: Boot normal
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, accelerator 0x0000494b, unit 0, caps QEX|
    QGL|MIPMAP, vram 1024 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, accelerator 0x00004833, unit 4, caps QEX|
    QGL|MIPMAP, vram 580 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Created shield window 0x8 for display 0x042803c0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:10 ittest-mac3.local launchctl[829]: com.apple.findmymacmessenger: Already loaded
    Dec 17 09:09:10 ittest-mac3.local com.apple.SecurityServer[15]: Session 100018 created
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: dict count after removing entry for window 0xfe is 0
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=243
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Could not terminate job: 3: No
    such process
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd[1] (com.apple.quicklook.satellite.D6822423-2893-4C1C-B282-5022A61D589C[806]): Using fallback option to
    terminate job...
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] ([0x0-0x44044].com.apple.AppleSpell[767]): Exited: Terminated: 15
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.quicklook[803]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435460 (ipc/send) timed out from ::mach_msg(), sending notification
    kLSNotifyApplicationDeath to notificationID=272
    Dec 17 09:09:09 ittest-mac3 com.apple.launchd.peruser.164370296[712] (com.apple.mdworker.shared.04000000-0000-0000-0000-000000000000[813]): Exited: Killed: 9
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: DEAD_PROCESS: 641 console
    Dec 17 09:09:09 ittest-mac3.local migCacheCleanup[736]: Cache cleanup: cleanup for user 164370296 took 0.07 seconds
    Dec 17 09:09:09 ittest-mac3.local coreservicesd[73]: SendFlattenedData, got error #268435459 (ipc/send) invalid destination port from ::mach_msg(), sending
    notification kLSNotifyApplicationDeath to notificationID=260
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXGetConnectionProperty: Invalid connection 8727
    Dec 17 09:09:09 --- last message repeated 4 times ---
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: CGXRestartSessionWorkspace: session workspace exited for session 257 (on console)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: Session 257 released (0 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[76]: loginwindow connection closed; closing server.
    Dec 17 09:09:09 ittest-mac3.local loginwindow[641]: CGSFlushWindowContentRegion: Invalid connection
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSGetNextEventRecord (Inline) connection 0x201b, 16384 bytes
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[725]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:09 ittest-mac3.local UserEventAgent[11]: Captive: [UserAgentDied:139] User Agent @port=15883 Died
    Dec 17 09:09:09 ittest-mac3.local loginwindow[826]: Login Window Application Started
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Server is starting up
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 released (1 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Session 256 retained (2 references)
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: init_page_flip: page flip mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: mux_initialize: Mode is dynamic
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor enabled for tile size [256 x 256]
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXGLInitMipMap: mip map mode is on
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: WSMachineUsesNewStyleMirroring: true
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (0, 0)[0 x 0], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x4 for display 0x042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x5 for display 0x003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x6 for display 0x003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Created shield window 0x7 for display 0x003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x042803c0: GL mask 0x11; bounds (0, 0)[1440 x 900], 27 modes available
            Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model a00f, S/N 0, Unit 0, Rotation 0
            UUID 0x000006100000a00f00000000042803c0
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003f: GL mask 0x8; bounds (2464, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003f
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003e: GL mask 0x4; bounds (2465, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003e
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: Display 0x003f003d: GL mask 0x2; bounds (2466, 0)[1 x 1], 1 modes available
            off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
            UUID 0xffffffffffffffffffffffff003f003d
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXPerformInitialDisplayConfiguration
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x042803c0: MappedDisplay Unit 0; Alias(4, 0x11); Vendor 0x610 Model 0xa00f S/N 0 Dimensions
    13.03 x 8.15; online enabled built-in, Bounds (0,0)[1440 x 900], Rotation 0, Resolution 2
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003f: MappedDisplay Unit 3; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2464,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003e: MappedDisplay Unit 2; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2465,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]:   Display 0x003f003d: MappedDisplay Unit 1; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x
    0.00; offline enabled, Bounds (2466,0)[1 x 1], Rotation 0, Resolution 1
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: CGXMuxBoot: Boot normal
    Dec 17 09:09:09 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, accelerator 0x0000494b, unit 0, caps QEX|
    QGL|MIPMAP, vram 1024 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01022647, GL mask 0x0000000f, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, accelerator 0x00004833, unit 4, caps QEX|
    QGL|MIPMAP, vram 580 MB
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: GLCompositor: GL renderer id 0x01024400, GL mask 0x00000010, texture units 8, texture max 16384,
    viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Created shield window 0x8 for display 0x042803c0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:10 ittest-mac3.local launchctl[829]: com.apple.findmymacmessenger: Already loaded
    Dec 17 09:09:10 ittest-mac3.local com.apple.SecurityServer[15]: Session 100018 created
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSShutdownServerConnections: Detaching application from window server
    Dec 17 09:09:10 ittest-mac3.local hidd[59]: CGSDisplayServerShutdown: Detaching display subsystem from window server
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Log2: This log showed was captured when we logged into a test account that have Unix Attributes configure just like our regular user's account.
    ^C
    ittest-mac3:log root# tail -f system.log
    Dec 17 09:09:10 ittest-mac3.local loginwindow[826]: Login Window Started Security Agent
    Dec 17 09:09:10 ittest-mac3.local UserEventAgent[831]: cannot find useragent 1102
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: MacBuddy was run = 0
    Dec 17 09:09:10 ittest-mac3.local WindowServer[827]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x042803c0 device: 0x1072ab320 
    isBackBuffered: 1 numComp: 3 numDisp: 3
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and
    later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use
    -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:10 ittest-mac3.local SecurityAgent[836]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later.
    Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    Dec 17 09:09:11 ittest-mac3.local WindowServer[827]: Display 0x042803c0: MappedDisplay Unit 0; ColorProfile { 2, "Color LCD"}; TransferFormula (1.000000,
    1.000000, 1.000000)
    Dec 17 09:09:41 --- last message repeated 1 time ---
    Dec 17 09:10:13 ittest-mac3.local SecurityAgent[836]: User info context values set for tle
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got user: mtest
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got ruser: (null)
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Got service: authorization
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Context initialised
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): Stashing kcm credentials in enviroment for kcminit: [email protected]
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_authenticate(): pam_sm_authenticate: ntlm
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_acct_mgmt(): OpenDirectory - Membership cache TTL set to 1800.
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in od_record_check_pwpolicy(): retval: 0
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in od_record_attribute_create_cfstring(): returned 2 attributes for
    dsAttrTypeStandard:AuthenticationAuthority
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Establishing credentials
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got user: mtest
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Context initialised
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got euid, egid: 0 0
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done getpwnam()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done setegid() & seteuid()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: init credential cache
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: storing credential for: [email protected]
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Got cache_name: API:2137600189:2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Environment done: KRB5CCNAME=2137600189:2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Cache closed
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup2
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup3
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done seteuid() & setegid()
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): Done cleanup4
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in ac_complete(): ac_complete returned: 0 for 2137600189
    Dec 17 09:10:13 ittest-mac3.local authorizationhost[844]: in pam_sm_setcred(): pam_sm_setcred: ntlm done, used domain: PROS1
    Dec 17 09:10:13 ittest-mac3.local SecurityAgent[836]: Login Window login proceeding
    Dec 17 09:10:13 ittest-mac3.local ManagedClient[830]: ODUGetMCXRecordWithCache(): [ODRecord setNodeCredentialsWithRecordType:"dsRecTypeStandard:Users"
    authenticationType:kDSStdAuthNodeNativeRetainCredential authenticationItems:["mtest", password]]) == 2100 (Connection failed to the directory server.) [This
    error is ignored and is only being flagged for notification]
    Dec 17 09:10:13 ittest-mac3 com.apple.launchd[1] (com.apple.launchd.peruser.4294967295[846]): getpwuid("4294967295") failed
    Dec 17 09:10:13 ittest-mac3 com.apple.launch

    -Reece,
    We only have 1 single domain, 1 domain forest, no subdomains, only alias. I had replied to the other post as well. But I am happy to paste it here in case anyone want to read it.
    So, after a few months of testing, capture and sending logs back and forth to Apple Engineers, we found out there is a setting in AD, under User Account that prevent us to log into AD from Mountain Lion. If you would go to your AD server, open up a user account properties, then go to Account tab, the "Do not require Kerberos preauthentication" option is checked. As soon as I uncheck that option, immediately I was able to log into AD on the Mac client. Apple engineers copied all my AD settings and setup a test environment on their end and match exact mine AD environment. They was able to reproduce this issue.
    The bad part about this is... our environment required the "Do not require Kerberos preauthentication" is checked in AD, in order for our users to login into some of our Unix and Linux services. Which mean that it is impossible for us to remove that check mark because most, if not all of them some way or another require to login into applications that run on Unix and Linux. Apple is working to see if they can come up with a fix. Apparently, no one has report this issue except us. I believe most of you out there don't have that check mark checked in your environment... Anyone out there have any suggestion to by pass or have a work around for this?

  • I suppose it is the problem with socket connection,Please help

    Hi,
    I'm trying to build a chat server in Java on Linux OS.I've created basically 2 classes in the client program.The first one shows the login window.When we enter the Login ID & password & click on the ok button,the data is sent to the server for verification.If the login is true,the second class is invoked,which displays the messenger window.This class again access the server
    for collecting the IDs of the online persons.But this statement which reads from the server causes an exception in the program.If we invoke the second class independently(ie not from 1st class) then there is no problem & the required data is read from the server.Can anyone please help me in getting this program right.I'm working on a p4 machine with JDK1.4.
    The Exceptions caused are given below
    java.net.SocketException: Connection reset by peer: Connection reset by peer
    at java.net.SocketInputStream.SocketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:119)
         at java.io.InputStreamReader$CharsetFiller.readBytes(InputStreanReader.java :339)
         at java.io.InputStreamReader$CharsetFiller.fill(InputStreamReader.java:374)
         at java.io.InputStreamReader.read(InputStreamReader.java:511)
         at java.io.BufferedReader.fill(BufferedReader.java:139)
         at java.io.BufferedReader.readLine(BufferedReader.java:299)
         at java.io.BufferedReader.readLine(BufferedReader.java:362)
         at Login.LoginData(Login.java:330)
         at Login.test(Login.java:155)
         at Login$Buttonhandler.actionPerformed(Login.java:138)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1722)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:17775)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4141)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:261)
         at java.awt.Component.processMouseEvent(Component.java:4906)
         at java.awt.Component.processEvent(component.java:4732)
         at java.awt.Container.processEvent(Container.java:1337)
         at java.awt.component.dispatchEventImpl(Component.java:3476)
         at java.awt.Container.dispatchEventImpl(Container.java:1399)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3302)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3014)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2967)
         at java.awt.Container.dispatchEventImpl(Container.java:1373)
         at java.awt.window.dispatchEventImpl(Window.java:1459)
         at java.awt.Component.dispatchEvent(Component.java:3343)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
         at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
         My program looks somewhat like this :
    1st class definition:
    public class Login extends Jframe// Login is the name of the first class;
    Socket connection;
    DataOutputStream outStream;
    BufferedReader inStream;
    Frame is set up here
    public class Buttonhandler implements ActionListener
    public void actionPerformed(ActionEvent e) {
    String comm = e.getActionCommand();
    if(comm.equals("ok")) {
    check=LoginCheck(ID,paswd);
    test();
    public void test() //checks whether the login is true
    if(check)
    new Messenger(ID);// the second class is invoked
    public boolean LoginCheck(String user,String passwd)
    //Enter the Server's IP & port below
    String destination="localhost";
    int port=1234;
    try
    connection=new Socket(destination,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
    outStream=new DataOutputStream(connection.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    System.out.println("connected to "+destination+" at port "+port+".");
    BufferedReader keyboardInput=new BufferedReader(new InputStreamReader(System.in));
    String receive=new String();
    try{
    receive=inStream.readLine();
    }catch(IOException ex){ error("Error reading from server");}
    if(receive.equals("Logintrue"))
    check=true;
    else
    check=false;
    try{
    inStream.close();
    outStream.close();
    connection.close();
    }catch (IOException ex){
    error("IO error closing socket");
    return(check);
    // second class is defined below
    public class Messenger
    Socket connect;
    DataOutputStream outStr;
    BufferedReader inStr;
    public static void main(String args[])
    { Messenger mes = new Messenger(args[0]);}
    Messenger(String strg)
    CreateWindow();
    setupEvents();
    LoginData(strg);
    fram.show();
    void setupEvents()
    fram.addWindowListener(new WindowHandler());
    login.addActionListener(new MenuItemHandler());
    quit.addActionListener(new MenuItemHandler());
    button.addActionListener(new Buttonhandle());
    public void LoginData(String name)
    //Enter the Server's IP & port below
    String dest="localhost";
    int port=1234;
    int r=0;
    String str[]=new String[40];
    try
    connect=new Socket(dest,port);
    }catch (UnknownHostException ex){
    error("Unknown host");
    catch (IOException ex){
    ex.printStackTrace ();
    error("IO error creating socket ");
    try{
    inStr = new BufferedReader(new InputStreamReader(connect.getInputStream()));
    outStr=new DataOutputStream(connect.getOutputStream());
    }catch (IOException ex){
    error("IO error getting streams");
    ex.printStackTrace();
    String codeln=new String("\n");
    try{
    outStr.flush();
    outStr.writeBytes("!@*&!@#$%^");//code for sending logged in users
    outStr.writeBytes(codeln);
    outStr.write(13);
    outStr.flush();
    String check="qkpltx";
    String receive=new String();
    try{
    while((receive=inStr.readLine())!=null) //the statement that causes the exception
    if(receive.equals(check))
    break;
    else
         str[r]=receive;
         r++;
    }catch(IOException ex){ex.printStackTrace();error("Error reading from socket");}
    catch(NullPointerException ex){ex.printStackTrace();}
    } catch (IOException ex){ex.printStackTrace();
    error("Error reading from keyboard or socket ");
    try{
    inStr.close();
    outStr.close();
    connect.close();
    }catch (IOException ex){
    error("IO error closing socket");
    for(int l=0,k=1;l<r;l=l+2,k++)
    if(!(str[l].equals(name)))
    stud[k]=" "+str[l];
    else
    k--;
    public class Buttonhandle implements ActionListener
    public void actionPerformed(ActionEvent e) {
    //chat with the selected user;
    public class MenuItemHandler implements ActionListener
    public void actionPerformed(ActionEvent e)
    String cmd=e.getActionCommand();
    if(cmd.equals("Disconnect"))
    //Disconnect from the server
    else if(cmd.equals("Change User"))
         //Disconnect from the server & call the login window
    else if(cmd.equals("View Connection Details"))
    //show connection details;
    public class WindowHandler extends WindowAdapter
    public void windowClosing(WindowEvent e){
    //Disconnect from server & then exit;
    System.exit(0);}
    I�ll be very thankful if anyone corrects the mistake for me.Please help.

    You're connecting to the server twice. After you've successfully logged in, pass the Socket to the Messenger class.
    public class Messenger {
        Socket connect;
        public static void main(String args[]) {
            Messenger mes = new Messenger(args[0]);
        Messenger(Socket s, String strg) {
            this.connect = s;
            CreateWindow();
            setupEvents();
            LoginData(strg);
            fram.show();
    }

  • URGENT FIX MY Connect Four game for Wednsday PLEASE HELP

    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected]. URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    import javax.swing.JApplet;
    import java.applet.*;
    import java.awt.Graphics;
    import java.awt.Color;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JOptionPane;
    public class Board extends JApplet
    // the grid used for storing the game layout.
    private int[][] grid;
    // the player whose turn it is.
    private int currentPlayer;
    public final int player1=1;
    public final int player2=2;
    private int place1=5;
    private int place2=5;
    private int place3=5;
    private int place4=5;
    private int place5=5;
    private int place6=5;
    private int place7=5;
    public static void main()
    int column1;
    int column2;
    String name1;
    String name2;
    Graphics g=new Graphics();
    Board test= new Board();
    boolean wait=true;
    while(wait)
    String starts=JOptionPane.showInputDialog("Are you ready? \n (yes or no)");
    starts.toLowerCase();
    if(starts.equals("yes"))
    wait=false;
    name1=JOptionPane.showInputDialog("Enter Player 1's Name");
    name2 = JOptionPane.showInputDialog("Enter Player 2's Name");
    test.paintBoard(true,g);
    while(!test.done() || !test.hasWon(g,player1) || !test.hasWon(g,player2))
    column1=0;
    while(column1>0 && column1<8)
    column1=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player1, column1,g);
    if(!test.done() || !test.hasWon(g,player1))
    column2=0;
    while(column2>0 && column2<8)
    column2=Integer.parseInt(JOptionPane.showInputDialog(name1+" what column do you choose?"));
    test.place(player2, column2,g);
    public Board()
    // create the grid
    grid = new int[7][6];
    // initialize the gridc
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    // set the position to a default value
    grid[column][row] = 0;
    public boolean done()
    boolean flags =true;
    for (int row=0; row<6; row++)
    for (int column=0; column<7; column++)
    if(grid[column][row] == 0)
    flags=false;
    return flags;
    public void paint(Graphics g)
    public void paintBoard(boolean flag, Graphics g)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    if(flag==false)
    index++;
    if(index%2==0)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    else
    g.setColor(Color.WHITE);
    g.fillOval(x,y,80,80);
    TextField column =new TextField(10);
    if(flag==false)
    g.setFont(new Font("Times New Roman", Font.BOLD,24));
    g.setColor(Color.YELLOW);
    g.drawString("C",45,245);
    g.drawString("O",145,245);
    g.drawString("N",245,245);
    g.drawString("N",345,245);
    g.drawString("E",445,245);
    g.drawString("C",545,245);
    g.drawString("T",645,245);
    g.drawString("F",145,145);
    g.drawString("U",145,345);
    g.drawString("R",145,445);
    g.setColor(Color.BLUE);
    g.drawString("START",512,548);
    public void paintFinish(Graphics g, int player)
    int index= 0;
    g.setColor(Color.YELLOW);
    g.fillRect(0, 80, 700,700);
    g.setColor(Color.WHITE);
    //draws spaces
    for(int y =100; y<700; y=y+100)
    for(int x =10; x<700; x=x+100)
    index++;
    if(player==1)
    g.setColor(Color.RED);
    else
    g.setColor(Color.BLACK);
    g.fillOval(x,y,80,80);
    public boolean hasWon(Graphics g, int player)
    boolean status = false;
    // check for a horizontal win
    for (int row=0; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row] &&
    grid[column][row] == grid[column+2][row] &&
    grid[column][row] == grid[column+3][row] &&
    grid[column][row] == player)
    status = true;
    // check for a vertical win
    for (int row=0; row<3; row++)
    for (int column=0; column<7; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column][row+1] &&
    grid[column][row] == grid[column][row+2] &&
    grid[column][row] == grid[column][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (positive slope)
    for (int row=0; row<3; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row+1] &&
    grid[column][row] == grid[column+2][row+2] &&
    grid[column][row] == grid[column+3][row+3]&&
    grid[column][row] == player)
    status = true;
    // check for a diagonal win (negative slope)
    for (int row=3; row<6; row++)
    for (int column=0; column<4; column++)
    if (grid[column][row] != 0 &&
    grid[column][row] == grid[column+1][row-1] &&
    grid[column][row] == grid[column+2][row-2] &&
    grid[column][row] == grid[column+3][row-3]&&
    grid[column][row] == player)
    status = true;
    if(status)
    paintFinish(g, player);
    return status;
    public void place(int player, int column, Graphics g)
    int index=0;
    if(column==1)
    index=place1;
    if(column==2)
    index=place2;
    if(column==3)
    index=place3;
    if(column==4)
    index=place4;
    if(column==5)
    index=place5;
    if(column==6)
    index=place6;
    if(column==7)
    index=place7;
    grid[column-1][index]=player;
    if(player==player1)
    g.setColor(Color.RED);
    if(player==player2)
    g.setColor(Color.BLACK);
    g.fillOval((column*100)+10,(index+1)*100,80,80);
    if(column==1)
    place1--;
    if(column==2)
    place2--;
    if(column==3)
    place3--;
    if(column==4)
    place4--;
    if(column==5)
    place5--;
    if(column==6)
    place6--;
    if(column==7)
    place7--;
    }

    gamefreak1192 wrote:
    I am using an APPLET and i want to use JOptionpane it didnt work when i used it in the paint method. So i want to make a runner to make the program work. I don't know why the Graphics g = new Graphics isnt working PLEASE HELP. Email the revised code to my email at [email protected] URGENT FOR TOMORROW PLEASE HELP. should i have a spearate class for the runner, just email me please if you can help.
    This is bloody ridiculous. You want somebody to do your work for you, you can't be bothered to carry on a discussion here and ask for private email, and you expect somebody else to make your urgency (i.e. lousy time management) their problem. You got big brass ones, kid.

  • Command or Canvas Events for Recording ?? Please Help..

    Hi I am Abhijith I am a total newbie to the j2me world, And I am learning it now,
    My project topic is "Bluetooth Walkie Talkie " , And I am trying my best and putting
    all my efforts to code incrementally by learning , Before I could implement bluetooth,
    I thought let me complete the recording The audio and playing part first,
    The recording and playing of audio is working fine , But i would like to do it a real manner as Real Walkie talkie does, I want to record audio ONLY when the Key is being
    pressed , and when its released it should exit the player hence saving the recorded file,
    (Actually i dont want to save it in future,i would be sending the bytearray though the bluetooth , but for now , I want the Current module to be ready)
    I tried my best searching online to implement my requirement but the couldnot find
    such events I found Canva's KEYPRESS, KEYRELEASE , etc events but they dint not
    serve my purpose, Let me clearly tell where I am stuck , After the midlet starts(by launching it) then i would like to press a key( keypressed say No 5) for certain
    amount of time and the audio should be recorded only for the keypressed duration ,
    after I release , it should stop recording and save as a wav file .
    Whats happening is When i keep the key pressed , The midlet asks whether to allow
    the recording , for this purpose when I release key the control is going out, and
    i am not able to achieve the needed , I am posting the code here, Please Help me.
    I am not asking for the complete spoon feeding or ready made code, But as a beginner
    I need help from you all to learn and implement it.(at least it should satisfy me,i would feel i have learnt something then)
    Here below is my code ( i AM using WTK 2.5 )
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.*;
    import java.io.*;
    import javax.microedition.media.control.*;
    import java.util.*;
    import javax.microedition.io.*;
    import javax.microedition.io.file.*;
    public class Key extends MIDlet{
      private Display  display;
      private KeyCodeCanvas canvas;
      public Key(){
        display = Display.getDisplay(this);
        canvas  = new KeyCodeCanvas(this);
      protected void startApp(){
        display.setCurrent(canvas);
      protected void pauseApp(){}
      protected void destroyApp( boolean unconditional ){
        notifyDestroyed();
    class KeyCodeCanvas extends Canvas implements CommandListener{
      private Command exit;
         public StringItem message ;
         private Player player;
         private byte[] recordedAudioArray = null;
      private String keyValue = null;
      private Key midlet;
         Thread t = null;
         private String eventType = null;
      public KeyCodeCanvas(Key midlet){
        this.midlet = midlet;
        exit = new Command("Exit", Command.EXIT, 1);
        addCommand(exit);
        setCommandListener(this);
      protected void paint(Graphics g){
          g.setColor(255, 0, 0);
          g.fillRect(0, 0, getWidth(), getHeight());
        if (keyValue != null){
          g.setColor(0, 0, 255);
           g.drawString(keyValue + eventType+message, getWidth() / 2, getHeight() / 2,
         Graphics.TOP | Graphics.HCENTER);
      public void commandAction(Command c, Displayable d){
        String label = c.getLabel();
        if(label.equals("Exit"))
          midlet.destroyApp(true);
      protected void keyPressed(int keyCode){
         eventType = "pressed";
        keyValue = getKeyName(keyCode);
        repaint();
      public void keyReleased(int keyCode)
           try
                eventType = "released";
                keyValue = getKeyName(keyCode);
                repaint();
           catch (Exception e)
                System.out.print(e);
      public void keyRepeated(int keyCode)
           eventType = "repeated";
           keyValue = getKeyName(keyCode);
           try
                Thread t1 = new Thread()
                     public void run()
                          try
                               player = Manager.createPlayer("capture://audio?encoding=pcm");
                               player.realize();
                               RecordControl rc = (RecordControl)player.getControl("RecordControl");
                               ByteArrayOutputStream output = new ByteArrayOutputStream();
                               rc.setRecordStream(output);
                               rc.startRecord();
                               player.start();
                               eventType = "Recording";
                               message.setText("Recording...");
                               Thread.sleep(5000);
                               message.setText("Recording Done!");
                               rc.commit();
                               recordedAudioArray = output.toByteArray();
                               player.close();
                          catch (Exception e)
                }; t1.start();
           catch (Exception e)
           repaint();
         //Runnable r1 = new Runnable()
         //    public void run()
         //        try
         //            System.out.print(" here 1");
         //            message.setText(" here 1 ");
         //            player = Manager.createPlayer("capture://audio?encoding=pcm");
         //            player.realize();
         //            RecordControl rc = (RecordControl)player.getControl("RecordControl");
         //            ByteArrayOutputStream output = new ByteArrayOutputStream();
         //            rc.setRecordStream(output);
         //            rc.startRecord();
         //            player.start();
         //            eventType = "Recording";
         //            message.setText("Recording...");
         //            Thread.sleep(5000);
         //            message.setText("Recording Done!");
         //            rc.commit();
         //            recordedAudioArray = output.toByteArray();
         //            player.close();
         //        catch (Exception e)
    }I am really sorry at the end I messed with the code and its altered a Lot, But hope the
    logic Will is clear which is my requirement . I know the code for recording and
    playing is not complete as said, i Messed around a working code and tried adding Canavs
    for keyrepeat method,tried putting a thread around , AT last totally messed,
    I tried working on this for two days but couldn't be successfull , Please Help me!!
    The control goes out when midlet asks whether to allow recording ,
    I thank you anticipation ...
    -Abhijith Rao

    Midlet asking whether to allow the recording are typical permissions prompts specified by MIDP security policy. You need to sign the MIDlet and give it proper permissions.
    Problems like this were discussed in an older thread at WTK forum: *[MIDlet keeps asking for permission.|http://forums.sun.com/thread.jspa?threadID=5347313]* According to one of the posters in the thread, +"...I got it to work on the emulator by setting the permission to 'manufacturer'. It runs smoothly without annoying questions..."+
    If you're interested, check documentation and tutorials on MIDP security policy for more details.
    For events to record audio only when the key is being pressed, consider GameCanvas API, method getKeyStates.
    I am not certain though if doing it this way is a good idea. I doubt that phone users have same habits as those of walkie-talkies; for them it might be indeed more comfortable to use single simple key presses to start and finish recording.

  • I updated to Firefox 7 and now the scrollwheel on my touchpad doesn't work. Have tried updating my device driver, and restarting with add ons disabled. Please help!

    OS- Windows 7
    Upgraded from Firefox 3. I tried updating to FF 4 a while ago and had the same problem, so I went back to 3. Decided it was time to upgrade and the problem recurred. Please help!

    Try to modify the pref <b>ui.trackpoint_hack.enabled</b> on the about:config page from the default value -1 to 0 or 1 to see if that makes the scroll pad work.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)

  • I'm in a java programming class and i'm stuck.. so please help me guys...

    Please help me, i really need help.
    Thanks a lot guys...
    this is my error:
    C:\Temp>java Lab2
    Welcome!
    This program computes the average, the
    exams
    The lowest acceptable score is 0 and th
    Please enter the minimum allowable scor
    Please enter the maximum allowable scor
    Was Exam1taken?
    Please Enter Y N or Q
    y
    Enter the Score for Exam1:
    65
    Was Exam2taken?
    Please Enter Y N or Q
    y
    Enter the Score for Exam2:
    32
    Was Exam3taken?
    Please Enter Y N or Q
    y
    Enter the Score for Exam3:
    65
    Was Exam4taken?
    Please Enter Y N or Q
    y
    Enter the Score for Exam4:
    32
    Was Exam5taken?
    Please Enter Y N or Q
    y
    Enter the Score for Exam5:
    32
    Score for Exam1 is:65
    Score for Exam2 is:32
    Score for Exam3 is:32
    Score for Exam4 is:32
    Score for Exam5 is:32
    the Minimum is:0
    the Maximum is:0
    Can't compute the Average
    Can't compute the Variance
    Can't compute the Standard Deviation
    this is my code:
    // Lab2.java
    // ICS 21 Fall 2002
    // Read in scores for a student's exams, compute statistics on them, and print out
    // the scores and statistics.
    public class Lab2
         // Create a manager for this task and put it to work
         public static void main(String[] args)
              ExamsManager taskManager = new ExamsManager();
              taskManager.createResults();
    // ExamsManager.java for Lab 2
    // ICS 21 Fall 2002
    // make these classes in the Java library available to this program.
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    import java.text.NumberFormat;
    // ExamsManager creates managers and contains the tools (methods) they need to do their
    // job: obtaining exam information, computing statistics and printing out that information
    class ExamsManager
         // INVALID_INT: special integer value to indicate that a non-integer
         // was entered when an integer was requested. It's chosen so as not to
         // conflict with other flags and valid integer values
         public static final int INVALID_INT = -9999;
         // valid user response constants:
         public static final String YES = "Y";               // user responded "yes"
         public static final String NO = "N";               // user responded "no"
         public static final String EXIT_PROGRAM = "Q";     // user responded "leave the program NOW"
         // INVALID_RESPONSE: special String value to indicate that something other than
         // "Y", "N" or "X" was entered when said was required
         public static final String INVALID_RESPONSE = "!";
         // ABSOLUTE_MIN_SCORE and ABSOLUTE_MAX_SCORE represent the smallest
         // minimum score and the largest maximum score allowed by the
         // program. (The allowable minimum and maximum for one
         // execution of the program may be different than these, but
         // they must both lie within this range.)
         public static final int ABSOLUTE_MIN_SCORE = 0;
         public static final int ABSOLUTE_MAX_SCORE = 1000;
         // The manager needs a place to store this student's exams
         private OneStudentsWork thisWork;
         // ...places to store the min and max scores allowed for these exams
         private int minAllowedScore;
         private int maxAllowedScore;
         // ...and a place to hold input coming from the keyboard
         BufferedReader console;
         //                    -------------------- Constructor --------------------
         // ExamsManager() make managers that delegate the major tasks of the program
         public ExamsManager()
         //                    -------------------- Processing methods --------------------
         // createResults() is the "manager at work": it calls assistants to welcome the user,
         // initializes things so we can read info from the keyboard,
         // obtain the minimum and maximum allowed scores,
         // obtain a student's work and comute the statistics on it and
         // print out the scores and the statistics
         public void createResults()
              // *** YOUR CODE GOES HERE ***
              printWelcomeMessage();
              readyKeyboard();
              obtainMinAndMaxAllowedScores();
              obtainOneStudentsWork();
              printResults();
         //                    -------------------- User input methods --------------------
         // readyKeyboard() sets up an input stream object 'console' connected to the keyboard
         // so that what's typed can be read into the program and processed.
         // Do not modify this code!
         private void readyKeyboard()
                   console = new BufferedReader(new InputStreamReader(System.in));
         // obtainMinAndMaxAllowedScores() asks the user to enter the minimum
         // and maximum allowable scores for this execution of the program.
         // Both the minimum and maximum allowable scores must be between
         // ABSOLUTE_MIN_SCORE and ABSOLUTE_MAX_SCORE (inclusive). This
         // method should continue to ask the user for a minimum until a
         // valid one is entered (or EXIT_PROGRAM is entered), then continue
         // to ask the user for a maximum until a valid one is entered. If
         // the minimum entered is greater than the maximum entered, the
         // whole thing should be done again.
         public void obtainMinAndMaxAllowedScores()
              // *** YOUR CODE GOES HERE ***
              int response = INVALID_INT;
              if (response >= minAllowedScore && response <= maxAllowedScore)
                   System.out.print("Please enter the minimum allowable score:");
                   response = getIntOrExit();
              while (response > maxAllowedScore || response < minAllowedScore)
                   System.out.print("Please enter the minimum allowable score:");
                   response = getIntOrExit();
              if (response <= ABSOLUTE_MAX_SCORE && response >= ABSOLUTE_MIN_SCORE)
                   System.out.print("Please enter the maximum allowable score:");
                   response = getIntOrExit();
              while (response > ABSOLUTE_MAX_SCORE || response < ABSOLUTE_MIN_SCORE)
                   System.out.print("Please enter the maximum allowable score:");
                   response = getIntOrExit();
              /*int response;
              String allowedMin;
              boolean done = true;
              do
                   done = true;
                   System.out.print("Please enter the minimum allowable score:");
                   response = getIntOrExit();
                   allowedMin = getYNOrExit();
                   if(allowedMin == EXIT_PROGRAM)
                        System.exit(0);
                   else if (response >= ABSOLUTE_MIN_SCORE)
                        done = true;
                   else if (response >= ABSOLUTE_MAX_SCORE)
                        done = false;
                        System.out.println("INVALID: " + INVALID_INT);
                        System.out.print("Please enter the minimum allowable score:");
                        response = getIntOrExit();
              }while (!done);
    /*          System.out.print("Please enter the maximum allowable score:");
              response = getIntOrExit();
              if (response <= ABSOLUTE_MAX_SCORE)
              return response;
              else if (response <= ABSOLUTE_MIN_SCORE)
                   response = INVALID_INT;
              while (response == INVALID_INT)
                   System.out.print("Please enter the maximum allowable score:");
                   response = getIntOrExit();
              do
                   done = true;
                   System.out.print("Please enter the minimum allowable score:");
                   response = getIntOrExit();
                   String allowedMax;
                   if(allowedMin == EXIT_PROGRAM)
                        System.exit(0);
                   if (response <= ABSOLUTE_MAX_SCORE)
                        done = true;
                   else if (response <= ABSOLUTE_MIN_SCORE)
                        done = false;
                        System.out.println("INVALID: " + INVALID_INT);
                        System.out.print("Please enter the maximum allowable score:");
                        response = getIntOrExit();
              }while (!done);
         // The overall strategy to building up a student work object is
         // to have the student-bulding method call on the exam-building
         // method, which calls upon user input methods to get exam info.
         // Thus, user entered info is successively grouped together
         // into bigger units to build the entire student information set.
         // obtainOneStudentsWork() builds the five exams
         // and constructs the student work object from them
         private void obtainOneStudentsWork()
              // *** YOUR CODE GOES HERE ***
              int index = 1;
              Exam exam1 = buildOneExam(index);
              index = 2;
              Exam exam2 = buildOneExam(index);
              index = 3;
              Exam exam3 = buildOneExam(index);
              index = 4;
              Exam exam4 = buildOneExam(index);
              index = 5;
              Exam exam5 = buildOneExam(index);
              thisWork = new OneStudentsWork(exam1, exam2, exam3, exam4, exam5);
         // buildOneExam(thisTest) reads the exam information for one exam and returns an
         // Exam object constructed from this information. Uses obtainWasExamTaken() to
         // determine if the exam was taken and obtainOneScore() to get the exam score, if needed.
         private Exam buildOneExam(int thisTest)
              // *** YOUR CODE GOES HERE ***
              int score = 0;
              if(obtainWasExamTaken(thisTest))
                   score = obtainOneScore(thisTest);
              return new Exam(score);
              else
              return new Exam();
              System.out.println("Enter score for exam1:");
              Exam exam1 = new Exam(getIntOrExit());
              System.out.println("Enter score for exam2:");
              Exam exam2 = new Exam(getIntOrExit());
              System.out.println("Enter score for exam3:");
              Exam exam3 = new Exam(getIntOrExit());
              System.out.println("Enter score for exam4:");
              Exam exam4 = new Exam(getIntOrExit());
              System.out.println("Enter score for exam5:");
              Exam exam5 = new Exam(getIntOrExit());
         // obtainWasExamTaken(thisTest) keeps asking the user whether 'thisTest' was taken
         // (e.g., "Was exam 1 taken? Enter Y, N or Q", if thisTest equals 1)
         // until s/he provides a valid response. If Q is entered, we leave the
         // program immediately; if Y or N (yes or no), return true if yes, false if no
         private boolean obtainWasExamTaken(int thisTest)
              // *** YOUR CODE GOES HERE ***
              String response = INVALID_RESPONSE;
              System.out.println("Was Exam" + thisTest + "taken?");
              while (response.equals(INVALID_RESPONSE))
                   System.out.println("Please Enter" + " " + YES + " " + NO + " " + "or" + " " + EXIT_PROGRAM);
                   response = getYNOrExit();
              if (response.equals(YES))
              return true;
              else
              return false;
         // obtainOneScore(thisTest) keeps asking the user to enter a score for
         // 'thisTest' (e.g., "Enter the score for exam 1", is thisTest equals 1)
         // until s/he provides one within range or s/he tells us to exit the program.
         private int obtainOneScore(int thisTest)
              // *** YOUR CODE GOES HERE ***
              int response = INVALID_INT;
              if (response >= minAllowedScore && response <= maxAllowedScore);
                   System.out.println("Enter the Score for Exam" + thisTest + ":");
                   response = getIntOrExit();
              while (response > ABSOLUTE_MAX_SCORE || response < ABSOLUTE_MIN_SCORE)
                   System.out.println("INVALID: " + INVALID_INT);
                   System.out.println("Please Enter again:");
                   response = getIntOrExit();
              return response;
         // scoreIsWithinRange() returns true if the given score is inside of
         // the allowable range and false if it is out of range
         private boolean scoreIsWithinRange(int score)
              // *** YOUR CODE GOES HERE ***
              if (score >= minAllowedScore && score <= maxAllowedScore)
                   return true;
              else
                   return false;
         // getYNQ() reads a String from the console and returns it
         // if it is "Y" or "N" or exits the program if "Q" is entered;
         // the method returns INVALID_RESPONSE if the response is other
         // than"Y", "N" or "Q".
         // Do not modify this code!
         private String getYNOrExit()
              String usersInput = INVALID_RESPONSE;
              try
                   usersInput = console.readLine();
              catch (IOException e)
                   // never happens with the keyboard...
              usersInput = usersInput.toUpperCase();
              if (usersInput.equals(EXIT_PROGRAM))
                   System.out.println("Leaving...");
                   System.exit(0);
              if (usersInput.equals(YES) || usersInput.equals(NO))
                   return usersInput;
              else
                   return INVALID_RESPONSE;
         // getIntOrExit() reads an integer from the console and returns it.
         // If the user types in "Q", the program exits. If an integer is entered,
         // it is returned. If something that is not an integer (e.g. "Alex"), the
         // program returns INVALID_INT
         // Do not modify this code!
         private int getIntOrExit()
              String usersInput = "";
              int theInteger = 0;
              try
                   usersInput = console.readLine();
              catch (IOException e)
                   // never happens with the keyboard...
              // if the user wants to quit, bail out now!
              if(usersInput.toUpperCase().equals(EXIT_PROGRAM))
                   System.out.println("Program halting at your request.");
                   System.exit(0);
              // see if we have an integer
              try
                   theInteger = Integer.parseInt(usersInput);
              catch (NumberFormatException e)
                   // user's input was not an integer
                   return INVALID_INT;
              return theInteger;
         //                    -------------------- User output methods --------------------
         // printWelcomeMessage() prints a welcome message to the user explaining
         // what the program does and what it expects the user to do. In
         // particular, it needs to tell the user the absolute lowest and
         // highest acceptable exam scores
         private void printWelcomeMessage()
              // *** YOUR CODE GOES HERE ***
              System.out.println("Welcome!");
              System.out.println("This program computes the average, the variance, and the standard deviation of 5 exams");
              System.out.println("The lowest acceptable score is 0 and the highest is 1000");
         // printResults() prints all of the scores present, then prints the
         // statistics about them. The statistics that can have factional parts
         // -- average, variance and standard deviation -- should be printed with
         // exactly three digits after the decimal point. If a statistic could not be
         // computed, a message to that effect should print (NOT the "phony" value stored
         // in the statistic to tell the program that the statistic could not be computed).
         public void printResults()
              // These statements create a NumberFormat object, which is part
              // of the Java library. NumberFormat objects know how to take
              // doubles and turn them into Strings, formatted in a particular
              // way. First, you tell the NumberFormat object (nf) how you'd like
              // the doubles to be formatted (in this case, with exactly 3
              // digits after the decimal point). When printing a double you call
              // format to format it -- e.g. nf.format(the-number-to-format)
              NumberFormat nf = NumberFormat.getInstance();
              nf.setMinimumFractionDigits(3);
              nf.setMaximumFractionDigits(3);
              // *** YOUR CODE GOES HERE ***
              System.out.println("Score for Exam1 is:" + thisWork.getExam1().getScore());
              System.out.println("Score for Exam2 is:" + thisWork.getExam2().getScore());
              System.out.println("Score for Exam3 is:" + thisWork.getExam3().getScore());
              System.out.println("Score for Exam4 is:" + thisWork.getExam4().getScore());
              System.out.println("Score for Exam5 is:" + thisWork.getExam5().getScore());
              if (thisWork.getStatistics().getMinimum() == Statistics.CANT_COMPUTE_STATISTIC)
                   System.out.println("Can't compute the Minimum");
              else
                   System.out.println("the Minimum is:" + thisWork.getStatistics().getMinimum());
              if (thisWork.getStatistics().getMaximum() == Statistics.CANT_COMPUTE_STATISTIC)
                   System.out.println("Can't compute the Minimum");
              else
                   System.out.println("the Maximum is:" + thisWork.getStatistics().getMaximum());
              if (thisWork.getStatistics().getAverage() == Statistics.CANT_COMPUTE_STATISTIC)
                   System.out.println("Can't compute the Average");
              else
                   System.out.println("the Average is:" + thisWork.getStatistics().getAverage());
              if (thisWork.getStatistics().getVariance() == Statistics.CANT_COMPUTE_STATISTIC)
                   System.out.println("Can't compute the Variance");
              else
                   System.out.println("the Variance is:" + thisWork.getStatistics().getVariance());
              if (thisWork.getStatistics().getStandardDeviation() == Statistics.CANT_COMPUTE_STATISTIC)
                   System.out.println("Can't compute the Standard Deviation");
              else
                   System.out.println("the Standard Deviation is:" + thisWork.getStatistics().getStandardDeviation());
    // OneStudentsExams.java for Lab 2
    // ICS 21 Fall 2002
    // OneStudentsWork is the exams and the statistics computed from
    // them that comprise one student's work
    class OneStudentsWork
         public static final int NUMBER_OF_EXAMS = 5;
         // The student is offered five exams...
         private Exam exam1;
         private Exam exam2;
         private Exam exam3;
         private Exam exam4;
         private Exam exam5;
         // The statistics on those exams
         Statistics studentStats;
         //                    -------------------- Constructor --------------------
         // Takes five constructed exam objects and store them for this student.
         // Constructs a statistics object that holds the stats for these exams and
         // store it in studentStats.
         public OneStudentsWork(Exam test1, Exam test2, Exam test3, Exam test4, Exam test5)
              // *** YOUR CODE GOES HERE ***
              exam1 = test1;
              exam2 = test2;
              exam3 = test2;
              exam4 = test4;
              exam5 = test5;
              studentStats = new Statistics(test1, test2, test3, test4, test5);
         //                    -------------------- Accessor methods --------------------
         // getExamX() methods make available ExamX
         public Exam getExam1()
              return exam1;
         public Exam getExam2()
              return exam2;
         public Exam getExam3()
              return exam3;
         public Exam getExam4()
              return exam4;
         public Exam getExam5()
              return exam5;
         // getStatistics() makes available the Statistics object that is part of this student's work
         public Statistics getStatistics()
              return studentStats;
    // Statistics.java for Lab 2
    // ICS 21 Fall 2002
    // A Statistics object stores the statistics for a group of Exams.
    class Statistics
         // This constant denotes a statistic that cannot be
         // computed, such as an average of zero scores or a variance
         // of one score.
         public static final int CANT_COMPUTE_STATISTIC = -9999;
         // The stats
         private int minimum;
         private int maximum;
         private int numberOfExamsTaken;
         private double average;
         private double variance;
         private double standardDeviation;
         //                    -------------------- Constructor --------------------
         // Calculates (initializes) the statistics, using passed-in exams.
         // Note that the order of computing thst stats matters, as some
         // stats use others; for instance, variance must be computed before
         // standard deviation.
         public Statistics(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              calculateAverage(exam1,exam2,exam3,exam4,exam5);
              calculateVariance(exam1,exam2,exam3,exam4,exam5);
              calculateStandardDeviation(exam1,exam2,exam3,exam4,exam5);
         //                    -------------------- Accessor methods --------------------
         // getNumberOfExamsTaken() makes available the number of exams this student undertook
         public int getNumberOfExamsTaken()
              return numberOfExamsTaken;
         // getMinimum() makes the minimum available
         public int getMinimum()
              return minimum;
         // getMaximum() makes the maximum available
         public int getMaximum()
              return maximum;
         // getAverage() makes the average available
         public double getAverage()
              return average;
         // getVariance() make the variance available
         public double getVariance()
              return variance;
         // getStandardDeviation() make the standard deviation available
         public double getStandardDeviation()
              return standardDeviation;
         //                    -------------------- Statistics methods --------------------
         //     ---> Note: all statistics are to be computed using the number of exams taken
         // calculateNumberOfExamsTaken() computes the number of tests the student took
         // and stores the result in 'numberOfExamsTaken'
         // (Note this statistic can always be computed.)
         private void calculateNumberOfExamsTaken(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              numberOfExamsTaken = OneStudentsWork.NUMBER_OF_EXAMS;
         // calculateMinimum() sets 'minimum' to the minimum score of exams taken, or
         // to CANT_COMPUTE_STATISTIC if a minimum can't be computed.
         private void calculateMinimum(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              /*min = exam1.getScore();
              if (min > exam2.getScore())
                   min = exam2.getScore();
              if (min > exam3.getScore())
                   min = exam3.getScore();
              if (min > exam4.getScore())
                   min = exam4.getScore();
              if (min > exam5.getScore())
                   min = exam5.getScore();
              if(numberOfExamsTaken == 0)
                   minimum = CANT_COMPUTE_STATISTIC;
              else if(numberOfExamsTaken == 1)
                   minimum = exam1.getScore();
              else
                   minimum = exam1.getScore();
                   if(numberOfExamsTaken >= 2 && numberOfExamsTaken <= minimum)
                        minimum = exam2.getScore();
                   if(numberOfExamsTaken >= 3 && numberOfExamsTaken <= minimum)
                        minimum = exam3.getScore();
                   if(numberOfExamsTaken >= 4 && numberOfExamsTaken <= minimum)
                        minimum = exam4.getScore();
                   if(numberOfExamsTaken >= 5 && numberOfExamsTaken <= minimum)
                        minimum = exam5.getScore();
              if (getMinimum() == ExamsManager.ABSOLUTE_MIN_SCORE)
                   minimum = exam1.getScore();
                   //exam1.getScore() = getMinimum();
              else
                   exam1.getScore() = CANT_COMPUTE_STATISTIC;
         // calculateMaximum() sets 'maximum' to the maximum score of exams taken, or
         // to CANT_COMPUTE_STATISTIC if a maximum can't be computed.
         private void calculateMaximum(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              /*if (maximum == ExamsManager.ABSOLUTE_MAX_SCORE)
              return true;
              else
              return CANT_COMPUTE_STATISTIC;*/
              max = exam1.getScore();
              if (max < exam2.getScore())
                   max = exam2.getScore();
              if (max < exam3.getScore())
                   max = exam3.getScore();
              if (max < exam4.getScore())
                   max = exam4.getScore();
              if (max < exam5.getScore())
                   max = exam5.getScore();
              if(numberOfExamsTaken == 0)
                   maximum = CANT_COMPUTE_STATISTIC;
              else if(numberOfExamsTaken == 1)
                   maximum = exam1.getScore();
              else
                   maximum = exam1.getScore();
                   if(numberOfExamsTaken >= 2 && numberOfExamsTaken >= maximum)
                        maximum = exam2.getScore();
                   if(numberOfExamsTaken >= 3 && numberOfExamsTaken >= maximum)
                        maximum = exam3.getScore();
                   if(numberOfExamsTaken >= 4 && numberOfExamsTaken >= maximum)
                        maximum = exam4.getScore();
                   if(numberOfExamsTaken >= 5 && numberOfExamsTaken >= maximum)
                        maximum = exam5.getScore();
         // calculateAverage() computes the average of the scores for exams taken and
         // stores the result in 'average'. Set to CANT_COMPUTE_STATISTIC if there
         // are no tests taken.
         private void calculateAverage(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              if (numberOfExamsTaken == 5)
                   average = (exam1.getScore()+exam2.getScore()+exam3.getScore()+exam4.getScore()+exam5.getScore()/OneStudentsWork.NUMBER_OF_EXAMS);
              else if (numberOfExamsTaken == 4)
                   average = (exam1.getScore()+exam2.getScore()+exam3.getScore()+exam4.getScore()/OneStudentsWork.NUMBER_OF_EXAMS);
              else if (numberOfExamsTaken == 3)
                   average = (exam1.getScore()+exam2.getScore()+exam3.getScore()/OneStudentsWork.NUMBER_OF_EXAMS);
              else if (numberOfExamsTaken == 2)
                   average = (exam1.getScore()+exam2.getScore()/OneStudentsWork.NUMBER_OF_EXAMS);
              else if (numberOfExamsTaken == 1)
                   average = (exam1.getScore()/OneStudentsWork.NUMBER_OF_EXAMS);
              else if (numberOfExamsTaken == 0)
                   average = CANT_COMPUTE_STATISTIC;
         // calculateVariance() calculates the returns the variance of the
         // scores for exams taken and stores it in 'variance'
         // For a small set of data (such as this one), the formula for calculating variance is
         // the sum of ((exam score - average) squared) for scores of exams taken
         // divided by (the number of scores - 1)
         // Set to CANT_COMPUTE_STATISTIC if there are fewer than two tests taken.
         private void calculateVariance(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              if (numberOfExamsTaken == 5)
                   variance = ((exam1.getScore()-average)*(exam1.getScore()-average)+(exam2.getScore()-average)*(exam2.getScore()-average)+(exam3.getScore()-average)*(exam3.getScore()-average)+(exam4.getScore()-average)*(exam4.getScore()-average)+(exam5.getScore()-average)*(exam5.getScore()-average))/4;
              else if (numberOfExamsTaken == 4)
                   variance = ((exam1.getScore()-average)*(exam1.getScore()-average)+(exam2.getScore()-average)*(exam2.getScore()-average)+(exam3.getScore()-average)*(exam3.getScore()-average)+(exam4.getScore()-average)*(exam4.getScore()-average))/4;
              else if (numberOfExamsTaken == 3)
                   variance = ((exam1.getScore()-average)*(exam1.getScore()-average)+(exam2.getScore()-average)*(exam2.getScore()-average)+(exam3.getScore()-average)*(exam3.getScore()-average))/4;
              else if (numberOfExamsTaken == 2)
                   variance = ((exam1.getScore()-average)*(exam1.getScore()-average)+(exam2.getScore()-average)*(exam2.getScore()-average))/4;
              else if (numberOfExamsTaken < 2)
                   variance = CANT_COMPUTE_STATISTIC;
         // calculateStandardDeviation() calculates the standard
         // deviation of the scores of taken exams and stores
         // it in 'standardDeviation'
         // The formula for calculating standard deviation is just
         // the square root of the variance
         private void calculateStandardDeviation(Exam exam1, Exam exam2, Exam exam3, Exam exam4, Exam exam5)
              // *** YOUR CODE GOES HERE ***
              if (variance == CANT_COMPUTE_STATISTIC)
                   standardDeviation = CANT_COMPUTE_STATISTIC;
              else
                   standardDeviation = (Math.sqrt(variance));
    // Exam.java for Lab 2
    // ICS 21 Fall 2002
    // An Exam object stores information about one exam
    class Exam
         private boolean examTaken;     //was the exam taken? true for yes, false for no
         private int score;               //the exam's score; = 0 if test not taken
         //                    -------------------- Constructors --------------------
         // Construct a taken exam; it has score 's'
         public Exam(int s)
              score = s;
              examTaken = true;
         // Construct an exam not taken; it has a score of 0
         public Exam()
              score = 0;
              examTaken = false;
         //                    -------------------- Accessor methods --------------------
         // Make the score of an exam available
         public int getScore()
              return score;
         // Make available whether an exam was taken
         public boolean wasTaken()
              return examTaken;

    Your code is absolutely unreadable - even if someone was willing to
    help, it's simply impossible. I do give you a few tips, though: If you
    understand your code (i.e. if it really is YOUR code), you should be
    able to realize that your minimum and maximum never get set (thus they
    are both 0) and your exam 3 is set with the wrong value. SEE where
    those should get set and figure out why they're not. Chances are you
    are doing something to them that makes one 'if' fail or you just
    erroneously assign a wrong variable!

  • Please help me. I am getting an error while launching an web start applic

    I am getting the following error while launching an java web start apllication.
    Exception in thread"javaWSApplicationMains"java.lan.NoClassDefFound:SimpleSerial.
    The jnlp file i have used is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Aeon HHBM Manager Application -->
    <jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
    <information>
    <title>Aeon HHBM Manager</title>
    <vendor>ME</vendor>     
    <description>Aeon HHBM Manager</description>
    </information>
    <offline_allowed/>
    <resources>
    <j2se version="1.4+"/>
    <jar href="aeon.jar"/>
    </resources>
    <application-desc main-class="Aeon_PManager" />
    <component-desc/>
    </jnlp>
    The java code is as follows:
    SimpleSerial.java
    import java.io.*;
    //import java.lang.*;
    //import java.lang.ClassNotFoundException;
    Interface class for SimpleSerial.
    If you don't know what an interface is, don't worry. An interface defines the functions
    that can be called by implementors of this class. Currently there are two implementors,
    SimpleSerialNative, and SimpleSerialJava. There might be more in the future.
    SimpleSerialNative requires the file "SimpleSerialNative.dll" to be in the same folder as your Java
    project file. It's that simple.
    SimpleSerialJava requires the correct installation of Sun's Javacomm communication package. It's much
    more powerful, but it can be tricky for the newcomer to configure, and use.
    If you have problems with one, why don't you try the other.
    A VERY SIMPLE IMPLEMENTATION:
    public static void main(String args[]) {
    SimpleSerial ss; // delcare the SimpleSerial object
    ss = new SimpleSerialNative(2); // The argument is the commport number. There is no Comm0.
    ss.writeByte((byte)'a'); // write a byte to the serial port
    // Give the PIC chip time to digest the byte to make sure it's ready for the next byte.
    try { Thread.sleep(1); } catch (InterruptedException e) {}
    ss.writeByte((byte)'!'); // write another byte to the serial port
    String inputString = ss.readString(); // read any string from the serial port
    System.out.println("I read the string: " + inputString);
    A few important things to note:
    1. When you write data to the serial port, it just writes the data, whether or not the PIC chip is
    ready to receive data. There's no handshaking or signaling. If you send data and the PIC chip
    isn't ready for it, it will be ignored. Some PIC chips have a hardware UART which will buffer a
    few bytes of data for later retrieval. But this isn't a cure-all. If the buffer fills up, it
    creates an error condition which prevents further data from being read. You need to include
    custom PIC code to reset the error flag.
    2 In contrast to the PIC chip, the computer has a rather large hardware buffer. If the PIC chip
    sends serial data to your computer when you're not around to read it, it gets stored.
    3. If you make a call to readByte(), and there's no data to be read, readByte() waits until there
    is data. If you want to know how much data (if any) is available, make a call to available().
    4. Conversely, if you make a call to readBytes() or readString() and there's no data to be read,
    readBytes() returns a byte array of zero length, and readString() returns and empty string.
    5. If you want to use Sun's JavaComm package instead of this code, subsitute your calls to
    new SimpleSerialNative(2);
    with
    new SImpleSerialJava(2);
    public interface SimpleSerial {
    // These are copied right out of WINBASE.H
    // Most applications should be fine with the defaults.
    public static final int NOPARITY = 0;
    public static final int ODDPARITY = 1;
    public static final int EVENPARITY = 2;
    public static final int MARKPARITY = 3;
    public static final int SPACEPARITY = 4;
    public static final int ONESTOPBIT = 0;
    public static final int ONE5STOPBITS = 1;
    public static final int TWOSTOPBITS = 2;
    Returns the number of bytes available at the time of this call.
    It's possible there are more bytes by the time readByte() or
    readBytes() is executed. But there will never be fewer.
    public int available();
    public void waitForData(int n);
    public boolean writeString(String string);
    returns TRUE if port is fully operationsal
    returns FALSE if there is a problem with the port
    public boolean isValid();
    Be sure to close your serial port when done. Note that port is
    automatically closed on exit if you don't close it yourself
    public void close();
    Reads a single byte from the input stream.
    Return value will be from -128 to 127 (inclusive)
    If no data at serial port, waits in routine for data to arrive.
    Use available() to check how much data is available.
    If error, returns 256.
    public int readByte();
    Reads all the bytes in the serial port.
    If no bytes availble, returns array with zero elements.
    Never waits for data to arrive
    public byte[] readBytes();
    Reads bytes from serial port and converts to a text string.
    DO NOT use this routine to read data. Char->Byte converstion
    does strange things when the values are negative. For non-
    text values, use readBytes() above
    public String readString();
    Writes a single byte to the serial port.
    This writes the data, whether the PIC is ready to receive or not.
    Be careful not to overwhelm the PIC chip with data.
    On pics without a hardware UART, the data will be ignored.
    On pics with a hardware UART, overflowing will loose data AND require
    the UART on the PIC to be reset. You can reset the UART in PIC code,
    or manually turn the PIC off and then on.
    NOTE: A byte has a value in the range of -128 to 127
    NOTE: If you want to write a character, you need to cast it to a byte,
    for example: simpleSerial.writeByte((char)'b');
    public boolean writeByte(byte val);
    For more advanced use. Gets the input stream associated with serial port
    public InputStream getInputStream();
    For more advanced use. Gets the output stream associated with serial port
    public OutputStream getOutputStream();
    Please help I am the beginner in web start.Please

    Notes:
    1) Please use the code tags when posting code or JNLP/HTML. It helps to retain indentation and avoids asterisks and plus sings being interpreted as formatting marks. To do that, select the code/JNLP etc. and click the CODE button seen on the Plain Text tab of the message posting form.
    2) That launch file is invalid. You might check it (and the project in general) using JaNeLA.
    3) The only place that SimpleSerial class could be, that the JRE would find, is in the root of aeon.jar. Is it actually there?

Maybe you are looking for

  • HP Laserjet 4 M plus

    I have the laserjet 4m plus plugged into the time capsule via a CAT5 cord and it worked fine in 10.5. Now I do not see the printer when I go to set it up. Does anyone know how to retrieve the IP address from the printer? Also which driver should I us

  • Imac jaguar - Part 2

    So i have mac OS X Tiger Server installed, i'm at the end of the server assistant and i want to hit the apply button but it's faded so i can't press it. I'm sure it's because i at the top it says i'm on "offline mode" how do i get online? <Post Reloc

  • How to change the transition time for a title in the new imovie

    With the new update I have lost how to do a simple task. I have titles in the lower left hand corner ine a video (pictured below). I would like for the titles to change seamlessly, without blinking after each new title appears. Sort of like a digital

  • OpenScript: How do you test for object/text existance programmatically?

    Hi, All; I hope someone can help me; kind of new to OATS. I can't figure out how to test for object/text existence and return results back to the script. There are methods for verifying text and objects; i.e. Web.verifyText Web.assertText These metho

  • Need help with correct setup for SuiteLink - Get ACE error message 7078

    When I enable SuiteLink via: ace_set_mode( g_ah, ACE_MODE_ENABLE_SUITELINK, TRUE ); ace_set_file( g_ah, ACE_DIR_SUITELINK, "D: PW 201108 SuiteLink" ); ace_set_file( g_ah, ACE_DIR_NAME_PARSING_FILES, (char*)"D: PW 201108 ncoalink"); Right after ace_op