Help please what im i doing wrong here (encryption)

Hi All,
I wonder if anyone here can help me. I have an algorithm to decrypt a password from a string and i am struggling to decrypt it. The algorithm itself shows an example and i tried the example but i cant get the results that were shown in the example to match with the result in my sample code.
Here is the algorithm.
1.First get the bytes of the original password, assuming a "Latin-1" encoding. For the password "Baltimore1," these bytes are: 66 97 108 116 105 109 111 114 101 49 44 (i.e. the value of "B" is 66, "a" is 97, etc).
2.Then get the MD5 hash of these bytes. MD5 is a standard, public algorithm. Once again, for the password "Baltimore1," these bytes work out as: 223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94
3.Finally, create the new password by forming a string whose Latin-1 encoding is the bytes from the previous step. For the "Baltimore1," password, if this is string is written to the screen, it looks like: ���_>y'?s�3����^(i.e. the 62 above is a ">", the 121 is a "y", etc).
To try the above, i tried to get the string shown in step 3 using the "Baltimore1," password. Here is the code that i wrote.
  public static void main() throws NoSuchAlgorithmException, UnsupportedEncodingException {
      String enteredPassword = new String("Baltimore1,");
            String enteredPasswordBytes = new String();
            String enteredPasswordBytesMD5Hash = new String();
            String enteredPasswordBytesMD5HashBytes = new String();
      //Step 1 - get the bytes of Baltimore1,          
            for ( int i = 0; i < enteredPassword.length(); ++i ) {
                    char c = enteredPassword.charAt( i );
                    int j = (int) c;
                    enteredPasswordBytes = enteredPasswordBytes.concat(Integer.toString(j));                   
      System.out.println("1. Baltimore1, in plain text = " + enteredPassword);
            System.out.println("2. Baltimore1, in bytes = " + enteredPasswordBytes);
      //Step 2 - Get the MD5 Hash of the bytes
      enteredPasswordBytesMD5Hash = MD5(enteredPasswordBytes);     
      System.out.println("3. MD5 Hash of Baltimore1,'s bytes = " + enteredPasswordBytesMD5Hash);
      //Step 3 - Get the bytes of the MD5 Hash
      for ( int i = 0; i < enteredPasswordBytesMD5Hash.length(); ++i ) {
                    char c = enteredPasswordBytesMD5Hash.charAt( i );
                    int j = (int) c;
                    enteredPasswordBytesMD5HashBytes = enteredPasswordBytesMD5HashBytes.concat(Integer.toString(j));                   
      System.out.println("4. bytes of the MD5 Hash of Baltimore1,'s bytes = " + enteredPasswordBytesMD5Hash);
     public static String MD5(String text)
     throws NoSuchAlgorithmException, UnsupportedEncodingException  {
          MessageDigest md;
          md = MessageDigest.getInstance("MD5");
          byte[] md5hash = new byte[32];
          md.update(text.getBytes("iso-8859-1"), 0, text.length());
          md5hash = md.digest();
          //return convertToHex(md5hash);
          return md5hash.toString();
     }      And here is the output of the above program.
1. Baltimore1, in plain text = Baltimore1,
2. Baltimore1, in bytes = 66971081161051091111141014944
3. MD5 Hash of Baltimore1,'s bytes = [B@923e30
4. bytes of the MD5 Hash of Baltimore1,'s bytes = 9166645750511015148As you can see, the output of line 1 is correct. The bytes are exactly as described in the example. I was expecting the output on line 4 to be 223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94 as shown in the example. Does anyone know what i am doing wrong?
Edited by: ziggy on Jul 4, 2008 1:14 PM
Edited by: ziggy on Jul 4, 2008 1:14 PM

Thanks guys for your help. I followed some of your advice and changed the code as shown below as an example.
It looks like im almost there but not quite yet.
import java.security.*;
public class Pkcs12{
     public static void main(String[] args){
          //String to be converted
              String originalString = "Baltimore1,";
          byte[] originalStringInBytes = new byte[8];
          byte[] md5 = null;
          originalStringInBytes = originalString.getBytes();
          System.out.println("1. OriginalString= " + originalString);                   
          System.out.println("2. OriginalStringInBytes= " + originalStringInBytes);
          for (int i=0; i<=originalStringInBytes.length-1; i++){
               System.out.print("["+(int )(originalStringInBytes[i] )+"] ");
          try{
               md5 = MD5(originalStringInBytes);
          }catch(NoSuchAlgorithmException e){
          System.out.println();
          for (int i=0; i<md5.length-1; i++){
               System.out.print("["+((int)md5)+"] ");
     //223 238 161 24 62 121 39 143 115 167 51 163 245 231 226 94
     public static byte[] MD5(byte[] bytes) throws NoSuchAlgorithmException{
          MessageDigest md;
          md = MessageDigest.getInstance("MD5");
          byte[] md5hash = new byte[32];
          md.update(bytes);
          md5hash = md.digest();
          return md5hash;
And here is the output from the above program
1. OriginalString= Baltimore1,
2. OriginalStringInBytes= [B@3e25a5
[66] [97] [108] [116] [105] [109] [111] [114] [101] [49] [44]
[-33] [-18] [-95] [24] [62] [121] [39] [-113] [115] [-89] [51] [-93] [-11] [-25]
[-30]
The bytes shown in line 3 are corect.
The bytes shown in line 4 are partially correct in that the positive numbers are correct. Im not sure why the others have come out as negative numbers. Whats interesting is that when i add 256 to the negative numbers the answer becomes correct. Why does this happen? Have i used a variable that is the wrong size?
Edited by: ziggy on Jul 5, 2008 12:32 PM
Edited by: ziggy on Jul 5, 2008 12:33 PM
Edited by: ziggy on Jul 5, 2008 12:34 PM

Similar Messages

  • My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    My redemption code when entered is rejected as its says it must be used in the mac app store but i am in this store already ? what am i doing  wrong here i am trying to download a system upgrade?

    iTunes is not the Mac App Store.
    In your dock it would be this icon:
    The forum for it specifically is here:Using Mac App Store

  • What am I doing wrong here trying to deploy forms?

    I am trying to deploy forms for the first time, but it's not
    working. I would love to hear anyone's advice on what I am
    doing wrong. Here are the steps that I did to try to get them
    deployed using OAS 4.0.7.1.0 and Developer 6 Server. Please let
    me know if I missed steps or have unecessary ones.
    1) created Forms listener in OAS Manager with port 5555. (is
    this unecessary)
    2) created forms web cartridge with virtual path = webcart
    3) configured the cartridge configuration code =
    oracle.forms.engine.Main , codebase=forms60code, baseHTML = c:
    \orant\webhtml\forms60cart.htm, HTMLdelimiter=%
    4) created forms service by typing ifsrv60 -install...but I
    think this is unecessary b/c I could just click the
    START...PROGRAMS...Developer 6...forms server listener
    5) changed the cartrid.htm template file. i changed the default
    file called forms60cart.htm >> I changed these
    codebase=forms60code ,code=oracle.forms.engine.Main,
    serverport=5555, serverArgs module=emp.fmb (which template ones
    should I be modifying)
    6) put this new htm file into my orant/webhtml directory
    7) I get the requested url was not found when I call up
    http://machine.domain:5555/webcart/forms60cart.htm (is this the
    form listner port 5555, or should it be the one that is
    generated from opening forms server listener from the start
    menu. is that the default port 80?
    thanks for any response back
    null

    Hi. I have experienced developer server.
    : 1) created Forms listener in OAS Manager with port 5555. (is
    : this unecessary)
    -> 5555 is a port for web listener(httpd).
    you can use any existing listener.
    : 4) created forms service by typing ifsrv60 -install...but I
    : think this is unecessary b/c I could just click the
    : START...PROGRAMS...Developer 6...forms server listener
    -> in this case, forms server uses port 9000 by default.
    and oas indicates 9000 as default forms listener port,
    if there is no specification. you can use 9001,9002...
    I recommend to specify this in your html file
    as serverport.
    : 5) changed the cartrid.htm template file. i changed the
    default
    : file called forms60cart.htm >> I changed these
    : codebase=forms60code ,code=oracle.forms.engine.Main,
    : serverport=5555, serverArgs module=emp.fmb (which template ones
    : should I be modifying)
    -> serverport shoud not be 5555. 9000 by default.
    and I think module=emp.fmx is right.
    and now call http://machine.domain:5555/webcart/forms60cart.htm
    good luck.
    null

  • Okay - what am I doing wrong here RE:  ACR 5.6

    Hello all:
    Just downloaded ACR 5.6 and the Lightroom 2.6 update.  I have Elements versions 7 and 8.  After downloading ACR, I first went into the plug-in folders (file formats) of both Elements 7 and 8 and deleted the Camera RAW plug-ins.  Not a problem there.
    However, after unzipping the new ACR 5.6 plug-in and copying and pasting the new plug-in into the Elements 7 and 8 (file formats), when processing a RAW file, the ACR window that comes up within those two programs now shows "version 5.5."  At first I thought it was just a mistake in numbering on Adobe's part - meaning it was really 5.6, but mistakenly numbered 5.5.
    But when I tried to decode some RAW files from the supposed new camera data base (i.e. Olympus EP-2), none could be recognized, indicating that it was indeed version 5.5.
    Just to be safe, I deleted the plug-ins and re-downloaded the ACR-5.6 updates on several occasions - and in the end, all wound up being version 5.5 (according to the window when it comes up in Elements).
    Looks like a mistake on your downloads page - or I'm doing something terribly wrong here.  Again, I downloaded the right ACR 5.6 plug-in, but it is showing up as version 5.5 once unzipped and opened within Elements (by the way, the previous ACR plug-in I had there was version 5.6 Beta).
    Can anybody help here?  I'm hoping it's a mistake on Adobe's part.  What could I be doing wrong here?
    Lightroom 2.6 went just fine and it decodes all of the latest RAW files (i.e. Olympus EP-2).  My email address is:  [email protected]
    Thanks....

    Quote:-
    "I first went into the plug-in folders (file formats) of both Elements 7 and 8 and deleted the Camera RAW plug-ins."
    Although you did that it sounds like there is still an ACR 5.5 in the path. Have you got another, possibly renamed, ACR 5.5 anywhere? What does Edit > About Plugins > Camera RAW say? Does it happen in both Elements 7 and 8.
    Have you followed the instruction in the following link carefully?
    http://kb2.adobe.com/cps/407/kb407110.html

  • Reflections: What am I doing wrong here?

    Given the object:
    public class TestObject
         public Object[] oArray;
         public int[] iArray;
    }and the code
    TestObject to = new TestObject();
    Field objectArrayField = to.getClass().getField("oArray");
    Object oArray = Array.newInstance(objectArrayField.getType(), 0);
    objectArrayField.set(to, oArray);
    Field intArrayField = to.getClass().getField("iArray");
    Object iArray = Array.newInstance(intArrayField.getType(), 0); // <-- Exception on this line
    intArrayField.set(to, iArray);I am getting the following exception:
    java.lang.IllegalArgumentException
         at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source)
         at java.lang.reflect.Field.set(Unknown Source)
         at com.efw.cp.ObjectParser.main(ObjectParser.java:151)For the life of me, I can't see what I am doing wrong. This always fails whether the int[] array is defined to an array or defined to be null.
    Any ideas?

    You quite surely want to access the field's component type, not the field's type:
    - objectArrayField.getType() returns the class for an array of Object
    - intArrayField.getType() returns the class for an array of int
    You surely want:
    - objectArrayField.getType() returns the class for Object
    - intArrayField.getType().getComponentType() returning the class for int

  • Need help understanding what i am doing wrong in my insert statement

    insert into employees (employeeid, firstname, lastname, title) Values ('1001', 'jack', null, 'shepard', 'salesperson');
    insert into employees (employeeid, firstname, lastname, title) Values ('1002', 'jack', null, 'shepard', 'salesperson');
    insert into employees (employeeid, firstname, lastname, title) Values ('1003', 'jack', null, 'shepard', 'salesperson');
    insert into employees (employeeid, firstname, lastname, title) Values ('1004', 'jack', null, 'shepard', 'salesperson');
    insert into employees (employeeid, firstname, lastname, title) Values ('1005', 'jack', null, 'shepard', 'salesperson');
    insert into employees (employeeid, firstname, lastname, title) Values ('1006', 'jack', null, 'shepard', 'salesperson');
    i am getting this error message
    Msg 110, Level 15, State 1, Line 3
    There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
    also 
    insert into products (Name, price) values  ('shirts', 12.99);
    insert into products (Name, price) values  ('shirts', 14.99);
    insert into products (Name, price) values  ('shirts', 11.99);
    insert into products (Name, price) values  ('shirts', 14.99);
    insert into products (Name, price) values  ('shirts', 13.99);
    insert into products (Name, price) values  ('shirts', 15.99);
    insert into products (Name, price) values  ('shirts', 16.99);
    Msg 515, Level 16, State 2, Line 2
    Cannot insert the value NULL into column 'ProductID', table 'practice.dbo.products'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
    what am i doing wrong?

    insert into employees (employeeid, firstname, lastname, title) Values ('1001', 'jack', null, 'shepard', 'salesperson');
    i am getting this error message
    Msg 110, Level 15, State 1, Line 3
    There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
    also 
    You have 4 columns in the insert( employeeid,fname,lname and title) however you are passing 5 values...
    What does NULL represents? Is it middlename, then you need to add in the column list of  insert as well.
    insert into products (Name, price) values  ('shirts', 12.99);
    Msg 515, Level 16, State 2, Line 2
    Cannot insert the value NULL into column 'ProductID', table 'practice.dbo.products'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
    what am i doing wrong?
    It looks like your table products has a column productid as not null. As long as you are not passing the product id in your insert statement, it will try to insert productid as null which will break. If productid is a increment values, then you need to use
    either identity or sequence(if you version is 2012 and above).

  • Changing an image to a button event.....what am i doing wrong here?

    I'm trying to change the image in the imagePanel when one of the buttons are clicked. When I run it, it just shows the default image i placed in there and nothing happens when a button is clicked. I'm a Java student so I'm sorry if this seems elementary. Please ignore the jbtSound button I created, i haven't got to that yet. Thanks in advance for whatever help you can offer. Here's the code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class cah334Final extends JFrame
    JButton jbtFruit = new JButton("Fruit");
    JButton jbtVege = new JButton("Vegetable");
    JButton jbtReset = new JButton("Reset");
    JButton jbtSound = new JButton("Listen");
    ImageIcon imgDefault = new ImageIcon("fruits_and_vegetables.jpg");
    ImageIcon imgFruit = new ImageIcon("FruitBasket.png");
    ImageIcon imgVege = new ImageIcon("veggies.jpg");
    //Create a panel to hold image
    JPanel imagePanel = new JPanel();
    public cah334Final()
    //set frame layout
    setLayout(new FlowLayout(FlowLayout.CENTER, 10, 20));
    //add panel to hold image
    add(imagePanel);
    //add label and default image
    imagePanel.add(new JLabel(imgDefault));
    //add listeners for buttons
    jbtFruit.addActionListener(new ChangeImage());
    jbtVege.addActionListener(new ChangeImage());
    jbtReset.addActionListener(new ChangeImage());
    //add panel to hold buttons and layout panel
    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(2, 2, 5, 5));
    //add buttons to panel
    buttonPanel.add(jbtFruit);
    buttonPanel.add(jbtVege);
    buttonPanel.add(jbtReset);
    buttonPanel.add(jbtSound);
    //add button panel to frame
    add(buttonPanel);
    //tool tips set for the buttons
    jbtFruit.setToolTipText("Click to choose a fruit");
    jbtVege.setToolTipText("Click to choose a vegetable");
    jbtReset.setToolTipText("Click to reset the picture");
    jbtSound.setToolTipText("Click to hear a message");
    }//end of constructor
    public static void main(String[] args)
    JFrame frame = new cah334Final();
    frame.setTitle("Carol's CIS 334 Form");
    frame.setSize(500, 500);
    frame.setLocationRelativeTo(null);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    }//end of main
    class ChangeImage implements ActionListener
    public void actionPerformed(ActionEvent e)
    {//HERES THE PROBLEM
    if (e.getSource() == jbtFruit) //fruit button clicked
    imagePanel.add(newJLabel(imgFruit)); //tried to do imagePanel.setIconImage(imgFruit); but it didn't work
    else if (e.getSource() == jbtVege) //vege button clicked
    imagePanel.add(new JLabel(imgVege));
    else if (e.getSource() == jbtReset) //reset button clicked
    imagePanel.add(new JLabel(imgDefault));
    }//end of actionPerformed
    }//end of ChangeImage
    }//end of class

    Thank you for your help. Sorry about the format, I'll do better next time :)
    I got it to work. Here's what I came up with:
    class ChangeImage implements ActionListener
         public void actionPerformed(ActionEvent e)
              if (e.getSource() == jbtFruit)
                   lblimage.setIcon(imgFruit);
              else if(e.getSource() == jbtVege)
                   lblimage.setIcon(imgVege);
              else if(e.getSource() == jbtReset)
                   lblimage.setIcon(imgDefault);
              }//end of actionPerformed
         }//end of ChangeImageNow I just have to figure out how to add this audio clip in and I am finished!
    Thank you for taking the time to read my code and help me out.

  • Hello, When I hook my ethernet up to my Airport Express it doesn't work (ethernet works when hooked up to computer). Help? What am I doing wrong? It's just flashing an amber light.

    Anyone has experienced similar problems? Here are the details of software versions and model numbers:
    Airport Base Station Model No A1264
    Airport Utility v 5.6.1
    Mac OS X 10.6.8
    Please help.

    It sounds as though you may simply need to reset your modem. If you connect the modem to your Mac, then subsequently disconnect it and connect it to anything else, the modem may refuse to communicate with it.
    Leave the modem connected to the Express, then power down the modem and let it rest. After a moment or two, power it back up. See if the Express can be configured using AirPort Utility.
    If AirPort Utility still cannot find it, then "hard reset" the Express by holding its reset button depressed until its LED flashes rapidly. Then, it will glow steady for a moment or two, then it should begin flashing again, slowly.
    At that point select the AirPort's wireless network in your Mac's Wi-Fi menu and select "Apple Network nnnnnn", launch AirPort Utility, and configure it.
    While you do all that leave the Express connected to the modem. Do not change what the modem is connected to, without powering down the modem first. Make it a habit.

  • What am I doing wrong here?

    I have premiere pro and aftereffects CS5.5 and am having trouble with slowness/choppyness both while editing, and exporting.
    Here's my computer setup:
    Windows 7 Ultimate
    16gb gskill sniper RAM
    EVGA nvidia Geforce GTX 560 Ti
    Asus P7P55D Deluxe Mobo
    60gb SSD and 2tb external HD
    My camera's:
    Nikon d3100 - 1920x1080 24fps
    Samsung Galaxy Indulge - 720x480 and 640x480  (cell phone)
    So I got 16gb of RAM because adobe said you could run multiple of their programs with 16 or just one efficiently with 8gb.  My cell phone footage edits just fine in the editors (I can scrub super smoothly).  But when I export out no matter what format the playback is always at least slightly choppy if not more.  The nikon's HD video is slow, choppy, jumps around, freezes for a few seconds in the editor.  Then when I render the playback as a finished video is even worse.  Whats the deal?  Do you need 256GB of RAM, $6000 worth of video cards and a monitor the size of an IMAX just to edit a little HD video?  The HD clip I was trying to render was only like 1 minute long and I hadn't started adding effects, just cutting.
    Thankyou so much,
    -WooDy
    p.s.  If I do ever manage to be able to edit a video, what is the best format for exporting in?  The highest quality possilbe.

    Oh another thing.  I know alot of people use imacs with these programs and run completely smoothly.  I had witnessed it before I got into all this.  I checked out the apple website and took a look at the hardware:
    i5 or i7 anywhere from 2.5-3.1 ghz. - i have an i7 rated at 2.93
    4-16gb 1333mhz RAM depending - I have 16gb 1333 RAM (that won the 720 hd award)
    6000 radeons depending - i have a evga nvidia gtx GeForce 560 Ti (mine's more recommended than theirs by adobe)
    sorry for forgetting to list my processor before - Intel i7 870 quad 2.93mhz
    -WooDy

  • Can someone point to me what am I doing wrong here?

    I have radio buttons that populate a dropdown based on which radio button is selected. The based on that choice is made on drop down another drop down is populated
    Radio button populate the drop down fine, then when make choices in dropdown1, as soon as click out it goes back to the first choice in drop down?
    here is the code in dropdown1, CF is the family of radio buttons
    if (this.getField("CF").value == "Central Office"){
           this.getField("drop1").setItems(["Finance", "CEO", "Business Office", "Human Resource", "Maintenance", "Transportation", "Communication"]);
    then based on choice on dropdown1 the dropdown2 is populated:
    else if (this.getField("drop1").value == "CEO"){
           this.getField("drop2").setItems(["001-2411-439-0000-000000-601-00-000"]);
    else if (this.getField("drop1").value == "Business Office"){
           this.getField("drop2").setItems(["001-2412-439-0000-000000-602-00-000"]);
    else if (this.getField("drop1").value == "Human Resource"){
           this.getField("drop2").setItems(["001-2412-439-0000-000000-604-00-000"]);
    else if (this.getField("drop1").value == "Maintenance"){
           this.getField("drop2").setItems(["001-2700-439-0000-000000-602-00-000"]);
    else if (this.getField("drop1").value == "Transportation"){
           this.getField("drop2").setItems(["001-2800-439-0000-000000-602-00-000"]);
    else if (this.getField("drop1").value == "Communication"){
           this.getField("drop2").setItems(["001-2932-439-0000-000000-607-00-000"]);
    else if (this.getField("drop1").value == "Finance"){
           this.getField("drop2").setItems(["001-2960-439-0000-000000-606-00-000"]);

    there are radio button, and two drop downs dropdwn1 and dropdown2
           this.getField("drop1").setItems(["Finance", "CEO", "Business Office", "Human Resource", "Maintenance", "Transportation", "Communication"]);
    this is place in dropdown1 as custom calculation script
    this one is placed in dropdown2 as custom calculation script
    if (this.getField("drop1").value == "Finance"){this.getField("drop2").setItems(["001-2421-439-0000-000000-001-00-000", "001-2219-439-0000-000000-001-00-000"]);
    }else if (this.getField("drop1").value == "CEO"){
           this.getField("drop2").setItems(["001-2411-439-0000-000000-601-00-000"]);
    it seems things goes wrong when the radio button is involved, but if the radio button is not clicked, then can pick choices in dropdown1 and it populates dropdpwn2 fine!

  • Can somebody tell me what i'm doing wrong here?

    ok, 2 days of trying and i'm pretty tired of this.
    I've trying to get rid of my "Kerberos is stopped" status in my Open Directory. First I thought the problem with my setup but then, yesterday, I tried to install Mac OS X server on VMware Fusion, and I got kerberos running right away. I thought I was lucky, so I reformat the virtual disk and reinstall Leopard server, it worked again, and the same thing for the third time.
    Then, I went back and to my Mac mini and install Leopard server on it, setup DNS, then OD. Right after I change my OD to master, I see kerberos is stopped. I'm pretty sure that my setup procedure was perfect as I followed the Lynda's server training video, and had 3 success on VMware but not on my Mac Mini. I reinstall and same thing happened "Kerberos is stopped", and again and again. All fresh install.
    Anybody know why?
    Also, my Mac Mini is 2009 model and I have to follow this guide to get my Leopard Server disc to work on the Mac Mini.
    http://support.apple.com/kb/HT3479
    I don't think upgrade from Leopard Client to Leopard server causes the problem but who knows. If so, what are other alternatives?
    Thanks!

    Well, perhaps not as part of that article. But there used to be an article about tearing down and rebuilding the Kerberos KDC. It was that article I was searching for when I noticed the article you linked to came up in the search results, which prompted me to notice the extra clause at the end.
    This was the article I was looking for (which now seems to be 10.4 specific):
    http://support.apple.com/kb/TA23421?viewlocale=en_US
    Also, just FYI, I recently setup two servers for clients similarly to how you did yours (install server on top of regular OS). I had HEAPS of trouble due to irregularities in the config files, e.g. imapd.conf. So, be watchful.

  • What am I doing wrong here? Vids look correct in FCP but not in Quicktime..

    Hi,
    I have a few quicktime movies that I made a long time ago. I have dragged them to my hard drive and they look great and play exactly how I edited them in Final Cut Pro. However, when I open them in Quicktime or try to play them into any other format (Flash) they appear wider.
    Now I am confused as it appears every movie I have ever saved seems to be distorted when I play it in Quicktime.
    Are there some settings within FCP or Quicktime that I am not aware of?
    Are both programs accurately playing what is recorded?

    I am having this exact same issue. My sequence is 352x288 the video looks great in FCP but every time I Export this sequence straight out through QuickTime (not QT Conversion or Compressor) self-contained and using the current settings it plays back in QuickTime as 720x480 (640x480) millions in DV format. I even tried to force the export to a customized setting with the 352x288 frame size and it still plays back at 720x480 making the video look fuzzy and stretched. We've already spent a few hours testing other options with no success.
    Oh and what's odd is if I open the same exported file in FCP's Viewer the size is correct and when I view the exported file's info (Apple+I) it says Dimensions: 352x288. Codec is DV/DVCPRO - NTSC. One thing I just thought of while typing this is would changing the codec make a difference since the original footage is 720p from an HVX200 camera? If I should change it what should I change it too?
    The viewers will be watching this in QT Player. I'm using FCP7 and QT7 also tested with QTX with the same results.
    Any idea is better than none, thanks!
    Lance

  • What am I doing wrong? Please I need your HELP!

    Hi.  I am currently writing a program to measure temperature by converting voltages into Kelvins, and here is my set up:
    I have my thermocouple wires (type K) connected to the Omega cold junction compensator which is connected directly to the Data Acquisition card (ai-2 and ai-ground).  In my DAQ Assist. (Analog input as voltage), I have my min set at -10 volts and my max set at 10 volts, collecting about 100 sample at 1000 (Hz).  The output of this is then connected to the converting thermocouple reading.vi with settings as below:
    Temperature unit: Kelvin and Type: K.  The results that I got was about 273 Kelvins (this was measure at room temperature).  What am I doing wrong?
    I also tried another method. I have my thermocouple wires (type K) connected to the Omega cold junction compensator which is connected directly to the Data Acquisition card (ai-2 and ai-ground).  In my DAQ Assist. (Analog input as Temperature: Thermocouple).  I set the temperature range from -270 degree Cels. to 1372 degree Cels., type K, and I also tried setting the CJC constant at 0, 23, and 25 but everytime the temperature turns out to be about 3372 degree Cel. What am I doing wrong here?

    A typical cold junction compensator just adds a cold junction reference. Your voltages are still thermoelectric voltages of a few millivolts. +- 10V is probably way too insensitive.
    LabVIEW Champion . Do more with less code and in less time .

  • Ok so i was wondering what im doing wrong here

    i have one driver class and 2 objects that im trying to read into it. the RightArrow and LeftArrow compile but the demo class gives me these errors
    F:\ArrowDemo1.java:25: setTail(int) in RightArrow cannot be applied to ()
                   RightArrow.setTail();
                   ^
    F:\ArrowDemo1.java:29: setArrowheads(int) in LeftArrow cannot be applied to ()
         LeftArrow.setArrowheads();
         ^
    F:\ArrowDemo1.java:30: setTails(int) in LeftArrow cannot be applied to ()
         LeftArrow.setTails();
         ^
    4 errors
    what am i doing wrong here.
    public class ArrowDemo1
       public static void main(String[]args)
            Scanner keyboard = new Scanner(System.in);
            System.out.println("Do you want your arrow to point right or left");
            System.out.println("Type right or left");
            String rightLeft = keyboard.nextLine();
            if  (rightLeft.equalsIgnoreCase("right"))
                      RightArrow.setArrowhead();
                      RightArrow.setTail();
            if (rightLeft.equalsIgnoreCase("left"))
                 LeftArrow.setArrowheads();
                 LeftArrow.setTails();
    public class LeftArrow extends Figure
         Scanner keyboard = new Scanner(System.in);
         private int base;
         private int head;
         private int tail;
         public void setArrowheads(int headsUp)
              System.out.println("Please enter a head length for your arrow");
              headsUp = keyboard.nextInt();
              if (headsUp < 1)
                      System.out.println("Sorry the head length must be larger than 0");
                      System.exit(0);
              if (headsUp >= 3)
                 int oddTest = (headsUp%2);
                 if (oddTest == 0)
                      System.out.println("Sorry you must enter an odd number of 3 or higher");
                      System.exit(0);
           head = headsUp;
        public void setTails(int tail)
                   System.out.println("Please enter a tail length for your arrow");
                   tail = keyboard.nextInt();
                   if (tail < 1)
                           System.out.println("Sorry the tail length must be larger than 0");
                           System.exit(0);
    public class RightArrow extends Figure
        Scanner keyboard = new Scanner(System.in);
         private int base;
         private int head;
         private int tail;
         public void setArrowhead(int heads)
              System.out.println("Please enter a head length for your arrow");
              heads = keyboard.nextInt();
              if (heads < 1)
                      System.out.println("Sorry the head length must be larger than 0");
                      System.exit(0);
              if (heads >= 3)
                 int oddTest = (heads%2);
                 if (oddTest == 0)
                      System.out.println("Sorry you must enter an odd number of 3 or higher");
                      System.exit(0);
           head = heads;
        public void setTail(int tails)
              System.out.println("Please enter a tail length for your arrow");
              tails = keyboard.nextInt();
              if (tails < 1)
                      System.out.println("Sorry the tail length must be larger than 0");
                      System.exit(0);
            tail = tails;
    }

    duffymo wrote:
    How do you ever expect to understand Java when you can't read English?
    Did you read the error messages?This is one of the things that frustrates me the most. People see an error message, and they freak out. "OMFG! I don't know enough Java to understand these mysterious runes! I need to find someone to tell me what magic spell to type (since programming is, of course, all about memorizing what to type) to make it go away!"
    I know some of the messages are kind of cryptic, but many of them--this one being a prime example--are very explicit if you just take a few seconds to read it. Are people so bloody afraid to even try to engage their brains? Does nobody even have the most basic concept of observing a problem, taking a moment to study what's happening, using a tiny bit of knowledge, logic, and guesswork to come up with a potential solution or two, and then trying it out? Is everybody really so fuckityfucking helpless? Is simple analysis a lost art, doomed to go the way of [Damscus steelmaking|http://en.wikipedia.org/wiki/Damascus_steel]?
    </rant>
    Edited by: jverd on Mar 29, 2008 12:56 PM

  • Not quite sure what I'm doing wrong.

    As the topic states, not quite sure what I'm doing wrong here. I'm doing a problem for a class and maybe you guys could help me out, or point me in the right direction. The question states:
    "Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula: "
    futureInvestmentValue = investmentAmount x (1 + monthlyInterestRate)numberOfYears*12
    (numberOfYears is to the power)
    import javax.swing.JOptionPane;
    public class Investment {
         public static void main(String[] args) {
                double investmentAmount;
                double interestRate;
                double investmentValue;
              int years;
              String stringInvestmentAmount = JOptionPane("Please Enter An Investment Amount");
                   investmentAmount = Double.parseDouble( stringIvestmentAmount );
              String stringIntrestRate = JOptionPane("Please Enter An Intrest Rate In Decimal Form");
                   intrestRate = Double.parseDouble( stringIntrestRate );
              String stringYears = JOptionPane("Please Enter A Number Of Years");
                   years = Int.parseInteger( stringYears );
              interestRate = 1 + interestRate / 12; //Monthly interest, I believe this is how you calculate it.
              investmentValue = investmentAmount * Math.pow(interestRate, years * 12); //Now the exponent should be the number of months.
              System.out.println("Your investment value is " + investmentValue + ".");
    }My Errors are:
    C:\Java\Investment.java:15: cannot find symbol
    symbol : method JOptionPane(java.lang.String)
    location: class Investment
    String stringInvestmentAmount = JOptionPane("Please Enter An Investment Amount");
    ^
    C:\Java\Investment.java:16: cannot find symbol
    symbol : variable stringIvestmentAmount
    location: class Investment
         investmentAmount = Double.parseDouble( stringIvestmentAmount );
         ^
    C:\Java\Investment.java:18: cannot find symbol
    symbol : method JOptionPane(java.lang.String)
    location: class Investment
    String stringIntrestRate = JOptionPane("Please Enter An Intrest Rate In Decimal Form");
    ^
    C:\Java\Investment.java:19: cannot find symbol
    symbol : variable intrestRate
    location: class Investment
         intrestRate = Double.parseDouble( stringIntrestRate );
         ^
    C:\Java\Investment.java:21: cannot find symbol
    symbol : method JOptionPane(java.lang.String)
    location: class Investment
    String stringYears = JOptionPane("Please Enter A Number Of Years");
    ^
    C:\Java\Investment.java:22: cannot find symbol
    symbol : variable Int
    location: class Investment
         years = Int.parseInteger( stringYears );
         ^
    6 errors
    Tool completed with exit code 1
    Edited by: Close on Oct 23, 2007 4:12 PM

    String stringInvestmentAmount = JOptionPane("Please Enter An Investment Amount");What is this line trying to do? If you are trying to create a JOptionPane object and pass that String to the constructor then you need the new keyword. If you are trying to call a method of the JOptionPane class then it would be a good idea to include the method name. I sure you are trrying to do the second option.
    Once you fix that, it is likely the other errors will disappear. Or different ones will emerge.

Maybe you are looking for

  • Outlook does not appear as an option when setting up synchronization

    I need help.  I recently bought the BB Curve 8330.  When I attempt to set up the sync configuations between Outlook and the BB, Outlook does not appear as a choice.  What do I need to do to get Outlook to appear?  I called Verizon customer service an

  • How to unlock Hp Desk top.

    My daughter has forgotten the password for her HP Desktop model 120-1333W that she hasn't used since high school. I need to know how to unlock the computer or how to factory reset the computer so I can give it to her younger brother?                 

  • My account keeps getting disabled

    Ive just taken the punge and bought my first new Macbook pro.. whats infuriating me is the constant disabling of my account everytime I log in... my password is a very strong password and I nearly gave up with my iPOD because of this. If this doesnt

  • Captured 16:9 appears 2.35:1  though??

    I am simply looking for some consistency in my work flow. For some reason I am getting my SD footage to be fine and full screen 16:9 SD on my HDTV but on other projects and in the viewer/canvas...it appears 2.35:1 (meaning the screen is not only 16:9

  • United States at the bottom of my mailing addresses?

    How  can I stop Address Book from adding United States to the bottom of my addresses? I don't want any country after the Zip code.