Vector of objects problem

Hello All,
I am trying out a program which uses vector of objects.It is throwing an exception when I compile it.The aim of the program is.
for eg if we have a set of producers
count =5
P1 P2 P3 P4 P5
7 8 9 10 11
C1 C2 C3 C4 C5
1 2 3 4 5
store all those pairs of consumers and producers where (Ci <=Pi).
Hash table keys will be of the form S0,S1,S2..SN
in this Case SO should correspond to a vector which is (7 1),(8 1),(9,1),(10,1),(11,1)
similarly
S1 should be (8,1),(8,2) etc.
I have tried writing the code it doesnt work why.
Thanks.
Regards.
NP
import java.io.*;
import java.util.*;
import java.lang.StrictMath;
import java.util.ArrayList;
class CollectionCache
private final Map cache;
public CollectionCache()
cache=new Hashtable();
public Collection put(Object key,Collection value)
return(Collection)cache.put(key,value);
public Collection get(Object key)
return(Collection)cache.get(key);
public class Participant
boolean isProducer;
double value;
String name;
static double resources_used;
static int p=0;
static int q=0;
//static int[] final_index_pro=new int[100];
//static int[] final_index_con=new int[100];
public void set_is_pro_or_con(boolean ispro)
isProducer=ispro;
public boolean get_is_pro_or_con()
return isProducer;
public void set_is_pro_or_con_value(double value)
this.value=value;
public double get_is_pro_or_con_value()
return value;
public void set_is_pro_or_con_name(String name)
this.name=name;
public String get_is_pro_or_con_name()
return name;
public static void main(String args[]) throws IOException
ArrayList Producer=new ArrayList();
ArrayList Consumer=new ArrayList();
Collection c=new Vector();
int i;
BufferedReader console= new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the number of resources you want to input");
String input=console.readLine();
int count=Integer.parseInt(input);
System.out.println(count);
for(i=0;i<count;i++)
Producer.add(i,new Participant());
for(i=0;i<count;i++)
Consumer.add(i,new Participant());
System.out.println("Reading values into producer array");
for(i=0;i<count;i++)
((Participant)Producer.get(i)).set_is_pro_or_con(true);
String t="P"+ i;
((Participant)Producer.get(i)).set_is_pro_or_con_name(t);
((Participant)Producer.get(i)).set_is_pro_or_con_value((int)(StrictMath.random()*10 + 1));
System.out.println("Reading values into consumer array");
for(i=0;i<count;i++)
((Participant)Consumer.get(i)).set_is_pro_or_con(true);
String t="P"+ i;
((Participant)Consumer.get(i)).set_is_pro_or_con_name(t);
((Participant)Consumer.get(i)).set_is_pro_or_con_value((int)(StrictMath.random()*10 + 1));
//Making Graph topology
System.out.println("producer array");
for(i=0;i<count;i++)
//System.out.println(dup_producer.get_is_pro_or_con());
//System.out.println(dup_producer[i].get_is_pro_or_con_name());
System.out.println(((Participant)Producer.get(i)).get_is_pro_or_con_value());
System.out.println("consumer array");
for(i=0;i<count;i++)
//System.out.println(dup_consumer[i].get_is_pro_or_con());
//System.out.println(dup_consumer[i].get_is_pro_or_con_name());
System.out.println(((Participant)Consumer.get(i)).get_is_pro_or_con_value());
System.out.println("Values Printed");
//String s;
CollectionCache cc=new CollectionCache();
int j=0;
while(j<count)
for(i=0;i<count;i++)
if( (((Participant)Consumer.get(j)).get_is_pro_or_con_value()) <= (((Participant)Producer.get(i)).get_is_pro_or_con_value()))
c.add(Double.toString((((Participant)Consumer.get(j)).get_is_pro_or_con_value())));
c.add(Double.toString((((Participant)Producer.get(i)).get_is_pro_or_con_value())));
final Object s="S" +j;
cc.put(s,c);
j++;
j=0;
while(j<count)
Collection value=cc.get("S" + j);
if(value!=null)
for(Iterator it=value.iterator(); ;it.next())
System.out.println(it.next().toString());
j++;

