Problems analizing compares and swaps in my algorithims

What I need to do is analize my sorting algorthims, in terms of the number of compares and swaps. I have about 6 different sorts in one class, a couple of them came from help by, other posters, on this board. And I have a simple file reader in another class that reads a txt file, sorts, then prints, but also prints the numbers of compares, swaps, using varibles from my sorting class.
The txt file has 64 strings(names of people). Some of the sort I get what seems to me correct, or least close to correct results, but for a couple I"m getting downright strange results. I'm trying to figure out where to put the counting variables so I can get decent results.
In my quicksort, the results I'm getting is 1 compares 1 swaps, now obviously that's wrong but I'm trying to figure out where to put, the variables to get the correct results.
     public static void quicksort(List data, int first, int last){
                       int lower = first + 1, upper = last;
                       swap(data,first,(first+last)/2);
                       Comparable Bound = (Comparable)data.get(first);
                       while (lower <= upper){
                            while ((((Comparable)data.get(lower)).compareTo(Bound)) < 0)
                                      lower++;
                            while (Bound.compareTo(data.get(upper)) < 0)
                                 upper--;
                            if (lower < upper)
                                 swap(data,lower++,upper--);
                            else lower++;
                       swap(data,upper,first);
                       if (first < upper-1)
                            quicksort(data,first,upper-1);
                       if (upper+1 < last)
                            quicksort(data,upper+1,last);
      public static void quicksort(List data){
                       if (data.size() < 2)
                            return;
                       int max = 0;
                       //find largest data and put at end of data
                       for (int i = 1; i < data.size(); i ++)
                            if (((((Comparable) 
                       data.get(max)).compareTo(data.get(i))) < 0))
                                 max = i;
                       compares++;       // <----------------------- COMPARE
                       swap(data,data.size()-1,max);
                       swaps++;                 //    <--------------------------   SWAP
                       quicksort(data,0,data.size()-2);
}      The selection sort results give me exactly the same for both compares, and swaps 2016.
public static void selectionSort (List data)
           int i,j, least;
           final int size = data.size();
           for (i = 0; i < size - 1; i++)
              for (j = i+1, least = i; j < size; j++)
                   compares++;             //   <-------------------- COMPARE
             if (((((Comparable) (data.get(j))).compareTo(data.get(least)))) < 0)
                  least = j;
                  swap(data,least,i);
                  swaps++;                         //   <------------------------ SWAP
        Thanks for your help.

jkc532 wrote:
.. Is the fact that the CachedJarFile class doesn't attempt to reload the resource when it can't retrieve it from MemoryCache a bug? From your comprehensive investigation and report, it seems so to me.
..I've dug as deep as I can on this and I'm at wits end, does anybody have any ideas?Just after read the summary I was tired, so I have some understanding of the effort you have already invested in this (the 'wits' you have already spent). I think you should raise a bug report and seek Oracle's response.

Similar Messages

  • MultiThreaded compare and swap question.

    I'v got this assignment and I'm not sure which approach to take. I think I've got it right with my second try, but I was wondering if I could get some sort of verification or something.
    "Use Java monitors to implement the atomic Compare-And-Swap instruction, which has the following effect: CSW(a,b,c): < if (a==c) { c = b; return(0);} else {a = c; return 1;} > (In most concurrency books and papers instructions within angle brackets < > means that everything within the brackets is done in one uninterruptible, atomic action.) "
    Is this right?
    public synchronized int compareAndSwap(Object a, Object b, Object c)
            if ( a.equals( c ) )
                c = b;
                return 0;
            a = c;
            return 1;
        }Or is this?
    public int compareAndSwap(Object a, Object b, Object c)
            synchronized ( a )
                synchronized ( b )
                    synchronized ( c )
                        if ( a.equals( c ) )
                            c = b;
                            return 0;
                        a = c;
                        return 1;
        }Or am I totally off base? I think the latter is right as it prevents the objects themselves from being messed with.

    As far as making it an atomic action, you do that
    with synchronized, BUT more detail might be needed
    about the context in which it's supposed to be atomic
    to know what to sync on.OK, thanks. I was thinking I was crazy or something, but his question is just unclear. I have no idea what he wants and I'm not sure he does either.
    Thanks.

  • How to use Compare and Swap (CAS) atomic function(Solaris specific) in C

    Hi,
    I have found cas32() atomic function in (solaris 10) </usr/include/sys/atomic.h> (and also there is another atomic.h header file in </usr/include/atomic.h> but this header file does not have any cas32() function declarations) the declaration of cas32 in <sys/atomic.h>
    is as follows
    extern uint32_t cas32(uint32_t *target, uint32_t cmp, uint32_t newval);
    extern ulong_t caslong(ulong_t *target, ulong_t cmp, ulong_t newval);
    extern uint64_t cas64(uint64_t *target, uint64_t cmp, uint64_t newval);
    extern void casptr(void target, void cmp, void newval);
    extern uint8_t cas8(uint8_t *target, uint8_t cmp, uint8_t newval);
    But the problem is when iam using these functions in c programs and compiling
    using gcc it is showing the following error.
    Undefined first referenced
    symbol in file
    cas32 /var/tmp//ccQcsnev.o
    And if i use the function other than cas32 group of instruction
    such as atomic_or_uint()
    whose declaration is extern void atomic_or_uint(uint_t *target, uint_t bits);
    in <sys/atomic.h> it is giving no error where as for CAS32 it showing as undefined symbol.Why it is giving like that we are not able to know.Is it the case that CAS32 instruction only available in Kernel mode and not available to user mode.Please inform us if anyone knows how to use cas32() instruction in the user C programs.As this is usefull for writing Nonblocking versions of stacks and Queues.Is there any way to write
    our own atomic functions?
    Rama

    You are trying to use the old kernel-only CAS functions, use the correct ones like:
    atomic_cas_32.
    DS

  • I recently had to swap out my iphone 4s and I am having problems restoring photos and videos from icloud.  I get a message on my phone that says " the URL you are requesting is not found on this server".  Pics and videos have been deleted too.

    I recently had to swap out my iphone 4s and I am having problems restoring photos and videos from icloud.  When I restored my phone from icloud, half of my pics and videos have been deleted, the pics that were restored on my phone are very blurry, and the videos won't play.  I get a message on my phone that says " the URL you are requesting is not found on this server".  I have erased and reset my phone twice, but every time I do it, more pics and videos are deleted.  I have backed up to icloud and iphoto, however, some of the pics are no longer on iphoto either.  Is there someway to get the videos to play on my phone again?  Make the photos not as blurry as they are now and to restore the pics and videos that have been lost?  I really would love to have them back, this phone is supposed to be the best and right now it doesn't seem to be.  Please help if you can.

    I too have noticed that once i restored from iCloud. Pictures blurry and videos wont play!
    Need help too!!

  • Problem with CS2 and firefox 3.6x

    i have a strange problem arising from a combination of photoshop cs2 and firefox 3.6x browser in XP sp3
    when photoshop is minimised to the taskbar and then firefox is minimised, the focus of firefox seems to be passed to photoshop unexpectedly, turning its button dark blue and making it very difficult to maximise photoshop (repeated clicking and swapping of apps sometimes frees it)
    has anyone else every experienced anything like this with 3.6?
    i have installed 3.5.10 atm which works with no problem at all and holds its own focus when minimised.
    Steve

    None of those ideas worked. I used the Disk Utility and it indicated that all permissions were OK. I cleared the caches and cookies on Safari and FireFox, and even re-installed FireFox and deleted all of the old files associated with it. Both browsers brought up the Apple support website using the IP address, but neither browser would allow me to log into Apple support to follow this thread. I turned off the Firewall thinking it was the problem. I am running the PC and iMac through a router, then a dsl modem. Could any of those items be the problem?

  • My wife has been having problems with Safari, and many third party software and malware programs infecting her Mac Book Pro.

    My wife has been having problems with Safari, and many third party software and malware programs infecting her Mac Book Pro. I have tried to reset Safari but it keeps coming back, taking over Safari, changing defaults, start pages, and search engines, Etc.
    Is it safe to use programs like MacKeeper, who keeps send my wife's computer message and alerts, or should I just wipe the drive and start over?
    Skip

    I am having lot's of lag time with Safari, etc..
    I'll type in a website.. and it will take 15-20 seconds to start..
    Start time: 17:51:37 12/02/14
    Model Identifier: MacBookPro11,3
    System Version: OS X 10.10.1 (14B25)
    Kernel Version: Darwin 14.0.0
    Time since boot: 14 days 3:02
    USB
       My Passport 07B8 (Western Digital Technologies, Inc.)
    Diagnostic reports
       2014-11-13 QuickLookSatellite crash x2
       2014-11-21 com.apple.WebKit.Plugin.64 crash
    Log
       Nov 30 21:32:39 PM notification timeout (pid 345, Adobe CEF Helper)
       Nov 30 21:32:39 PM notification timeout (pid 99018, CEPHtmlEngine)
       Nov 30 21:32:39 PM notification timeout (pid 99019, CEPHtmlEngine He)
       Dec  1 09:09:03 [[0xffffff802bfa4000]  OpCode 0x0C01 (Set Event Mask) from: kernel_task (0)  Synchronous  status: 0x00 (kIOReturnSuccess) state: 2 (BUSY) timeout: 5000] Bluetooth warning: An HCI Req timeout occurred.
       Dec  1 09:52:03 PM notification timeout (pid 266, Creative Cloud)
       Dec  1 09:52:03 PM notification timeout (pid 346, Adobe CEF Helper)
       Dec  1 09:52:03 PM notification timeout (pid 345, Adobe CEF Helper)
       Dec  1 10:04:37 process WindowServer[114] caught causing excessive wakeups. Observed wakeups rate (per sec): 170; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 12755007
       Dec  1 10:31:08 ALF: ifnet_get_address_list_family error 12
       Dec  1 10:59:17 process Meeting Center[2921] caught causing excessive wakeups. Observed wakeups rate (per sec): 647; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45104
       Dec  1 12:24:35 process com.apple.WebKit[4567] caught causing excessive wakeups. Observed wakeups rate (per sec): 297; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 76962
       Dec  1 14:31:01 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 397; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 53188
       Dec  1 14:43:52 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 224; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 150084
       Dec  1 14:47:34 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 332; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 222103
       Dec  1 15:03:29 process com.apple.WebKit[7400] caught causing excessive wakeups. Observed wakeups rate (per sec): 214; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 370572
       Dec  1 16:38:03 SIOCPROTODETACH_IN6: utun2 error=6
       Dec  1 16:38:08 SIOCPROTODETACH_IN6: utun2 error=6
       Dec  1 20:08:30 jnl: disk3s2: replay_journal: from: 112328704 to: 113115136 (joffset 0x3a38000)
       Dec  1 20:08:30 jnl: disk3s2: journal replay done.
       Dec  1 20:27:11 com.adobe.acc.AdobeCreativeCloud.75292.UUID: Service exited with abnormal code: 5
       Dec  2 08:23:00 process com.apple.WebKit[11891] caught causing excessive wakeups. Observed wakeups rate (per sec): 161; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 527508
       Dec  2 09:29:37 firefox (map: 0xffffff80317c5960) triggered DYLD shared region unnest for map: 0xffffff80317c5960, region 0x7fff9ae00000->0x7fff9b000000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
       Dec  2 10:04:39 SIOCPROTODETACH_IN6: utun2 error=6
       Dec  2 10:04:44 SIOCPROTODETACH_IN6: utun2 error=6
       Dec  2 16:42:24 process com.apple.WebKit[26151] caught causing excessive wakeups. Observed wakeups rate (per sec): 153; Maximum permitted wakeups rate (per sec): 150; Observation period: 300 seconds; Task lifetime number of wakeups: 45002
    Swap (MiB): 41556
    Activity
       Net: 210 in, 20 out (KiB/s)
    Memory: kernel_task (UID 0) is using 1632 MB
    kexts
       com.cisco.kext.acsock (1.1.0)
       com.wdc.driver.USB.64.10.9 (1.0.1)
    Daemons
       com.cisco.anyconnect.vpnagentd
       com.oracle.java.JavaUpdateHelper
       com.apple.installer.osmessagetracing
       com.microsoft.office.licensing.helper
       com.google.keystone.daemon
       com.wdc.WDSmartWareService
       com.oracle.java.Helper-Tool
       com.adobe.fpsaud
       com.wdc.SmartwareDriveService
    Agents
       com.adobe.AdobeCreativeCloud
       com.zimbra.desktop
       com.citrix.ServiceRecords
       com.google.keystone.system.agent
       com.apple.photostream-agent
       com.genieo.completer.download
       com.genieo.completer.update
       com.cisco.anyconnect.gui
       com.citrix.ReceiverHelper
       com.citrix.AuthManager_Mac
       com.citrix.FMDAgent.14800.UUID
       com.oracle.java.Java-Updater
       com.fiplab.MailTabProHelper
       com.adobe.PDApp.AAMUpdatesNotifier.74724.UUID
       com.citrixonline.GoToMeeting.G2MUpdate
       com.apple.AirPortBaseStationAgent
       com.microsoft.SyncServicesAgent
    Startup items
       /System/Library/StartupItems/ciscod/ciscod
       /System/Library/StartupItems/ciscod/StartupParameters.plist
    Bundles
       /System/Library/Extensions/hp_fax_io.kext
       - com.hp.kext.hp-fax-io
       /System/Library/Extensions/hp_Inkjet1_io_enabler.kext
       - com.hp.print.hpio.Inkjet1.kext
       /System/Library/Extensions/hp_Inkjet4_io_enabler.kext
       - com.hp.print.hpio.Inkjet4.kext
       /System/Library/Extensions/hp_Inkjet8_io_enabler.kext
       - com.hp.print.hpio.inkjet8.kext
       /System/Library/Extensions/JMicronATA.kext
       - com.jmicron.JMicronATA
       /System/Library/Extensions/WD1394_64_109HPDriver.kext
       - com.wdc.driver.1394.64.10.9
       /System/Library/Extensions/WDUSB_64_109HPDriver.kext
       - com.wdc.driver.USB.64.10.9
       /Library/Extensions/hp_io_printerclassdriver_enabler.kext
       - com.hp.hpio.hp-io-printerclassdriver-enabler
       /Library/Internet Plug-Ins/AdobeAAMDetect.plugin
       - com.AdobeAAMDetectLib.AdobeAAMDetect
       /Library/Internet Plug-Ins/CitrixICAClientPlugIn.plugin
       - com.citrix.citrixicaclientplugIn
       /Library/Internet Plug-Ins/Flash Player.plugin
       - N/A
       /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin
       - com.google.googletalkbrowserplugin
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
       - com.oracle.java.JavaAppletPlugin
       /Library/Internet Plug-Ins/npg.plugin
       - npg.graphon.com
       /Library/Internet Plug-Ins/o1dbrowserplugin.plugin
       - com.google.o1dbrowserplugin
       /Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
       - com.microsoft.sharepoint.browserplugin
       /Library/Internet Plug-Ins/SharePointWebKitPlugin.webplugin
       - com.microsoft.sharepoint.webkitplugin
       /Library/Internet Plug-Ins/Silverlight.plugin
       - com.microsoft.SilverlightPlugin
       /Library/Internet Plug-Ins/SlingPlayer.plugin
       - com.slingmedia.slingplayer.plugin.nspapi
       /Library/PreferencePanes/Flash Player.prefPane
       - com.adobe.flashplayerpreferences
       /Library/PreferencePanes/FMDSysPrefPane.prefPane
       - Citrix.FMDSysPrefPane
       /Library/PreferencePanes/JavaControlPanel.prefPane
       - com.oracle.java.JavaControlPanel
       /Library/PreferencePanes/WDQuickViewPrefsPane.prefPane
       - com.westerndigital.quickview.prefpanel
       /Library/PreferencePanes/Zimbra.prefPane
       - com.zimbra.prefpanel
       /Library/ScriptingAdditions/Adobe Unit Types.osax
       - N/A
       Library/Address Book Plug-Ins/SkypeABDialer.bundle
       - com.skype.skypeabdialer
       Library/Address Book Plug-Ins/SkypeABSMS.bundle
       - com.skype.skypeabsms
       Library/Internet Plug-Ins/CitrixOnlineWebDeploymentPlugin.plugin
       - com.citrixonline.mac.WebDeploymentPlugin
       Library/Internet Plug-Ins/Google Earth Web Plug-in.plugin
       - com.Google.GoogleEarthPlugin.plugin
       Library/Internet Plug-Ins/WebEx.plugin
       - com.webex.WebEx
       Library/Internet Plug-Ins/WebEx.plugin/Contents/Resources
       - com.webex.WebEx
       Library/Internet Plug-Ins/WebEx64.plugin
       - com.cisco_webex.plugin.gpc64
    dylibs
       /usr/lib/libaudioc.dylib
       /usr/lib/libclipc.dylib
       /usr/lib/libcs.dylib
       /usr/lib/libdc.dylib
       /usr/lib/libfilec.dylib
       /usr/lib/libMonoPosixHelper.dylib
       /usr/lib/libpbr.dylib
       /usr/lib/libprintc.dylib
       /usr/lib/libsc.dylib
       /usr/lib/libSFFileMonitor.32.dylib
       /usr/lib/libSFIPC.32.dylib
       /usr/lib/libSFIPC.I.dylib
       /usr/lib/libSFsqlite3.7.4.dylib
       /usr/lib/libSFSyncEngine.I.dylib
       /usr/lib/libupc.dylib
    App extensions
       it.bloop.airmail.beta10.Airmail-Today-Beta
       it.bloop.airmail.beta10.Airmail-Composer-Beta
       com.wunderkinder.wunderlistdesktop.sharingextension
       com.wunderkinder.wunderlistdesktop.todayextension
       com.readitlater.PocketMac.AddToPocketShareExtension
       com.stylemac.instadesk.Photodesk-Feed
       it.bloop.airmail.beta10.Airmail-Share-Beta
    Apps
       /Applications/Uninstall IM Completer.app
    Contents of /Library/LaunchAgents/com.cisco.anyconnect.gui.plist (checksum 1087717482)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>KeepAlive</key>
        <dict>
        <key>PathState</key>
        <dict>
        <key>/opt/cisco/anyconnect/gui_keepalive</key>
        <true/>
        </dict>
        </dict>
        <key>Label</key>
        <string>com.cisco.anyconnect.gui</string>
        <key>LimitLoadToSessionType</key>
        <string>Aqua</string>
        <key>ProgramArguments</key>
        <array>
        <string>open</string>
        <string>--wait-apps</string>
        <string>/Applications/Cisco/Cisco AnyConnect Secure Mobility Client.app</string>
        </array>
       </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.citrix.AuthManager_Mac.plist (checksum 1591517921)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>ServiceIPC</key>
        <true/>
        <key>MachServices</key>
        <dict>
        <key>com.citrix.AuthManager_Mac</key>
        <true/>
        </dict>
        <key>Label</key>
        <string>com.citrix.AuthManager_Mac</string>
        <key>WaitForDebugger</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/libexec/AuthManager_Mac.app/Contents/MacOS/AuthManager_Mac</ string>
        </array>
        <key>LimitLoadToSessionType</key>
        <string>Aqua</string>
        <key>Disabled</key>
        <false/>
       </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.citrix.ReceiverHelper.plist (checksum 676087606)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.citrix.ReceiverHelper</string>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <dict>
        <key>SuccessfulExit</key>
        <false/>
        </dict>
        <key>WaitForDebugger</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/libexec/ReceiverHelper.app/Contents/MacOS/ReceiverHelper</st ring>
        </array>
        <key>LimitLoadToSessionType</key>
        <string>Aqua</string>
        <key>Disabled</key>
        <false/>
       </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.citrix.ServiceRecords.plist (checksum 1445213025)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>ServiceIPC</key>
        <true/>
        <key>MachServices</key>
        <dict>
        <key>com.citrix.Beacons</key>
        <true/>
        <key>com.citrix.ServiceRecords</key>
        <true/>
        </dict>
        <key>Label</key>
        <string>com.citrix.ServiceRecords</string>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>WaitForDebugger</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/libexec/ServiceRecords.app/Contents/MacOS/ServiceRecords</st ring>
        </array>
       ...and 8 more line(s)
    Contents of /Library/LaunchAgents/com.oracle.java.Java-Updater.plist (checksum 3453356730)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.oracle.java.Java-Updater</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Resources/Java Updater.app/Contents/MacOS/Java Updater</string>
        <string>-bgcheck</string>
        </array>
        <key>StandardErrorPath</key>
        <string>/dev/null</string>
        <key>StandardOutPath</key>
        <string>/dev/null</string>
        <key>StartCalendarInterval</key>
        <dict>
        <key>Hour</key>
        <integer>9</integer>
        <key>Minute</key>
        <integer>57</integer>
        <key>Weekday</key>
        <integer>3</integer>
        </dict>
       </dict>
       ...and 1 more line(s)
    Contents of /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist (checksum 2630047092)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
       http://www.apple.com/DTDs/PropertyList-1.0.dtd >
       <plist version="1.0">
       <dict>
            <key>Label</key>
            <string>com.cisco.anyconnect.vpnagentd</string>
            <key>ProgramArguments</key>
            <array>
                 <string>/opt/cisco/anyconnect/bin/vpnagentd</string>
                 <string>-execv_instance</string>
            </array>
            <key>KeepAlive</key>
            <true/>
            <key>RunAtLoad</key>
            <true/>
            <key>AbandonProcessGroup</key>
            <true/>
            <key>EnableTransactions</key>
            <false/>
       </dict>
       </plist>
    Contents of /Library/LaunchDaemons/com.wdc.SmartwareDriveService.plist (checksum 2733252498)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.wdc.SmartwareDriveService</string>
        <key>Program</key>
        <string>/Library/Application Support/WD SmartWare Services/SmartwareDriveService</string>
        <key>RunAtLoad</key>
        <true/>
        <key>StandardErrorPath</key>
        <string>/dev/null</string>
       </dict>
       </plist>
    Contents of /Library/LaunchDaemons/com.wdc.WDSmartWareService.plist (checksum 1153517838)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.wdc.WDSmartWareService</string>
       <!-- <key>Program</key>
        <string>/Library/Application Support/WD SmartWare Services/SmartwareServerApp.app/Contents/MacOS/SmartwareServiceApp</string> -->
        <key>ProgramArguments</key>
        <array>
        <string>/Library/Application Support/WD SmartWare Services/SmartwareServiceApp.app/Contents/MacOS/SmartwareServiceApp</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>StandardErrorPath</key>
        <string>/dev/null</string>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.genieo.completer.download.plist (checksum 1894818845)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.genieo.completer.download</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Users/USER/Library/Application Support/com.genieoinnovation.Installer/Completer.app/Contents/MacOS/Installer</ string>
        <string>-trigger</string>
        <string>download</string>
        <string>-isDev</string>
        <string>0</string>
        <string>-installVersion</string>
        <string>15886</string>
        <string>-firstAppId</string>
        <string>19340001</string>
        </array>
        <key>WatchPaths</key>
        <array>
        <string>/Users/USER/Downloads</string>
        </array>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.genieo.completer.update.plist (checksum 2339121592)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>Label</key>
        <string>com.genieo.completer.update</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Users/USER/Library/Application Support/com.genieoinnovation.Installer/Completer.app/Contents/MacOS/Installer</ string>
        <string>-trigger</string>
        <string>update</string>
        <string>-isDev</string>
        <string>0</string>
        <string>-installVersion</string>
        <string>15886</string>
        <string>-firstAppId</string>
        <string>19340001</string>
        </array>
        <key>StartInterval</key>
        <integer>86400</integer>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.microsoft.LaunchAgent.SyncServicesAgent.plist (checksum 3051698494)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
        <key>KeepAlive</key>
        <false/>
        <key>Label</key>
        <string>com.microsoft.SyncServicesAgent</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/Applications/Microsoft Office 2011/Office/SyncServicesAgent.app/Contents/MacOS/SyncServicesAgent</string>
        </array>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.zimbra.desktop.plist (checksum 3676173668)
       <?xml version="1.0" encoding="UTF-8"?>
       <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <plist version="1.0">
       <dict>
               <key>Label</key>
               <string>com.zimbra.desktop</string>
               <key>ProgramArguments</key>
               <array>
                       <string>/Users/USER/Library/Zimbra Desktop/bin/zdesktop</string>
                       <string>start</string>
                       <string>-w</string>
               </array>
       

  • ITunes 11.0.3 causing major problems with Safari and Mail.

    I have a 2007 aluminum iMac with 4GB of Crucial RAM running 10.8.3, now 10.8.4.  Got an iTunes update to 11.0.3 a few weeks ago.  Since then, iTunes, Mail, and Safari can't be open at same time or iMac slows to a crawl.  10.8.4 update did not fix this.  I've run the Apple hardware checking program and all checks out fine.  I've run Clean My Mac 2.0, which didn't help at all.  I installed a widget to monitor internal temperatures, and they are not too high.  I've tried a Time Machine restore to May 14th, but it didn't seem to restore the old version of iTunes, but rather rolled back the desktop.  Please help!

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Compare and adjust business processes to a solution directory

    Dear all,
    I'm having truble with viewing changes that I have made in my maintenance project, using the compare and adjust function. Can you please tell me what I'm doing wrong?
    These are the steps I took:
    1. I chose a solution using transaction SOLUTION_MANAGER.
    2. I have made the solution settings, including creating a maintenance project, and enabling the check out/ check in & history functions. 
    3. Added business scenarios to the solution directory (some I chose from a project, and some I have created manualy).
    4. Checked the Scenarios out to the maintenance project.
    5. Made some changes in the maintenance project, including adding documents and transactions (transaction SOLAR01).
    6. Changed my user-specific settings to comparison mode - "display changes made in original".
    7. Checked the edited business scenarions back into the solution directory. I have checked, and the changes I've made in the maintenance project apeared now in the solution directory.
    Now starts the trouble...:
    8. I checked the scenarios out again from the solution directory to the maintenance project.
    9. Went to transaction SOLAR_PROJECT_ADMIN, marked the maintenance project line, and did "compare and adjust" of a "new version of original" .
    10. Went back to SOLAR01 and try to view the changes I have made in the maintenance project. I CAHNGES I'VE MADE ARE NOT MARKED...
    Sorry for the long description. Can you please help?
    Thank you,
    Adi

    Adi,
    Did you find a resolution to this problem? we are faced with the exact type scenario.

  • Problems with MemoryImageSource and createImage

    Hi!
    As my headline says it, I have a problem with MemoryImageSource and createImage. Whenever I create an image from a memory buffer I get an image that has the wrong dimensions: the width and height are swapped, but the image seems to be all right. I tried to create the image ov top of a JPanel using the Container methods. Any suggestions as of how to solve this problem would be greatly appreciated.
    Here is the code that I am using:
    public class ImageCanvas extends JPanel
    private Dimension SD;
    private Image Img;
    byte [][] ImageBuffer=new [150][100];
    public ImageCanvas()
    this(100,150,ImgBuffer);
    public ImageCanvas(int sx,int sy,byte[][] buff)
    D=new Dimension(sx,sy);
    SD=new Dimension(sx,sy);
    setSize(D);
    setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
    setVisible(true);
    int [] ipix=new int[sx*sy];
    if(buff.equals(ImgBuffer)==false){
    ImgBuffer=new byte[sy][sx];
    for(int j=0;j<sy;j++){
    System.arraycopy(buff[j],0,ImgBuffer[j],0,sx);
    /* ARGB */
    for(int j=0;j<sy;j++){
    for(int i=0;i<sx;i++){
    ipix[j*sx + i]=(0xFF000000 |
         ((ImgBuffer[j] << 16) & 0x00FF0000) |
         ((ImgBuffer[j][i] << 8) & 0x0000FF00) |
         (ImgBuffer[j][i] & 0x000000FF));
    Img = createImage(new MemoryImageSource(sx,sy,ipix,0,sx));
    private void SetImage(byte[][] pixels)
    int sx=pixels[0].length;
    int sy=pixels.length;
    SD.width=sx;
    SD.height=sy;
    if(ImgBuffer[0].length != sx && ImgBuffer.length != sy){
    ImgBuffer = new byte[sy][sx];
    for(int j=0;j<sy;j++){
    System.arraycopy(pixels[j],0,ImgBuffer[j],0,sx);
    int [] ipix=new int[sx*sy];
    for(int i=0;i<sx;i++){
    for(int j=0;j<sy;j++){
    /* ARGB */
    ipix[j*sx + i]=(0xFF000000 |
         ((ImgBuffer[j][i] << 16) & 0x00FF0000) |
         ((ImgBuffer[j][i] << 8) & 0x0000FF00) |
         (ImgBuffer[j][i] & 0x000000FF));
    Img = createImage(new MemoryImageSource(sx,sy,ipix,0,sx));
    protected void paintComponent(Graphics g)
    paint(g);
    public void paint(Graphics g)
    g.drawImage(Img,0,0,SD.height,SD.width,null);

    If you are going to ask question about your code, at least post a working code.
    The code you posted contains so many syntactic and semantic errors that nobody would bother to fix.

  • An ext2 partition problem on install & multiple swap

    I'm installing Arch on a second machine.  This one has 2 scsi drives.  I set up a /boot partition at /disc0/part1, had it formatted as ext2.  I put a swap partition on this drive.  This is marked bootable.  The rest of the partitions are reiserfs.
    I installed grub into /disc0/disc, which I understand is the MBR.
    When the machine reboots after installation, I get an error:
    fsck.ext2:  No such file or directory while trying to open /dev/discs/disc0/part1
    /dev/discs/disc0/part1:  The superblock could not be read or does not describe a correct ext2 filesystem.
    It goes on to suggest running e2fsck.
    Since I originally posted this I ran knoppix on the machine, checking with Qtparted shows that the partition is fine, all the files that should be there are there.
    1.  What am I doing wrong?  I know I don't technically need a /boot partition, and if it comes to that, I'll do without, but don't understand  why that would be the problem.
    2.  I've read that performance is better if you have a swap on each drive if more than one.        How do I create the second swap?  I've created a partition for it, but don't know how to mark it as swap.

    Ok, let me elaborate:
    From the error messages you get it seems that grub successfully boots the kernel but the kernel fails to find your filesystem/swap partitions. This can have several reasons but the non-existence of the appropriate device nodes in /dev seems to be the problem in your case.
    In your /etc/fstab the filesystem and swap entries are probably configured using devfs-style names, because that is what the Arch installer does set up.
    E.g. /dev/discs/disc0/part1 for /boot and
    /dev/discs/disc0/part2 for /
    etc. ymmv
    Now the point is that these entries do NOT exist by default, devfs or udev have to create them, usually they are symlinks to traditional entries like /dev/hda1 or /dev/hda2 (or the other way round, in case of devfs).
    Now, if you are using neither devfs nor udev you won't have the proper devfs-style device entries in your /dev directory and that's causing to kernel to hickup because he simply cannot find the discs you tell him to mount. Normally you configure grub/lilo to tell the kernel which partition he shall use as / (thats the root=/dev/whatever option for the kernel)
    Therefore you MUST run either one of devfs or udev to see the proper device entries. If you are using neither then you will have to adapt your /etc/fstab and /boot/grub/menu.lst or the kernel won't be able to mount the filesystems nor be able to activate the swap partitions.
    As Arch Linux 0.7 does NOT install udev by default you will either have to use devfs (this is done by NOT using the devfs=nomount option) or install udev (then you'll probably want to set the devfs=nomount option).
    Cheers,
    Dominik

  • How to compare and sync 2 folders or entire disk drives?

    Hi
    How should I go about comparing and syncing entire drives or folders? I have looked for programs that would do this as it dosnt look like tiger does it, But none of the programs seems to be well documentet or ub writen (im on a mbp).
    I dont whant to use automator as Im not familiar with it and I whant good control over wich parameters should be used to compare (date ceated/modifyed and so on).
    Is there anyway to do this in tiger natively or will leopard do it?
    The solution needs to be reliable as this is data I cant recreate, but to much data to compare each folders manual.
    I really hope you guys can help asap

    My biggest problem is none of those programs lets you compare 2 folders and tell you what the difrences are. I need to go over alot of folders and some I dont whant to sync some I do. some folders will have difrent names but exact same content. for those I need some program that compares the 2 folders and not just syncing the overall wich would just copy the one folder to the other as I would apear difrent.
    Disk order is the program I so far have found that seems to be able to it, only I cant get it to it and I havnt been able to find any documentation on the program. So any alternatives would be great.
    Hope I made myself clear and understandable

  • PMP 4000 calcualtes Spot/Spot and SWAP/SWAP Difference while

    Hi,
    My client is using Position Management Procedure 4000 for our Forex Forward
    transactions (Product type 60A and Transaction type 102).
    When we do key date valuation using TPM1 it calculates two different
    valautions - one for Spot gain/loss and another for Swap gain/loss as
    shown in the enclosed screen shot.
    We want a single gain/loss amount to be posted to the unrealized
    gain/loss account.
    What do we do?
    Kalyan

    Hi,
    In the IMG activity, Transaction manager --  Accounting -- Key date Valuation -- Assign Update Types
    define only the required update types for PMP 4000.   Also, in your PMP, I think you are using rate valuation for forward exchange transaction step. 
    Anyway, in the case of forward exchange transactions, I think it is correct to post both the losses because the rate of the transaction is made up of spot and swap rate.
    If you want to use a single account, then specify the same posting specifications for both the update types.  It will post to the same G/L accounts.  Please attach the screen shots..
    Check this case also: In settings for position management  --  Key date Valuation -- Price Valuation procedure for forward exchange transactions.
    Here in your procedure do not use Market Forward Rate for forward rate in transaction.  Only this component uses swap rate.
    Use Market spot rate for forward rate.  This will compare only with market spot rate on valuation date and post only 1 loss. 
    Regards,
    Ravi
    Edited by: Ravishankar Ramamurthy on Aug 3, 2009 10:09 AM

  • Before mountain lion was installed on my mac it was running great and no problems at all and after the installation everything and i mean everything is super slow!!!! its frustrating. help please.

    help

    First, back up all data immediately, as your boot drive may be failing.
    Launch the usual set of applications you use when you notice the problem.
    Step 1
    Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. What approximate values are shown for Reads in/sec and Writes out/sec?
    Step 2
    You must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way as above. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Post the 50 or so most recent messages in the log — the text, please, not a screenshot.
    Important: Some personal information, such as your name, may appear in the log. Edit it out before posting.

  • Project "Compare and Adjust" Functionality

    We have created a template project that we are using to capture all the business processes we have implemented.  When we have a project we create an implementation project and pull in the associated business processes from the template project. If we are adding a new business scenario/process/step, then it is first put on the template project and then added to the implementation project.
    We then associate our documentation and objects in the project documentation tab, transaction, configuratino, and development tab.  After I run the project "compare and adjust" in SOLAR_PROJECT_ADMIN, I expect to see the differences between these tabs in SOLAR01/02.  This is not the case.  When I go to the tab and click "adjust to origina" I can see there is a difference between the template and implementation project.  I want to have the difference e.g. document be adjusted/copied to the template project through the copy command.  Unfortunately this is not working.  Any ideas????
    Thanks!!

    Thanks Andreas!
    I checked the user settings and they are set as you described.  It is a rather odd problem.  Sometimes the "yellow icons" appear but not consistently.  It is almost as if something must be "re-set" before I can see the changes.  I did find an relevant OSS note so we are in the process of applying that to see if our problem will be resolved. 
    For the second issue, when I do the "yellow icons", I click the adjust button and there are differences visible on the two sides of the pop up.  However, I am not able to complete the adjust functionality.  So to give more context here is what I am doing... I have created a template project - let's call it master and an impementation project.  I have created the business scenario/process/steps in the master plan.  I then have created the same business scenario/process/steps in the implementation project with the "master" template project as the source.  I then had added documentation to the project documentation and development tab.  In addition, I have added items to the configuration tab.  I want to be able to reflect the documents back to the "master" project so others can reuse.  How can I do this?  I have been running the compare in solar_project_admin by selecting the implementation project and entering the master template project on the selection screen.
    Any additonal thoughts would greatly be appreciated.
    Thanks!!!
    Janice

  • Comparable and Comparator Interface - Collections

    Hi All
    Please let me know when to use Comparable interface and Comparator interface. ?
    Any sort of information is highly appreciable .
    Matt

    Matt wrote:
    @ jverd      
    So, when you googled, and found tutorials, and worked through those tutorials, and read the javadocs for those classes, what in particular did you not understand?If everything would work like that what will be the use of forums like this , It does work like that, for people who aren't lazy. The use of these forums, as indicated by my first reply, is among other things, when you've done your own research, as you should do, and run into something you don't understand.
    so dont try to be smart :(Maybe you should try to be smarter.
    Lets try not to abuse the forum with exchanges like this. The only abuse so far has been you expecting the forum to be a substitute for doing your own research.
    I know how to use Comparable and Comparator but dont know when to use these in a real time application.That statement says nothing about your problem. The only information it carries is that you don't know what the term "real time" means.

Maybe you are looking for

  • Excel 2007 and 2010 slow to save to network drive with Windows 7

    I know this issue has been passed around and I know that there are some fixes out there. I will lay out my issue and resources, what I've tried and the things I've noticed. I have a mix of Server 2003 32bit, 64 bit and 2008 64 bit. The desktop/laptop

  • How do I set up a master slide in Keynote that provides placeholders for multiple images?

    I came across an article in Mac|Life (Oct 2012 p90) titled "Create a Stylish Slideshow".  The steps include creating a master slide that allows for you to add multiple photos.  My master slide list for all themes allows for only one photo per slide. 

  • Do I have to erase everything I have?

    I got my ipod touch about 3 years ago and haven't updated it once because I had dial up internet. I just got high speed, so it went through the whole update process, then at the end told me all my content would be erased on my ipod if I finished the

  • SRM 7 ECS : "Add contract item" to Invoice

    Hello, We are creating invoices that will be posted to ECC 6. Those are " contract call-off" invoices without PO reference. What config should be done to get the option "Add item/Contract item" working? Currently it desperately remains grey... Thanks

  • N97 problems any ideas solutions?

    hi there i got my n97 on realease date in the uk and have had no problems with it whatsover, until yesterday that is, i had set my phone to always ask when connecting to web, so when home screen was up the message would come up whether to connect or