Multiple Instances of Linked List

i need to create multiple linked lists; the amount of linked lists i'm creating is based on a user inputted value. what's the quickest and most convient way to do this?

This is another question based on my post yesterday .
. . . is it possible to create a JTable with an array
of Linked Lists? i'm trying but i'm getting a complie
error that says
" constructor JTable
(java.util.LinkedList[],java.lang.String[]) not found
in class javax.swing.JTable "
i'm calling the method createTable and passing an
array of LinkedList to it.The error you're getting from the compiler should tell you quite plainly that no, it's not possible. At least not that way.
Look at the API docs and see if there's a constructor that does take an array of Lists. If not, you'll have to figure out how to make your data fit into what it does take.

Similar Messages

  • Question about multiple classes and Linked Lists

    Lets say you have 4 classes: LinkedList which is the main class, Node, Card, and Hand. im not putting any constructors yet
    The card class keeps track of a card such as a king of diamonds:
    public class Card {
    string suit;
    string rank;
    the node class has a Card object and another node object so it would be
    public class Node {
    Card c;
    Node next;
    the hand class keeps track of the users hand. This program will ask the user if they want to add, remove, print out the hand, or print out the score of the hand, I guess it would be like this
    public class Hand {
    Node head;
    The linkedlist class will contain all the methods for doing the above
    now my questions are. Lets say I want to add a card, so I would have to add a new Node which contains the card. If i wanted to access the new nodes card contents, lets call this node g, can i do, g.c.suit and g.c.rank in which this case c is the card object in Node. Also, these are not going to be nested classes, they are going to be 4 seperate classes, if I declare all variables as private will I need to extend the classes or not and if there is a better way, let me know. Thanks alot for all your help and previous help.

    here is an example of Card and Hand ...
    not saying its good design
    but it does work
    public class Cards {
    public static void main(String[ ] args) {
    Card c1 = new Card ("ace", "diamonds");
    Card c2 = new Card ("two", "spades");
    Card c3 = new Card ("three", "hearts");
    Hand a1 = new Hand ();
    a1.add(c1);
    a1.add(c2);
    a1.add(c3);
    System.out.println("\nshowing hand ...");
    a1.show();
    System.out.println("\ndeleting " + c2.num + " " + c2.suite);
    a1.del(c2);
    System.out.println("\nshowing hand ...");
    a1.show();
    } // main
    } // class
    class Hand exists in 3 states
    and is designed to be a chain of cards ...
    1. when class Hand is first created
       a. it has no card
       b. and no nextHand link
    2. when somecard is added to this Hand
       a. it has a card
       b. and the nextHand link is null
    3. when somecard is attempted to be added to this Hand
       and it already has a card
       then a nextHand is created
       and the somecard is added to the nextHand
       a. so the Hand has a card
       b. and the Hand has a nextHand
    class Hand {
    public Card acard;
    public Hand nextHand;
    public Hand () {
      acard = null;
      nextHand = null;
    public void add (Card somecard) {
      if (acard == null) {
        acard = somecard;
        return;
      if (nextHand == null) nextHand = new Hand();
      nextHand.add (somecard);
    delete this Hand by making this Hand
    refer to the next Hand
    thus skipping over this Hand in the nextHand chain
    for example, removing Hand 3 ...
    1  -  2  -  3  -  4   becomes
    1  -  2  -  4
    public void del (Card somecard) {
      if (acard == somecard) {
        if (nextHand != null) acard = nextHand.acard;
        else acard = null;
        if (nextHand != null) nextHand = nextHand.nextHand;
        return;
      nextHand.del(somecard);
    public void show() {
      if (acard == null) return;
      System.out.println(acard.num + " " + acard.suite);
      if (nextHand != null) nextHand.show ();
    } // class
    class Card {
    public String num;
    public String suite;
    Card (String num, String suite) {
      this.num = num;
      this.suite = suite;
    } // class

  • Cant open external links and multiple instances of the same profile.

    I have multiple firefox profiles.
    I constantly have two profiles running at the same time.
    I use microsoft outlook and see an external link, I click it wishing firefox to open it in the default or new browser. It does not and says "FIrefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."
    Firefox is running fine.
    How can I open external links with a profile based setup?
    Also, how can I open multiple instances of the same profile? I find that if I click and drag a tab to another monitor, it opens a new "instance" or browser window.

    You say
    ''I have multiple firefox profiles. <br />
    I constantly have two profiles running at the same time. ''
    So you will have discovered ''-no-remote'' Note NOT to use that on the default browser; profile, only on secondary profiles.
    * http://kb.mozillazine.org/Profile_in_use#Common_causes
    You will NOT be able to open multiple instances of the same profile, clone the profile if necessary.
    If you are trying to run multiple Webmail accounts in one profile then you may well find the webmail is identifying and setting the user account that is opened. Use a Private Browsing window to get round that and open a second account.
    * [[Private Browsing - Browse the web without saving information about the sites you visit]]

  • Multiple instances of SP contact list appearing in Outlook

    I have set up 4 different contact lists in SharePoint Foundation 2010. Users have successfully connected these to Outlook 2010; however, one user is now seeing multiple instances of each contact list in Outlook (this particular user has Outlook 2013).
    Some of the lists are appearing under My Contacts and some are appearing under Other Contacts. She has tried deleting the extras, but they reappear.
    Thanks,
    Ashley

    Hmmmm
    Try System Prefs then the General Tab.... an on the Number of recent items, select 0 for Servers.... re-start, and that may clean out the cache....
    Can't say you won't have the problem again... but assuming your wife's PC is the only server you connect to, setting it to a low number may help..
    No dobut there is something to be done on the PC side... but I wouldn't even hazard a guess..

  • Multiple instances of Mail.app must be possible

    I've seen many questions regarding the possibility of running multiple instances of Mail.app as separate processes. There seems to be much good reason to be able to do so, i.e. separating work and private mail, and very little bad reason to do so (maybe some problems when doing upgrades or backups, but I'm not yet sure of this). It also seems that it should not be so hard to do.
    So far, using some web acquired wisdom, I've done the following:
    1. Duplicate mail.app:
    sudo ditto Mail.app WorkMail.app
    2. Rename the executable:
    mv /Applications/WorkMail.app/Contents/MacOS/Mail /Applications/WorkMail.app/Contents/MacOS/WorkMail
    3. Use Property List Editor to set the following values in/Applications/WorkMail.app/Contents/Info.plist (Apple-S to Save changes!):
    Root/CFBundleExecutable=WorkMail
    Root/CFBundleIdentifier=com.apple.workmail
    Root/CFBundleName=WorkMail
    Root/NSServices/0/NSPortName=WorkMail
    Root/NSServices/1/NSPortName=WorkMail
    Root/NSServices/2/NSPortName=WorkMail
    Root/UTExportedTypeDeclarations/0/UTTypeIdentifier=com.apple.workmail.emlx
    Root/UTExportedTypeDeclarations/1/UTTypeIdentifier=com.apple.workmail.emlx.part
    4. Create the following directories:
    mkdir ~/Library/WorkMail Downloads
    mkdir ~/Library/WorkMail
    4. Launch the 'new' application 'WorkMail'.
    5. Create mail accounts using the application's 'wizard'.
    Here is where the first problem is encountered. The new account directories and files are still created at ~/Library/Mail. Navigating to Mail->Preferences->Accounts->[account_name]->Advanced seems to offer the option to change the mail store account directory, but nothing can actually be changed here. So...
    6. Quit WorkMail.
    7. Move newly created account(s) directories (where [newaccountdirectory] is a directory named with the format: [mail_type]-[user]@[domain].[tld]@[pop].[domain].[tld]]) to the correct location:
    sudo mv ~/Library/Mail/[newaccountdirectory] ~/Library/WorkMail/
    8. Use Property List Editor to set the following values in ~/Library/Preferences/com.apple.workmail.plist (Apple-S to Save changes!):
    /Root/ActiveViewers/0/AttachedMailboxListExpandedItems/[0to_#_ofaccounts]/=~/Library/WorkMail/Mailboxes/...
    /Root/CurrentTransferMailboxPath=~/Library/WorkMail/Mailboxes/...
    /Root/MailAccounts/[0to_#_of_accounts]/AccountPath=~/Library/WorkMail/[new_accountdirectory]
    /Root/MailDownloadsPath=~/Library/WorkMail Downloads
    9. Relaunch WorkMail.
    Everything at this point seems to work okay, **BUT** when I launch Mail while WorkMail is launched, I find that I cannot navigate into any mail folders within Mail. I receive an error message indicating that a necessary directory is locked. It seems that the locking mechanism used by the application may be hard-coded to lock ~/Library/Mail, and both instances of the application continue to take this action when launched, making it impossible for both to work harmoniously at the same time. I will conduct more testing and experimentation, but I am not yet capable of editing the application itself. If anyone can take us this last step, I'm sure there are many who would also like to be able to take advantage of the potential functionality.
    Thanks for any input!
    Steven Stromer

    Hopefully, there is someone with a programming background who
    can take me and other who have posted similar questions through
    the final mile on this...
    Well, I do have a programming background, and I must say that it amazes me that someone might want to do what you did to “solve” a problem that IMO doesn’t exist.
    What exactly is it that you expect to accomplish by running multiple instances of Mail, and for which neither (1) organizing your mail using multiple mail accounts, custom mailboxes, rules, and/or smart mailboxes, nor (2) setting up separate user accounts, are acceptable solutions? I just don’t get it.
    I've seen many questions regarding the possibility of running multiple
    instances of Mail.app as separate processes.
    I haven’t. Could you please provide a link for such a question, preferably one asked by someone who knew how Mail and Mac OS X work, i.e. a link for a case where there really was such a need?
    There seems to be much good reason to be able to do so
    I know of no such reasons, neither good nor bad.
    i.e. separating work and private mail
    I don’t see how that’s a reason to want to run multiple instances of Mail. Could you please elaborate?
    Maybe if you tell us what exactly is the problem that you’re trying to solve, instead of focusing on a convoluted “solution” that doesn’t work, we could propose a solution that does...
    and very little bad reason to do so
    Well, if the fact that it’s so convoluted and doesn’t even work aren’t bad enough reasons, I don’t know what it is...
    It also seems that it should not be so hard to do.
    I wonder what makes you think so. It does certainly seem hard to me, so hard that I don’t even think it can be done without breaking something, if at all...

  • Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation. Any suggestions?

    Since upgrading my mid-2010 MacBook Pro from the original Snow Leopard to Yosemite 10.10.2 there have been multiple instances of restart (crash) also slow operation & pop up message stating web content has failed. Any suggestions?

    Many thanks for your interest, I've downloaded & run the app as suggested, report copies & pasted below.
    Problem description:
    Following upgrade from Snow Leopard to Yosemite 10.10.2 machine is slower & suffers from shut down / reboot and closing web pages due to unexpected error
    EtreCheck version: 2.1.8 (121)
    Report generated 6 February 2015 08:40:29 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch, Mid 2010) (Technical Specifications)
        MacBook Pro - model: MacBookPro6,2
        1 2.4 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1067 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1067 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 75
    Video Information: ℹ️
        Intel HD Graphics - VRAM: 288 MB
            Color LCD 1440 x 900
        NVIDIA GeForce GT 330M - VRAM: 256 MB
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:13:14
    Disk Information: ℹ️
        Hitachi HTS545032B9SA02 disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk1) / : 318.84 GB (134.68 GB free)
                Core Storage: disk0s2 319.21 GB Online
        MATSHITADVD-R   UJ-898 
    USB Information: ℹ️
        BUFFALO HD-PVU2 500.11 GB
            EFI (disk2s1) <not mounted> : 210 MB
            Time Machine Backups (disk2s2) /Volumes/Time Machine Backups : 499.76 GB (257.33 GB free)
        Apple Internal Memory Card Reader
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /System/Library/Extensions
        [not loaded]    jp.co.buffalo.driver.turbousbhdd (1.0.0) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.hp.help.tocgenerator.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
    User Login Items: ℹ️
        Skype    UNKNOWN  (missing value)
        Safari    Application  (/Applications/Safari.app)
        Dropbox    Application  (/Applications/Dropbox.app)
        Android File Transfer Agent    Application  (/Users/[redacted]/Library/Application Support/Google/Android File Transfer/Android File Transfer Agent.app)
        ConnectService    Application  (/Library/Application Support/ArcSoft/Connect Service/ConnectService.app)
    Internet Plug-ins: ℹ️
        Flip4Mac WMV Plugin: Version: 2.4.4.2 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Google Earth Web Plug-in: Version: 7.1 [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        iPhotoPhotocast: Version: 7.0
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 318.84 GB Disk used: 184.16 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 499.76 GB
            Total number of backups: 184
            Oldest backup: 2010-12-10 15:37:39 +0000
            Last backup: 2015-02-06 02:49:24 +0000
            Size of backup disk: Too small
                Backup size 499.76 GB < (Disk used 184.16 GB X 3)
    Top Processes by CPU: ℹ️
             5%    WindowServer
             1%    ConnectService
             1%    Skype
             0%    systemstatsd
             0%    launchd
    Top Processes by Memory: ℹ️
        193 MB    Skype
        168 MB    mds_stores
        132 MB    com.apple.WebKit.WebContent
        107 MB    Mail
        99 MB    ocspd
    Virtual Memory Information: ℹ️
        889 MB    Free RAM
        1.99 GB    Active RAM
        455 MB    Inactive RAM
        825 MB    Wired RAM
        1.11 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 6, 2015, 08:27:32 AM    /Library/Logs/DiagnosticReports/com.apple.AmbientDisplayAgent_2015-02-06-082732 _[redacted].crash
        Feb 6, 2015, 08:25:19 AM    Self test - passed
        Feb 5, 2015, 04:37:08 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-163708_[redacted].crash
        Feb 5, 2015, 10:01:02 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-05-100102_[redacted].crash
        Feb 5, 2015, 12:03:59 AM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-05-000359_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:58:58 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235858_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:54:35 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-235435_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 11:49:03 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-04-234903_[redacted].cpu_resource.diag [Click for details]
        Feb 4, 2015, 09:40:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-214016_[redacted].crash
        Feb 4, 2015, 09:38:12 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-213812_[redacted].crash
        Feb 4, 2015, 09:27:56 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212756_[redacted].crash
        Feb 4, 2015, 09:25:25 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212525_[redacted].crash
        Feb 4, 2015, 09:20:16 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-212016_[redacted].crash
        Feb 4, 2015, 09:18:10 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211810_[redacted].crash
        Feb 4, 2015, 09:12:54 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-211254_[redacted].crash
        Feb 4, 2015, 08:40:48 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-204048_[redacted].crash
        Feb 4, 2015, 08:22:04 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-202204_[redacted].crash
        Feb 4, 2015, 12:11:35 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-04-001135_[redacted].crash
        Feb 3, 2015, 09:44:33 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-214433_[redacted].crash
        Feb 3, 2015, 05:40:21 PM    /Library/Logs/DiagnosticReports/HP Scan_2015-02-03-174021_[redacted].cpu_resource.diag [Click for details]
        Feb 3, 2015, 09:05:45 AM    /Users/[redacted]/Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_20 15-02-03-090545_[redacted].crash
        Jan 28, 2015, 06:10:42 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-28-181042_[redacted].panic [Click for details]
        Jan 21, 2015, 10:51:25 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-21-225125_[redacted].panic [Click for details]
        Jan 20, 2015, 11:12:47 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-20-111247_[redacted].panic [Click for details]
        Jan 18, 2015, 09:57:31 AM    /Library/Logs/DiagnosticReports/Kernel_2015-01-18-095731_[redacted].panic [Click for details]
    The only observations are that the backup drive is deemed too small and the quite long list of diagnostic reports dated between  Jan 18, 2015 (which I believe is the day I upgraded to Yosemite) & today the latest Yosemite update was installed on Jan 28, 2015
    Any further assistance will be appreciated

  • Linked List Help!

    Hi,
    I have an assignment on linked lists, as a beginner I am really struggling with it for hours...
    I have to write the following methods without importing any libraries.
    "Write an iterative method delete() for LinkedStackOfStrings that takes an integer parameter k and deletes the kth element (assuming it exists).
    Write a method find() that takes an instance of LinkedStackOfStrings and a string key as arguments and returns true if some node in the list has key as its item field, false otherwise."
    It must be implemented in the code on this site:
    [http://www.cs.princeton.edu/introcs/43stack/LinkedStackOfStrings.java.html]
    Help would be appreciated! I have been trying for hours :(

    vdL wrote:
    Thanks for the reply! Yes, I forgot add what my actual problem is.
    If I am correct, I will need to be able to traverse through the list up to a certain point, redirect and redirect the pointers.
    My problem is I am able to traverse through the list using 'for(Node x = first; x != null; x= x.next)' but I do not know how make it only run up to a particular position in the list.You can keep an integer counter, increment it each time through the loop, and break out of the loop when the counter is big enough. Example of breaking:
    if (n == k) break;
    And also, how not to loose the previous Node when traversing trough the list.You're allowed to have multiple references. So you could keep one reference to the current node, and one reference to the one before it.
    Or, rather than looping through the list until you find the kth element, loop until you find the (k - 1)th element, then (if it exists) remove the one after it.

  • Multiple instances of ichat running at once

    Very short version of events:
    doing long distance tech help for elderly friend (which is agonizing beyond belief 'cause I can't screen share). On her machine ---
    iChat starts up fine, in fact it will start up more than once, she can have multiple instances of iChat running simultaneously.  That's the first issue.
    Once iChat is started up and you check the iChat menu, Preferences is greyed out. That's the second issue.
    Also under the iChat menu, Accounts shows... no account. That's the third issue.
    All three symptoms 'should' be impossible.
    I have deleted the various iChat pref files
    Restarted the computer
    Both to no avail
    Switching to the Guest account and starting iChat from there behaves normally, it does the 'welcome new user.... let's set up your account' type thing.

    Hi,
    I must admit I did think Parental Controls (Even if tested in a new Account which would have effected even an Admin Account) would have been a large part of this.
    ----- Would have made sense, but not the case. 
    Is she starting this from an iChat Icon that is in the DOCK already ?
    I have, through Skype screensharing, watched her start it up from iChat in the Applications folder. Each time she double clicks the app or does the File>Open thing another iteration of it appears in the Dock.
    If so then Drag this Off the DOCK and let go (Puff of Smoke Animation)
    Go to the Applications Folder and drag the app back to the DOCK.
    --- Yep, been there, done that too.
    This will Renew the link between the app and DOCK icon.
    Can she also do a Get Info on the app and say which version it is ?
    Either from the Finder's File menu or Highlight the app in the Applications folder then use the Apple/CMD ( or ⌘) + i keys together. (Example below)
    If she has a Leopard or Snow Leopard computer then she can also use Quick Look.
    (If she has OS 10.5.8 and iChat 4.0.8 it will show as iChat 4.0.9 here)
    Can you also tell me which version of the OS she is Running ?
    --- 10.6.7
    This is because iChat gets Updated with certain OS Updates
    and iChat is 5.0.3
    For Instance, Snow Leopard at 10.6.1 updates iChat 5 to iChat 5.0.1 and at OS 10.6.3 iChat gets updated to version 5.0.3 (where it has remained).  As  Leopard goes from 10.5 to 10.5.8 there are many more updates to iChat. iChat gets to version 4.0.8/4.0.9 (As in the last pic) depending on a security Update after 10.5.8 was released).
    If she does a Spotlight Search does she see more than one version of iChat ?
    --- Nope. And I've done an 'enhanced' Spotlight search including 'everywhere' (ie System, Libraries and, jut for kicks, invisible folders), in the event that God forbid somehow or other she hid another copy somewhere else unintentionally. I can say with certainty that there is ONLY one copy of iChat on the machine.
    Mine does as I have Cloned the Drive
    At this point I am also wondering if her account on the Mac has been introduced from somewhere else (another Mac) as part of an Update/Upgrade process.
    ---- Nope. It was created 'from scratch' when she bought the machine and has been performing flawlessly for about 10 months.
    If so is there a "Previous System" Folder on her Hard Drive at the top Level (Click the Hard Drive icon itself).
    If there is an Applications folder in here (if it exists) it may contain a version of iChat that is linked to the DOCK icon and be the one that tries to launch first . The earlier thing of dragging the icon off the DOCK and dragging it back again will sort that.
    If she is sure she has everything she wants from the "Previous System" then she can delete it.
    --- Not relevant, never done a reinstall
    I can sort of recreate this state.
    If I launch iChat normally then use Terminal to start iChat a second in the DOCK is created.
    This one if the Front app does not have access to the Preferences and the Accounts sub menu item is also Empty
    See My Force Quit window
    ---- Yep, that's what hers looks like. 
    However it seems to differ in that the Buddy Lists are not duplicated (That may be due to a Add-On Called Chax that I use and I get shown the All Contacts Buddy List) The all Contact list does not have my Buddy Pic and never fills in with any Buddies.
    ---- No 'add ons' of any kind on her machine. 'Factory stock' (make for easier trouble shooting     )
    If I revert to the regular iCon I have Preferences and it shows Accounts in the Sub menu item.
    Do her icons vary in what they show ?
    --- Nope
    Does she use the Icon in the DOCK to launch iChat or is it some other form of Link such as a AppleScript they may use Terminal to do it for her ?
    ---- She has in the past used the Dock icon. Still uses it, but with the weird result. 
    I am trying to get an understanding on this for several reasons.
    1) I would like to know what is creating it before suggesting a Reinstall of iChat
    ---- An interesting idea. So, being a pretty adept Mac guy, and not adverse to trying 'outside the box' solutions, here's what we did....
    I have the same OS version and same iChat version on my machine.
    Got her to compress the existing copy of iChat in her Applications folder
    'Sent' her a copy of my iChat through my MobileMe iDisk
    Guided her through dragging and dropping it into the Applications folder (remember I said 'outside the box'?)
    Had her do File>Open on that copy of iChat....
    Same results - No preferences, no accounts of any kind.
    To me this says that it is not the application itself but something else. What exactly that something else is, remains a mystery. Further corroborating that the app itself is 'good' is that as you may recall she WAS able to get it to start up in her Guest account and it behaved normally, asking for her account info etc.
    2) I am curious
    3) I would prefer to use less "destructive" methods before resorting to Reinstalling the app.
    --- She's emailed back after having spoken to Apple support.  Machine is still under warranty so she is taking it to an Apple Store on Monday. From the way she describes the support phone call it sounds like she might have gotten elevated a couple of levels during the call.
    I sense a 'system reinstall' in the very near future. 

  • Linked lists revisited

    hi i have the base code for a linked list implementation:the list, the node, and the iterator position. But the assignment gets harder i have to use this class and have a file read in from the command line and store each word into nodes. I can almost implement this with the String Tokenizer and the buffereader stuff but my other problem comes when i have to represent a arbitrarily long integer value in nodes. Basically i must represent the addition or multiplication of a number such as 50003401 and represent it in nodes storing the coefficient and the exponent so like (5*10^7)+(3*10^3)+(4*10^2)+(1*10^0). I need some help!! How do you store the coefficients and exponents in nodes and have them multiply and deal with all the carries.

    Here is my code with spaces in between each class
    import java.util.*;
    import java.io.*;
    public class SortedLinkedList
    SortedListNode header; //The list header, references a SortedListNode
    // constructor: should initialize to an empty list.
    public SortedLinkedList()
         header= new SortedListNode(null);//
    // returns an iterator that references the head of the list
    public SortedLinkedListItr zeroth( )
         return new SortedLinkedListItr(header);//
    // returns true if the list is empty, false otherwise
    public boolean isEmpty( )
         return header.next == null;
    // returns an iterator that references the first item in the list
    public SortedLinkedListItr first( )
         return new SortedLinkedListItr(header.next);//
    // inserts the item referenced by x into the list in sorted order.
    public void insert(Comparable x)
         SortedLinkedListItr prev=zeroth();//
         SortedLinkedListItr curr=first();//
              while(curr!=null && x.compareTo(curr.retrieve())>0)
                   prev.advance();
                   curr.advance();
              insert(x);
    // returns an iterator that references the item x if it is found in the list
    public SortedLinkedListItr find(Comparable x)
         SortedListNode itr= header;//
         while( itr.next != null && !itr.next.element.equals(x))
              itr=itr.next;
              return new SortedLinkedListItr( itr );//
    // returns an iterator that references the item that precedes x in the list
    // (if such an item exists).
    public SortedLinkedListItr findPrevious(Comparable x)
         SortedListNode itr = header;//
         while(itr.next !=null && !itr.next.element.equals(x))
              itr = itr.next;
         return new SortedLinkedListItr(itr);//
    // removes the item x from the list, if it exists
    public void remove(Comparable x)
         SortedLinkedListItr p =findPrevious(x);//
         if ( p.current.next !=null )
         p.current.next = p.current.next.next;
    // prints the items in the list in the order that they appear in the list
    public void printList()
         if(isEmpty())
              System.out.print("The list is empty.");
         else
              SortedLinkedListItr itr = first();//
              for(; itr!=null; itr.advance())
                   System.out.print(itr.retrieve() + " ");
         System.out.println();
    public static void main(String[] args) throws IOException
              SortedLinkedList stringList = new SortedLinkedList();
              if (args.length != 1)
                   System.err.println("USAGE: java ReadData input-file\n");
              System.exit(1);
              String filename = args[0];
              FileReader fileReader = new FileReader(filename);
              BufferedReader bufferedReader = new BufferedReader(fileReader);
              System.out.println(filename + " has the following tokens in it:");
              String inputString = bufferedReader.readLine();
              while (inputString!=null)
              StringTokenizer tokenizer = new StringTokenizer(inputString);
              while (tokenizer.hasMoreTokens())
              String token = tokenizer.nextToken();
              stringList.insert(token);
                        inputString = bufferedReader.readLine();
              stringList.printList();
    public class SortedLinkedListItr
    SortedListNode current; //the node referenced by the iterator.
    //constructor: to be used within SortedLinkedList. Sets the iterator
    //to reference the node specified in the parameter.
    SortedLinkedListItr(SortedListNode theNode)
         current = theNode;
    //returns true if the iterator has advanced past the last node in the list.
    public boolean isPastEnd( )
              return (current == null);
    //returns the item currently referrenced by the iterator (null if the iterator
    //is past the end of the list.
    public Comparable retrieve( )
              if(
              return (current.element);
    // moves the iterator to the next item in the list (does nothing if the
    // iterator is past the end of the list.
    public void advance( )
              if (current!=null)
              current = current.next;
              else
              current=null;
    class SortedListNode
    // instance variables
    Comparable element; // the element being stored by this node
    SortedListNode next; // reference to the next item in the list
    //two constructors, one returns a null next, the other allows
    //it to be set to reference another node.
    SortedListNode(Comparable theElement)
              this(theElement, null);
    SortedListNode(Comparable theElement,SortedListNode n)
              element=theElement; next = n;
    }

  • Adding multiple instances of a site column to a content type

    I read the posts at the link below (which references the exact same question that I will now ask), but is there any way to include multiple instances of the same site column (SC) to a content type (CT)?  The recommendation in the referenced thread is to create a copy of the SC for each column in the corresponding CT.  However, what I am attempting to do is create a document library, which contains a source document with an associated language, and a target document with an associated language.  Either, I need to create a list with both a source and target document that each store their own language, OR I need to add two columns, source language and target language, that are copies of the language column, OR I need a way to add the two aforementioned columns the way that I SHOULD be able to, which is by adding the language column twice, then changing the name accordingly.  Can anyone suggest the best way for me to do this?  Thanks,
    -Jeff
    The referenced thread:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1864059&SiteID=1

    I have the same issue.  I have a list which I need to add two instances of the same site column: Originating Department and Routed Department.  They both need to use the Department site column but I am not allowed to add the site column twice
    in the same list.  Any help would be greatly appreciated.

  • Multiple instances of same component become non-editable

    I have created a simple component for authors to add links. They enter anchor text, link destination, title attribute, via textfield. They set the target attribute via a dropdown list, xtype=selection. The issue we run into, is that if the author has entered multiple instances of the same component on a page, the dropdowns become non-editable after they are set the first time. They cannot be edited changed until the page edit view/content finder is closed and reopened.
    Scenario:
    1. User drag/drops component
    2. User makes selection from dropdown xtype=selection
    3. User drag/drops same component again to allowed parent
    4. User make selection from dropdown xtype=selection in second instance of component
    5. User can no longer change the selection in either instance of the component without closing and reopening edit view/content finder.
    6. User closes and reopens edit view/content finder.
    7. Again, both instances of the dropdown xtype=selection become non-editable after first selection of an option until the edit view/content finder is closed and reopened.
    When there is only one instance of the component on the page, the drop downs/xtype=select remain editable at all times.
    In addition to this particular scenario, I've had to work around some other issues of multiple instances of a component, where only one instance on a page works at all, the data gets crossed/jumbled between instances of the same component, etc.
    My question is first, how might I solve for the scenario fully called out in this question? Secondly, is there some methodology to making multiple instances of the same component track themselves individually, work together on the same page, play nicely with each other?
    Any assistance is appreciated.

    Using request scope would be a workaround.
    I'm looking for view distinct state for the associated component tree for the session (i.e. managed bean state, whether its separate instances of the bean or copies of serialized state I don't care)
    My views require conversational-like state handling that I don't want stored on the client.

  • How multiple instances license is calculated?

    Hi
    I got bit confused about license. SQL Server license is per core based, for instance standard edition in 2 core physical machine is 2*$1793, correct me if I am wrong.
    1. Does cost remain same if I install additional instances on the same physical machine? 
    2. In case of multiple cluster instances.
    2. Does increasing node in cluster increases license cost? I believe so.
    Please refer Microsoft link, if possible.
    Thanks

    I think don’t need to buy multi license for multi instances on one server. You
    can run multiple instances of SQL Server 2005 on a single computer. Multiple instances are used by organizations that have several applications running on a server but want them to run in isolation so that any problem in one instance will not affect the other
    instances. In SQL Server 2005, you can now run multiple instances with the Workgroup, Standard, and Enterprise editions when they are licensed server/CAL or on a per-processor basis. Here is as list for Pricing and Licensing FAQ: 
    http://www.microsoft.com/sqlserver/2005/en/us/pricing-licensing-faq.aspx#,
    here is a thread about Licensing:
    Also http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/a5fd2fb7-dc2f-4736-85b9-1eb581e56a23
    http://www.microsoft.com/sql/howtobuy/default.mspx
    Raju Rasagounder Sr MSSQL DBA

  • What is the best way to load multiple instances of a button into master index page?. I have looked a

    I have successfully created an animated button that opens to reveal a quotation with a nested clickable link to the source. What I would like to do is have several of these with different quotes inside them, scattered on the page. I have looked at the composition loader available via Edge Commons, and it seems that would require some sort of Edge animate Stage 'frame' to load the instances into? Is there any way to place them directly into the master page - as div elements...?
    The outer of the buttons is the same, on hover they open partialy on click fully, to reveal  their particular text - which I thought about loading it at runtime with json, or maybe handlebars...?
    I would also like to make the buttons only take the necessary space. ie. before they expand they are only buttons. ( I have set the stage to hidden but it still takes up space). To acheive this, I think perhaps I will have to target the inner components css, and set them as display:none until the button is hovered over, then set :hover and :active pseudo classes inside edge. Is this feasible?
    Thanks in advance for any ideas/suggestions...

    Hello, Thanks for your helpful input. Based on that, and the tutorial 'http://tv.adobe.com/watch/learn-edge-animate-cc/ingesting-external-data-dc/' - I have written code to drive my button's behaviour.  (copied below...)
    var textArray =new Array();
    var currentHead = 0;
    var currentText = 0;
    var currentFoot = 0;
    var s = sym.getSymbol("textContainer");
    sym.$("textContainer")$.("text").html("");
    var sh = sym.getSymbol("headContainer");
    sym.$("headContainer")$.("head").html("");
    var sf = sym.getSymbol("footContainer");
    sym.$("footContainer")$.("footer").html("");
    $.getJSON("assets/sources1.json", function(data){
              for (var i=0; i<data.length; i++){
                        textArray.push({"head":data[i].heading,
                                  "text":data[i].text,
                                  "footer":data[i].foot,
                                  "link":data[i].link});
              sym.$("headContainer")$.("head").html(textArray[currentHead]).heading;
              sym.$("textContainer")$.("text").html(textArray[currentText]).text;
              sym.$("footContainer")$.("foot").html(textArray[currentFoot]).foot;
              sym.$("footContainer")$.("link").html(textArray[currentLink]).link;
    But there is an error I don't understand at line 7...
    Also - as you can see, at present I have several symbols in parallel. Would I be better off nesting the text containers inside the outer button container? and would I be better off creating styled mini- pages of text data, and then loading them - instead of loading them as symbols? I have had to create seperate symbols because I cannot adequately stle the text - so some is bold, some is italic etc. within one text field. Or can I? I guess I could nest several text fields inside one symbol...?
    I remain unsure how to load the finished animation button instances. In your example you were still loading into an animation But from yor example, I guess I would need to place all my examples inside an outer edge composition... but then I think positioning them accurately with css, making adjustments etc. will be fairly tricky. Is there any way to place multiple instances directly into divs in index.html? Could I simply repeat the class...? I may be answering my own questions here.

  • After Delete in Linked list...unable to display the linked list

    Hi...i know that there is an implementation of the class Linked Link but i am required to show how the linked list works in this case for my project...please help...
    Yes..I tried to delete some objects in a linked list but after that i am not able to display the objects that were already in the linked list properly and instead it throws an NullPointerException.
    Below shows the relevant coding for deleting and listing the linked list...
    public Node remove(Comparator comparer) throws Exception {
         boolean found = false;
         Node prevnode = head;          //the node before the nextnode
         Node deletedNode = null;     //node deleted...
         //get next node and apply removal criteria
         for(Node nextnode = head.getNextNode(); nextnode != null; nextnode = nextnode.getNextNode()) {
              if(comparer.equals(nextnode)) {
                   found = true;
                   //remove the next node from the list and return it
                   prevnode.setNextNode(nextnode.getNextNode());
                   nextnode.setNextNode(null);
                   deletedNode = nextnode;
                   count = count - 1;
                   break;
         if (found) return deletedNode;
         else throw new Exception ("Not found !!!");
    public Object[] list() {
         //code to gather information into object array
         Node node;
         Object[] nodes = new Object[count];
         node = head.getNextNode();
         for (int i=0; i<count; i++) {
              nodes[i] = node.getInformation();  // this is the line that cause runtime error after deleting...but before deleting, it works without problem.
              node = node.getNextNode();
         return nodes;
    }Please help me in figuring out what went wrong with that line...so far i really can't see any problem with it but it still throws a NullPointerException
    Thanks

    OK -- I've had a cup and my systems are coming back on line...
    The problem looks to be the way that you are handling the pointer to the previous node in your deletion code. Essentially, that is not getting incremented along with the nextNode -- it is always pointing to head. So when you find the node to delete then the line
       prevnode.setNextNode(nextnode.getNextNode());will set the nextNode for head to be null in certain situations (like if you are removing the tail, for instance).
    Then when you try to print out the list, the first call you make is
    node = head.getNextNode();Which has been set to null, so you get an NPE when you try to access the information.
    Nothing like my favorite alkaloid to help things along on a Monday morning...
    - N

  • How to use multiple instances of the same dll ?

    Hi,
    I'd like to use multiple instances of a jni dll . I have created
    different threads, in each thread, I have called System.loadLibrary(..),
    and I would like each thread to access a different instance of this
    library.
    Unfortunately, the loadLibrary function is effective only once so I
    can not find the way to do this.
    Can anyone help me on this ?
    Thanks.
    Francois.

    Hi, :)
    and I would like each thread to access a different
    instance of this library.In Win32, this is outright impossible. A DLL will only exist once in a process space.
    In Unix, or at least in Solaris, I think this is also not possible, as libraries are loaded by the dynamic linker, and it keeps tabs of which modules have already been loaded into the process space.
    I'm assuming your problem is that your native library has non-reentrant code.
    If so, there are two approaches you can take to this:
    1) If you have access to the source code for the native library, change it so that it is reentrant.
    2) If you do not, change your Java code so that access to the native code is made from whithin synchronize blocks.
    If your problem is of a different nature, I'll second the words of the previous poster and ask you what it is...
    Cheers,
    J.

Maybe you are looking for

  • Questions on ICR reconciliation process 002 (process behaviour)

    Dear all, I am implementing ICR reconciliation process 002   and I have some questions regarding process's behaviour and functionality. I have set u201CDefine Rules for Document Assignments" as following: 1     POPER     Posting period     = Equal   

  • How to put a web link in the detailed navigation

    How can you put a web link in the detailed navigation? I know that if your role contains iviews that are 3 levels down (default), then the link to the iview will appear in the detailed navigation. But, I want to put a link to a external site in the d

  • Mail out put for BA00

    Hi.,         I want a mail to get triggered to the customers personal mail id when raised an order and out put is issued,I gave mail id in sold to party.And t here is external send routine also in BA00,even though i couldnt process that Gurus please

  • Photos from ipod, preserving structure

    So I lost a hard drive in my macbook recently, and I didn't have proper backups (silly silly boy, I know ). I've managed to get a lot of content back, but now I want to restore my photos. I've got all my photos synced to my ipod (including full-res v

  • When in full screen mode can I zoom in with iPhoto '11?

    Just upgraded from '09 and one thing I miss is being able to zoom when in full screen mode looking at one image. Am I missing something? I think that would be there. Also scrolling through my photos is much slower, is this common?