Or if you want to keep it in as small a scope as possible:
Iterator it = valu      e.iterator();
  while (it.hasNe                                                       xt()) {
    System.out.println(it
.next
}

Similar Messages

  • Vector.indexOf(object) problem?

    Hi,
    I'm looping thru a sql resultset with three rows and trying to match values in a column with values in a vector. Even tho the values appear to be perfect matches, I keep getting -1 on all the values.
    <%= vectorRank.indexOf(crsSkill.getobject("Score")) %>
    The vector looks like this.
    [3.4, 1.6, 1.6]
    And the three values of Score in my resultset are 1.6, 3.4 and 1.6 in that order.
    I would have expected to get a result of 1,0,1 yet all three are returning -1.
    Any suggestions?
    Thanks,
    Chris

    I would have expected to get a result of 1,0,1 yet all
    three are returning -1.
    Firstly, i assume you mean 1,0,2 ?
    Aynway a value of -1 returned means that the Object that you are looking for, is not there. Therefore, you have one of two problems. Either the value of the vector cells do not contain what u think they do, or the result set value doesnt.
    Perhaps try testing it by outputting the value each time to see if it is what you think it is.

  • Program error when attempting to edit a vector smart object. Help?

    I'm running Photoshop CS6 (13.0.1) 64bit on a MacBook Pro running OS X Lion. About 60% of the time when I try to double click a vector smart object instead of opening it up in Illustrator I get an error that says, "Could not edit original smart object because of program error." This most recent time it was a smart object from vector data I copied and pasted from Illustrator into Photoshop.
    Any idea why this is happening and how I can fix it?
    Thanks.

    Hi there, 
    I got this problem when I installed Adob master collection Over CS 5.
    I had children book story storis which created in Adobe illustrator CS 5 and I created art boards in Adobe photoshop cs 5.
    After installting CS 6 i tried to edit the smart objects and it was not opeinging the smart object file in Illustrator.
    I did some tests.
    1) Right click on smart object layer and click export contents. Save on desktopp or anywhere you want. (I saved on desktop)
    2) I had this file on my desktop (Vector Smart Object10.ai) but it didn't show any icon, which program should open this type of file.
    3) Double click on the file and it pop up a extension window 'Click on change and select adobe illustrator' and press OK.
    4) Go back to your photoshop file and right click on smart object layer and click dit content. now this time it opens up assets in illustrator.
    ENJOY!
    www.4d-studios.co.uk

  • Is it possible to export Vector Smart Objects as vector SVG files from Photoshop CC 2014?

    I have Vector Smart Objects copied from Illustrator and pasted into Photoshop. I would like to export them as vector SVG files (using Generator or Extract Assets). I can add the .svg extension to the layer and actually export an SVG just fine. The problem is any SVG I have exported have all been raster images. It defeats the purpose of having that as an option as far as I'm concerned.
    I remember watching and listening to keynotes and other speakers at Adobe MAX 2014 who said it was so powerful and amazing to create SVG files from Photoshop. If we're still exporting raster SVG files from Photoshop...that's not very impressive or exciting--especially since this era of modern web development benefits greatly from using vector SVG files.
    I understand that Shape Layers can be exported as vector SVG files but that seems very limiting. I also realize that users can create some impressive vectors in Photoshop, but that is not optimal. Illustrator is a better tool for creating vectors and I normally use Photoshop and Illustrator side-by-side. I know that vector SVG files can be exported from Illustrator but that isn't as user friendly and convenient as utilizing Photoshop > Generator > Reflow.
    My idea was to create my assets in Illustrator, paste them into Photoshop as Vector Smart Objects, set up my layout, and then use the Generator/Reflow method or Extract Assets to get a new web design started.
    Maybe I misunderstood what the speakers at Adobe MAX had said. Perhaps it's just user error and I'm just missing something simple (it happens).
    Photoshop CC 2014 notes the following under Help > System Info:
    Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532  x64
    Operating System: Windows 8.1 64-bit
    Any help or suggestions would be greatly appreciated! Thank you in advance for your time.

    Not quite the same, but have a look at the new Libraries feature that came with 2014.2.2  I just tried it, and dragging a vector object into a library I created in Photoshop, was there in Illustrator.  This happens without having to close and reopen Illustrator.  Just use the drop down at the top of the Libraries panel (in Illustrator) to find your custom, or job specific library.

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • PS opens vector smart object all pixilated

    I have this problem when using graphics from Illustrator as vector smart objects in Photoshop. I have followed tones of heated discussions on this but I haven't got any further. So here is what I do following the steps on the PS help: I copy graphics in AI and paste them in PS as smart object. A layer will be added that even has the name vector smart object but the graphic itself is all pixilated. Now the size of my PS-file is 150X150 Pixels with a resolution of 300. I need this size because I want to implement the file into my website and the layout requires this size for all my graphics. I would say it doesn't matter much what size the file is anyway since according to the PS help whatever vector smart object I place in Photoshop it won't change image quality when transformed. Therefor I'd say that not even the small file should be a problem here. But obviously there is something not working... because even when, to compare, I paste the graphic as pixel it shows the same result. Strange enough that I have used this vector smart objects before and it worked just fine... So I tried to paste the graphic in different ways, saving it as pdf in AI and then placing it in PS, insert it directly as smart object, making sure the file handling and clipboard references are adjusted, and finally after no success trashing the preferences in both applications. Still not closer to a satisfying result. I attach the graphics (first the AI graphic, then the vector smart object from PS) to show the difference and maybe there is someone out there that can tell what I am doing wrong. By the way I just converted the files to jpegs to post them here so the sizes might not match on the screen...

    One other thing to check...
    Are you viewing the display at 100%?
    Photoshop's OpenGL-based image resizing algorithms are smoother and fuzzier than they used to be (or than they are with OpenGL disabled).  What I'm getting at is that you may be perceiving fuzziness in the display that's not really there in the image.
    How does the fuzziness look if you zoom in a lot?
    -Noel

  • Scope of a non-static method printing a vector of objects

    Hello everyone,
    I'm new to using the java.util.Vector package. I wanted to create a print out of all the objects of class "Student" that I created within a "students" vector. My problem is that scope is causing a compile error when calling the print method acting on the students vector. Anybody got any ideas? Further to this I'd like to keep my printVec() generic enough so that I can create a class "Teachers" and a "teachers" array and make the the printVec() method able to print both, ie;
    teachers.printVec()
    students.printVec()My code is below;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    class Example {
       public static void main(String[] args){
          Vector<Student> students = new Vector<Student>();
          students.addElement(new Student("Billy"));
          students.addElement(new Student("Ryan"));
          students.addElement(new Student("William"));
          students.addElement(new Student("Jason"));
          //the below print algorithm works...
          for(int i=0;i<students.size();i++)
             System.out.println(i+" "+students.elementAt(i).getName());
             //however i can't get this following one to work...
    //       students.printVec();
             //uncomment above line
       public void printVec(){
    //      for(int i=0;i<students.size();i++)//uncomment these lines
    //         System.out.println(i+" "+students.elementAt(i).getName());//uncomment these lines
            //uncomment above two lines
    class Student{
       //constructors
       public Student(String name){
          this.name = name;
          this.subjectNumber = -1;
          this.tutorialNumber = -1;
       //methods
       public String getName(){
          return name;
       //fields
       private String name;
       private int subjectNumber;
       private int tutorialNumber;
    }

    You should use an Iterator, not get(). And youshould
    prefer ArrayList over Vector.Why are you telling me this? I know this already... I
    was reusing the OP's way so that he/she/it could see
    it done his/her/its way.I have no way of knowing what you do or don't know. I only saw crap code, so I corrected it.
    >
    That won't work if more than one student has thesame
    name, and it's a very counterintuitive way to
    approach the problem.Um... yes, it will work if more than one student has
    the same name. It will not work if students in the
    Vector share memory. It searches for memory, not the
    name.Actually, we're both wrong.
    If Student overrides equals to be based on name, then it won't work as I described. If not, then it will work.
    It only looks at "memory" if Student does not override equals.
    I didn't think that there would be a problem with
    memory, but if there is, simply add a counter:????
    What are you talking about?
    public static void printVec(Vector<Student> students)
    int count = 0;
    for (Student s : students) {
    System.out.println((count++) + " " +
    + " " + s.getName());
    }That's the right way to do it, but that has nothing to do with "a problem with memory."

  • Passing vector of object with multiple datatype

    Hi
    I want to pass vector of objects to stored procedure and I am facing some problem
    please suggest is it possible or I need to follow some other way.
    I have one class detail with two attributes i.e int ID and string course
    In main I have created 1000 objects of different ID and course and pushed back the objects to avector of detail and passed to a function my function is
    void bulkdatainsert(vector<detail>rec)
    stmt = conn->createStatement ("begin storeBulk(:1);end;");
         stmt->setMaxIterations(rec.size());
         stmt->setMaxParamSize(1,1024);
         setVector(stmt,1,rec,"course"); // The error coming here
    The error is due to the type rec .
    I want to know can we pass objects of multiple data to stored procedure through OCCI ?
    If not do we need to break every attribute and make vector of corresponding attributes and pass to stored procedure?
    please suggest me
    Thanks

    I think Custom objects are not supported directly.
    Following are the normal ones which you can use
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector< T > &vect,
    const string &schemaName,
    const string &typeName);
    Intended for use on platforms
    where partial ordering of function
    templates is not supported, such
    as Windows NT. Multibyte
    support.
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<T* > &vect,
    const string &schemaName,
    const string &typeName);
    Intended for use on platforms
    where partial ordering of function
    templates is supported. Multibyte
    support.
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<BDouble> &vect
    const string &sqltype);
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Bfile> &vect,
    const string &schemaName,
    const string &typeName);
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<BFloat> &vect
    const string &sqltype);
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Blob> &vect,
    const string &schemaName,
    const string &typeName);
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Blob> &vect,
    const UString &schemaName,
    const UString &typeName);
    Sets a const Blob vector; UTF16
    support.
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Clob> &vect,
    const string &schemaName,
    const string &typeName);
    Sets a const Clob vector;
    multibyte support.
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Clob> &vect,
    const UString &schemaName,
    const UString &typeName);
    Sets a const Clob vector; UTF16
    support.
    void setVector(
    Statement *stmt,
    unsigned int paramIndex,
    const vector<Date> &vect,
    const string &schemaName,
    const string &typeName);
    Sets a const Date vector;
    multibyte support.

  • Illustrator CC crashing during Vector Smart Object save

    I have a user who is running Adobe CC under Yosemite  on a new 5K iMac.
    After a few weeks of no issues she is suddenly unable to open Vector Smart Objects from Photoshop into Illustrator and save them after editing.
    Illustrator crashes as soon as she tries to save.

    Do you mean that you are double clicking on placed smart object and you get the error. Is the smart object originally from Illustrator and does Illustrator open open?
    Would help to know more detail about EXACTLY when your error happens and far you get. This way we can determine if you have a file association problem, memory problem, corrupt font/image problem.

  • Vector smart object from PS to AI

    Hi...
    System: Win XP, CS4
    Is it possible to copy a vector smart pbject from PS to AI? Note from PS to AI? HAve tried dragging and dropping... it doesn't seem to work.

    If I'm understanding your original question, this answer is not correct. I had the same question as your original. "copying a vector smart object from PS to AI?"
    This is the problem I was having and I only found one way to solve it. Would love it if someone could give me a quicker workflow. My solution seem tedious.
    RECAP:
    Problem: Vector object was originally created in photoshop and I want to bring it into AI as vector art.
    Answer:
    1. Convert the "vector object" in Photoshop to a "Smart Object" by selecting the layer, then go to Layer > Smart Objects > Convert to Smart Object
    2. Double-click on the smart object's icon in the layers palette. This opens the object in a new Photoshop window
    3. Choose File > Export > Paths to Illustrator... (Note: With the smart object layer selected, you can switch over to the "Paths" tab and see your object's editable path and name)
    Again, I may have misunderstood your original question, but what I've listed here is the only way I've been able to bring a vector object originated in Photoshop over to Illustrator. Pain in the ***.

  • Understanding Vector Smart Objects in PSD

    I'm trying to learn to use Smart Objects in PS to edit files created in AI. I watched the Adobe TV video as well as a few others. It seems easy as pie. But one thing confuses me. What is the file that gets created called  Vector Smart Object.ai? Do I need to do anything with it? Does it et saved anywhere? I don't see it in the folder in which I've stored my psd and ai file. It just seems to go away when I close everything down. BTW- I'm in cs 6 and am using Place command. Many thanks for helping me to understand this.

    If I am in CS 6, then are you saying I can currently delete the ai file and still be ok - that that is how CS6 & Embedding works?
    Yes. You can easily verify this. Move the used AI file to another location via Explorer/Finder so Photoshop won't find it. Open your PSD file and you will see that Photoshop opens the file just fine because there is no connection any more with the original file.
    And if so - what are the benefits of the Linking compared to the current Embedding - now available in CC? - again - many thanks!
    Say you use the same logo made in Illustrator on many different projects e.g. a letter head, a poster, a business card, whatever. Now your client says: I like all the different layouts but I think I would prefer green text instead of blue text... No problem at all for you, you change it once in the AI file and it will update automatically in all the linked objects.
    Obviously in that case, the AI file can not be deleted or moved or Photoshop (and you) will have a heart attack...

  • Illustrator Uknown Error - Saving Vector Smart Object

    Hi,
    When I open a vector smart object from PS I get 'An Uknown Error Occured' and can't save the file. Has anyone else run into this? I'm not sure how to fix it. Thanks.

    Do you mean that you are double clicking on placed smart object and you get the error. Is the smart object originally from Illustrator and does Illustrator open open?
    Would help to know more detail about EXACTLY when your error happens and far you get. This way we can determine if you have a file association problem, memory problem, corrupt font/image problem.

  • Vector smart object to photoshop

    I swear im not an idiot, yet here I am with another problem..
    Im ok with illustrator but not good at all with photoshop.
    I am doing a business card in illy and want to place it into photoshop to add final texture.
    It is standard business card size, mosaic type effect with type. not very complicated.
    I copy and place into photoshop as a vector smart object and it comes out pixelated beyond belief.
    I have double checked that anti-alias and AICB/PDF are checked on. If i save it as a PNG file it seems to work, but that seems like an unnecessary step..
    I am using Illy CS5 to photoshop CS4, if that matters.
    any ideas?

    I am going to guess that you have not committed the type and it is just a preview issue that will go away once you do commit the pasted text.
    Not yet committed but pasted
    committed
    BTW if rasterize the text in Illustrator and then go to Object>Create Mosaic you will end up with the vectorized Mosaic art. Like such
    This is when the art is selected, so you can recolor and tweak it manually.

  • Paste a Vector Smart Object into Photoshop

    I was wondering if anyone knew of a way to paste a vector smart object from illustrator into photoshop without the dialog box coming up that has you accept the size/placement of the object.
    I am able to do this using the code the scriptlistener plugin spits out but not without it. Unfortunately I'm running into a few problems with using the code the scriptlistener spits out so I was just wondering if anyone knew of a way to do it without that.
    Thanks!

    This is the best I could come up with...
    pasteSO();
    function pasteSO() {
    var desc3 = new ActionDescriptor();
    desc3.putBoolean( charIDToTypeID('AntA'), true );
    desc3.putClass( charIDToTypeID('As  '), stringIDToTypeID('smartObject') );
    desc3.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
    var desc4 = new ActionDescriptor();
    desc4.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 );
    desc4.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 );
    desc3.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc4 );
    try{
    executeAction( charIDToTypeID('past'), desc3, DialogModes.NO );
    }catch(e){}

  • Embedded Vector smart object fails to update after saving swatch library in Illustrator

    I am using Photoshop CC 2014 and Illustrator CC 2014 on MacOS 10.9.5
    I originally posted this in the Photoshop forum, but it was suggested that I try posting it here since Illustrator is likely to be the culprit.
    To cause this issue;
    1 - Paste an Illustrator into Photoshop as a Vector Smart Object
    2 - Edit content with that object selected
    3 - in Illustrator, save a swatch library in AI format
    4 - Make a change to the object so that you can save changes, then save
    5 - Switch back to Photoshop and let the vector smart object update
    You will see the following image:

    V:
    I'm calling troll on your behind, mister.
    Neil's the moderator and here you are wide-eyed (wha??). If you didn't know that how can you comment on the culture here. The culture I see is people coming here with their problems and then copping an attitude. Always the same. And "the usual suspects" always rise to the same bait. But plonk them all you want. Many here have tried and failed to clean up things. I have found the "attitude" here quite justified much of the time.
    - i have 20 years experience so adobe's an idiot
    - why can't the software work the way I want
    - i don't have problems in any other software so it must be adobe
    - those who question me on these forums are derisive idiots
    - etc etc
    After a while you will also be familiar with this attitude. MO's right, hopefully soon Adobe will have a sandbox forum for (lame) folks to speak with a few quiet ones responding in their second (or third) written language the scripts they've been supplied. And half the time they'll lick em good. But you and I will still be here getting shat on for our moxy. For our overwhelming intelligence.

