I need help with a lab from programming.

I need the following tasks implemented in the code I wrote below. I would really appreciate if someone could achieve this because it would help me understand the coding process for the next code I have to write. Below are the four classes of code I have so far.
save an array of social security numbers to a file
read this file and display the social security numbers saved
The JFileChooser class must be used to let the user select files for the storage and retrieval of the data.
Make sure the code handles user input and I/O exceptions properly. This includes a requirement that the main() routine does not throw any checked exceptions.
As a part of the code testing routine, design and invoke a method that compares the data saved to a file with the data retrieved from the same file. The method should return a boolean value indicating whether the data stored and retrieved are the same or not.
* SSNArray.java
* Created on February 28, 2008, 9:45 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package exceptionhandling;
import java.util.InputMismatchException; // program uses class InputMismatchException
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
* @author mer81348
public class SSNArray
    public static int SOCIAL_SECURITY_NUMBERS = 10;
    private String[] socialArray = new String[SOCIAL_SECURITY_NUMBERS];
    private int socialCount = 0;
    /** Creates a new instance of SSNArray */
    public SSNArray ()
    public SSNArray ( String[] ssnArray, int socialNumber )
        socialArray = ssnArray;
        socialCount = socialNumber;
    public int getSocialCount ()
        return socialCount;
    public String[] getSocialArray ()
        return socialArray;
    public void addSocial ( String index )
        socialArray[socialCount] = index;
        socialCount++;
    public String toString ()
        StringBuilder socialString = new StringBuilder ();
        for ( int stringValue = 0; stringValue < socialCount; stringValue++ )
            socialString.append ( String.format ("%6d%32s\n", stringValue, socialArray[stringValue] ) );
        return socialString.toString ();
    public void validateSSN ( String socialInput ) throws InputMismatchException, DuplicateName
        if (socialInput.matches ("\\d{9}"))
            return;
        else
            throw new InputMismatchException ("ERROR! Incorrect data format");       
* SSNArrayTest.java
* Created on February 28, 2008, 9:46 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package exceptionhandling;
import java.util.InputMismatchException; // program uses class InputMismatchException
import java.util.Scanner; // program uses class Scanner
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
* @author mer81348
public class SSNArrayTest
    /** Creates a new instance of SSNArrayTest */
    public SSNArrayTest ()
     * @param args the command line arguments
    public static void main (String[] args)
        // create Scanner to obtain input from command window
        Scanner input = new Scanner ( System.in );
        System.out.printf ( "\nWELCOME TO SOCIAL SECURITY NUMBER CONFIRMER\n" );
        SSNArray arrayStorage = new SSNArray ();
        for( int socialNumber = 0; socialNumber < SSNArray.SOCIAL_SECURITY_NUMBERS; )
            String socialString = ( "\nPlease enter a Social Security Number" );
            System.out.println (socialString);
            String socialInput = input.next ();
            try
                arrayStorage.validateSSN (socialInput);
                arrayStorage.addSocial (socialInput);
                socialNumber++;
            catch (InputMismatchException e)
                System.out.println ( "\nPlease reenter Social Security Number\n" + e.getMessage() );
            catch (DuplicateName e)
        System.out.printf ("\nHere are all your Social Security Numbers stored in our database:\n");
        System.out.printf ( "\n%8s%32s\n", "Database Index", "Social Security Numbers" );
        System.out.println (arrayStorage);
* SSNArrayExpanded.java
* Created on February 28, 2008, 9:52 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package exceptionhandling;
import java.util.InputMismatchException;
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
* @author mer81348
public class SSNArrayExpanded extends SSNArray
    /** Creates a new instance of SSNArrayExpanded */
    public SSNArrayExpanded ()
    public SSNArrayExpanded ( String[] ssnArray, int socialNumber )
        super ( ssnArray, socialNumber );
    public void validateSSN ( String socialInput ) throws InputMismatchException, DuplicateName
        super.validateSSN (socialInput);
            int storedSocial = getSocialCount ();
            for (int socialMatch = 0; socialMatch < storedSocial; socialMatch++ )
                if (socialInput.equals (getSocialArray () [socialMatch]))
                    throw new DuplicateName ();
        return;
* SSNArrayTestExpanded.java
* Created on February 28, 2008, 9:53 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package exceptionhandling;
import java.util.InputMismatchException; // program uses class InputMismatchException
import java.util.Scanner; // program uses class Scanner
import org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName;
* @author mer81348
public class SSNArrayTestExpanded
    /** Creates a new instance of SSNArrayTest */
    public SSNArrayTestExpanded ()
     * @param args the command line arguments
    public static void main (String[] args)
        // create Scanner to obtain input from command window
        Scanner input = new Scanner ( System.in );
        System.out.printf ( "\nWELCOME TO SOCIAL SECURITY NUMBER CONFIRMER\n" );
        SSNArrayExpanded arrayStorage = new SSNArrayExpanded(); 
        for( int socialNumber = 0; socialNumber < SSNArray.SOCIAL_SECURITY_NUMBERS; )
            String socialString = ( "\nPlease enter a Social Security Number" );
            System.out.println (socialString);
            String socialInput = input.next ();
            try
                arrayStorage.validateSSN (socialInput);
                arrayStorage.addSocial (socialInput);
                socialNumber++;
            catch (InputMismatchException e)
            catch (DuplicateName e)
                System.out.println ( "\nSocial Security Number is already claimed!\n" + "ERROR: " + e.getMessage() ); 
        System.out.printf ("\nHere are all your Social Security Numbers stored in our database:\n");
        System.out.printf ( "\n%8s%32s\n", "Database Index", "Social Security Numbers" );
        System.out.println (arrayStorage);
}

cotton.m wrote:
>
That writes creates the file but it doesn't store the social security numbers.True.Thanks for confirming that...
How do I get it to save?
Also, in the last post I had the write method commented out, the correct code is:
     System.out.printf ("\nHere are all your Social Security Numbers stored in our database:\n");
        System.out.printf ( "\n%8s%32s\n", "Database Index", "Social Security Numbers" );
        System.out.println ( arrayStorage );
        try
            File file = new File ("Social Security Numbers.java");
            // Create file if it does not exist
            boolean success = file.createNewFile ();
            if (success)
                  PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("Social Security Numbers.txt")));               
