What is the underlying issue?  Here are the symptoms...

I have a combination of issues here, and they all seemed to be linked but I cannot wrap my head around it.  Here goes:
(1) System Preferences freezes when I try to alter trackpad settings
(2) Mac Software Updates will not install and cites an "input/output error"
(3) Google Voice & Video Plug-In will download but doesn't link properly to Gmail, and I continue to be prompted ot download plug-in
(4) Skype downloads without a problem, but freezes upon first launch
I have rebooted many times, deleted downloads and repeated them dozens of times, and tinkered with a few smaller elements.  But what is my underlying issue here?  Any thoughts?
Thanks!
Nate

Repair permissions and restart your computer when done. 

Similar Messages

  • Computer really slow, ran a diagnosis, here are the results

    Hi, My computer was really slow so i removed some of the lauch/deamon that i could fnd and ran a diagnosis, What else is wrong, what should i do?
    here are the results:
    Start time: 01:27:56 02/19/15
    Model Identifier: MacBookPro8,1
    System Version: OS X 10.9.5 (13F34)
    Kernel Version: Darwin 13.4.0
    Time since boot: 5 days 19:47
    SerialATA
       Hitachi HTS545032B9A302                
    SMC
       ReadKey for key ALP0 failed with SMC error code 0xb7.
       ReadKey for key ALP1 failed with SMC error code 0xb7.
       ReadKey for key BILO failed with SMC error code 0xb7.
    FileVault: On
    Diagnostic reports
       2015-02-07 WindowServer crash x2
       2015-02-07 loginwindow crash x2
       2015-02-11 Dock crash
       2015-02-11 PluginProcess crash
       2015-02-11 WindowServer crash x3
       2015-02-11 iPhoto crash
       2015-02-11 loginwindow crash x2
       2015-02-12 WindowServer crash
       2015-02-12 loginwindow crash
       2015-02-12 ptcore crash
       2015-02-13 ptcore crash
       2015-02-14 Microsoft Excel hang
       2015-02-14 Viber hang
       2015-02-14 WindowServer crash
       2015-02-14 iPhoto hang
       2015-02-15 ptcore crash
       2015-02-16 WindowServer crash x2
       2015-02-16 ptcore crash
       2015-02-19 Safari crash
    Shutdowns
       Feb 16 20:09:25 Cause: -60
    Log
       Feb 17 14:24:10 check_vol_last_mod_time:XXX failed to get mount time (25; &mount_time == 0x10c8493d8)
       Feb 17 14:27:10 msdosfs_fat_uninit_vol: error 6 from msdosfs_fat_cache_flush
       Feb 17 14:27:11 disk logger: failed to open output file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory). mount point /Volumes/MY GS DRIVE/.fseventsd
       Feb 17 14:27:11 disk logger: failed to open output file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory). mount point /Volumes/MY GS DRIVE/.fseventsd
       Feb 17 14:27:11 failed to unlink old log file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory)
       Feb 17 14:27:11 failed to unlink old log file /Volumes/MY GS DRIVE/.fseventsd/00000000002722b5 (No such file or directory)
       Feb 17 14:27:11 unmounting: failed to remove log dir /Volumes/MY GS DRIVE/.fseventsd (No such file or directory)
       Feb 17 14:37:36 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 17 14:37:36 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 17 14:38:06 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:17 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:17 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 20:48:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:25:37 PM notification timeout (pid 37112, iTunes)
       Feb 18 21:26:07 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 21:26:07 PM notification timeout (pid 37112, iTunes)
       Feb 18 22:04:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 22:04:47 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 22:04:47 PM notification timeout (pid 37112, iTunes)
       Feb 18 23:00:12 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 23:00:12 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 18 23:00:42 PM notification timeout (pid 14466, Rogers One Numbe)
       Feb 19 01:16:21 7fff86800000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
    Daemons
       com.adobe.fpsaud
       com.google.keystone.daemon
       com.microsoft.office.licensing.helper
       com.oracle.java.Helper-Tool
       com.v.helper
       net.privatetunnel.ptcore
    Agents
       com.adobe.ARM.UUID
       com.apple.AirPortBaseStationAgent
       com.facebook.videochat.NAME.updater
       com.google.keystone.system.agent
       com.jdibackup.ZipCloud.autostart
       com.jdibackup.ZipCloud.notify
       com.oracle.java.Java-Updater
       com.pharos.notify
       com.pharos.popup
       com.v.agent
       com.viber.osx
    Applications
       /Applications/Adobe Reader.app
       - com.adobe.Reader
       /Applications/Dropbox.app
       - com.getdropbox.dropbox
       /Applications/Firefox.app
       - org.mozilla.firefox
       /Applications/Google Chrome.app
       - com.google.Chrome
       /Applications/Internet Explorer.app
       - com.microsoft.explorer
       /Applications/Microsoft Messenger.app
       - com.microsoft.Messenger
       /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
       - com.microsoft.languageregister
       /Applications/Microsoft Office 2011/Microsoft Document Connection.app
       - com.microsoft.DocumentConnection
       /Applications/Microsoft Office 2011/Microsoft Excel.app
       - com.microsoft.Excel
       /Applications/Microsoft Office 2011/Microsoft Outlook.app
       - com.microsoft.Outlook
       /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
       - com.microsoft.Powerpoint
       /Applications/Microsoft Office 2011/Microsoft Word.app
       - com.microsoft.Word
       /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
       - com.microsoft.ASApplication
       /Applications/Microsoft Office 2011/Office/Equation Editor.app
       - com.microsoft.EquationEditor
       /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
       - com.microsoft.alerts.daemon
       /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
       - com.microsoft.openxml.chart.app
       /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
       - com.microsoft.ClipGallery
       /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
       - com.microsoft.outlook.databasedaemon
       /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
       - com.microsoft.outlook.databaseutility
       /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
       - com.microsoft.Graph
       /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
       - com.microsoft.outlook.officereminders
       /Applications/Microsoft Office 2011/Office/Microsoft Office Setup Assistant.app
       - com.microsoft.office.setupassistant
       /Applications/Microsoft Office 2011/Office/Microsoft Query.app
       - com.microsoft.Query
       /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
       - com.microsoft.office.uploadcenter
       /Applications/Microsoft Office 2011/Office/My Day.app
       - com.microsoft.myday
       /Applications/Microsoft Office 2011/Office/Office365Service.app
       - com.microsoft.Office365Service
       /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
       - com.microsoft.openxml.excel.app
       /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
       - com.microsoft.SyncServicesAgent
       /Applications/PrivateTunnel.app
       - 237
       /Applications/Remote Desktop Connection.app
       - com.microsoft.rdc
       /Applications/Rogers One Number.app
       - com.Rogers.Rogers_One_Number
       /Applications/Skype.app
       - com.skype.skype
       /Applications/Utilities/Adobe Flash Player Install Manager.app
       - com.adobe.flashplayer.installmanager
       /Applications/Viber.app
       - com.viber.osx
       /Applications/uTorrent.app
       - com.bittorrent.uTorrent
       /Library/Application Support/Google/GoogleTalkPlugin.app
       - com.google.GoogleTalkPluginD
       /Library/Application Support/Google/GoogleVoiceAndVideoUninstaller.app
       - com.google.GoogleTalkPluginUninstaller
       /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
       - com.microsoft.autoupdate2
       /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
       - com.microsoft.error_reporting
       /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
       - com.microsoft.netlib.shipassertprocess
       /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
       - com.microsoft.silverlight.sllauncher
       /Library/Application Support/Pharos/Notify.app
       - com.pharos.notify
       /Library/Application Support/Pharos/Popup.app
       - com.pharos.popup
       /Library/Application Support/Pharos/PopupConfiguration.app
       - com.pharos.PopupConfiguration
       /Library/Application Support/Pharos/Utilities/Uninstaller.app
       - com.pharos.uninstaller
       /Library/Application Support/PrivateTunnel/PrivateTunnel.app
       - 237
       /Library/Application Support/laser/Agent/agent.app
       - com.someproduct.agent
       /Library/Printers/Xerox/Filters/commandtoxbds.app
       - com.xerox.commandtoxbds
       /Users/USER/Downloads/Cyberduck 2.app
       - ch.sudo.cyberduck
       /Users/USER/Downloads/Cyberduck.app
       - ch.sudo.cyberduck
       /Users/USER/Downloads/FileZilla 2.app
       - de.filezilla
       /Users/USER/Downloads/FileZilla.app
       - de.filezilla
       /Users/USER/Downloads/MediaGet.app
       - com.yourcompany.mediaget_dbg
       /Users/USER/Downloads/Odin.app
       - Odin.Wineskin.prefs
       /Users/USER/Downloads/UnRarX-1.app
       - com.peternoriega.unrarx
       /Users/USER/Downloads/UnRarX.app
       - com.peternoriega.unrarx
       /Users/USER/Downloads/UofR_SophosMac.app
       - org.ahead.UofR_SophosMac
       /Users/USER/Library/Application Support/Facebook/video/3.1.0.522/FacebookVideoCalling.app
       - com.Skype.FacebookVideoCalling
       /Users/USER/Library/Application Support/Google/Chrome/Default/Web Applications/_crx_nmmhkkegccagdldgiimedpiccmgmieda/Default nmmhkkegccagdldgiimedpiccmgmieda.app
       - com.google.Chrome.app.Default-nmmhkkegccagdldgiimedpiccmgmieda-internal
       /Users/USER/Library/Application Support/IBM/SPSS/Statistics/20/Eclipse/configuration/nl/en_US/org.eclipse.equin ox.app
       - null
       /Users/USER/Library/Application Support/TomTom HOME/TomTomHOMERunner.app
       - com.tomtom.HOMERunnerApp
       /Users/USER/Library/Application Support/WebEx Folder/1326/Event Center.app
       - com.webex.eventcenter
       /Users/USER/Library/Application Support/WebEx Folder/1326/asannotation2.app
       - com.webex.asannotation
       /Users/USER/Library/Application Support/WebEx Folder/1326/convertpdf.app
       - com.webex.convertpdf
       /Users/USER/Library/Application Support/WebEx Folder/Add-ons/Cisco WebEx Start.app
       - com.cisco.webex.Cisco-WebEx-Start
    Frameworks
       /Library/Frameworks/PrivateTunnel.framework
       - null
       /Users/USER/Library/Frameworks/SamsungKiesFoundation.framework
       - null
       /Users/USER/Library/Frameworks/SamsungKiesSerialPort.framework
       - null
    PrefPane
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib/deploy/JavaControlPanel.pref Pane
       - null
       /Library/PreferencePanes/Flash Player.prefPane
       - com.adobe.flashplayerpreferences
    Bundles
       /Library/Internet Plug-Ins/AdobePDFViewer.plugin
       - com.adobe.acrobat.pdfviewer
       /Library/Internet Plug-Ins/AdobePDFViewerNPAPI.plugin
       - com.adobe.acrobat.pdfviewerNPAPI
       /Library/Internet Plug-Ins/Flash Player.plugin
       - com.macromedia.Flash
       /Library/Internet Plug-Ins/JavaAppletPlugin.plugin
       - com.oracle.java.JavaAppletPlugin
       /Library/Internet Plug-Ins/RogersOneNumber_74057.plugin
       - com.Rogers.onenumber
       /Library/Internet Plug-Ins/SharePointBrowserPlugin.plugin
       - com.microsoft.sharepoint.browserplugin
       /Library/Internet Plug-Ins/Silverlight.plugin
       - com.microsoft.SilverlightPlugin
       /Library/Internet Plug-Ins/googletalkbrowserplugin.plugin
       - com.google.googletalkbrowserplugin
       /Library/Internet Plug-Ins/o1dbrowserplugin.plugin
       - com.google.o1dbrowserplugin
       /Library/Printers/Xerox/PDEs/Xerox WorkCentre Pro 232_238_245_255 Accounting.plugin
       - com.xerox.print.pde.Accounting_wcp232_238_245_255
       /Library/Printers/Xerox/PDEs/Xerox WorkCentre Pro 232_238_245_255.plugin
       - com.xerox.print.pde.xeroxfeatures.wcp232_238_245_255
       /Library/Printers/Xerox/PDEs/XeroxFeatures.plugin
       - com.xerox.xeroxfeatures.pde
       /Users/USER/Library/Application Support/Google/Chrome/PepperFlash/11.9.900.117/PepperFlashPlayer.plugin
       - com.macromedia.PepperFlashPlayer.pepper
       /Users/USER/Library/Internet Plug-Ins/WebEx64.plugin
       - com.cisco_webex.plugin.gpc64
    dylibs
       /Applications/Microsoft Office 2011/Office/MicrosoftSetupUI.framework/Libraries/mbupgx.dylib
       /Applications/Microsoft Office 2011/Office/OPF.framework/Versions/14/Resources/OPF_Common.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/Fm20.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/MicrosoftOLE2TypesLib.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/RefEdit.dylib
       /Applications/Microsoft Office 2011/Office/Visual Basic for Applications.framework/Versions/14/Frameworks/RichEdit.dylib
       /Users/USER/Library/Application Support/Firefox/Profiles/77usx6jx.default/gmp-gmpopenh264/1.1/libgmpopenh264.dy lib
       /Users/USER/Library/Application Support/Firefox/Profiles/77usx6jx.default/gmp-gmpopenh264/1.3/libgmpopenh264.dy lib
       /Users/USER/Library/Application Support/Google/Chrome/WidevineCDM/1.4.6.758/_platform_specific/mac_x64/libwidev inecdm.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/cmcrypto-1309.03.2812.2.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/rtp-10.20.23.0.dylib
       /Users/USER/Library/Application Support/WebEx Folder/1326/xml-11.18.32.0.dylib
    Contents of /Library/LaunchAgents/com.laser.agent.plist
       - mod date: Jan 22 11:26:38 2015
       - checksum: 2993121334
       <?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.v.agent</string>
        <key>OnDemand</key>
        <false/>
        <key>ProgramArguments</key>
        <array>
        <string>/Library/Application Support/laser/Agent/agent.app/Contents/MacOS/agent</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>LimitLoadToSessionType</key>
        <string>Aqua</string>
        <key>ThrottleInterval</key>
        <integer>10</integer>
       </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.oracle.java.Java-Updater.plist
       - mod date: Jan 26 11:41:57 2015
       - checksum: 2917329840
       <?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>StartCalendarInterval</key>
        <dict>
        <key>Hour</key>
        <integer>11</integer>
        <key>Minute</key>
        <integer>41</integer>
        <key>Weekday</key>
        <integer>7</integer>
        </dict>
        <key>StandardErrorPath</key>
               <string>/dev/null</string>
               <key>StandardOutPath</key>
               <string>/dev/null</string>
       </dict>
       ...and 1 more line(s)
    Contents of /Library/LaunchAgents/com.pharos.notify.plist
       - mod date: Jul 20 17:48:04 2014
       - checksum: 2999610686
       <?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.pharos.notify</string>
               <key>Program</key>
               <string>/Library/Application Support/Pharos/Notify.app/Contents/MacOS/Notify</string>
               <key>KeepAlive</key>
               <true/>
               <key>LimitLoadToSessionType</key>
               <string>Aqua</string>
           </dict>
       </plist>
    Contents of /Library/LaunchAgents/com.pharos.popup.plist
       - mod date: Jul 20 17:48:11 2014
       - checksum: 2018977043
       <?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.pharos.popup</string>
               <key>Program</key>
               <string>/Library/Application Support/Pharos/Popup.app/Contents/MacOS/Popup</string>
               <key>KeepAlive</key>
               <true/>
               <key>LimitLoadToSessionType</key>
               <string>Aqua</string>
           </dict>
       </plist>
    Contents of /System/Library/LaunchDaemons/com.apple.NetBootClientHelper.plist
       - mod date: Oct 29 11:17:20 2013
       - checksum: 601108312
       <?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>SuccessfulExit</key>
        <false/>
        </dict>
        <key>Label</key>
        <string>com.apple.NetBootClientHelper</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/sbin/NetBootClientHelper</string>
        <string>-setSharingNames</string>
        <string>-resetLocalKDC</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.adobe.ARM.UUID.plist
       - mod date: Oct 12 11:53:43 2011
       - checksum: 408149527
       <?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.adobe.ARM.UUID</string>
        <key>ProgramArguments</key>
        <array>
        <string>/Applications/Adobe Reader.app/Contents/MacOS/Updater/Adobe Reader Updater Helper.app/Contents/MacOS/Adobe Reader Updater Helper</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>StartInterval</key>
        <integer>12600</integer>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.facebook.videochat.NAME.plist
       - mod date: Aug 13 23:48:57 2014
       - checksum: 1515274914
       <?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.facebook.videochat.NAME.updater</string>
         <key>ProgramArguments</key>
         <array>
           <string>/usr/bin/java</string>
           <string>-cp</string>
           <string>/Users/USER/Library/Application Support/Facebook/video/3.1.0.522/FacebookUpdate.jar</string>
           <string>FacebookUpdate</string>
           <string>com.facebook.peep</string>
           <string>3.1.0.522</string>
         </array>
         <key>RunAtLoad</key>
         <true/>
         <key>StartInterval</key>
         <integer>10800</integer>
         <key>StandardErrorPath</key>
         <string>/dev/null</string>
         <key>StandardOutPath</key>
         <string>/dev/null</string>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.jdibackup.ZipCloud.autostart.plist
       - mod date: Jan 24 19:12:53 2015
       - checksum: 2594553491
       <?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.jdibackup.ZipCloud.autostart</string>
           <key>ProgramArguments</key>
           <array>
               <string>open</string>
               <string>/Applications/ZipCloud.app/Contents/Resources/Utility.app</string>
               <string>-n</string>
               <string>--args</string>
               <string>9</string>
               <string>-l</string>
           </array>
           <key>StandardOutPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_out.log</string>
           <key>StandardErrorPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_err.log</string>
           <key>RunAtLoad</key>
           <true/>
       </dict>
       </plist>
    Contents of Library/LaunchAgents/com.jdibackup.ZipCloud.notify.plist
       - mod date: Jan 24 19:12:53 2015
       - checksum: 3539620783
       <?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.jdibackup.ZipCloud.notify</string>
           <key>ProgramArguments</key>
           <array>
               <string>open</string>
               <string>/Applications/ZipCloud.app/Contents/Resources/Utility.app</string>
               <string>--args</string>
               <string>7</string>
               <string>1</string>
           </array>
           <key>StandardOutPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_out.log</string>
           <key>StandardErrorPath</key>
           <string>/Users/USER/Library/Logs/ZipCloud/lagent_err.log</string>
           <key>StartInterval</key>
           <integer>1200</integer>
           <key>RunAtLoad</key>
           <false/>
       </dict>
       </plist>
    Font issues: 25
    Bad plists
       Library/Preferences/com.apple.iphotomosaic.plist
    Firewall: On
    Listeners
       cupsd: ipp
       kdc: kerberos
    User login items
       FaceTime
       - /Applications/FaceTime.app
       Dropbox
       - /Applications/Dropbox.app
       AdobeResourceSynchronizer
       - /Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app
       Rogers One Number
       - /Applications/Rogers One Number.app
    Safari extensions
       DivX Plus Web Player HTML5 <video>
       - com.divx.DivXHTML5
       Searchme
       - com.spigot.safari.searchme
    Restricted files: 415
    Lockfiles: 6
    Elapsed time (s): 1303

    I don't recommend running that script unless asked to do so by me, as I have no control over how the information will be used.
    A
    You installed a variant of the "VSearch" trojan. Remove it as follows.
    This malware has many variants. Anyone else finding this comment should not expect it to be applicable.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.laser.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.laser.daemon.plist
    /Library/LaunchDaemons/com.laser.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/laser
    /System/Library/Frameworks/v.framework
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    B
    "ZipCloud" is some sort of cloud-storage service with a doubtful reputation. The OS X client is sometimes distributed along with malware. Although ZipCloud may not be malicious itself, it should be deemed suspect by virtue of the company it keeps.
    To remove ZipCloud, start by backing up all data (not with ZipCloud itself, of course.)
    Quit the application, if it's running, and drag it from the Applications folder to the Trash.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/LaunchAgents/com.jdibackup.ZipCloud.autostart.plist
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with a file selected. Move the selected file to the Trash.
    In the same folder, there may also be a file named
               com.jdibackup.ZipCloud.notify.plist
    Move that to the Trash as well.
    Log out or restart the computer and empty the Trash.
    C
    The following Safari extensions are malicious and should be removed in the Extensions pane of the Safari preferences window:
              Searchme
    Do the equivalent in the Chrome and Firefox browsers, if you use those. Never install any extension with the words "Spigot," "Conduit," "Genieo," or "Trovi" in the description.
    D
    Some of your user files (not system files) have incorrect permissions or are locked. This procedure will unlock those files and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Back up all data before proceeding.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    resetp
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • Numerous system log errors such as: "kernel[0]: ... dyld_shared_cache_x86_64': owned by uid=89 instead of 0" ... what is the underlying problem here?

    My system.log shows numerous errors such as: "kernel[0]: ... dyld_shared_cache_x86_64': owned by uid=89 instead of 0" ...
    What is the underlying problem here?

    Are you trying to install anything by any chance??
    update_dyld_shared_cache ensures that dyld's shared cache is up-to-date. This tool is normally only run by Apple's Installer and Software Update, as they are the only official ways for OS dylibs to be updated. But if for some reason you used another mechanism to alter an OS dylib, you should manually run update_dyld_shared_cache.

  • This is to sum up the problem. Here are facts :

    This is to sum up the problem. Here are facts :
    1. Java process size grows to ~ 3G and eventually exhaust native memory. Only
    data segment of the process grows in size.
    2. Java heap size remains stable, way under the max size. Perm generation
    size is stable, way under the max size.
    Here is a table showing evolution of Java process Virtual Memory
    Start Monitoroing Java exited with OutOfMem
    VmSize: 2764108 kB VmSize: 3094912 kB
    VmLck: 0 kB VmLck: 0 kB
    VmRSS: 1737364 kB VmRSS: 2020136 kB
    VmData: 2461448 kB => VmData: 2792252 kB
    VmStk: 216 kB VmStk: 216 kB
    VmExe: 56 kB VmExe: 56 kB
    VmLib: 301488 kB VmLib: 301488 kB
    Plase note that Exe, Stack and Libs are the same at the beginning and the endof the period. Data segment increased for about 0.4G. The memory leak takes place in the native code.
    Here is our log
         05/08/13 07:38:10 java.lang.OutOfMemoryError: unable to create new nativethread
         05/08/13 07:38:10 at java.lang.Thread.start(Native Method)
         05/08/13 07:38:10 at com.evermind.util.ReleasableResourcePooledExecutor.addThread(ReleasableResourcePooledExecutor.java:121)
         05/08/13 07:38:10 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute(PooledExecutor.java:978)
         05/08/13 07:38:10 at com.evermind.util.ThreadPool.launch(ThreadPool.java:255)
         05/08/13 07:38:10 at om.evermind.server.http.AJPConnectionListener.run(AJPConnectionListener.java:74)
         05/08/13 07:38:10 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         05/08/13 07:38:10 at java.lang.Thread.run(Thread.java:534)
         Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: requested 612052 bytes for Chunk::new. Out of swap space?

    100M doesn't seem too extreme ... I ran a test program that created 100 sleeping threads, and ps -l reported the process size as 77M. I don't know Linux well enough to know the threading model (I suspect it's LWP-per-thread, which means that ps -m will give correct output).
    However, given what you've shown (heap doesn't grow, process map does, failure occurs in code that starts a new thread), it really seems that your problem has something to do with too many threads.
    My first thought, since I've seen it before is that there may be fragmentation of the memory map, such that there's no available segment when the JVM tries to allocate the stack for a new thread. When I saw this problem, the JVM (1.3 Solaris) was using a pretty naive approach to mapping those blocks, such that a few long-lived threads would cause it to run out of space. This information is available in the /proc/maps directory (man proc for more info).
    There could also be some limit to the number of threads you can create. I know that Solaris returns ENOMEM when it's unable to create a thread; not sure what Linux returns.
    Finally, I'm going to suggest again that you put logging messages in the thread factory that you're giving to the pool. Since you control that code, it's an excellent way to watch what's really happening at the time you run out of memory.

  • I bought my mac book pro 4 years ago and it is really slow now. I have downloaded Etrecheck after reading some threads on here and here are the results

    I got my MacBook Pro 4 years ago and its getting really slow.
    After reading dome threads on this site i downloaded Etrecheck and here are the results.
    Any help would be greatly appreciated.
    EtreCheck version: 2.1.8 (121)
    Report generated 21 March 2015 9:41:28 PM AEDT
    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
            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 814
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed

    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
            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 814
    ***Hardware looks fine
    ***Increasing the RAM can always help with slowness issues
    Video Information: ℹ️
        NVIDIA GeForce GT 330M - VRAM: 256 MB
            Color LCD 1440 x 900
            spdisplays_display_connector
        Intel HD Graphics - VRAM: 288 MB
            spdisplays_display_connector
    ***Looks fine
    System Software: ℹ️
        Mac OS X 10.6.8 (10K549) - Time since boot: one day 2:7:40
    ***You are running an Operating system over 4 years old but it shouldn't effect the speed of your computer
    Disk Information: ℹ️
        TOSHIBA MK3255GSXF disk0 : (298.09 GB)
            - (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.73 GB (150.44 GB free)
        MATSHITADVD-R   UJ-898
    ***Looks fine
    USB Information: ℹ️
        Apple Inc. BRCM2070 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Internal Memory Card Reader
        Apple Inc. Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
        Apple Inc. Built-in iSight
    Configuration files: ℹ️
        /etc/hosts - Count: 31
    ***Looks fine
    Kernel Extensions: ℹ️
            /Library/Application Support/MacKeeper/AntiVirus.app
        [not loaded]    com.zeobit.kext.AVKauth (2.3.3 - SDK 10.8) [Click for support]
        [not loaded]    com.zeobit.kext.Firewall (2.3.3 - SDK 10.8) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.devguru.driver.SamsungComposite (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.leapfrog.codeless.kext (2) [Click for support]
        [not loaded]    com.leapfrog.driver.LfConnectDriver (1.11.1 - SDK 10.10) [Click for support]
        [not loaded]    com.wibu.codemeter.CmUSBMassStorage (1.0.7) [Click for support]
            /System/Library/Extensions/ssuddrv.kext/Contents/PlugIns
        [not loaded]    com.devguru.driver.SamsungACMControl (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungACMData (1.2.63 - SDK 10.6) [Click for support]
        [not loaded]    com.devguru.driver.SamsungMTP (1.2.63 - SDK 10.5) [Click for support]
        [not loaded]    com.devguru.driver.SamsungSerial (1.2.63 - SDK 10.6) [Click for support]
    ***I'm honestly not super familiar with most kernal extensions but I do see you have MacKeeper running which can slow the computer down
    ****** This next section talks about Launch agents and Launch Daemons.
    ****Something to keep in mind is that when you first get the computer that all of these folders are empty and the files in them are all third party.
    ****If you want to see if the system runs better without them Shut the computer down and turn it on while holding the shift key
    ****This will put the computer into safemode which turns off third party files and extensions and does not let any launch agent/daemons files run.
    Problem System Launch Daemons: ℹ️
        [running]    com.wibu.CodeMeter.Server.plist [Click for support]
        [not loaded]    org.samba.winbindd.plist [Click for support]
    Launch Agents: ℹ️
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.CS5ServiceManager.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [running]    com.hp.devicemonitor.plist [Click for support]
        [loaded]    com.hp.messagecenter.launcher.plist [Click for support]
    ***This is the root launch agent folder
    ***I'd remove all but the first three
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.adobe.SwitchBoard.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.leapfrog.connect.authdaemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.skype.skypeinstaller.plist [Click for support]
        [running]    com.zeobit.MacKeeper.AntiVirus.plist [Click for support]
    ***This is the root Launch Daemons folder
    ***I'd only keep com.adobe.fpsaud.plist and com.microsfot.office.licensing.helper.plist all the others will reinstall them selves if needed.
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [running]    com.akamai.single-user-client.plist [Click for support]
        [failed]    com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist [Click for details]
        [running]    com.leapfrog.connect.monitor.plist [Click for support]
        [running]    com.spotify.webhelper.plist [Click for support]
        [failed]    com.zeobit.MacKeeper.Helper.plist [Click for support] [Click for details]
    ***This is your users Launch Agent folder
    ***I'd remove everything here
    User Login Items: ℹ️
        LOGINserver    Application  (/Library/Printers/Brother/Utilities/Server/LOGINserver.app)
        InstUtilLaunch    Application  (/Library/Printers/Brother/Utilities/InstallUtility.app/Contents/Resources/Inst UtilLaunch.app)
    Internet Plug-ins: ℹ️
        o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        OVSHelper: Version: 1.1 [Click for support]
        OfficeLiveBrowserPlugin: Version: 12.2.9 [Click for support]
        net.juniper.DSSafariExtensions: Version: Unknown [Click for support]
        Silverlight: Version: 4.0.60129.0 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        DivXBrowserPlugin: Version: 2.1 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 Outdated! Update
        iPhotoPhotocast: Version: 7.0 - SDK 10.7
        googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Click for support]
        QuickTime Plugin: Version: 7.6.6
        AdobePDFViewer: Version: 10.0.3 [Click for support]
        SharePointBrowserPlugin: Version: 14.0.0 [Click for support]
        JavaAppletPlugin: Version: 13.9.8 - SDK 10.6 Check version
    Safari Extensions: ℹ️
        Searchme  [Adware! - Remove]
        DivX Plus Web Player HTML5 <video>
    ***The first extension in safari is adware and can be uninstalled
    ***The second one is a video web player and you could probably remove that as well but it wont effect your speed
    Audio Plug-ins: ℹ️
        iSightAudio: Version: 7.6.6
    3rd Party Preference Panes: ℹ️
        Akamai NetSession Preferences  [Click for support]
        CodeMeter  [Click for support]
        DivX  [Click for support]
        Flash Player  [Click for support]
        Growl  [Click for support]
    Time Machine: ℹ️
        Time Machine information requires OS X 10.7 "Lion" or later.
    Top Processes by CPU: ℹ️
            14%    firefox
             5%    WindowServer
             0%    ps
             0%    fontd
             0%    DirectoryService
    Top Processes by Memory: ℹ️
        528 MB    firefox
        176 MB    Finder
        159 MB    AntiVirus
        112 MB    WindowServer
        82 MB    mds
    Virtual Memory Information: ℹ️
        1.07 GB    Free RAM
        1.29 GB    Active RAM
        1.01 GB    Inactive RAM
        784 MB    Wired RAM
        962 MB    Page-ins
        3 MB    Page-outs
    Diagnostics Information: ℹ️
        Mar 20, 2015, 07:32:46 PM    Self test - passed
    ***Everything else seems fine

  • Please Please Help with Projectile Project Here are the Codes

    I've got three(3) classes a Model, a view, and a controller.
    This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
    vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
    vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
    Here are the code.
    Model:
    /** Cannon specifies the expected behaviour of a cannon*/
    public class Cannon{
    public static final int TICK = 60;
    private int velocity = 0;
    private static final double gravity = .098f;
    private double angle = 0;
    // distances & positions are meausred in pixels
    private int x_pos; // ball's center x-position
    private int y_pos; // ball's center y-position
    // speed is measured in pixels per `tick'
    private int x_velocity; // horizonal speed; positive is to the right
    private int y_velocity; // vertical speed; positive is downwards
    public Cannon() {
    velocity = 3;
    angle = 60;
    angle = radians(angle);
    x_pos = 0;
    y_pos = 385;
    /** shoot fires a shot from the cannon*/
    public void shoot(){
    move();
    /**reload reloads the cannon with more shorts*/
    public void reload() {
    /** changeAngle changes the angle of the canon
    * @params value - the amount to add or subtract from the current angle value*/
    public void changeAngle(double value) {
    angle = (double)value;
    angle = radians(angle);
    /** getAngle returns the current angle value of the cannon*/
    public double getAngle() {
    return angle;
    /** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
    * @params value - the new speed at which the user wants a cannon ball to travel at.*/
    public void changeVelocityX(int value){
    x_velocity = x_velocity * (int)Math.cos(value);
    public void changeVelocityY(int value){
    y_velocity = y_velocity * (int)Math.sin(value);
    /** getVelocity returns the current velocity value of the cannon*/
    public int getVelocityX() {
    return x_velocity;
    public int getVelocityY() {
    return y_velocity;
    /** getGravity returns the current gravity value of the cannon*/
    public double getGravity() {
    return gravity;
    public int xPosition(){
    return x_pos;
    public int yPosition(){
    return y_pos;
    public void move(){
    double dx = getVelocityX() * Math.cos(getAngle());
    double dy = getVelocityY() * Math.sin(getAngle());
    x_pos+=dx;
    y_pos-=dy;
    double radians (double angle){
    return ((Math.PI * angle) / 180.0);
    View:
    import java.awt.*;
    import javax.swing.*;
    /** CannonView displays a cannon being fired.*/
    public class CannonView extends JPanel{
    /** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
    public static final int DISPLAY_AREA_SIZE = 600;
    public RotatablePolygon rectangle;
    public RotatablePolygon triangle;
    public Cannon cannon;
    public CannonView(Cannon c) {
    this.setPreferredSize(new Dimension(600,450));
    this.setBackground(Color.black);
    cannon = c;
    int xRectangle[] = {0,0,40,40,0};
    int yRectangle[] = {400,300,300,400,400};
    int xTriangle[] = {0,20,40,0};
    int yTriangle[] = {300,280,300,300};
    rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
    // rectangle.setPosition (100, 100);
    // triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
    triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
    //triangle.setPosition (100, 100);
    JFrame frame = new JFrame();
    frame.getContentPane().add(this);
    frame.pack();
    frame.setVisible(true);
    frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
    /** drawBucket draws a bucket/target for which a moving cannon ball should hit.
    * @param g - the graphics pen for which the drawing should occur.*/
    public void drawBucket(Graphics g) {
    g.setColor(Color.red);
    int xvalues[] = {495, 519, 575, 595, 495};
    int yvalues[] = {340, 400, 400, 340, 340};
    Polygon poly1 = new Polygon (xvalues, yvalues, 5);
    g.fillPolygon(poly1);
    g.setColor(Color.white);
    g.fillOval(495, 328, 100, 24);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setStroke(new BasicStroke(2));
    g.setColor(Color.red);
    g.drawOval(495, 328, 100, 24);
    g.drawOval(495,311,100,54);
    /** drawCannon draws a cannon
    * @param g - the graphics pen that will be used to draw the cannon.*/
    public void drawCannon(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    g.setColor(Color.red);
    g2.fill(rectangle);
    g.setColor(Color.orange);
    g2.fill(triangle);
    g.setColor(Color.blue);
    g.fillOval(95, 340, 60, 60);
    g.setColor(Color.magenta);
    for (int i = 0; i < 6; i++){
    g.fillArc(95, 340, 60, 60, i* 60, 30);
    g.setColor(Color.black);
    g.fillOval(117, 362, 16, 16);
    /** drawCannonShots will draw the actual number of shots already used by the cannon
    * @param g - the graphics pen that will be used to draw the shots of the cannon.*/
    public void drawCannonShots(Graphics g) {
    g.setColor(Color.orange);
    g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
    /** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
    * @param g - the graphics pen used to draw the trail.*/
    public void drawTrail(Graphics g){}
    /**drawGround draws the ground for which the cannon sits*/
    public void drawGround(Graphics g) {
    g.setColor(Color.green.brighter());
    g.fillRect(0,400,600,50);
    /** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
    * with a certain amount of gravitational acting upon it, at a certain angle.
    * @params g - the graphics pen used to draw the moving cannon ball.
    * @params gravity - the value of gravity.
    * @params velocity - the speed at which the ball is travelling.
    * @params angle - the angle at which the ball was shot from.*/
    public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
    /** paintComponent paints the cannon,bucket
    * @param g - graphics pen.*/
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawGround(g);
    drawBucket(g);
    drawCannon(g);
    drawCannonShots(g);
    Controller
    /** CannonController controls the interaction between the user and a cannon*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CannonController extends JFrame{
    public JMenuBar jMenuBar2;
    public JMenu jMenu2;
    public JMenuItem jMenuItem1;
    public JMenu jMenu3;
    public JMenuItem jMenuItem2;
    public JLabel angleLabel, velocityLabel;
    public JTextField angleTextField, velocityTextField;
    public JButton fireButton, reloadButton;
    public JSlider angleSlider, velocitySlider;
    private CannonView view;
    private Cannon cannon;
    int oldValue, newValue;
    public CannonController(Cannon acannon) {
    cannon = acannon;
    view = new CannonView(cannon);
    loadControls();
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    oldValue = angleSlider.getValue();
    newValue = oldValue + 1;
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    this.setSize(328,308);
    this.setLocation(view.getWidth()-this.getWidth(),0);
    /** loadControl loads all of the GUI controls that a
    * user of the cannon animation will use to interact with the program*/
    public void loadControls() {
    jMenuBar2 = new JMenuBar();
    jMenu2 = new JMenu();
    jMenuItem1 = new JMenuItem();
    jMenu3 = new JMenu();
    jMenuItem2 = new JMenuItem();
    angleLabel = new JLabel();
    velocityLabel = new JLabel();
    angleTextField = new JTextField();
    velocityTextField = new JTextField();
    fireButton = new JButton();
    reloadButton = new JButton();
    angleSlider = new JSlider();
    velocitySlider = new JSlider();
    jMenuBar2.setBorderPainted(false);
    jMenu2.setModel(jMenu2.getModel());
    jMenu2.setText("File");
    jMenuItem1.setText("Exit");
    jMenuItem1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem1ActionPerformed(evt);
    jMenu2.add(jMenuItem1);
    jMenuBar2.add(jMenu2);
    jMenu3.setText("Help");
    jMenuItem2.setText("About this Program");
    jMenuItem2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem2ActionPerformed(evt);
    jMenu3.add(jMenuItem2);
    jMenuBar2.add(jMenu3);
    getContentPane().setLayout(null);
    setTitle("Cannon Controller Form");
    setResizable(false);
    setMenuBar(getMenuBar());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    exitForm(evt);
    angleLabel.setText("Angle:");
    getContentPane().add(angleLabel);
    angleLabel.setLocation(10, 20);
    angleLabel.setSize(angleLabel.getPreferredSize());
    velocityLabel.setText("Velocity:");
    getContentPane().add(velocityLabel);
    velocityLabel.setLocation(10, 80);
    velocityLabel.setSize(velocityLabel.getPreferredSize());
    angleTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(angleTextField);
    angleTextField.setBounds(280, 20, 30, 20);
    velocityTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(velocityTextField);
    velocityTextField.setBounds(280, 80, 30, 20);
    fireButton.setToolTipText("Click to fire a shot");
    fireButton.setText("Fire");
    fireButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    fireButtonMouseClicked(evt);
    getContentPane().add(fireButton);
    fireButton.setBounds(60, 160, 80, 30);
    reloadButton.setToolTipText("Click to reload cannon");
    reloadButton.setText("Reload");
    reloadButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    reloadButtonMouseClicked(evt);
    getContentPane().add(reloadButton);
    reloadButton.setBounds(150, 160, 80, 30);
    angleSlider.setMinorTickSpacing(30);
    angleSlider.setPaintLabels(true);
    angleSlider.setPaintTicks(true);
    angleSlider.setMinimum(0);
    angleSlider.setMajorTickSpacing(60);
    angleSlider.setToolTipText("Change the cannon angle");
    angleSlider.setMaximum(360);
    angleSlider.setValue(0);
    angleSlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    angleSliderStateChanged(evt);
    getContentPane().add(angleSlider);
    angleSlider.setBounds(60, 20, 210, 40);
    velocitySlider.setMinorTickSpacing(5);
    velocitySlider.setPaintLabels(true);
    velocitySlider.setPaintTicks(true);
    velocitySlider.setMinimum(1);
    velocitySlider.setMajorTickSpacing(10);
    velocitySlider.setToolTipText("Change the speed of the cannon ball");
    velocitySlider.setMaximum(28);
    velocitySlider.setValue(3);
    velocitySlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    velocitySliderStateChanged(evt);
    getContentPane().add(velocitySlider);
    velocitySlider.setBounds(60, 80, 210, 50);
    setJMenuBar(jMenuBar2);
    pack();
    private void reloadButtonMouseClicked(MouseEvent evt) {
    reloadButtonClick();
    private void fireButtonMouseClicked(MouseEvent evt) {
    fireButtonClick();
    /** firstButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's fire method*/
    public void fireButtonClick() {
    // JOptionPane.showMessageDialog(null,"You click Fire");
    cannon.shoot();
    view.repaint();
    /** reloadButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's reload method*/
    public void reloadButtonClick() {
    JOptionPane.showMessageDialog(null,"reload");
    private void angleSliderStateChanged(ChangeEvent evt) {
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    cannon.changeAngle(angleSlider.getValue());
    view.repaint();
    private void velocitySliderStateChanged(ChangeEvent evt) {
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    cannon.changeVelocityX(velocitySlider.getValue());
    private void gravitySliderStateChanged(ChangeEvent evt) {
    private void jMenuItem1ActionPerformed(ActionEvent evt) {
    System.exit (0);
    private void jMenuItem2ActionPerformed(ActionEvent evt) {
    String message = "Cannon Animation\n"+
    "Based on the Logic of Projectiles";
    JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
    /** Exit the Application */
    private void exitForm(WindowEvent evt) {
    System.exit (0);
    /** Pause execution for t milliseconds. */
    private void delay (int t) {
    try {
    Thread.sleep (t);
    } catch (InterruptedException e) {}
    public static void main(String [] args){
    Cannon cn = new Cannon();
    CannonController control = new CannonController(cn);
    control.setTitle("Test");
    control.setVisible(true);
    if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
    if the cannonball hits the outside of the bucket it should bounce off.
    Extra Notes.
    1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
    2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
    v * t + a * t.pow(2) div 2;
    The velocity at the end of time t will be v + a * t.
    Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
    When i pressed the fire button nothings happens. I'm going crazy. Please please help!

    Here is the interface specification for the RotatablePolygon class. I do not have the actual .java source.
    Thanks
    Class RotatablePolygon
    java.lang.Object
    |
    --java.awt.geom.Area
    |
    --RotatablePolygon
    All Implemented Interfaces:
    java.lang.Cloneable, java.awt.Shape
    public class RotatablePolygon
    extends java.awt.geom.Area
    Polygons which can be rotated around an `anchor' point and also translated (moved in the x and y directions).
    Constructor Summary
    RotatablePolygon(int[] xs, int[] ys, int n, double x, double y)
    Create a new RotatablePolyogon with given vertices and anchor point (x,y).
    Method Summary
    double getAngle()
    The current angle of rotation.
    double getXanchor()
    x-coordinate of the anchor point.
    double getYanchor()
    y-coordinate of the anchor point.
    void rotate(double da)
    Rotate the polygon from its current position by angle da (in radians) around the anchor.
    void rotateDegrees(double da)
    Rotate the polygon from its current position by angle da (in degrees) around the anchor.
    void setAngle(double a)
    Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
    void setAngleDegrees(double a)
    Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
    void setPosition(double x, double y)
    Shift the polygon's position to put its anchor point at (x,y).
    void translate(double dx, double dy)
    Shift the polygon's position and anchor point by given amounts.
    Methods inherited from class java.awt.geom.Area
    add, clone, contains, contains, contains, contains, createTransformedArea, equals, exclusiveOr, getBounds, getBounds2D, getPathIterator, getPathIterator, intersect, intersects, intersects, isEmpty, isPolygonal, isRectangular, isSingular, reset, subtract, transform
    Methods inherited from class java.lang.Object
    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Constructor Detail
    RotatablePolygon
    public RotatablePolygon(int[] xs,
    int[] ys,
    int n,
    double x,
    double y)
    Create a new RotatablePolyogon with given vertices and anchor point (x,y).
    REQUIRE: xs.length >= n && ys.length >= n
    Parameters:
    xs - x-coordinates of vertices
    ys - y-coordinates of vertices
    n - number of vertices
    x - x-coordinate of the rotation anchor
    y - y-coordinate of the rotation anchor
    Method Detail
    setPosition
    public void setPosition(double x,
    double y)
    Shift the polygon's position to put its anchor point at (x,y).
    Parameters:
    x - new x-coordinate for anchor point
    y - new y-coordinate for anchor point
    translate
    public void translate(double dx,
    double dy)
    Shift the polygon's position and anchor point by given amounts.
    Parameters:
    dx - amount to shift by in x-direction
    dy - amount to shift by in y-direction
    setAngle
    public void setAngle(double a)
    Set the angle of rotation of the polygon to be angle a (in radians) around the anchor.
    Parameters:
    a - angle to rotate to, in radians
    setAngleDegrees
    public void setAngleDegrees(double a)
    Set the angle of rotation of the polygon to be angle a (in degrees) around the anchor.
    Parameters:
    a - angle to rotate to, in degrees
    rotate
    public void rotate(double da)
    Rotate the polygon from its current position by angle da (in radians) around the anchor.
    Parameters:
    da - angle to rotate by, in radians
    rotateDegrees
    public void rotateDegrees(double da)
    Rotate the polygon from its current position by angle da (in degrees) around the anchor.
    Parameters:
    da - angle to rotate by, in degrees
    getAngle
    public double getAngle()
    The current angle of rotation.
    getXanchor
    public double getXanchor()
    x-coordinate of the anchor point.
    getYanchor
    public double getYanchor()
    y-coordinate of the anchor point.

  • Please Help with Physics Project Here are the codings

    I've got three(3) classes a Model, a view, and a controller.
    This is a project about projectiles.it is an animation of a cannonball being fired from a cannon and travelling under the effect of gravity.A cannon fired at angle 'a' to the horizontal and with an initial speed 's', will have an initial velocity given by:
    vx := s * cos(a);//velocity x equals the speed multiply by the cosine of angle a.
    vy := s * sin(a);//velocity y equals the speed multiply by the sine of angle a.
    Here are the code.
    Model:
    /** Cannon specifies the expected behaviour of a cannon*/
    public class Cannon{
    public static final int TICK = 60;
    private int velocity = 0;
    private static final double gravity = .098f;
    private double angle = 0;
    // distances & positions are meausred in pixels
    private int x_pos; // ball's center x-position
    private int y_pos; // ball's center y-position
    // speed is measured in pixels per `tick'
    private int x_velocity; // horizonal speed; positive is to the right
    private int y_velocity; // vertical speed; positive is downwards
    public Cannon() {
    velocity = 3;
    angle = 60;
    angle = radians(angle);
    x_pos = 0;
    y_pos = 385;
    /** shoot fires a shot from the cannon*/
    public void shoot(){
    move();
    /**reload reloads the cannon with more shorts*/
    public void reload() {
    /** changeAngle changes the angle of the canon
    * @params value - the amount to add or subtract from the current angle value*/
    public void changeAngle(double value) {
    angle = (double)value;
    angle = radians(angle);
    /** getAngle returns the current angle value of the cannon*/
    public double getAngle() {
    return angle;
    /** changeVelocity changes the speed at which a cannon ball that is to be fire will travel at
    * @params value - the new speed at which the user wants a cannon ball to travel at.*/
    public void changeVelocityX(int value){
    x_velocity = x_velocity * (int)Math.cos(value);
    public void changeVelocityY(int value){
    y_velocity = y_velocity * (int)Math.sin(value);
    /** getVelocity returns the current velocity value of the cannon*/
    public int getVelocityX() {
    return x_velocity;
    public int getVelocityY() {
    return y_velocity;
    /** getGravity returns the current gravity value of the cannon*/
    public double getGravity() {
    return gravity;
    public int xPosition(){
    return x_pos;
    public int yPosition(){
    return y_pos;
    public void move(){
    double dx = getVelocityX() * Math.cos(getAngle());
    double dy = getVelocityY() * Math.sin(getAngle());
    x_pos+=dx;
    y_pos-=dy;
    double radians (double angle){
    return ((Math.PI * angle) / 180.0);
    View:
    import java.awt.*;
    import javax.swing.*;
    /** CannonView displays a cannon being fired.*/
    public class CannonView extends JPanel{
    /** DISPLAY_SIZE specifies the overall display area of the cannon and the bucket.*/
    public static final int DISPLAY_AREA_SIZE = 600;
    public RotatablePolygon rectangle;
    public RotatablePolygon triangle;
    public Cannon cannon;
    public CannonView(Cannon c) {
    this.setPreferredSize(new Dimension(600,450));
    this.setBackground(Color.black);
    cannon = c;
    int xRectangle[] = {0,0,40,40,0};
    int yRectangle[] = {400,300,300,400,400};
    int xTriangle[] = {0,20,40,0};
    int yTriangle[] = {300,280,300,300};
    rectangle = new RotatablePolygon (xRectangle, yRectangle, 5,20,350);
    // rectangle.setPosition (100, 100);
    // triangle = new RotatablePolygon (xTriangle, yTriangle, 4,0,290);
    triangle = new RotatablePolygon (xTriangle, yTriangle, 4,20,350);
    //triangle.setPosition (100, 100);
    JFrame frame = new JFrame();
    frame.getContentPane().add(this);
    frame.pack();
    frame.setVisible(true);
    frame.setTitle("Width = " + frame.getWidth() + " , Height = " + frame.getHeight());
    /** drawBucket draws a bucket/target for which a moving cannon ball should hit.
    * @param g - the graphics pen for which the drawing should occur.*/
    public void drawBucket(Graphics g) {
    g.setColor(Color.red);
    int xvalues[] = {495, 519, 575, 595, 495};
    int yvalues[] = {340, 400, 400, 340, 340};
    Polygon poly1 = new Polygon (xvalues, yvalues, 5);
    g.fillPolygon(poly1);
    g.setColor(Color.white);
    g.fillOval(495, 328, 100, 24);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setStroke(new BasicStroke(2));
    g.setColor(Color.red);
    g.drawOval(495, 328, 100, 24);
    g.drawOval(495,311,100,54);
    /** drawCannon draws a cannon
    * @param g - the graphics pen that will be used to draw the cannon.*/
    public void drawCannon(Graphics g) {
    Graphics2D g2 = (Graphics2D)g;
    g.setColor(Color.red);
    g2.fill(rectangle);
    g.setColor(Color.orange);
    g2.fill(triangle);
    g.setColor(Color.blue);
    g.fillOval(95, 340, 60, 60);
    g.setColor(Color.magenta);
    for (int i = 0; i < 6; i++){
    g.fillArc(95, 340, 60, 60, i* 60, 30);
    g.setColor(Color.black);
    g.fillOval(117, 362, 16, 16);
    /** drawCannonShots will draw the actual number of shots already used by the cannon
    * @param g - the graphics pen that will be used to draw the shots of the cannon.*/
    public void drawCannonShots(Graphics g) {
    g.setColor(Color.orange);
    g.fillOval(cannon.xPosition(),cannon.yPosition(),16,16);
    /** drawTrail will draw a trail of smoke to indicate where a cannon ball has passed
    * @param g - the graphics pen used to draw the trail.*/
    public void drawTrail(Graphics g){}
    /**drawGround draws the ground for which the cannon sits*/
    public void drawGround(Graphics g) {
    g.setColor(Color.green.brighter());
    g.fillRect(0,400,600,50);
    /** drawMovingCannonBall draw a cannon ball moving at a certain speed (velocity),
    * with a certain amount of gravitational acting upon it, at a certain angle.
    * @params g - the graphics pen used to draw the moving cannon ball.
    * @params gravity - the value of gravity.
    * @params velocity - the speed at which the ball is travelling.
    * @params angle - the angle at which the ball was shot from.*/
    public void drawMovingCannonBall(Graphics g, double gravity, double velocity, double angle){}
    /** paintComponent paints the cannon,bucket
    * @param g - graphics pen.*/
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    drawGround(g);
    drawBucket(g);
    drawCannon(g);
    drawCannonShots(g);
    Controller
    /** CannonController controls the interaction between the user and a cannon*/
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class CannonController extends JFrame{
    public JMenuBar jMenuBar2;
    public JMenu jMenu2;
    public JMenuItem jMenuItem1;
    public JMenu jMenu3;
    public JMenuItem jMenuItem2;
    public JLabel angleLabel, velocityLabel;
    public JTextField angleTextField, velocityTextField;
    public JButton fireButton, reloadButton;
    public JSlider angleSlider, velocitySlider;
    private CannonView view;
    private Cannon cannon;
    int oldValue, newValue;
    public CannonController(Cannon acannon) {
    cannon = acannon;
    view = new CannonView(cannon);
    loadControls();
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    oldValue = angleSlider.getValue();
    newValue = oldValue + 1;
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    this.setSize(328,308);
    this.setLocation(view.getWidth()-this.getWidth(),0);
    /** loadControl loads all of the GUI controls that a
    * user of the cannon animation will use to interact with the program*/
    public void loadControls() {
    jMenuBar2 = new JMenuBar();
    jMenu2 = new JMenu();
    jMenuItem1 = new JMenuItem();
    jMenu3 = new JMenu();
    jMenuItem2 = new JMenuItem();
    angleLabel = new JLabel();
    velocityLabel = new JLabel();
    angleTextField = new JTextField();
    velocityTextField = new JTextField();
    fireButton = new JButton();
    reloadButton = new JButton();
    angleSlider = new JSlider();
    velocitySlider = new JSlider();
    jMenuBar2.setBorderPainted(false);
    jMenu2.setModel(jMenu2.getModel());
    jMenu2.setText("File");
    jMenuItem1.setText("Exit");
    jMenuItem1.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem1ActionPerformed(evt);
    jMenu2.add(jMenuItem1);
    jMenuBar2.add(jMenu2);
    jMenu3.setText("Help");
    jMenuItem2.setText("About this Program");
    jMenuItem2.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    jMenuItem2ActionPerformed(evt);
    jMenu3.add(jMenuItem2);
    jMenuBar2.add(jMenu3);
    getContentPane().setLayout(null);
    setTitle("Cannon Controller Form");
    setResizable(false);
    setMenuBar(getMenuBar());
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
    exitForm(evt);
    angleLabel.setText("Angle:");
    getContentPane().add(angleLabel);
    angleLabel.setLocation(10, 20);
    angleLabel.setSize(angleLabel.getPreferredSize());
    velocityLabel.setText("Velocity:");
    getContentPane().add(velocityLabel);
    velocityLabel.setLocation(10, 80);
    velocityLabel.setSize(velocityLabel.getPreferredSize());
    angleTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(angleTextField);
    angleTextField.setBounds(280, 20, 30, 20);
    velocityTextField.setToolTipText("Only numeric values are allow");
    getContentPane().add(velocityTextField);
    velocityTextField.setBounds(280, 80, 30, 20);
    fireButton.setToolTipText("Click to fire a shot");
    fireButton.setText("Fire");
    fireButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    fireButtonMouseClicked(evt);
    getContentPane().add(fireButton);
    fireButton.setBounds(60, 160, 80, 30);
    reloadButton.setToolTipText("Click to reload cannon");
    reloadButton.setText("Reload");
    reloadButton.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent evt) {
    reloadButtonMouseClicked(evt);
    getContentPane().add(reloadButton);
    reloadButton.setBounds(150, 160, 80, 30);
    angleSlider.setMinorTickSpacing(30);
    angleSlider.setPaintLabels(true);
    angleSlider.setPaintTicks(true);
    angleSlider.setMinimum(0);
    angleSlider.setMajorTickSpacing(60);
    angleSlider.setToolTipText("Change the cannon angle");
    angleSlider.setMaximum(360);
    angleSlider.setValue(0);
    angleSlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    angleSliderStateChanged(evt);
    getContentPane().add(angleSlider);
    angleSlider.setBounds(60, 20, 210, 40);
    velocitySlider.setMinorTickSpacing(5);
    velocitySlider.setPaintLabels(true);
    velocitySlider.setPaintTicks(true);
    velocitySlider.setMinimum(1);
    velocitySlider.setMajorTickSpacing(10);
    velocitySlider.setToolTipText("Change the speed of the cannon ball");
    velocitySlider.setMaximum(28);
    velocitySlider.setValue(3);
    velocitySlider.addChangeListener(new ChangeListener() {
    public void stateChanged(ChangeEvent evt) {
    velocitySliderStateChanged(evt);
    getContentPane().add(velocitySlider);
    velocitySlider.setBounds(60, 80, 210, 50);
    setJMenuBar(jMenuBar2);
    pack();
    private void reloadButtonMouseClicked(MouseEvent evt) {
    reloadButtonClick();
    private void fireButtonMouseClicked(MouseEvent evt) {
    fireButtonClick();
    /** firstButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's fire method*/
    public void fireButtonClick() {
    // JOptionPane.showMessageDialog(null,"You click Fire");
    cannon.shoot();
    view.repaint();
    /** reloadButtonClick is the event handler that sends a message
    * to the cannon class to invokes the cannon's reload method*/
    public void reloadButtonClick() {
    JOptionPane.showMessageDialog(null,"reload");
    private void angleSliderStateChanged(ChangeEvent evt) {
    angleTextField.setText(String.valueOf(angleSlider.getValue()));
    view.rectangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    view.triangle.setAngle(angleSlider.getValue() * (Math.PI / 180));
    cannon.changeAngle(angleSlider.getValue());
    view.repaint();
    private void velocitySliderStateChanged(ChangeEvent evt) {
    velocityTextField.setText(String.valueOf(velocitySlider.getValue()));
    cannon.changeVelocityX(velocitySlider.getValue());
    private void gravitySliderStateChanged(ChangeEvent evt) {
    private void jMenuItem1ActionPerformed(ActionEvent evt) {
    System.exit (0);
    private void jMenuItem2ActionPerformed(ActionEvent evt) {
    String message = "Cannon Animation\n"+
    "Based on the Logic of Projectiles";
    JOptionPane.showMessageDialog(null,message,"About this program",JOptionPane.PLAIN_MESSAGE);
    /** Exit the Application */
    private void exitForm(WindowEvent evt) {
    System.exit (0);
    /** Pause execution for t milliseconds. */
    private void delay (int t) {
    try {
    Thread.sleep (t);
    } catch (InterruptedException e) {}
    public static void main(String [] args){
    Cannon cn = new Cannon();
    CannonController control = new CannonController(cn);
    control.setTitle("Test");
    control.setVisible(true);
    if the cannon ball land in the bucket it should stop and the animation should indicate a 'hit' in some way. maybe by displaying a message.
    if the cannonball hits the outside of the bucket it should bounce off.
    Extra Notes.
    1) The acceleration due to gravity is 9.8m/s to the (power of (2) eg s2.
    2) The distance travelled in time t by a body with initial velocity v under constant acceleration a is:
    v * t + a * t.pow(2) div 2;
    The velocity at the end of time t will be v + a * t.
    Distance is measure in pixels rather than meter so for simplicity we use 1 pixel per meter
    When i pressed the fire button nothings happens. I'm going crazy. Please please help!

    Hi,
    U put something on forum and keeping silence.If it is not necessary dont put in forum.I moved your cannon ball.If u want continous movement I need some more information.
    Johnson

  • HT5621 I am having trouble with my Apple ID and AppStore Here are the steps I have taken and the results: 1.     Changed my Apple ID with new email address. 2.     Changed my iCloud with above new email address. 3.     NOW - Apple ID appears correct in Ap

    I am having trouble with my Apple ID and AppStore
    Here are the steps I have taken and the results:
    Changed my Apple ID with new email address.
    Changed my iCloud with above new email address.
    NOW - Apple ID appears correct in AppStore Settings, iCloud and AppStore*
    If I scroll to bottom of screen in *App Store/Featured, I can see that the Apple ID is my new email.
    Upon “updating” Apple ID reflects OLD email.
    Deleted accounts, re-added accounts.
    Signed out and signed in with new UN/Email
    Issue remains the same.

    To migrate your data to a new iCloud account go to Settings>iCloud and turn off all synced data (contacts, calendars, etc.), when prompted choose to keep the data on your phone.  After everything is set to off, scroll to the bottom and tap Delete Account.  Next, create the new iCloud account on your phone and turn on syncing for contacts, calendars, etc again.  If prompted, choose Merge.  This will upload your data to the new iCloud account.

  • Firefox keeps crashing. Here are the crash reports: bp-d5d4e360-cc6f-4313-85fc-0cc6621305305/30/201311:08 AMbp-c3374347-3873-4fb2-86b7-be3f021305305/30/201310:3

    Firefox keeps crashing. The only way I can open window is in safe mode. Here are the crash reports:
    <pre><nowiki>
    bp-d5d4e360-cc6f-4313-85fc-0cc6621305305/30/201311:08 AM
    bp-c3374347-3873-4fb2-86b7-be3f021305305/30/201310:34 AM
    bp-39eb4414-78bd-4a33-ade3-3acd521305305/30/201310:33 AM
    bp-7c3de68c-5acf-44cf-b448-07ac021305305/30/201310:33 AM
    bp-031ea915-70bb-4a2a-8433-08d0321305305/30/201310:33 AM</nowiki></pre>

    Try to set the gfx.content.azure.enabled pref to false or if this didn't help disable Direct2D by setting the gfx.direct2d.disabled pref to true on the about:config page and leave hardware acceleration otherwise enabled.
    That way you still have the benefit from hardware acceleration, but may not suffer from rendering issues.
    You can also try to uninstall Windows update KB2670838 if you have this update.
    *http://support.microsoft.com/kb/2670838
    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/

  • HT203175 I have attempted to sync my new iPod touch 4th gen. with my current PC running Windows XP and everytime I attempt it I get the dreaded blue screen, here are the error codes- 0x0000007E; 0XC00000005; 0X00000000; 0XBA51B7C8; 0XBA51B4C4 any suggesti

    I have attempted to sync my new iPod touch 4th gen. with my current PC running Windows XP and everytime I attempt it I get the dreaded blue screen, here are the error codes- 0x0000007E; 0XC00000005; 0X00000000; 0XBA51B7C8; 0XBA51B4C4 any suggestions?

    In the course of your troubleshooting to date, have you worked through the following document?
    iPhone, iPad, or iPod touch: Windows displays a blue screen message or restarts when connecting your device

  • HT204406 The song "If We Are the Body" could not be used because the original file could not be found. Would you like to locate it?  This notice keeps coming up even though I have iTunes Match.  What do I do?

    The song “If We Are the Body” could not be used because the original file could not be found. Would you like to locate it?  This notice keeps coming up even though I have iTunes Match.  What do I do?

    This usually means the original music file has been been deleted from the HDD. If you feel it has not then click "locate" and navigate to where the song file is on the HDD and choose it. You can use Spotlight to locate it if necessary.

  • HT1451 I have the 128gb iPad 4 but for some reason the category other (yellow) says I have 64.26 gb being used. What is stored under other category on the iPad?

    What is stored under "other" category on the iPad?

    The long and short of it is that you will probably have to restore your iPad. That giant "other" space is a sign of a corrupt file from a sync, I am pretty sure, but I am quite sure that the way to resolve it is to restore the iPad.
    You can search the discussion site for similar threads but I think you will find that a restore is the way to correct it. Read this one.
    https://discussions.apple.com/message/12531408#12531408

  • All of a sudden, none of my video is showing on playback. What did I do?? The only thing showing are the titles, but the full audio track is playing.  What did I do?

    The only thing showing are the titles, but the full audio track is playing.  What did I do? How do I fix it?

    Apple TV 1st generation or 2nd?
    I would try plugging in the HDMI from the ATV to a different HDMI port on your TV and even trying the ATV on a different TV altogether...sounds like the HDMI port on your TV might be bad or a bad connection. Keep in mind you'll need to switch the TV input to the new HDMI port

  • I dropped my iphone 4 into the water and then i tried the rice method. The rice solved the water issue but now the screen won't work. what should i do?

    I  dropped my iphone 4 into the water and then i tried the rice method. The rice solved the water issue but now the screen won't work. what should i do?

    I guess your definition of "solved" is different from most...
    Make an appointment at the genius bar of your local Apple Store and get an out of warranty replacement.

  • Anyone having problems Tethering with the USB Cable here is the solution

    Here is the solution to what took me 3 months to figure out, absolutely no one in this discussion board had the answer to no even the most expert.
    here is the site
    http://www.mackb.com/Uwe/Forum.aspx/mac/28074/USB-tethering-with-iPhone

    claire10b wrote:
    does anyone have any other ideas to try or observations on compatibility between iPhone, Samsung, and HTC for international SMS?
    International texting can be a crap shoot. It's not a question of phone compatibility but of carrier interoperability.  I regularly text from my iPhone to my (domestic) colleagues (who all have Samsungs) and to a friend with and HTC (an old one, too) without difficulty.
    One last question - I've never deleted my SMS from my friend, and would prefer not to. But it's pretty much the only thing I haven't tried. Does anyone think this might solve the problem eg if there are orphan texts somewhere on the network?
    I'm not sure there really is such  thing as an orphan text. If a text isn't deliverable, the carrier deletes it from it's system. SMS is quite a robust system.
    There is no general incompatibility between iPhones and other phones as far as texting is concerned. I suspect what you may be seeing is a combination of an old phone and/or an issue with one or both of your carriers. Intermittent technical problems are some of the most difficult to solve.
    I have vague memories of people saying that a trailing space at the end of the text made a difference when they had similar problems. It was a couple of years ago. (Honestly, this problem doesn't come up that often!). I don't recall if putting in the traling space helped, or removing it helped. It may also just have been magical thinkning.
    Best of luck.

Maybe you are looking for

  • How do I view photos in my icloud

    How do I view Photos in my icloud?

  • PSC 2175 not printing with Windows XP

    Hello, This printer has worked great since the first day with the setup below, but I cant figure this out. Setup Connection using USB O/S windows XP sp3 System is connect to ATEn KVM Switch USB. windows share with other  windows machines. Issue The p

  • Using XMLQuery with namespace

    Hi, I have following XML document stored as XMLType column, <ocaStatus xmlns="http://xmlbeans.apache.org/ocastatus"><status><statusCode>934</statusCode><statusDate>Wed Apr 07 16:05:53 GMT+05:30 2010</statusDate><userId>u0121845</userId><comment>Sent

  • Enable Safe Search in Group Policy

    We ran across an issue where if a Student typed xxx in the Google Search and then click images, they are submitted to more than an eye full of inappropriate images.  We have the "Safe Search" enabled on our Sonic Wall, but that still does not stop th

  • Two Destinations problem

    Hi all,         I am working on the scenario (Jdbc to SAP(Destination1) If Data is successfully sent to the SAP then i have to sent the data to the DataBase(Destiantion 2)) My BPM design as follows: 1)Recieve (recieve jdbc message asynchronous) 2)Sen