Maybe you are looking for

  • ISE AuthZ policy based on FlexConnect Group

    Hi all, I understand that it is possible to have the WLC send different NAS-ID attributes to the CIsco ISE so that I can create specific AuthZ policies based on that NAS-ID attribute. The only thing is that I cannot see anywhere in the FlexConnect AP

  • Booting issues

    Hello folks, I have Windows 7 Machine, I am trying to remove the 7 from my machine and planning to make it as Linux machine. Now i installed Linux 5.4 32bit in my machine, while installing linux i selected REMOVE THE EXISTING PARTITIONS AND CREATE DE

  • Email via POP on iPhone 4S?

    I am trying to set my iPhone 4S to download my email (from gmail) via POP rather than IMAP, but can't seem to do it. Google's instructions say there should be a tab to tap to switch from IMAP to POP, but I can't find it. Has the POP option been disab

  • TC at One Location - Back-Up from Another via VPN

    Not sure if anyone else has this, but I have a TC in one office and I get my back-ups when in that office. The office is connected to an offsite location via a constant VPN connection using Watchguard equipment. My question is, can I run the back-ups

  • During Bootcamp Partition Creation, Mac Crashed

    Hello, While I was running through the Bootcamp process, my Mac randomly decided to spazz out freezing everything except the mouse. To the point that I had to force a restart. When I logged back onto OSX I could see that it created the partition as m