//                BufferedWriter out = new BufferedWriter (new FileWriter ("Social Security Numbers.txt")); 
                out.write( "what goes here ?" );
                out.close ();
                // File did not exist and was created
            else
                // File already exists
        catch (IOException e)
        System.exit (0);
}It still doesn't write.

Similar Messages

  • I need help with a download from Adobe

    I need help with Adode photoshop elements that I bought from Adobe. The download take forever. I can't get signed in very easy. It take forever

    Hi Kathy1963-1964,
    Welcome to Adobe Forum,
    You have photoshop elements 12, you can try downloading without the akamei downloader .
    http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html
    Please read the " very important instruction" prior to downoload.
    I would request you to disable the firewall & the antivirus prior to download.
    Let us know if it worked.
    Regards,
    Rajshree

  • Need help with generating keys from xml

    Hello,
    I am just learning about JCE and am haveing some problems with implementing a basic program.
    I have the following information:
    <RSAKeyValue>
    <Modulus>Base64EncodedString</Modulus>
    <Exponent>Base64EncodedString</Exponent>
    <P>Base64EncodedString</P>
    <Q>Base64EncodedString</Q>
    <DP>Base64EncodedString</DP>
    <DQ>Base64EncodedString</DQ>
    <InverseQ>Base64EncodedString</InverseQ>
    <D>Base64EncodedString</D>
    </RSAKeyValue>
    From which I need to construct a public and private key. I am using RSA algorithm for the encrypting and decrypting. I am using the org.bouncycastle.jce.provider.BouncyCastleProvider provider. Any help would be greatly appreciated.
    My questions are:
    1) Is it possible to create the public and private key from this data?
    2) How can I construct a public and private key from this data.
    Thank you in advance.
    Sunit.

    Thanks for your help...I am still having problems.
    I am now creating the public and private keys. I am generating the public exp, modulus, private exp, and the encrypted text from another source.
    so my questions are:
    1) How do I verfiy that the private and public keys that I generate are valid?
    2) How do I get the decrypted text back in a readable form?
    3) the decrypted text should read "ADAM"
    Here is a test I wrote:
    _________________STARTCODE_____________________
    import java.security.*;
    import java.security.spec.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.math.BigInteger;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    public class CryptTester
         protected Cipher encryptCipher = null;
         protected Cipher decryptCipher = null;
         private KeyFactory keyFactory = null;
         protected PublicKey publicKey = null;
         protected PrivateKey privateKey = null;
         private RSAPublicKeySpec publicKeySpec = null;
         private RSAPrivateKeySpec privateKeySpec = null;
         public CryptTester()
              /* Create Cipher for asymmetric encryption (
              * e.g., RSA),
              try
                   encryptCipher = Cipher.getInstance("RSA", "BC");
                   System.out.println("Successfully got encrypt Cipher" );
                   decryptCipher = Cipher.getInstance("RSA", "BC");
                   System.out.println("Successfully got decrypt Cipher" );
                   keyFactory = KeyFactory.getInstance("RSA" , "BC");
                   System.out.println("Successfully got keyFactory" );
              }catch ( NoSuchAlgorithmException nsae)
                   System.out.println("Exception1: " + nsae.toString() );
              catch ( NoSuchPaddingException nspe)
                   System.out.println("Exception2: " + nspe.toString() );
              catch ( java.security.NoSuchProviderException nspe)
                   System.out.println("Exceptiont6: " + nspe.toString() );
              /* Get the private and public keys specs
              BigInteger publicMod = new BigInteger ("86e0ff4b9e95bc6dcbfd6673b33971d4f728218496adcad92021923a9be815ddb7ecf17c06f437634c62fa999a293da90d964172a21d8ce74bd33938994fbd93377f7d83ce93d523782639c75221a3c91b53927a081b2b089a61770c6d112d78d5da8a6abc452d39a276787892080d6cf17dd09537c1ec5551d89567345068ef", 16);
              BigInteger publicExp = new BigInteger ("5");
              BigInteger privateExp = new BigInteger ("50ed65fa2bf3710ead980a456b88dde62de4e0e9", 16);
              publicKeySpec = new java.security.spec.RSAPublicKeySpec( publicMod, publicExp );
              privateKeySpec = new java.security.spec.RSAPrivateKeySpec( publicMod, privateExp);
              try
                   privateKey = keyFactory.generatePrivate(privateKeySpec);
                   publicKey = keyFactory.generatePublic(publicKeySpec);
              }catch ( InvalidKeySpecException ivse)
                   System.out.println("Exception3: " + ivse.toString() );
              try
              * initialize it for encryption with
              * recipient's public key
                   encryptCipher.init(Cipher.ENCRYPT_MODE, publicKey );
                   decryptCipher.init(Cipher.DECRYPT_MODE, privateKey );
         }catch ( InvalidKeyException ivse)
                   System.out.println("Exception4: " + ivse.toString() );
         public String getPublicKey()
              //return new String(publicKey.getEncoded());
              return publicKey.toString();
         public String getPrivateKey()
         //          return new String(privateKey.getEncoded());
              return privateKey.toString();
         public String encryptIt(String toencrypt)
              * Encrypt the message
              try
                   byte [] result = null;
                   try
                        result = encryptCipher.doFinal(toencrypt.getBytes());
                   catch ( IllegalStateException ise )
                        System.out.println("Exception5: " + ise.toString() );
                   return new String(result);
              }catch (Exception e)
                   e.printStackTrace();
              return "did not work";
         public String decryptIt(String todecrypt)
                        * decrypt the message
              try
                   byte [] result = null;
                   try
                        result = decryptCipher.doFinal(todecrypt.getBytes());
                   catch ( IllegalStateException ise )
                        System.out.println("Exception6: " + ise.toString() );
                   return new String(result);
              }catch (Exception e )
                   e.printStackTrace() ;
              return "did not work";
         public static void main(String[] args)
              try
              Security.addProvider(new BouncyCastleProvider());
              CryptTester tester = new CryptTester();
              String encrypted = "307203c3f5827266f5e11af2958271c4";
              System.out.println("Decoding string " + encrypted + "returns : " + tester.decryptIt(encoded) );
              } catch (Exception e)
                   e.printStackTrace();
    _________________ENDPROGRAM_____________________

  • Need help with my HttpConnection From Midlet To Servlet...

    NEED HELP ASAP PLEASE....
    This class is supposed to download a file from the servlet...
    the filename is given by the midlet... and the servlet will return the file in bytes...
    everything is ok in emulator...
    but in nokia n70... error occurs...
    Http Version Mismatch shows up... when the pout.flush(); is called.. but when removed... java.io.IOException: -36 occurs...
    also i have posted the same problem in nokia forums..
    please check also...
    http://discussion.forum.nokia.com/forum/showthread.php?t=105567
    now here are my codes...
    midlet side... without pout.flush();
    public class DownloadFile {
        private GmailMidlet midlet;
        private HttpConnection hc;
        private byte[] fileData;
        private boolean downloaded;
        private int lineNumber;
    //    private String url = "http://121.97.220.162:8084/ProxyServer/DownloadFileServlet";
        private String url = "http://121.97.221.183:8084/ProxyServer/DownloadFileServlet";
    //    private String url = "http://121.97.221.183:8084/ProxyServer/Attachments/mark.ramos222/GmailId111d822a8bd6f6bb/01032007066.jpg";
        /** Creates a new instance of DownloadFile */
        public DownloadFile(GmailMidlet midlet, String fileName) throws OutOfMemoryError, IOException {
            System.gc();
            setHc(null);
            OutputStream out = null;
            DataInputStream is= null;
            try{
                setHc((HttpConnection)Connector.open(getUrl(), Connector.READ_WRITE));
            } catch(ConnectionNotFoundException ex){
                setHc(null);
            } catch(IOException ioex){
                ioex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C1", ioex.toString(),
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
            try {
                if(getHc() != null){
                    getHc().setRequestMethod(HttpConnection.POST);
                    getHc().setRequestProperty("Accept","*/*");
                    getHc().setRequestProperty("Http-version","HTTP/1.1");
                    lineNumber = 1;
                    getHc().setRequestProperty("CONTENT-TYPE",
                            "text/plain");
                    lineNumber = 2;
                    getHc().setRequestProperty("User-Agent",
                            "Profile/MIDP-2.0 Configuration/CLDC-1.1");
                    lineNumber =3;
                    out = getHc().openOutputStream();
                    lineNumber = 4;
                    PrintStream pout = new PrintStream(out);
                    lineNumber = 5;
                    pout.println(fileName);
                    lineNumber = 6;
    //                pout.flush();
                    System.out.println("File Name: "+fileName);
                    lineNumber = 7;
                    is = getHc().openDataInputStream();
                    long len = getHc().getLength();
                    lineNumber = 8;
                    byte temp[] = new byte[(int)len];
                    lineNumber = 9;
                    System.out.println("len "+len);
                    is.readFully(temp,0,(int)len);
                    lineNumber = 10;
                    setFileData(temp);
                    lineNumber = 11;
                    is.close();
                    lineNumber = 12;
                    if(getFileData() != null)
                        setDownloaded(true);
                    else
                        setDownloaded(false);
                    System.out.println("Length : "+temp.length);
                    midlet.setAttachFile(getFileData());
                    lineNumber = 13;
                    pout.close();
                    lineNumber = 14;
                    out.close();
                    lineNumber = 15;
                    getHc().close();
            } catch(Exception ex){
                setDownloaded(false);
                ex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C2+ line"+lineNumber,
                        ex.toString()+
                        " | ",
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
        public HttpConnection getHc() {
            return hc;
        public void setHc(HttpConnection hc) {
            this.hc = hc;
        public String getUrl() {
            return url;
        public void setUrl(String url) {
            this.url = url;
        public byte[] getFileData() {
            return fileData;
        public void setFileData(byte[] fileData) {
            this.fileData = fileData;
        public boolean isDownloaded() {
            return downloaded;
        public void setDownloaded(boolean downloaded) {
            this.downloaded = downloaded;
    }this is the midlet side with pout.flush();
    showing Http Version Mismatch
    public class DownloadFile {
        private GmailMidlet midlet;
        private HttpConnection hc;
        private byte[] fileData;
        private boolean downloaded;
        private int lineNumber;
    //    private String url = "http://121.97.220.162:8084/ProxyServer/DownloadFileServlet";
        private String url = "http://121.97.221.183:8084/ProxyServer/DownloadFileServlet";
    //    private String url = "http://121.97.221.183:8084/ProxyServer/Attachments/mark.ramos222/GmailId111d822a8bd6f6bb/01032007066.jpg";
        /** Creates a new instance of DownloadFile */
        public DownloadFile(GmailMidlet midlet, String fileName) throws OutOfMemoryError, IOException {
            System.gc();
            setHc(null);
            OutputStream out = null;
            DataInputStream is= null;
            try{
                setHc((HttpConnection)Connector.open(getUrl(), Connector.READ_WRITE));
            } catch(ConnectionNotFoundException ex){
                setHc(null);
            } catch(IOException ioex){
                ioex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C1", ioex.toString(),
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
            try {
                if(getHc() != null){
                    getHc().setRequestMethod(HttpConnection.POST);
                    getHc().setRequestProperty("Accept","*/*");
                    getHc().setRequestProperty("Http-version","HTTP/1.1");
                    lineNumber = 1;
                    getHc().setRequestProperty("CONTENT-TYPE",
                            "text/plain");
                    lineNumber = 2;
                    getHc().setRequestProperty("User-Agent",
                            "Profile/MIDP-2.0 Configuration/CLDC-1.1");
                    lineNumber =3;
                    out = getHc().openOutputStream();
                    lineNumber = 4;
                    PrintStream pout = new PrintStream(out);
                    lineNumber = 5;
                    pout.println(fileName);
                    lineNumber = 6;
                    pout.flush();
                    System.out.println("File Name: "+fileName);
                    lineNumber = 7;
                    is = getHc().openDataInputStream();
                    long len = getHc().getLength();
                    lineNumber = 8;
                    byte temp[] = new byte[(int)len];
                    lineNumber = 9;
                    System.out.println("len "+len);
                    is.readFully(temp,0,(int)len);
                    lineNumber = 10;
                    setFileData(temp);
                    lineNumber = 11;
                    is.close();
                    lineNumber = 12;
                    if(getFileData() != null)
                        setDownloaded(true);
                    else
                        setDownloaded(false);
                    System.out.println("Length : "+temp.length);
                    midlet.setAttachFile(getFileData());
                    lineNumber = 13;
                    pout.close();
                    lineNumber = 14;
                    out.close();
                    lineNumber = 15;
                    getHc().close();
            } catch(Exception ex){
                setDownloaded(false);
                ex.printStackTrace();
                midlet.alertScreen = new AlertScreen("Error C2+ line"+lineNumber,
                        ex.toString()+
                        " | ",
                        null, AlertType.ERROR);
                midlet.alertScreen.setTimeout(Alert.FOREVER);
                midlet.display.setCurrent(midlet.alertScreen);
        public HttpConnection getHc() {
            return hc;
        public void setHc(HttpConnection hc) {
            this.hc = hc;
        public String getUrl() {
            return url;
        public void setUrl(String url) {
            this.url = url;
        public byte[] getFileData() {
            return fileData;
        public void setFileData(byte[] fileData) {
            this.fileData = fileData;
        public boolean isDownloaded() {
            return downloaded;
        public void setDownloaded(boolean downloaded) {
            this.downloaded = downloaded;
    }here is the servlet side...
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            if(request.getMethod().equals("POST")){
                BufferedReader dataIN = request.getReader();
                String fileName = dataIN.readLine();
                File file = new File(fileName);
                String contentType = getServletContext().getMimeType(fileName);
                response.setContentType(contentType);
                System.out.println("Content Type: "+contentType);
                System.out.println("File Name: "+fileName);
                int size = (int)file.length()/1024;
                if(file.length() > Integer.MAX_VALUE){
                    System.out.println("Very Large File!!!");
                response.setContentLength(size*1024);
                FileInputStream fis = new FileInputStream(fileName);
                byte data[] = new byte[size*1024];
                fis.read(data);
                System.out.println("data lenght: "+data.length);
                ServletOutputStream sos = response.getOutputStream();
                sos.write(data);
    //            out.flush();
            }else{
                response.setContentType("text/plain");
                PrintWriter out = response.getWriter();
                BufferedReader dataIN = request.getReader();
                String msg_uid = dataIN.readLine();
                System.out.println("Msg_uid"+msg_uid);
                JDBConnection dbconn = new JDBConnection();
                String fileName = dbconn.getAttachment(msg_uid);
                String[] fileNames = fileName.split(";");
                int numFiles = fileNames.length;
                out.println(numFiles);
                for(int i = 0; i<numFiles; i++){
                    out.println(fileNames);
    out.flush();
    out.close();
    Message was edited by:
    Mark.Ramos222

    1) Have you looked up the symbian error -36 on new-lc?
    2) Have you tried the example in the response on forum nokia?
    3) Is the address "121.97.220.162:8084" accessible from the internet, on the device, on the specified port?

  • I need help with viewing files from the external hard drive on Mac

    I own a 2010 mac pro 13' and using OS X 10.9.2(current version). The issue that I am in need of help is with my external hard drive.
    I am a photographer so It's safe and convinent to store pictures in my external hard drive.
    I have 1TB external hard drive and I've been using for about a year and never dropped it or didn't do any thing to harm the hardware.
    Today as always I connected the ext-hard drive to my mac and click on the icon.
    All of my pictures and files are gone accept one folder that has program.
    So I pulled up the external hard drive's info it says the date is still there, but somehow i can not view them in the finder.
    I really need help how to fix this issue!

    you have a notebook, there is a different forum.
    redundancy for files AND backups, and even cloud services
    so a reboot with shift key and verify? Recovery mode
    but two or more drives.
    a backup, a new data drive, a drive for recovery using Data Rescue III
    A drive can fail and usually not if, only when
    and is it bus powered or not

  • I need help with TV Capture Card program

    Hello,
    I want to create a JAVA program so I can schedule that the recording with my TV Capture Card begins in x seconds.
    Now to start a recording, you must press Ctrl+M and to stop an recording you must click the mouse.
    How can I realise that a Java application can "press" Ctrl+M. I have to create an timer, that must be do-able... but I don't know how the program can simulate the pressing of Ctrl+M. I also need to know how the Java program can do a mouse click for me to end the recording.
    Thanks in advance for helping me.
    Chris.

    Thank you... I think this was exactly what I needed.

  • I need help with the Bon Scott program

    Help me! I am learning Java from the book, "Teach Yourself Java through Osmosis" and I am having trouble with the Bon Scott program. Everytime I run it, which has been ca. 2 billion, it prints out, "Some balls are held for charity and some for fancy dress, but when they're held for pleasure, they're the balls that I like the best." It then proceeds to get pissed and finally vomits.
    Any suggestions ?

    What color is the vomit? That is, exactly what does it do when it gets pissed and vomits?

  • I need help with a migration from Exchange 2010 to 2007

    Hi All,
    I need help migrating mailboxes from a separate forest / domain using exchange 2010 to our Exchange 2007 SP3 servers..  I am following this procedure:
    1. On source server, create a mailbox user, test01.
    2. On target server, run the following command to move the AD account:
    Prepare-MoveRequest.Ps1 -Identity [email protected] -RemoteForestDomainController FQDN.source.com -RemoteForestCredential $Remote -LocalForestDomainController FQDN.target.com -LocalForestCredential $Local -UseLocalObject -Verbose"
    3. Run the ADMT to migrate the password and SID history.
    4. Run the following command to move the mailbox:
    New-MoveRequest -Identity '[email protected]' -RemoteLegacy -RemoteTargetDatabase DB03 -RemoteGlobalCatalog 'GC01.humongousinsurance.com' -RemoteCredential $Cred -TargetDeliveryDomain 'mail.contoso.com'
    (Changed all the details obviously)
    It gets to 95% and shows this error
    01/12/2014 12:47:24 [EX2K10] Fatal error UpdateMovedMailboxPermanentException has occurred.
    Error details: An error occurred while updating a user object after the move operation. --> Active Directory operation failed on DC.DC.COM . This error is not retriable. Additional information: The parameter is incorrect.
    Active directory response: 00000057: LdapErr: DSID-0C090A85, comment: Error in attribute conversion operation, data 0, vece --> The requested attribute does not exist.
       at Microsoft.Exchange.MailboxReplicationService.LocalMailbox.Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox(UpdateMovedMailboxOperation op, ADUser remoteRecipientData, String domainController, ReportEntry[]& entries,
    Guid newDatabaseGuid, Guid newArchiveDatabaseGuid, String archiveDomain, ArchiveStatusFlags archiveStatus)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.<>c__DisplayClass3c.<Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox>b__3b()
       at Microsoft.Exchange.MailboxReplicationService.ExecutionContext.Execute(GenericCallDelegate operation)
       at Microsoft.Exchange.MailboxReplicationService.MailboxWrapper.Microsoft.Exchange.MailboxReplicationService.IMailbox.UpdateMovedMailbox(UpdateMovedMailboxOperation op, ADUser remoteRecipientData, String domainController, ReportEntry[]& entries,
    Guid newDatabaseGuid, Guid newArchiveDatabaseGuid, String archiveDomain, ArchiveStatusFlags archiveStatus)
       at Microsoft.Exchange.MailboxReplicationService.RemoteMoveJob.UpdateMovedMailbox()
       at Microsoft.Exchange.MailboxReplicationService.MoveBaseJob.UpdateAD(Object[] wiParams)
       at Microsoft.Exchange.MailboxReplicationService.CommonUtils.CatchKnownExceptions(GenericCallDelegate del, FailureDelegate failureDelegate)
    Error context: --------
    Operation: IMailbox.UpdateMovedMailbox
    OperationSide: Target
    Primary (b5373e49-6a06-41f4-990e-27807c7a57f3)
    01/12/2014 12:47:24 [EX2K10] Relinquishing job.
    Any ideas what i can do about this? 

    Hi,
    From your description, I recommend you follow the steps below for troubleshooting:
    Open the problematic user in AD and check the Email Address. Verify if you can open or edit the x400 address. If no, remove the x400 address and recreate it. If yes, ensure that the name is spelt correctly. After that, continue to move the mailbox and check
    the result.
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • Need help with a vowel reading program :(

    Hi, im trying to create a program that does the following:
    "a program that reads a list of vowels (a, e, i, o, u) and stores them in an array. The maximum number of vowels to be read should be obtained from the user before beginning to read the vowels, however, the user may cancel the reading of vowels at any time by entering '#'. The algorithm should then count and display the number of times each vowel appears in the array. Finally the algorithm should also output the index in the array where the each vowel first appeared or a suitable message if a particular vowel is not in the array at all."
    It says to store the input in an array so I've probably started all wrong :( but any help at all would be greatly accepted.
    Im trying to go through it doing one method at a time but im having trouble with the reading input method
    the 1 error i get is marked with ***.
    Is it that I need to do a for loop first to find the length of the string?
    import java.io.*;
    import javax.swing.JOptionPane;
    class prac7
          public static String readIn()
                    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
                    String max = null;
                    String sentence = null;
               try
                    System.out.println("\nEnter the amount of characters to read in: ");
                    max = input.readLine();
                    int total = Integer.parseInt(max);
               catch(Exception e) {System.out.println("invalid");}
               do
                    sentence = JOptionPane.showInputDialog("Enter a sentence, ("+max+" characters maximum): ");
                    int ind = sentence.length();
               }while(ind <= max);     //*** the arrow is under 'ind' and says "cannot resolve symbol"
               return sentence;
          public static void main(String[] args)
               String data = "";
               data = readIn();
          }Thanks.

    thanks for your reply Paul ^^ , but im still having trouble with that part of the program :(
    Its saying "operator <= cannot be applied to int,java.lang.String" (Ive marked in asterisks)
    Also i've add the rest of the program code, but in the calcPrint method i am having trouble understanding some of it (some of the code was used from another program) and it would be great if someone could show me a more simplier way of coding the same thing? even if its more typing, i just want to understand it better.
    (i've marked the area im having trouble understanding with asterisks)
    Once again any help would be fantastic :)
    here is the code
    import java.io.*;
    import javax.swing.JOptionPane;
    class prac7
          public static String readIn()
               BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
               String max = null;
               String sentence = null;
               try
                    System.out.println("\nEnter the amount of characters to read in: ");
                    max = input.readLine();
                    int total = Integer.parseInt(max);
               catch(Exception e) {System.out.println("invalid");}
               do
                    sentence = JOptionPane.showInputDialog("Enter a sentence, ("+max+" characters maximum): ");
                    sentence.toLowerCase();
               }while(sentence.length() <= max);     /******operator error******/
               return sentence;
          public static void calcPrint(String data)
               String vowels[] = {"a","e","i","o","u","Other letters"};
               String screen = "";
               int alpha[] = new int [6];
               for (int i = 0; i < data.length(); i++)
               /********from here*********/
                    try
                         alpha["aeiou".indexOf(data.charAt(i))]++;
                         if(data.charAt(i) != ' ') alpha[5]++;
                    catch(Exception e){}
               for (int i = 0; i < alpha.length; i++)
               screen += vowels[i]+" Amount = "+alpha[i]+"\n";
              /**********to here**********/
               JOptionPane.showMessageDialog(null,screen);
          public static void main(String[] args)
               String data = "";
               data = readIn();
               calcPrint(data);
    }

  • Need help with running a Java program on Linux

    I am trying to get a Java program to run on a Linux machine. The program is actually meant for a Mac computer. I want to see if someone with Java experience can help me determine what is causing the program to stall. I was successful in getting it installed on my Linux machine and to partially run.
    The program is an interface to a database. I get the login screen to appear, but then once I enter my information and hit enter the rest of the program never shows, however, it does appear to connect in the background.
    Here is the error when I launch the .jar file from the command screen:
    Exception in thread "main" java.lang.IllegalArgumentException: illegal component position
    at java.awt.Container.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    I am not a programmer and I am hoping this will make some sense to someone. Any help in resolving this is greatly appreciated!

    Well, without knowing a little bit about programming, and how to run your debugger, I don't think you're going to fix it. The IllegalArgumentException is saying that some call does not like what it's getting. So you'll have to go in an refactor at least that part of the code.

  • Need help with Kerb. jdbc from Linux to MS SQL 2008

    Hello Forum, I am getting an erro when I try to use Kerb. trusted security to connect to sql server.
    4.0 documentation reflects it's absolutely possible.
    Not only that, I have ms odbc installed on the same box and it provides Kerbers (not ntlm) connection to sql server. But java with jdbc reject doing it.
    Here is the message:
    com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:5836ac6c-6d2e-42e4-8c6d-8b89bc0be5c9
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1667)
            at com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:140)
            at com.microsoft.sqlserver.jdbc.KerbAuthentication.GenerateClientContext(KerbAuthentication.java:268)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:2691)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:2234)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$000(SQLServerConnection.java:41)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:2220)
            at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1326)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
            at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
            at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
            at java.sql.DriverManager.getConnection(DriverManager.java:419)
            at java.sql.DriverManager.getConnection(DriverManager.java:367)
            at connectURL.main(connectURL.java:53)
    Caused by: javax.security.auth.login.LoginException: unable to find LoginModule class: com.sun.security.auth.module.Krb5LoginModule
            at javax.security.auth.login.LoginContext.invoke(LoginContext.java:834)
            at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209)
            at javax.security.auth.login.LoginContext$4.run(LoginContext.java:709)
            at java.security.AccessController.doPrivileged(AccessController.java:327)
            at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:706)
            at javax.security.auth.login.LoginContext.login(LoginContext.java:603)
            at com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:133)
    1] Client side:
    Which OS platform are you running on? (Linux)
    Which JVM are you running on? (IBM J9 VM (build 2.6, JRE 1.6.0 Linux amd64-64
    What is the connection URL in you app? (jdbc:sqlserver://abcde24243.somebank.COM:15001;databaseName=master;integratedSecurity=true;authenticationScheme=JavaKerberos)
    If client fails to connect, what is the client error messages? (see above)
    Is the client remote or local to the SQL server machine? [Remote | Local]
    Is your client computer in the same domain as the Server computer? (Same domain | Different domains | WorkGroup)
    [2] Server side:
    What is the MS SQL version? [ SQL Sever 2008]
    Does the server start successfully? [YES ] If not what is the error messages in the SQL server ERRORLOG?
    If SQL Server is a named instance, is the SQL browser enabled? [NO]
    What is the account that the SQL Server is running under?[Domain Account]
    Do you make firewall exception for your SQL server TCP port if you want connect remotely through TCP provider? [YES ]
    Do you make firewall exception for SQL Browser UDP port 1434? In SQL2000, you still need to make firewall exception for UDP port 1434 in order to support named instance.[YES | NO | not applicable ]
    I currently can login from client using ms odbc sqlcmd (linux) version with trusted Kerberos connection.
    which tells me there is no problem with firewall.
    Tips:
    If you are executing a complex statement query or stored procedure, please use execute() instead of executeQuery().
    If you are using JDBC transactions, do not mix them with T-SQL transactions.
    Last but not least:
    gene

    Saeed,
    Not being versed in JAVA, I'm not sure what you're telling me. Can you tell me if this looks good? BTW, I did find out that JDBC is installed on the server as part of Coldfusion and this is what I was told:
    macromedia.jdbc.oracle.OracleDriver is 3.50
    macromedia.jdbc.db2.DB2Driver is 3.50
    macromedia.jdbc.informix.InformixDriver is 3.50
    macromedia.jdbc.sequelink.SequeLinkDriver is 5.4
    macromedia.jdbc.sqlserver.SQLServerDriver is 3.50
    macromedia.jdbc.sybase.SybaseDriver is 3.50
    Below is what I think will work, but I know it won't because of the semi colons. Can you help me fix it?
    I've the things that I think need changing are in bold.
    Thanks!
    ======
    private void dbInit()
    dbUrl = "jdbc:odbc:DRIVER={SQL Server};Database="DATADEV";Server=VS032.INTERNAL.COM:3533;", "web_user";
    try
    Class.forName("macromedia.jdbc.sqlserver.SQLServerDriver ");
    catch(Exception eDriver)
    failedDialog("Driver failed!", eDriver.getMessage());
    private void dbOpen()
    if(paramServerIP.indexOf("datadev") >= 0)
    dbPswd = "password";
    else
    dbPswd = "password";
    try
    dbCon = DriverManager.getConnection(dbUrl, paramDbUserStr,
    dbPswd);
    dbStmt = dbCon.createStatement();
    dbStmt.setEscapeProcessing(true);
    catch(Exception eDbOpen)
    failedDialog("Failed to open db connection!",
    eDbOpen.getMessage());
    private void dbClose()
    try
    dbStmt.close();
    dbCon.close();
    catch(Exception eDbClose)
    failedDialog("Failed to close db connection!",
    eDbClose.getMessage());
    }

  • I need help with this tutorial from the Adobe website

    I'm almost done with my flash game which I created with flash pro cc. And i have been looking for tutorials to integrate my game to the Facebook and this is the only one I found. http://www.adobe.com/devnet/games/articles/getting-started-with-facebooksdk-actionscript3. html
    Am I on the right track?? The editor uses Flash Builder but I'm using Flash Pro cc.
    --- On Step 2: "Set up a development server for the Flash app",
            Sub-step #2. "To simplify the development process, configure Flash Builder to compile into your htdocs/fbdemo folder and run (or debug) the app on your server (see Figure 2)."
    1) But I can't find "ActionScript Build Path"(which is highlighted on the Figure 2 screenshot) or anything like that in Flash pro. Same for the "Output folder URL".
    Can I actually do the same things with Flash Pro cc?? Also #3 is "Verify that your app runs from your server." How do you run your app from your server??
    ---- On Step 4: "Initialize the Facebook JS SDK",
    2) so if I setup a server on a localhost just like the tutorial, I don't need to change the following? This is on line #6.
    channelUrl : 'www.YOUR_DOMAIN.COM/channel.html'
    can i just leave it like that ?
    3) So if I complete the tutorial, can facebook users play my game? or do i have more things to do?
    4) is there any other tutorial for Flash Pro CC to Facebook integration???
    Thank you so much for your help and time.

    this is an excerpt from http://www.amazon.com/Flash-Game-Development-Social-Mobile/dp/1435460200/ref=sr_1_1?ie=UTF 8&qid=1388031189&sr=8-1&keywords=gladstien
    The simplest way to hook into Facebook is to add their Plugins to add a Like button, Send button, Login button etc to your game.  If you only want to add a Like button to a page on your website, you can use the following iframe tag anywhere (between the body tags) in your html document where you want the Facebook Like button to appear:
    <iframe src="http://www.facebook.com/plugins/like.php?href=yoursite.com/subdirectory/page.html" scrolling="no" frameborder="0" style="border:none; width:500px; height:25px"></iframe> 
    Where the href attribute is equal to the absolute URL to your html file.  For example:
    <iframe src="http://www.facebook.com/plugins/like.php?href=kglad.com/Files/fb/" scrolling="no" frameborder="0" style="border:none; width:500px; height:25px"></iframe>
    points to index.html in kglad/com/Files/fb.
    However, to get the most out of Facebook you will need to use JavaScript or the Facebook ActionScript API and register your game on the Facebook Developer App page.  Before you can register your game with Facebook, you will need to be registered with Facebook and you will need to Login. 
    Once you are logged-in, you can go to https://developers.facebook.com/apps and click Create New App to register your game with Facebook.  (See Fig11-01.) 
    ***Insert Fig11-01.tif***
    [Facebook's Create New App form.]
    Enter your App Name (the name of your game) and click continue.  Complete the Security Check (see Fig11-02) and click Submit.  You should see the App Dashboard where you enter details about your game.  (See Fig11-03.)
    ***Insert Fig11-02.tif***
    [Security Check form.]
    ***Insert Fig11-03.tif***
    [App Dashboard with Basic Settings selected.]
    If you mouse over a question mark, you will see an explanation of what is required to complete this form.  Enter a Namespace, from the Category selection pick Games, and then select a sub-category. 
    Your game can integrate with Facebook several ways and they are listed above the Save Changes button. You can select more than one but for now only select Website with Facebook Login and App on Facebook, enter the fully qualified URL to your game and click Save Changes. (See Fig11-04.)
    ***Insert Fig11-04.tif***
    [Facebook integration menu expanded.]
    You can return to https://developers.facebook.com/apps any time and edit your entries.  Your game(s) will be listed on the left and you can use the Edit App button to make changes and the Create New App button to add another game.
    Click on the App Center link on the left.  (See Fig11-05a and Fig11-05b.)  Fill in everything that is not optional and upload all the required images. Again, if you mouse over the question marks you will see requirement details including exact image sizes for the icons, banners and screenshots.
    ***Insert Fig11-05a.tif***
    [Top half of the App Center form.]
    ***Insert Fig11-05b.tif***
    [Bottom half of the App Center form.]
    When you are finished click Save Changes and Submit App Detail Page.  You should then see Additional Notes and Terms. (See Fig11-06.)
    ***Insert Fig11-06.tif***
      [Additional Notes and Terms.]
    Tick the checkboxes and click Review Submission.  If everything looks acceptable, click Submit.  You should then see something like Fig11-07.
    ***Insert Fig11-07.tif***
      [After agreeing with Facebook's terms, you should be directed back to App Center and see this modal window.]
    You are now ready to integrate your game with Facebook's API.  Because there is a Facebook ActionScript API that communicates with Facebook's API, you need not work directly with the Facebook API.
    But before I cover Adobe's Facebook ActionScript API, I am going to cover how you can use the Facebook JavaScript API directly.  There no reason to actually do that while the Facebook ActionScript API still works but by the time you read this, the Facebook ActionScript API may no longer work.
    In addition, this section shows the basics needed to use any JavaScript API so it applies to any social network that has a JavaScript API including the next "hot" social network that will arise in the future.

  • Need help with a cash register program.

    I'm a noob at JAVA, but having fun with i so far! I was wondering if anyone could help me with a school project I need to get done. I've done most of the work, but I can't get it to not display when I have zero results. What I mean is that the project requires you to create a cash register program that gives you change in 20's, 5's, and 1's for a hundred dollar bill. I get it to display the results, but if there are zero of any category, like in the last problem, I can't let it show. Could someone please help! Thank you in advance! Here's what I have so far (sorry about the rapidshare download ^_^;).
    [http://rapidshare.de/files/39978938/project.java.html]

    Zack,
    The user should not see the line: 0 $5 bill(s)Then you need to detect the situation where no five dollars bills are included in the change, and suppress the output of that line.
    I can read your mind... it's going something like "yeah well righto smartass, I knew that allready... my question was _HOW_ to make that happen...
    And my answer to that is "I'm not telling you"... well, not straight out anyway, coz you'll actually learn more if your struggle a bit (but not too much) yourself...
    So... I suggest you (at least) read through [this page|http://java.sun.com/docs/books/tutorial/java/nutsandbolts/if.html] on the +if+ statement, and maybe even try out the examples, which should (I imagine) take maybe half an hour or so. "Selection" is an absolutely core programming construct... and the concept is common to every programming language ever (AFAIK) invented... meaning that you will really struggle until you "get" the +if+ statement... so that half hour would be time well spent.
    When you've got +if+ concept onboard, you can attempt to apply it to your immediate problem, suppressing those annoying fivers! Have a go yourself, if get really stumped than post a _specific_ question here about the bit that's stumped you.
    I know it can be frustrating... but that just hightens the little thrill you get when you "get it".
    Cheers. Keith.

  • Need help with master detail from different datasets

    I have xml data from three different datasets that I want to use in a master detail region. 
    So initially, a list of model codes is displayed. When the user clicks on a specific model, the model inputs appear in the detail region.  One of these inputs is a list of map units. I also want a real name description of the map unit to be displayed.  It's working for one map code, but not for all of them. 
    My question is: "How do I get the description to disply for each of the map codes?"
    Here is my code: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SprySpotlightColumn.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var DSpresence = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres");
    var DSancillary = new Spry.Data.XMLDataSet("/SpeciesReview/ModelingAncillarywname.xml", "dataroot/Sheet1", {sortOnLoad: "CommonName", sortOrderOnLoad: "ascending"});
    var DSpresence2 = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode='DSancillary::strSpec iesModelCode']");
    var dsMUDescription  = new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc");
    var dsMUDescription2= new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc[intLSGapMapCode='{DSpresence2::intLSGapMapCode}']");
    </script>
    </head>
    <body>
    <div style="width: 100%">
    <div id="Species_DIV" spry:region="DSancillary DSpresence dsMUDescription" width="50%" style="float:left">
      <table id="DSancillary">
      <tr>
      <th>Species Code</th>
      </tr>
      <tr spry:repeat="DSancillary" "DSpresence" "dsMUDescription" spry:setrow="DSancillary" >
      <td>{strSpeciesModelCode}</td>
      </tr>
      </table>
        </div>
      <div id="Species_Detail_DIV" spry:detailregion="DSancillary DSpresence dsMUDescription" style="float:right; margin-top:20px; width: 40%">
        <table id="Species_Detail_Table"  >
          <tr width="100%">
          <th style="font-family:Verdana, Geneva, sans-serif; font-size:14px; background-color:#CCCCCC; font-weight:bold">Modeling variables used for {strSpeciesModelCode}</th>
          </tr>
            <tr>
              <td spry:if="'{memModelNotes}' != ''">Hand Model Notes: {DSancillary::memModelNotes}</td></tr>
               <tr>
                <td spry:if="'{DSancillary::ysnHydroFW}' == 1">HydroFW: {DSancillary::ysnHydroFW}<br />Buffer from flowing water:  {DSancillary::intFromBuffFW}<br />
                Buffer into flowing water:  {DSancillary::intIntoBuffFW}
                </td></tr>
                <tr>
                <td spry:if="'{DSancillary::ysnHydroOW}' == 1"> Buffer from open water: {DSancillary::intFromBuffFW}<br />Buffer into open water:  {DSancillary::intIntoBuffOW}</td></tr>
          <tr><td><br /></td></tr>
           <tr><th>Mapcode:</th></tr>
        <tr spry:repeat="DSpresence">
                <td spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}</td><td spry:if= "'{DSpresence::intLSGapMapCode}'=='{dsMUDescription::intLSGapMapCode}'">{dsMUDescription: :strLSGapName}</td>
            </tr>
            <tr><td><ul>
                <li spry:repeat="DSpresence" spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}{dsMUDescription::intLSGapMapCode}</li>
            </ul></td></tr>
        </table>
        </div>
    </div>
    </body>

    The best way to do this is to use xPath filtering. This http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html example will give you the general idea.
    The example uses a URL variable but there is no need for that if you use a procedure similar to
    function newXPath(cat){
      DSpresence.setXPath("dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode=' {DSpresence::strSpeciesModelCode}']");
        DSpresence.loadData();
    The function can be triggered with an onclick event placed on {strSpeciesModelCode}
    Gramps

  • Mac Virgin!  Need Help with migrating files from PC

    I am currently waiting for my Mac to be shipped to me and want to be prepared to transfer all of my PC files over once it gets here. I need to know if I need a cord of some sort (USB?) to connect the PC and Mac in order to do this.
    Thanks!

    Hi Winnie7779,
    If you purchased the MBP from Apple, you can take it and your PC to your local Apple Store, and they will transfer the files for you. If this is not an option, you should probably pick up a copy of Switching to the Mac The Missing Manual (http://oreilly.com/catalog/9780596514129/index.html). This book was in invaluable resource for my switch earlier this year. It will answer many of your questions, and give you an offline resource to browse. As for your design files, if the program you used on Windows has a Mac version, the file shouldn't need any conversion, and will just open in the native program. In the case where there is no native program, the Mac version may have its own importing option. If there is no comparable Mac program, there is not much you can do on the Mac side. Fortunately, all recent Macs can run Windows, using a program like Parallels Desktop for Mac (http://www.parallels.com) or VMWare Fusion (http://www.vmware.com/products/fusion/). These programs allow you run Windows in a window on the Mac Desktop, and then you could run your WIndows programs directly and use the files that way. Another and cheaper alternative is to use Boot Camp, which is included with Leopard, this will allow you to reboot and turn your Mac into a fully featured Windows PC. Good luck!
    Rich S.

Maybe you are looking for

  • Intermittent, inconsistent playback problems in Premiere Pro CS6

    Before I start: I'm not a computer guy, please be patient with me. This is the problem that prompted me to finally post a question, though I've had similar problems before. I'm using a macbook pro, 15 inch, late 2011 Processor  2.2 GHz Intel Core i7

  • Mighty Mouse and Blue tooth...Help me please

    Hi, I got the wireless mighty mouse, and I am able too get it to work with the blue tooth, but every time I turn off my mouse, or turn off my computer, it disconnects and I have to go through reconfiguring my mouse every time. Is there a way that eve

  • Youtube fullscreen problems.

    when i press full screen button on youtube, it goes to full screen but covers odd dimentions. it doesn't cover the whole screen and leaves the uncovered video display area on the screen blanked out. however the buttons to exit full screen when in ful

  • No sound even with mpeg2 playback component

    I purchase the quicktime mpeg2 playback component. Now I see the video, but without audio. How can it be that even paying 20 dollars I can´t see mpeg2 files fine? Any ideas? Thank you.

  • Find Oracle client version

    hi guys, How can you find which Oracle client version does SAP 4.6D is using to connect with Oracle. is there any file or Parameter setting available for this. Thanks. Chandra