Every 120 sec. my MacBook is creating a strange unknown sound

Hi everyone out there,
sorry for reaching out to you, but tonight s.th. strange happened. From one moment to the next my MacBook decided to create a strange system-like sound every 120 sec. I have recorded it, so if this helps, let me know.
I did not install any new SW or change any of the system settings - really strange!
Cheers,
Hartmut

HI,
Open System Preferences/Sound and select the Sound Effects tab. If you have all three boxes checked for user sound effects that could be the culprit. Open Mac Mail/Preferences and select the General tab.
Where you see: New messages sound, click the pop up menu. If you hve the; Play sounds for other mail actions... that could be it too.
Since the sound is occuring on a timely basic, might be a fan.
Try Resetting the PRAM
Carolyn
Message was edited by: Carolyn Samit

Similar Messages

  • I have tried alot to vid and movies stutter every 5 secs or so and some times hangs while sound trax continues.

    during recorded video playback as well as streaming video it stutters I have adjusted all temp storage features to max and tinkered with all viable means to improve but to no avail. This happens on my pc as well as laptop with all setting from pc went onto via sync

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check for problems with current Shockwave Flash plugin versions and try this:
    *check for updates for your graphics drive drivers<br>https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    *disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    *disable hardware acceleration in the Flash plugin
    See also:
    *http://kb.mozillazine.org/Flash#Troubleshooting
    Boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/

  • I have bought a new airport express and using it with my macbook (iTunes 10.2.2). I have joined an existing network for internet in my home and with that i am trying to play the music via itunes but there is audio dropouts every 60 secs or so. any soln ?

    I have bought a new airport express and using it with my macbook (iTunes 10.2.2). I have joined an existing wireless network for internet in my home and with that i am trying to play the music via itunes but there is audio dropouts every 60 secs or so. I am using a set of speakers from kenwood connected to the airport express. The operating system on my macbook is mac os X 10.5.8. i am sure it is not a problem of streaming music online because i have even tried playing music which are stored in my macbook.
    Is there any problem with the setting in itunes or quicktime ? Kindly reply...... I am waiting for your valuable suggestion.
    Thank you a lot in advance.

    I am shocked to have found this same AX audio dropout problem starting TODAY, every few seconds the audio just drops for a couple seconds and then resumes:  Latest software versions of everything.  No iPad, iPhone or Touch.  Internet hardwired to D-Link DES1105 (1000baseT Switch) hardwired to new 80211N AX, AX optical to stereo, AX Wi-Fi internet to basic 1st-gen MacBook operating at 80211G, and an older 'G' AX extender at the far end of the house, away from all this.  The MacBook streaming iTunes is usually 12 feet from AX.  I've used this setup for years of trouble-free AirTunes / Airplay until today.  Today I also found 2 very reliable fixes and 1 way to force a dropout, but first, I read some posts and tried ALL following settings one-at-a-time and restored them ALL because NONE of them helped:  Turned off IPV6.  Streamed to multiple speakers 'Computer' and 'AX' (restored to just AX).  Turned off 'Ask to Join new (WiFi) Networks'.  Turned off Bluetooth (can't live without Magic Trackpad, so glad that wasn't it).  Here's my discoveries:  Lo and behold, each time I click the Airport icon in the Menu (you know it shows you've got 4 bars from AX) when the status switches to 'Looking for Networks' for a second it CAUSES the AX audio to drop out for a couple seconds (it never did that before today.)  iTunes still playing, streaming, AX laser still lit, but the 'PCM' light on stereo and the sound GOES OUT EVERY time I click the Airport icon in the menubar, just like the regular, annoying dropouts.  So, to reduce traffic I quit Safari (3 tabs, no streaming, just Gmail, Google, and Netflix browsing).  Lo and behold, the dropouts stopped altogether.  No other Web apps going (not iTunes Store, Genius, Ping, nothing), so I launched Chrome to the same 3 tabs and the dropouts HAVE NOT RETURNED.  That's right, not only did simply QUITTING SAFARI cure it, and Chrome doesn't contribute to it, but I can demonstrate it just by forcing my Airport to re-scan.  Works for me, written using Chrome.  The other reliable fix is to hardwire MacBook to the Switch.  This is obviously not ideal, but Airplay audio doesn't drop out over Ethernet.  Also, in all my tests, it made no difference whether iTunes did the streaming, or Airfoil did.

  • HT2693 I purchased Huawei Dongle and trying to connect with my NEW MacBook Pro (OS- Mountain Lion) USB port 3.0 but unfortunately it does not support. When I plugged in my the power is flowing in dongle due green light blinking twice in every 3 sec but no

    Hi,
    I purchased Huawei Dongle and trying to connect with my new MacBook Pro (OS- Mountain Lion) USB port 3.0 but unfortunately it does not support.
    When I plugged in my macbook the power is flowing in dongle due green light blinking twice in every 3 sec but no connection found or diver shown.
    Please let me know how I have to use it. I got some suggestion for USB hub 2.0 but It does not make any sense and driver installation.
    So please suggest proper direction to use it and provide link to install any driver.
    Thanks
    Tauheed Ahmad

    Yes Clinton I did same, but they were (Huawei customer support) surprised about this problem, They behave like they have no idea about USB 2.0 and  3.0 knowledge. They handsUp that reason I posted my problem in this forum.
    So is there any better solution to use any mediator between these USB version handling, Please let me know.
    Thanks
    Tauheed

  • My macbook just started emiitting a beep every 10 secs or so which i appear only to be able to turn off by muteing the volume . any idea what it is and how i can make it cease ?

    my macbook just started emiitting a beep every 10 secs or so which i appear only to be able to turn off by muteing the volume . any idea what it is and how i can make it cease ?

    You showed a kernel panic file from OS X, apprantly Log Me In is installed into OS X or running when you log in.
    You should be using the developers installer/unistaller to remove Log Me In from OS X.
    Somehow it's in OS X, I don't know, but it's there and you need to remove it. I'm not dealing with Windows, just OS X.
    Talk to Log Me In people and find out what is installed where so you can do a manual deletion out of OS X.
    If that doesn't work, you have to reboot holding the Shift key down manually search for any Log Me In or Himachi files on your computer, in your System/Library/Extensions folder too, use the free Easy Find.
    https://s3.amazonaws.com/DTWebsiteSupport/download/freeware/easyfind/4.9/EasyFin d.app.zip

  • I have macbook 5,2 mac osx 10.5 leopard, my problem is every  60 sec. there is pop up on desktop ,restart, sleep, cancel, and shut down and desktop dim also like sleep mood or hibernate mood, i try already to adjust the screen saver to longer minute but

    i have macbook 5,2 mac osx 10.5 leopard, my problem is every 60 sec. a pop up on desktop restart, sleep, cancel, and shut down and the desktop dim also i already adjust the sleep time to longer time but nothing happen, and every time i shut down my laptop he go restart again i canot of my laptop, i shut down and before he restart again i push the power botton the laptop is off and if i start my laptop not start 2 to 5 time i remove the battery again fix then laptop start. any body can help me about this problem may only the setting but i dont have idea..... please help thanks

    i think i find solution.
    after instal baytrail driver, without restart i instal gpu driver direct from intel
    https://downloadcenter.intel.com/search?keyword=Intel%C2%AE+HD+Graphics+for+Intel%C2%AE+Atom%E2%84%A...
    work fine for now...

  • MacBook Air keeps playing the restart sound every few hours

    So my Macbook Air keeps playing the restart sound every few hours. It's that "Dummmmmmmm" sound when you first boot up the computer. Things I noticed: when the sound played and I quickly went to open my laptop it was like nothing has happened - I had my Google Chrome window from the previous session open, everything was just normal as if I had just opened the laptop to resume using it. This has only happened when the Mac is folded up. Today it just happened at approximately 10:00 and here's the log:
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.bookstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.eventmonitor" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.install" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.iokit.power" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.mail" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.MessageTracer" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.performance" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.securityd" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am kernel[0]: Longterm timer threshold: 1000 ms
    23/02/2014 10:00:06.000 am kernel[0]: PMAP: PCID enabled
    23/02/2014 10:00:06.000 am kernel[0]: PMAP: Supervisor Mode Execute Protection enabled
    23/02/2014 10:00:06.000 am kernel[0]: Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    23/02/2014 10:00:06.000 am kernel[0]: vm_page_bootstrap: 901222 free pages and 139162 wired pages
    23/02/2014 10:00:06.000 am kernel[0]: kext submap [0xffffff7f807a5000 - 0xffffff8000000000], kernel text [0xffffff8000200000 - 0xffffff80007a5000]
    23/02/2014 10:00:06.000 am kernel[0]: zone leak detection enabled
    23/02/2014 10:00:06.000 am kernel[0]: "vm_compressor_mode" is 4
    23/02/2014 10:00:06.000 am kernel[0]: standard timeslicing quantum is 10000 us
    23/02/2014 10:00:06.000 am kernel[0]: standard background quantum is 2500 us
    23/02/2014 10:00:06.000 am kernel[0]: mig_table_max_displ = 74
    23/02/2014 10:00:06.000 am kernel[0]: TSC Deadline Timer supported and enabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=1 LocalApicId=0 Enabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=2 LocalApicId=2 Enabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=3 LocalApicId=1 Enabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=4 LocalApicId=3 Enabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=5 LocalApicId=255 Disabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=6 LocalApicId=255 Disabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=7 LocalApicId=255 Disabled
    23/02/2014 10:00:06.000 am kernel[0]: AppleACPICPU: ProcessorId=8 LocalApicId=255 Disabled
    23/02/2014 10:00:06.000 am kernel[0]: calling mpo_policy_init for TMSafetyNet
    23/02/2014 10:00:06.000 am kernel[0]: Security policy loaded: Safety net for Time Machine (TMSafetyNet)
    23/02/2014 10:00:06.000 am kernel[0]: calling mpo_policy_init for Sandbox
    23/02/2014 10:00:06.000 am kernel[0]: Security policy loaded: Seatbelt sandbox policy (Sandbox)
    23/02/2014 10:00:06.000 am kernel[0]: calling mpo_policy_init for Quarantine
    23/02/2014 10:00:06.000 am kernel[0]: Security policy loaded: Quarantine policy (Quarantine)
    23/02/2014 10:00:06.000 am kernel[0]: Copyright (c) 1982, 1986, 1989, 1991, 1993
    23/02/2014 10:00:06.000 am kernel[0]: The Regents of the University of California. All rights reserved.
    23/02/2014 10:00:06.000 am kernel[0]: MAC Framework successfully initialized
    23/02/2014 10:00:06.000 am kernel[0]: using 16384 buffer headers and 10240 cluster IO buffer headers
    23/02/2014 10:00:06.000 am kernel[0]: AppleKeyStore starting (BUILT: Sep 19 2013 22:20:34)
    23/02/2014 10:00:06.000 am kernel[0]: IOAPIC: Version 0x20 Vectors 64:103
    23/02/2014 10:00:06.000 am kernel[0]: ACPI: sleep states S0 S3 S4 S5
    23/02/2014 10:00:06.000 am kernel[0]: pci (build 22:16:29 Sep 19 2013), flags 0x63408, pfm64 (39 cpu) 0x7f80000000, 0x80000000
    23/02/2014 10:00:06.000 am kernel[0]: Sleep failure code 0x00000000 0x1f006500
    23/02/2014 10:00:06.000 am kernel[0]: [ PCI configuration begin ]
    23/02/2014 10:00:06.000 am kernel[0]: console relocated to 0x7f90000000
    23/02/2014 10:00:06.000 am kernel[0]: [ PCI configuration end, bridges 12, devices 14 ]
    23/02/2014 10:00:06.000 am kernel[0]: AppleIntelLpssSpiController::_notificationPublishedHandler: AppleIntelLpssDmac did show up, fDmacService 0xffffff8022796400
    23/02/2014 10:00:06.000 am kernel[0]: AppleIntelLpssSpiController::_notificationPublishedHandler: AppleIntelLpssGspi channel# 1 did show up, gspi 0xffffff8081c53000
    23/02/2014 10:00:06.000 am kernel[0]: AppleHSSPIController::start Start Succeeded
    23/02/2014 10:00:06.000 am kernel[0]: AppleThunderboltNHIType2::setupPowerSavings - GPE based runtime power management
    23/02/2014 10:00:06.000 am kernel[0]: mcache: 4 CPU(s), 64 bytes CPU cache line size
    23/02/2014 10:00:06.000 am kernel[0]: mbinit: done [64 MB total pool size, (42/21) split]
    23/02/2014 10:00:06.000 am kernel[0]: Pthread support ABORTS when sync kernel primitives misused
    23/02/2014 10:00:06.000 am kernel[0]: rooting via boot-uuid from /chosen: D4475447-00EF-3DF8-B55C-AC39F0146EC8
    23/02/2014 10:00:06.000 am kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>
    23/02/2014 10:00:06.000 am kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start
    23/02/2014 10:00:06.000 am kernel[0]: com.apple.AppleFSCompressionTypeDataless kmod start
    23/02/2014 10:00:06.000 am kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded
    23/02/2014 10:00:06.000 am kernel[0]: com.apple.AppleFSCompressionTypeDataless load succeeded
    23/02/2014 10:00:06.000 am kernel[0]: AppleHSSPIController::HandleMessage Device Wake by Host
    23/02/2014 10:00:06.000 am kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/RP06@1C,5/IOPCI2PCIBridg e/SSD0@0/AppleAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageD evice/IOBlockStorageDriver/APPLE SSD SD0128F Media/IOGUIDPartitionScheme/未命名@2
    23/02/2014 10:00:06.000 am kernel[0]: BSD root: disk0s2, major 1, minor 2
    23/02/2014 10:00:06.000 am kernel[0]: jnl: b(1, 2): replay_journal: from: 12412416 to: 14165504 (joffset 0x384000)
    23/02/2014 10:00:06.000 am kernel[0]: srom rev:11
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.895219: ChangeVCO => vco:960, xtalF:40, frac: 98, ndivMode: 3, ndivint: 24
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.895253: Data written into the PLL_CNTRL_ADDR2: 00000c31
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.895327: Data written into the PLL_CNTRL_ADDR3 (Fractional): 0000100e
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.908490: BTCOEXIST off
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.909092: BRCM tunables:
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.909117:   pullmode[1] txringsize[  256] txsendqsize[1024] reapmin[   32] reapcount[  128]
    23/02/2014 10:00:06.000 am kernel[0]: ARPT: 0.910906: wl0: Broadcom BCM43a0, vendorID[0x14e4] BAR0[0xb0600004]
    23/02/2014 10:00:06.000 am kernel[0]: 6.30.223.154 (r420397)
    23/02/2014 10:00:06.000 am kernel[0]: Apple Internal Keyboard / Trackpad::start Start Succeeded
    23/02/2014 10:00:06.000 am kernel[0]: [AppleMultitouchDevice::start] entered
    23/02/2014 10:00:06.000 am kernel[0]: jnl: b(1, 2): journal replay done.
    23/02/2014 10:00:06.000 am kernel[0]: hfs: mounted KeithDrive on device root_device
    23/02/2014 10:00:06.000 am kernel[0]: XCPM: registered
    23/02/2014 10:00:06.000 am kernel[0]: hfs: Removed 40 orphaned / unlinked files and 29 directories
    23/02/2014 10:00:06.000 am kernel[0]: USBMSC Identifier (non-unique): 00000000AP05 0x5ac 0x8406 0x5, 3
    23/02/2014 10:00:06.000 am kernel[0]: IOThunderboltSwitch<0xffffff80227db600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0
    23/02/2014 10:00:06.000 am kernel[0]: IOThunderboltSwitch<0xffffff80227db600>(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 12 unplug = 0
    23/02/2014 10:00:04.452 am com.apple.launchd[1]: *** launchd[1] has started up. ***
    23/02/2014 10:00:04.452 am com.apple.launchd[1]: *** Shutdown logging is enabled. ***
    23/02/2014 10:00:06.189 am com.apple.SecurityServer[14]: Session 100000 created
    23/02/2014 10:00:06.000 am kernel[0]: IO80211Controller::dataLinkLayerAttachComplete():  adding AppleEFINVRAM notification
    23/02/2014 10:00:06.000 am kernel[0]: IO80211Interface::efiNVRAMPublished(): 
    23/02/2014 10:00:07.428 am com.apple.SecurityServer[14]: Entering service
    23/02/2014 10:00:07.000 am kernel[0]: AirPort: Link Down on en0. Reason 8 (Disassociated because station leaving).
    23/02/2014 10:00:07.461 am configd[19]: dhcp_arp_router: en0 SSID unavailable
    23/02/2014 10:00:07.502 am UserEventAgent[11]: Failed to copy info dictionary for bundle /System/Library/UserEventPlugins/alfUIplugin.plugin
    23/02/2014 10:00:07.518 am UserEventAgent[11]: Captive: CNPluginHandler en0: Inactive
    23/02/2014 10:00:07.000 am kernel[0]: Previous Shutdown Cause: -128
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::init
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::probe
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start: fS2DeviceRegs=0xffffff8096d25000 (len=65536)
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start: fS2DeviceMemory=0xffffff8097617000 (len=268435456)
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start: fISPRegsMem=0xffffff80236d6080 (len=1048576)
    23/02/2014 10:00:07.000 am kernel[0]: virtual bool AppleCamIn::start(IOService *): about to configure DDR
    23/02/2014 10:00:07.000 am kernel[0]: IOBluetoothUSBDFU::probe
    23/02/2014 10:00:07.000 am kernel[0]: IOBluetoothUSBDFU::probe ProductID - 0x828F FirmwareVersion - 0x0078
    23/02/2014 10:00:07.000 am kernel[0]: **** [IOBluetoothHostControllerUSBTransport][start] -- completed -- result = TRUE -- 0xbc00 ****
    23/02/2014 10:00:07.000 am kernel[0]: **** [BroadcomBluetoothHostControllerUSBTransport][start] -- Completed -- 0xbc00 ****
    23/02/2014 10:00:07.000 am kernel[0]: init
    23/02/2014 10:00:07.000 am kernel[0]: probe
    23/02/2014 10:00:07.000 am kernel[0]: start
    23/02/2014 10:00:07.000 am kernel[0]: [IOBluetoothHCIController][staticBluetoothHCIControllerTransportShowsUp] -- Received Bluetooth Controller register service notification -- 0xbc00
    23/02/2014 10:00:07.000 am kernel[0]: [IOBluetoothHCIController][start] -- completed
    23/02/2014 10:00:07.000 am kernel[0]: hmm.. mismatch sizes: 3100 vs 20
    23/02/2014 10:00:07.000 am kernel[0]: [IOBluetoothHCIController::setConfigState] calling registerService
    23/02/2014 10:00:07.000 am kernel[0]: **** [IOBluetoothHCIController][protectedBluetoothHCIControllerTransportShowsUp] -- Connected to the transport successfully -- 0x6ec0 -- 0xf000 -- 0xbc00 ****
    23/02/2014 10:00:07.000 am kernel[0]: DSMOS has arrived
    23/02/2014 10:00:07.000 am kernel[0]: IOPPF - IODeviceTree:/efi/platform/StartupPowerEvents: 0x0
    23/02/2014 10:00:07.000 am kernel[0]: IOPPF: XCPM mode
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: save_ddr_phy_regs: saving 127 DDR PHY shmoo-calibrated registers
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::initACPI - status = 0x00000000, acpi_path_object = 0xffffff80223a84a0
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::initACPI - status = 0x00000000, acpi_path = IOACPIPlane:/_SB/PCI0@0/RP02@1c0001/CMRA@0
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::initACPI - status = 0x00000000, acpi_device_entry = 0xffffff8022717700
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::initACPI - status = 0x00000000, fACPIDevice = 0xffffff8022717700
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::initACPI - status = 0x00000000, fACPIPowerEnabled = 1
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start - link control offset in PCI bridge = 0x50
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::start - pmcsr offset in PCI bridge = 0xa4
    23/02/2014 10:00:07.000 am kernel[0]: AppleCamIn::power_off_hardware
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.000 am kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
    23/02/2014 10:00:07.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:07.920 am configd[19]: network changed.
    23/02/2014 10:00:07.921 am configd[19]: setting hostname to "KeithdeMacBook-Air.local"
    23/02/2014 10:00:07.000 am kernel[0]: NTFS driver 3.11 [Flags: R/W].
    23/02/2014 10:00:07.000 am kernel[0]: NTFS volume name BOOTCAMP, version 3.1.
    23/02/2014 10:00:08.021 am fseventsd[47]: event logs in /.fseventsd out of sync with volume.  destroying old logs. (962 4 1670)
    23/02/2014 10:00:08.021 am fseventsd[47]: log dir: /.fseventsd getting new uuid: E03FF15F-787F-471A-B187-95824E52D0EF
    23/02/2014 10:00:08.000 am kernel[0]: AppleCamIn::initForPM
    23/02/2014 10:00:08.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:08.000 am kernel[0]: en1: promiscuous mode enable succeeded
    23/02/2014 10:00:08.000 am kernel[0]: VM Swap Subsystem is ON
    23/02/2014 10:00:08.839 am hidd[78]: void __IOHIDPlugInLoadBundles(): Loaded 0 HID plugins
    23/02/2014 10:00:08.840 am hidd[78]: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
    23/02/2014 10:00:08.000 am kernel[0]: Unrecognized reportID 0x02
    23/02/2014 10:00:08.948 am loginwindow[73]: Login Window Application Started
    23/02/2014 10:00:08.948 am awacsd[87]: Starting awacsd connectivity_executables-97 (Aug 24 2013 23:49:23)
    23/02/2014 10:00:08.960 am awacsd[87]: InnerStore CopyAllZones: no info in Dynamic Store
    23/02/2014 10:00:08.966 am digest-service[92]: label: default
    23/02/2014 10:00:08.967 am digest-service[92]:           dbname: od:/Local/Default
    23/02/2014 10:00:08.967 am digest-service[92]:           mkey_file: /var/db/krb5kdc/m-key
    23/02/2014 10:00:08.967 am digest-service[92]:           acl_file: /var/db/krb5kdc/kadmind.acl
    23/02/2014 10:00:08.980 am mDNSResponder[70]: mDNSResponder mDNSResponder-522.1.11 (Aug 24 2013 23:49:34) starting OSXVers 13
    23/02/2014 10:00:08.988 am digest-service[92]: digest-request: uid=0
    23/02/2014 10:00:09.001 am com.apple.usbmuxd[55]: usbmuxd-327.4 on Jan  7 2014 at 01:25:07, running 64 bit
    23/02/2014 10:00:09.042 am apsd[89]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
    23/02/2014 10:00:09.044 am digest-service[92]: digest-request: netr probe 0
    23/02/2014 10:00:09.045 am digest-service[92]: digest-request: init request
    23/02/2014 10:00:09.055 am digest-service[92]: digest-request: init return domain: BUILTIN server: KEITHDEMACBOOK-AIR indomain was: <NULL>
    23/02/2014 10:00:09.107 am configd[19]: network changed.
    23/02/2014 10:00:09.109 am configd[19]: network changed: DNS*
    23/02/2014 10:00:09.114 am mDNSResponder[70]: D2D_IPC: Loaded
    23/02/2014 10:00:09.114 am mDNSResponder[70]: D2DInitialize succeeded
    23/02/2014 10:00:09.119 am mDNSResponder[70]:   4: Listening for incoming Unix Domain Socket client requests
    23/02/2014 10:00:09.164 am networkd[115]: networkd.115 built Aug 24 2013 22:08:46
    23/02/2014 10:00:09.179 am WindowServer[100]: Server is starting up
    23/02/2014 10:00:09.183 am WindowServer[100]: Session 256 retained (2 references)
    23/02/2014 10:00:09.183 am WindowServer[100]: Session 256 released (1 references)
    23/02/2014 10:00:09.187 am mds[69]: (Normal) FMW: FMW 0 0
    23/02/2014 10:00:09.203 am mds[69]: (Normal) Volume: volume:0x7fc551812800 ********** Bootstrapped Creating a default store:1 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/BOOTCAMP
    23/02/2014 10:00:09.212 am WindowServer[100]: Session 256 retained (2 references)
    23/02/2014 10:00:09.216 am WindowServer[100]: init_page_flip: page flip mode is on
    23/02/2014 10:00:09.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:09.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:09.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:09.000 am kernel[0]: Network delay is not specified! Defaulting to 0x384
    23/02/2014 10:00:09.305 am WindowServer[100]: Found 17 modes for display 0x00000000 [9, 8]
    23/02/2014 10:00:09.309 am locationd[75]: NBB-Could not get UDID for stable refill timing, falling back on random
    23/02/2014 10:00:09.312 am WindowServer[100]: Found 1 modes for display 0x00000000 [1, 0]
    23/02/2014 10:00:09.316 am WindowServer[100]: Found 1 modes for display 0x00000000 [1, 0]
    23/02/2014 10:00:09.321 am WindowServer[100]: mux_initialize: Couldn't find any matches
    23/02/2014 10:00:09.323 am WindowServer[100]: Found 17 modes for display 0x00000000 [9, 8]
    23/02/2014 10:00:09.328 am WindowServer[100]: Found 1 modes for display 0x00000000 [1, 0]
    23/02/2014 10:00:09.329 am WindowServer[100]: Found 1 modes for display 0x00000000 [1, 0]
    23/02/2014 10:00:09.361 am locationd[75]: Location icon should now be in state 'Inactive'
    23/02/2014 10:00:09.365 am WindowServer[100]: WSMachineUsesNewStyleMirroring: true
    23/02/2014 10:00:09.367 am WindowServer[100]: Display 0x04273c00: GL mask 0x1; bounds (0, 0)[1440 x 900], 17 modes available
    Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model 9cf0, S/N 0, Unit 0, Rotation 0
    UUID 0x933c106c08bc09aaf750c2a74a119def
    23/02/2014 10:00:09.368 am WindowServer[100]: Display 0x003f003f: GL mask 0x8; bounds (0, 0)[1920 x 1200], 2 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.368 am WindowServer[100]: Display 0x003f003e: GL mask 0x4; bounds (0, 0)[0 x 0], 1 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.368 am WindowServer[100]: Display 0x003f003d: GL mask 0x2; bounds (0, 0)[0 x 0], 1 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.376 am locationd[75]: locationd was started after an unclean shutdown
    23/02/2014 10:00:09.390 am WindowServer[100]: WSSetWindowTransform: Singular matrix
    23/02/2014 10:00:09.390 am WindowServer[100]: WSSetWindowTransform: Singular matrix
    23/02/2014 10:00:09.407 am WindowServer[100]: Display 0x04273c00: GL mask 0x1; bounds (0, 0)[1440 x 900], 17 modes available
    Main, Active, on-line, enabled, built-in, boot, Vendor 610, Model 9cf0, S/N 0, Unit 0, Rotation 0
    UUID 0x933c106c08bc09aaf750c2a74a119def
    23/02/2014 10:00:09.407 am WindowServer[100]: Display 0x003f003f: GL mask 0x8; bounds (2464, 0)[1 x 1], 2 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 3, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.407 am WindowServer[100]: Display 0x003f003e: GL mask 0x4; bounds (2465, 0)[1 x 1], 1 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 2, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.407 am WindowServer[100]: Display 0x003f003d: GL mask 0x2; bounds (2466, 0)[1 x 1], 1 modes available
    off-line, enabled, Vendor ffffffff, Model ffffffff, S/N ffffffff, Unit 1, Rotation 0
    UUID 0xffffffffffffffffffffffffffffffff
    23/02/2014 10:00:09.408 am WindowServer[100]: CGXPerformInitialDisplayConfiguration
    23/02/2014 10:00:09.408 am WindowServer[100]:   Display 0x04273c00: Unit 0; Vendor 0x610 Model 0x9cf0 S/N 0 Dimensions 11.42 x 7.09; online enabled built-in, Bounds (0,0)[1440 x 900], Rotation 0, Resolution 1
    23/02/2014 10:00:09.408 am WindowServer[100]:   Display 0x003f003f: Unit 3; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x 0.00; offline enabled, Bounds (2464,0)[1 x 1], Rotation 0, Resolution 1
    23/02/2014 10:00:09.408 am WindowServer[100]:   Display 0x003f003e: Unit 2; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x 0.00; offline enabled, Bounds (2465,0)[1 x 1], Rotation 0, Resolution 1
    23/02/2014 10:00:09.408 am WindowServer[100]:   Display 0x003f003d: Unit 1; Vendor 0xffffffff Model 0xffffffff S/N -1 Dimensions 0.00 x 0.00; offline enabled, Bounds (2466,0)[1 x 1], Rotation 0, Resolution 1
    23/02/2014 10:00:09.422 am airportd[91]: airportdProcessDLILEvent: en0 attached (up)
    23/02/2014 10:00:09.000 am kernel[0]: AirPort_Brcm4360_P2PInterface::init name <p2p0> role 1
    23/02/2014 10:00:09.000 am kernel[0]: AirPort_Brcm4360_P2PInterface::init() <p2p> role 1
    23/02/2014 10:00:09.435 am WindowServer[100]: GLCompositor: GL renderer id 0x01024500, GL mask 0x0000000f, accelerator 0x00004593, unit 0, caps QEX|MIPMAP, vram 1024 MB
    23/02/2014 10:00:09.436 am WindowServer[100]: GLCompositor: GL renderer id 0x01024500, GL mask 0x0000000f, texture max 16384, viewport max {16384, 16384}, extensions FPRG|NPOT|GLSL|FLOAT
    23/02/2014 10:00:09.436 am WindowServer[100]: GLCompositor enabled for tile size [256 x 256]
    23/02/2014 10:00:09.436 am WindowServer[100]: CGXGLInitMipMap: mip map mode is on
    23/02/2014 10:00:09.447 am loginwindow[73]: **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    23/02/2014 10:00:09.469 am systemkeychain[96]: done file: /var/run/systemkeychaincheck.done
    23/02/2014 10:00:09.579 am WindowServer[100]: Display 0x04273c00: Unit 0; ColorProfile { 2, "Color LCD"}; TransferTable (256, 12)
    23/02/2014 10:00:09.635 am launchctl[125]: com.apple.findmymacmessenger: Already loaded
    23/02/2014 10:00:09.654 am com.apple.SecurityServer[14]: Session 100004 created
    23/02/2014 10:00:09.721 am loginwindow[73]: Setting the initial value of the magsave brightness level 2
    23/02/2014 10:00:09.727 am UserEventAgent[127]: Failed to copy info dictionary for bundle /System/Library/UserEventPlugins/alfUIplugin.plugin
    23/02/2014 10:00:09.762 am loginwindow[73]: Login Window Started Security Agent
    23/02/2014 10:00:09.855 am SecurityAgent[134]: This is the first run
    23/02/2014 10:00:09.856 am SecurityAgent[134]: MacBuddy was run = 0
    23/02/2014 10:00:09.877 am SecurityAgent[134]: User info context values set for keithy
    23/02/2014 10:00:09.878 am WindowServer[100]: MPAccessSurfaceForDisplayDevice: Set up page flip mode on display 0x04273c00 device: 0x7f8b61e10da0  isBackBuffered: 1 numComp: 3 numDisp: 3
    23/02/2014 10:00:09.878 am WindowServer[100]: _CGXGLDisplayContextForDisplayDevice: acquired display context (0x7f8b61e10da0) - enabling OpenGL
    23/02/2014 10:00:10.000 am kernel[0]: hfs: mounted Recovery HD on device disk0s3
    23/02/2014 10:00:10.123 am mds[69]: (Normal) Volume: volume:0x7fc551826000 ********** Bootstrapped Creating a default store:0 SpotLoc:(null) SpotVerLoc:(null) occlude:0 /Volumes/Recovery HD
    23/02/2014 10:00:10.208 am fseventsd[47]: Logging disabled completely for device:1: /Volumes/Recovery HD
    23/02/2014 10:00:10.000 am kernel[0]: hfs: unmount initiated on Recovery HD on device disk0s3
    23/02/2014 10:00:10.276 am loginwindow[73]: Login Window - Returned from Security Agent
    23/02/2014 10:00:10.313 am loginwindow[73]: USER_PROCESS: 73 console
    23/02/2014 10:00:10.000 am kernel[0]: AppleKeyStore:Sending lock change 0
    23/02/2014 10:00:10.457 am com.apple.launchd.peruser.501[146]: Background: Aqua: Registering new GUI session.
    23/02/2014 10:00:10.475 am com.apple.launchd.peruser.501[146]: (com.spotify.webhelper) Unknown key: SpotifyPath
    23/02/2014 10:00:10.476 am com.apple.launchd.peruser.501[146]: (com.apple.cmfsyncagent) Ignored this key: UserName
    23/02/2014 10:00:10.476 am com.apple.launchd.peruser.501[146]: (com.apple.EscrowSecurityAlert) Unknown key: seatbelt-profiles
    23/02/2014 10:00:10.477 am com.apple.launchd.peruser.501[146]: (com.apple.ReportCrash) Falling back to default Mach exception handler. Could not find: com.apple.ReportCrash.Self
    23/02/2014 10:00:10.481 am launchctl[148]: com.apple.pluginkit.pkd: Already loaded
    23/02/2014 10:00:10.481 am launchctl[148]: com.apple.sbd: Already loaded
    23/02/2014 10:00:10.493 am distnoted[150]: # distnote server agent  absolute time: 7.309113255   civil time: Sun Feb 23 10:00:10 2014   pid: 150 uid: 501  root: no
    23/02/2014 10:00:10.000 am kernel[0]: en0: 802.11d country code set to 'US'.
    23/02/2014 10:00:10.000 am kernel[0]: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 144 149 153 157 161 165
    23/02/2014 10:00:10.861 am WindowServer[100]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    23/02/2014 10:00:11.094 am SystemUIServer[165]: Cannot find executable for CFBundle 0x7fa8e8d917d0 </System/Library/CoreServices/Menu Extras/Clock.menu> (not loaded)
    23/02/2014 10:00:11.098 am sharingd[177]: Starting Up...
    23/02/2014 10:00:11.171 am SystemUIServer[165]: Cannot find executable for CFBundle 0x7fa8e8d97ce0 </System/Library/CoreServices/Menu Extras/Battery.menu> (not loaded)
    23/02/2014 10:00:11.173 am SystemUIServer[165]: Cannot find executable for CFBundle 0x7fa8e8d709e0 </System/Library/CoreServices/Menu Extras/Volume.menu> (not loaded)
    23/02/2014 10:00:11.187 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:11.285 am WindowServer[100]: Display 0x04273c00: Unit 0; ColorProfile { 2, "Color LCD"}; TransferTable (256, 12)
    23/02/2014 10:00:11.390 am WindowServer[100]: **DMPROXY** (2) Found `/System/Library/CoreServices/DMProxy'.
    23/02/2014 10:00:11.535 am apsd[89]: Unexpected connection from logged out uid 501
    23/02/2014 10:00:11.544 am com.apple.SecurityServer[14]: Session 100005 created
    23/02/2014 10:00:11.631 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class AMDRadeonX4000_AMDAccelDevice.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class AMDRadeonX4000_AMDAccelSharedUserClient.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class AMDSIVideoContext.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IGAccelDevice.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IGAccelSharedUserClient.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IGAccelVideoContextMain.
    23/02/2014 10:00:11.632 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IGAccelVideoContextMedia.
    23/02/2014 10:00:11.633 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IGAccelVideoContextVEBox.
    23/02/2014 10:00:11.633 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IOHIDParamUserClient.
    23/02/2014 10:00:11.633 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class IOSurfaceRootUserClient.
    23/02/2014 10:00:11.633 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the IOKit user-client class Gen6DVDContext.
    23/02/2014 10:00:11.633 am com.apple.audio.DriverHelper[182]: The plug-in named AirPlay.driver requires extending the sandbox for the mach service named com.apple.AirPlayXPCHelper.
    23/02/2014 10:00:11.662 am com.apple.audio.DriverHelper[182]: The plug-in named BluetoothAudioPlugIn.driver requires extending the sandbox for the IOKit user-client class IOBluetoothDeviceUserClient.
    23/02/2014 10:00:11.662 am com.apple.audio.DriverHelper[182]: The plug-in named BluetoothAudioPlugIn.driver requires extending the sandbox for the mach service named com.apple.blued.
    23/02/2014 10:00:11.662 am com.apple.audio.DriverHelper[182]: The plug-in named BluetoothAudioPlugIn.driver requires extending the sandbox for the mach service named com.apple.bluetoothaudiod.
    23/02/2014 10:00:11.860 am SystemUIServer[165]: *** WARNING: -[NSImage compositeToPoint:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    23/02/2014 10:00:11.860 am SystemUIServer[165]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    23/02/2014 10:00:12.017 am xpcproxy[195]: assertion failed: 13B42: xpcproxy + 3438 [EE7817B0-1FA1-3603-B88A-BD5E595DA86F]: 0x2
    23/02/2014 10:00:12.037 am com.apple.IconServicesAgent[194]: IconServicesAgent launched.
    23/02/2014 10:00:12.183 am xpcproxy[198]: assertion failed: 13B42: xpcproxy + 3438 [EE7817B0-1FA1-3603-B88A-BD5E595DA86F]: 0x2
    23/02/2014 10:00:12.495 am accountsd[199]: assertion failed: 13B42: liblaunch.dylib + 25164 [FCBF0A02-0B06-3F97-9248-5062A9DEB32C]: 0x25
    23/02/2014 10:00:12.000 am kernel[0]: ARPT: 9.541431: MacAuthEvent en0   Auth result for: 00:1d:d3:c3:b5:80  MAC AUTH succeeded
    23/02/2014 10:00:12.729 am accountsd[199]: /SourceCache/Accounts/Accounts-336.9/ACDAuthenticationPluginManager.m - -[ACDAuthenticationPluginManager credentialForAccount:client:handler:] - 230 - The authentication plugin for account "[email protected]" (DA49B773-680F-41DA-BA31-10A500BCD013) could not be found!
    23/02/2014 10:00:12.730 am accountsd[199]: /SourceCache/Accounts/Accounts-336.9/ACDAccountStore.m - __62-[ACDAccountStore credentialForAccountWithIdentifier:handler:]_block_invoke389 - 857 - No plugin provides credentials for account [email protected]. Falling back to legacy behavior.
    23/02/2014 10:00:12.000 am kernel[0]: wlEvent: en0 en0 Link UP virtIf = 0
    23/02/2014 10:00:12.000 am kernel[0]: AirPort: Link Up on en0
    23/02/2014 10:00:12.000 am kernel[0]: en0: BSSID changed to 00:1d:d3:c3:b5:80
    23/02/2014 10:00:13.000 am kernel[0]: AirPort: RSN handshake complete on en0
    23/02/2014 10:00:13.403 am com.apple.SecurityServer[14]: Session 100009 created
    23/02/2014 10:00:13.801 am WindowServer[100]: Display 0x04273c00: Unit 0; ColorProfile { 2, "Color LCD"}; TransferTable (256, 12)
    23/02/2014 10:00:14.026 am UserEventAgent[11]: Captive: [CNInfoNetworkActive:1655] en0: SSID 'GetALife' making interface primary (protected network)
    23/02/2014 10:00:14.027 am configd[19]: network changed: DNS* Proxy
    23/02/2014 10:00:14.027 am UserEventAgent[11]: Captive: CNPluginHandler en0: Evaluating
    23/02/2014 10:00:14.028 am UserEventAgent[11]: Captive: en0: Probing 'GetALife'
    23/02/2014 10:00:14.035 am configd[19]: network changed: v6(en0!:2601:b:9400:3fc:fd37:1539:24f1:3341) DNS+ Proxy+ SMB
    23/02/2014 10:00:14.225 am WindowServer[100]: Display 0x04273c00: Unit 0; ColorProfile { 2, "Color LCD"}; TransferTable (256, 12)
    23/02/2014 10:00:14.251 am com.apple.IconServicesAgent[194]: main Failed to composit image for binding VariantBinding [0x311] flags: 0x8 binding: FileInfoBinding [0x21f] - extension: mov, UTI: com.apple.quicktime-movie, fileType: MooV.
    23/02/2014 10:00:14.252 am quicklookd[209]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x203] flags: 0x8 binding: FileInfoBinding [0x103] - extension: mov, UTI: com.apple.quicktime-movie, fileType: MooV request size:16 scale: 1
    23/02/2014 10:00:14.267 am talagent[164]: CGSBindSurface: Invalid window 0x1d
    23/02/2014 10:00:14.268 am WindowServer[100]: _CGXWindowRightsRelinquish: Invalid window 0x1d
    23/02/2014 10:00:14.269 am talagent[164]: CGSConnectionRelinquishWindowRights(cid, result, reservedRights): CGError 1001 on line 875
    23/02/2014 10:00:14.269 am talagent[164]: CGSBindSurface: Invalid window 0x1a
    23/02/2014 10:00:14.270 am WindowServer[100]: _CGXWindowRightsRelinquish: Invalid window 0x1a
    23/02/2014 10:00:14.270 am talagent[164]: CGSConnectionRelinquishWindowRights(cid, result, reservedRights): CGError 1001 on line 875
    23/02/2014 10:00:14.270 am WindowServer[100]: CGXReleaseWindowList: Invalid window 29 (index 0/2)
    23/02/2014 10:00:14.270 am WindowServer[100]: CGXReleaseWindowList: Invalid window 26 (index 1/2)
    23/02/2014 10:00:14.410 am UserEventAgent[149]: Failed to copy info dictionary for bundle /System/Library/UserEventPlugins/alfUIplugin.plugin
    23/02/2014 10:00:14.417 am com.apple.dock.extra[201]: <NSXPCConnection: 0x7fd693e12a50>: received an undecodable message (no exported object to receive message). Dropping message.
    23/02/2014 10:00:14.000 am kernel[0]: flow_divert_kctl_disconnect (0): disconnecting group 1
    23/02/2014 10:00:14.000 am kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=216[ksadmin] final status 0x0, allow (remove VALID)ing page
    23/02/2014 10:00:14.592 am com.apple.time[149]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).
    23/02/2014 10:00:14.714 am com.apple.SecurityServer[14]: Session 100011 created
    23/02/2014 10:00:14.898 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:14.924 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:14.925 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:14.985 am com.apple.time[149]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).
    23/02/2014 10:00:15.058 am gamed[189]: CKSoftwareMap: Registering with Daemon
    23/02/2014 10:00:15.064 am com.apple.NotesMigratorService[224]: Joined Aqua audit session
    23/02/2014 10:00:15.132 am com.apple.internetaccounts[198]: An instance 0x7fa799f9cf10 of class IMAPMailbox was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
    <NSKeyValueObservationInfo 0x7fa799f9d070> (
    <NSKeyValueObservance 0x7fa799f9d000: Observer: 0x7fa799f5b600, Key path: uidNext, Options: <New: NO, Old: NO, Prior: NO> Context: 0x7fff8695b44b, Property: 0x7fa799eb92b0>
    23/02/2014 10:00:15.271 am WindowServer[100]: disable_update_timeout: UI updates were forcibly disabled by application "talagent" for over 1.00 seconds. Server has re-enabled them.
    23/02/2014 10:00:15.652 am configd[19]: network changed: v6(en0!:2601:b:9400:3fc:bae8:56ff:fe0c:3ac2) DNS Proxy SMB
    23/02/2014 10:00:15.684 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:15.876 am configd[19]: network changed: v6(en0:2601:b:9400:3fc:bae8:56ff:fe0c:3ac2) DNS! Proxy SMB
    23/02/2014 10:00:16.056 am Spotify[162]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:16.085 am airportd[91]: _doAutoJoin: Already associated to “GetALife”. Bailing on auto-join.
    23/02/2014 10:00:16.386 am Spotify[162]: Mac OS version: 10.9
    23/02/2014 10:00:16.612 am System Preferences[158]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    23/02/2014 10:00:16.641 am WindowServer[100]: disable_update_timeout: UI updates were forcibly disabled by application "System Preferences" for over 1.00 seconds. Server has re-enabled them.
    23/02/2014 10:00:17.049 am Spotify Helper EH[228]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:17.108 am WindowServer[100]: common_reenable_update: UI updates were finally reenabled by application "System Preferences" after 1.47 seconds (server forcibly re-enabled them after 1.00 seconds)
    23/02/2014 10:00:17.274 am Preview[159]: It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil.  This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug.  This will be logged only once.  This may break in the future.
    23/02/2014 10:00:17.282 am Google Chrome Helper[229]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:17.282 am Google Chrome Helper[229]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:17.301 am Google Chrome Helper[229]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:17.363 am WindowServer[100]: disable_update_timeout: UI updates were forcibly disabled by application "µTorrent" for over 1.00 seconds. Server has re-enabled them.
    23/02/2014 10:00:17.491 am WindowServer[100]: disable_update_timeout: UI updates were forcibly disabled by application "Mail" for over 1.00 seconds. Server has re-enabled them.
    23/02/2014 10:00:17.560 am com.apple.Preview.TrustedBookmarksService[230]: Failure to de-serialize bookmark data file.
    23/02/2014 10:00:17.000 am kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=232[ksadmin] final status 0x0, allow (remove VALID)ing page
    23/02/2014 10:00:17.876 am WindowServer[100]: common_reenable_update: UI updates were finally reenabled by application "Mail" after 1.39 seconds (server forcibly re-enabled them after 1.00 seconds)
    23/02/2014 10:00:17.908 am Preview[159]:
    ***** AESendMessage [async] returned: -1712 [loc:0]
    23/02/2014 10:00:17.969 am uTorrent[161]: *** WARNING: -[NSImage compositeToPoint:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    23/02/2014 10:00:17.975 am uTorrent[161]: *** WARNING: -[NSImage compositeToPoint:fromRect:operation:] is deprecated in MacOSX 10.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction:] instead.
    23/02/2014 10:00:18.212 am Google Chrome Helper[233]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:18.212 am Google Chrome Helper[233]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:18.230 am Google Chrome Helper[233]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:18.000 am kernel[0]: CODE SIGNING: cs_invalid_page(0x1000): p=247[GoogleSoftwareUp] final status 0x0, allow (remove VALID)ing page
    23/02/2014 10:00:18.474 am com.apple.launchd.peruser.501[146]: (org.herf.Flux.30128[251]) Spawned and waiting for the debugger to attach before continuing...
    23/02/2014 10:00:18.536 am Spotify Helper[234]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:18.588 am com.apple.launchd.peruser.501[146]: (com.apple.mrt.uiagent[239]) Exited with code: 255
    23/02/2014 10:00:19.505 am Google Chrome Helper[250]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:19.506 am Google Chrome Helper[250]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:19.517 am Google Chrome Helper[250]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:19.641 am Google Chrome Helper[248]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:19.641 am Google Chrome Helper[248]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:19.655 am Google Chrome Helper[253]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:19.656 am Google Chrome Helper[253]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:19.659 am Google Chrome Helper[248]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:19.668 am Google Chrome Helper[253]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:19.724 am WindowServer[100]: common_reenable_update: UI updates were finally reenabled by application "µTorrent" after 3.36 seconds (server forcibly re-enabled them after 1.00 seconds)
    23/02/2014 10:00:19.848 am Google Chrome Helper[254]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:19.848 am Google Chrome Helper[254]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:19.863 am Google Chrome Helper[254]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:19.868 am WiFiKeychainProxy[235]: [NO client logger] <Aug 30 2013 23:40:46> WIFICLOUDSYNC WiFiCloudSyncEngineCreate: created...
    23/02/2014 10:00:19.869 am WiFiKeychainProxy[235]: [NO client logger] <Aug 30 2013 23:40:46> WIFICLOUDSYNC WiFiCloudSyncEngineRegisterCallbacks: WiFiCloudSyncEngineCallbacks version - 0, bundle id - com.apple.wifi.WiFiKeychainProxy
    23/02/2014 10:00:19.975 am Spotify Helper[260]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:19.997 am Google Chrome Helper[255]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd. : LSXPCClient.cp #426 ___ZN26LSClientToServerConnection21setupServerConnectionEiPK14__CFDictionary_bl ock_invoke() q=com.apple.main-thread
    23/02/2014 10:00:19.997 am Google Chrome Helper[255]: Process unable to create connection because the sandbox denied the right to lookup com.apple.coreservices.launchservicesd and so this process cannot talk to launchservicesd.
    23/02/2014 10:00:20.018 am Spotify Helper[261]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:20.020 am Google Chrome Helper[255]: CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1100)
    23/02/2014 10:00:21.018 am Spotify Helper[265]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:21.798 am Spotify Helper[260]: The function `CGFontSetShouldUseMulticache' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
    23/02/2014 10:00:21.802 am Spotify Helper[234]: The function `CGFontSetShouldUseMulticache' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
    23/02/2014 10:00:22.173 am Spotify Helper[261]: The function `CGFontSetShouldUseMulticache' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
    23/02/2014 10:00:22.415 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputerIndexed"
    23/02/2014 10:00:22.495 am mds[69]: (Warning) Server: No stores registered for metascope "kMDQueryScopeComputer"
    23/02/2014 10:00:22.499 am Spotify Helper[265]: The function `CGFontSetShouldUseMulticache' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance.
    23/02/2014 10:00:23.971 am awacsd[87]: Exiting
    23/02/2014 10:00:25.471 am WindowServer[100]: common_reenable_update: UI updates were finally reenabled by application "talagent" after 11.19 seconds (server forcibly re-enabled them after 1.00 seconds)
    23/02/2014 10:00:26.466 am WindowServer[100]: CGError post_notification(const CGSNotificationType, void *const, const size_t, const bool, const CGSRealTimeDelta, const int, const CGSConnectionID *const, const pid_t): Timed out 1.000 second wait for reply from "(PID 226)" for synchronous notification type 102 (kCGSDisplayWillSleep) (CID 0x11c03, PID 226)
    23/02/2014 10:00:26.466 am WindowServer[100]: device_generate_desktop_screenshot: authw 0x0(0), shield 0x7f8b61e2d530(2001)
    23/02/2014 10:00:26.498 am WindowServer[100]: device_generate_lock_screen_screenshot: authw 0x0(0), shield 0x7f8b61e2d530(2001)
    23/02/2014 10:00:28.000 am kernel[0]: IOPMrootDomain: idle revert, state 21
    23/02/2014 10:00:28.714 am WindowServer[100]: CGXDisplayDidWakeNotification [25521870084]: posting kCGSDisplayDidWake
    23/02/2014 10:00:28.715 am WindowServer[100]: handle_will_sleep_auth_and_shield_windows: Deferring.
    23/02/2014 10:00:28.934 am parentalcontrolsd[278]: StartObservingFSEvents [849:] -- *** StartObservingFSEvents started event stream
    23/02/2014 10:00:29.647 am ntpd[52]: proto: precision = 1.000 usec
    23/02/2014 10:00:31.058 am com.apple.IconServicesAgent[194]: main Failed to composit image for binding VariantBinding [0x15b] flags: 0x8 binding: FileInfoBinding [0x34b] - extension: jpg, UTI: public.jpeg, fileType: ????.
    23/02/2014 10:00:31.058 am quicklookd[209]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0x803] flags: 0x8 binding: FileInfoBinding [0x703] - extension: jpg, UTI: public.jpeg, fileType: ???? request size:16 scale: 1
    23/02/2014 10:00:31.749 am configd[19]: network changed: v4(en0+:10.0.0.19) v6(en0:2601:b:9400:3fc:bae8:56ff:fe0c:3ac2) DNS! Proxy SMB
    23/02/2014 10:00:32.234 am com.apple.IconServicesAgent[194]: main Failed to composit image for binding VariantBinding [0x54d] flags: 0x8 binding: FileInfoBinding [0x64d] - extension: gif, UTI: com.compuserve.gif, fileType: ????.
    23/02/2014 10:00:32.234 am quicklookd[209]: Warning: Cache image returned by the server has size range covering all valid image sizes. Binding: VariantBinding [0xc03] flags: 0x8 binding: FileInfoBinding [0xb03] - extension: gif, UTI: com.compuserve.gif, fileType: ???? request size:16 scale: 1
    23/02/2014 10:00:33.927 am mds_stores[117]: (Error) SecureStore: Access token 3 changed uid from -1 to 501
    23/02/2014 10:00:33.991 am Console[284]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.
    23/02/2014 10:00:37.693 am apsd[89]: Unrecognized leaf certificate
    23/02/2014 10:00:38.075 am CalendarAgent[206]: Account refresh finished with an error
    com.apple.message.domain: com.apple.calendar.account_refresh
    com.apple.message.signature: signature
    com.apple.message.result: failure
    Sender_Mach_UUID: 1FFEB79A-E424-33F2-825D-A61EBB6A9438
    23/02/2014 10:00:38.076 am CalendarAgent[206]: [com.apple.calendar.store.log.caldav.queue] [Account refresh failed with error: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x7fe67a54b290 {NSUnderlyingError=0x7fe67a6eb8e0 "A server with the specified hostname could not be found.", NSErrorFailingURLStringKey=https://terda12%[email protected]/calendar/dav/terda12%40gmail.com /user///terda12%[email protected]/calendar/dav/terda12%40gmail.com/user/, NSErrorFailingURLKey=https://terda12%[email protected]/calendar/dav/terda12%40gmail.com /user///terda12%[email protected]/calendar/dav/terda12%40gmail.com/user/, AccountName=Calendar, CalDAVErrFromRefresh=YES, NSLocalizedDescription=A server with the specified hostname could not be found.}]
    23/02/2014 10:00:38.080 am CalendarAgent[206]: [com.apple.calendar.store.log.caldav.queue] [Adding [<CalDAVAccountRefreshQueueableOperation: 0x7fe67a44c820; Sequence: 0>] to failed operations.]
    23/02/2014 10:00:41.263 am Spotify Helper EH[290]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:42.380 am Spotify Helper[291]: Internals of CFAllocator not known; out-of-memory failures via CFAllocator will not result in termination. http://crbug.com/45650
    23/02/2014 10:00:44.300 am ntpd[52]: ntpd: time set +0.646077 s
    23/02/2014 10:00:44.327 am com.apple.time[149]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).
    23/02/2014 10:00:44.354 am com.apple.time[149]: Interval maximum value is 946100000 seconds (specified value: 9223372036854775807).
    23/02/2014 10:00:44.933 am Spotify Helper EH[290]: CoreText performance note: Client called CTFontCreateWithName() using name "Times Roman" and got font with PostScript name "Times-Roman". For best performance, only use PostScript names when calling this API.
    23/02/2014 10:00:44.934 am Spotify Helper EH[290]: CoreText performance note: Set a breakpoint on CTFontLog

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • I need a timer function to ping the server every 5 secs??using threads.

    I need a timer function to ping the server every 5 secs??
    using threads...i have to use a thread coz i cant use Timer and Timer Task coz clients r on the JDK1.2 version.I have created a thread which keeps checking th ping msg & any server msg is pings 4 the1st time properly but then it just waits to read the response from server but it doesnt but the server shows that it has send the msgs to client???PLEASE HELP URGENT

    Few things are not clear from your post, like, are you using sockets and if you are, how are u reading writing to them (ur sample code would help)...
    Anyways if you are, are you doing accept on your socket in a while(true) loop or just once... If you do it only once you will get the first ping message but none afterwards if the other side closes and opens new sockets for every send... What I am suggesting is something like the following:
    ss = new ServerSocket(port);
    while(true)
         s = ss.accept();
         is = s.getInputStream();
         os = s.getOutputStream();
         reader = new BufferedReader(new InputStreamReader(is));
         writer = new BufferedWriter(new OutputStreamWriter(os));
         String in = reader.readLine();
            // do something with this string
            s.close();
            // put some check here to break out of this infinite loop
    }// end of While

  • Messagebox that displays a different randum number every 2 secs

    well im having trouble with putting a messagebox that displays a different randum number every 2 secs and closes with a close button. it goes in the print menu option of this simple text editor,you shoud also be able to work in the background while this message box is been displayed.
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.rtf.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    import javax.swing.undo.*;
    import java.util.Timer;
    import java.util.TimerTask;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import java.beans.*;
      -------------------| Simple Text Editor example application using Java 1.3 with Swing |--------------
    public class SimpleTextEditor extends JFrame
            private JTextPane textpane;
            private JMenuBar mb;
            private JFileChooser chooser,picChooser;
            private Hashtable actions;
            private JPopupMenu popup;
            private JMenuItem exit, newDoc, save, open, saveAs,print;
            private About ab;
            private StyledEditorKit edkit;
            private RTFEditorKit rtfkit;
            private DefaultStyledDocument doc;
            private MyDocumentListener doclistener;
           private MyUndoableEditListener undolistener;
             //Useful variables
            private String filename="untitled1.txt",filetype=".txt";
            private File thisfile;
            protected String FileFormats[],FileDescriptions[],PicFileFormats[],PicFileDescriptions[];
            protected boolean DocumentIsUnedited=true, DocumentIsSaved=false;
            public static int SQUARE=0,TRIANGLE=1,CIRCLE=2;
            public String newline="\n";
            protected UndoManager undo ;
            protected UndoAction undoAction;
            protected RedoAction redoAction;
            // These are the actions used in the menus and on the toolbar
            protected Action bold, italic, underline, alignleft, alignright, aligncentre;
            protected Action spellchecker, alignjustify, more, cut, copy, paste, tools[];
            public SimpleTextEditor()
                    super("SimpleTextEditor - untitled1.rtf");
                    this.setLocation(200,200);
                    this.setIconImage(getMyIcon("Icon.gif").getImage());
                    getContentPane().setLayout(new BorderLayout());
                    undo = new UndoManager();
                    //Set up the file formats and file choosers etc
                    FileFormats = new String[]{".rtf",".txt",".java",".bat"};
                    FileDescriptions = new String[]{"Rich Text Format Files","Text Files","Java Source Files","DOS Batch Files"};
                    PicFileFormats = new String[]{".gif",".bmp",".jpg"};
                    PicFileDescriptions = new String[]{"Gif Images","Bitmap Images","JPEG Images"};
                    chooser = new JFileChooser();
                    picChooser = new JFileChooser();
                    picChooser.setAccessory(new ImagePreview(picChooser));
                    javax.swing.filechooser.FileFilter defaultFilter = new SimpleFilter(FileFormats[0],FileDescriptions[0]);
                    javax.swing.filechooser.FileFilter defaultPicFilter = new SimpleFilter(PicFileFormats[0],PicFileDescriptions[0]);
                    for(int i=1;i<FileFormats.length;i++){
                            chooser.addChoosableFileFilter(new SimpleFilter(FileFormats,FileDescriptions[i]));
    for(int i=1;i<PicFileFormats.length;i++){
    picChooser.addChoosableFileFilter(new SimpleFilter(PicFileFormats[i],PicFileDescriptions[i]));
    chooser.setFileFilter(defaultFilter);
    picChooser.setFileFilter(defaultPicFilter);
    File working = new File("C:/Documents");
    if(!working.exists()){
    working= new File("C:/MyDocuments");
    if(!working.exists()) working = new File("C:/");
    if(working.exists()) {
    chooser.setCurrentDirectory(working);
    picChooser.setCurrentDirectory(working);
    // Set up Document object and Editor kits
    doc = new DefaultStyledDocument();
    edkit = new StyledEditorKit();
    rtfkit = new RTFEditorKit();
    // Set up Listener objects
    doclistener= new MyDocumentListener();
    undolistener= new MyUndoableEditListener();
    doc.addDocumentListener(doclistener);
    doc.addUndoableEditListener(undolistener);
    //Set up main GUI content
    textpane=new JTextPane(doc);
    textpane.setPreferredSize(new Dimension(400,400));
    textpane.setMinimumSize(new Dimension(400,400));
    JScrollPane scroller=new JScrollPane(textpane);
    scroller.setPreferredSize(new Dimension(400,400));
    mb=new JMenuBar(); // Create a menu bar
    JMenu File=new JMenu("File");
    JMenu Help=new JMenu("Help");
    //Sort out Actions etc
    createActionTable(textpane);
    createToolbarActions();
    JMenu Style=createStyleMenu();
    undoAction = new UndoAction();
    redoAction = new RedoAction();
    //Create Style, Edit and Format menus + Toolbar
    JMenu Edit=createEditMenu();
    JMenu Format=createFormatMenu();
    JMenu Insert = createInsertMenu();
    JToolBar toolbar = createToolbar();
    getContentPane().add("North",toolbar);
    // set up main menu items with ActionListeners
    newDoc=new JMenuItem("New");
    newDoc.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    newDoc();
    exit=new JMenuItem("Exit");
    exit.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    exit();
    print=new JMenuItem("Print");
    print.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    print();
    save=new JMenuItem("Save");
    save.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    save();
    saveAs=new JMenuItem("Save As...");
    saveAs.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    saveas();
    open=new JMenuItem("Open...");
    open.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    open();
    JMenuItem about=new JMenuItem("About");
    about.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    ab=new About(SimpleTextEditor.this);
    ab.show();
    ab.setLocation(400,300);
    // Create the popup menu
    popup = createEditMenu().getPopupMenu();
    popup.addSeparator();
    popup.add(createStyleMenu());
    popup.add(createFormatMenu());
    textpane.add(popup);
    // set up Help and File menus
    Help.add(about);
    File.add(newDoc);
    File.add(open);
    File.add(print);
    File.add(save);
    File.add(saveAs);
    File.addSeparator();
    File.add(exit);
    // add the menus to the menubar
    mb.add(File);
    mb.add(Edit);
    mb.add(Format);
    mb.add(Style);
    mb.add(Insert);
    mb.add(Help);
    this.setJMenuBar(mb);
    getContentPane().add("Center",scroller);
    // Add mouse Listener to the textpane for popup events
    textpane.addMouseListener(new MouseAdapter(){
    public void mousePressed(MouseEvent e)
    if(e.isPopupTrigger())
    popup.show(textpane, e.getX(), e.getY());
    e.consume();
    public void mouseReleased(MouseEvent e)
    if(e.isPopupTrigger())
    popup.show(textpane, e.getX(), e.getY());
    e.consume();
    //-----------------| Main active methods |------------------
    public void exit()// Main Exit method
    if(DocumentIsUnedited){//Check that document is saved/unedited etc
    dispose();
    setVisible(false);
    System.exit(0);
    else{
    switch(showNotSavedDialog("Exit")){
    case JOptionPane.YES_OPTION: save(); exit(); break;
    case JOptionPane.NO_OPTION: DocumentIsUnedited=true;exit();break;
    case JOptionPane.CANCEL_OPTION: break;
    public void newDoc()//Method to create new documents
    if(DocumentIsUnedited){
    initDoc();
    filename="untitled.txt";
    filetype=".txt";
    resetTitle();
    else
    switch(showNotSavedDialog("New Document")){
    case JOptionPane.YES_OPTION: save(); newDoc(); break;
    case JOptionPane.NO_OPTION: DocumentIsUnedited=true;newDoc();break;
    case JOptionPane.CANCEL_OPTION: break;
    private void initDoc()// Helper method to initialize a new document
    doc = null;
    doc = (DefaultStyledDocument)edkit.createDefaultDocument();
    doc.addDocumentListener(doclistener);
    textpane.setStyledDocument(doc);
    public void print()
    new TimerTestFrame();
    class TimerTestFrame extends JFrame
    Timer timer;
    TimerTestFrame()
    super();
    timer = new Timer(true);
    TimerTask task = new MessageTimer(TimerTestFrame.this);
    timer.schedule(task,2000,2000);
    class MessageTimer extends TimerTask
    Component parent;
    public MessageTimer(Component parent)
    this.parent = parent;
    public void run()
    int randnum = (1 +(int)(Math.random()*10));
    JOptionPane.showMessageDialog(parent,""+randnum,"Timer Message",JOptionPane.INFORMATION_MESSAGE);
    public void saveas()
    int n = chooser.showSaveDialog(this);
    if(n==0){
    filename=chooser.getSelectedFile().getName();
    boolean ext = false;
    setFiletype();
    thisfile = new File(chooser.getCurrentDirectory(),filename);
    DocumentIsSaved=true;
    save();
    resetTitle();
    repaint();
    public void save()// Save method. Used by "Save As..." as well
    if( DocumentIsSaved)
    try
    FileOutputStream out = new FileOutputStream(thisfile);
    if((filetype.equals(".rtf"))||(filetype.equals(".doc"))){
    rtfkit.write(out,doc,0,doc.getLength());
    else edkit.write(out,doc,0,doc.getLength());
    catch(Exception e)
    System.out.println(""+e.getMessage()+"");
    DocumentIsUnedited=true;
    else saveas();
    public void open()// Find a file and read it into the document
    if(DocumentIsUnedited){
    int n = chooser.showOpenDialog(this); // get the outcome of the dialog
    if(n==0){
    File file = chooser.getSelectedFile();
    filename=chooser.getName(file);
    setFiletype();
    resetTitle();
    initDoc();
    try
    FileInputStream in= new FileInputStream(file);
    if(filetype.equals(".rtf")){
    rtfkit.read(in,doc,0);
    edkit.read(in,doc,0);
    catch(Exception e)
    System.out.println(""+e.getMessage()+"");
    thisfile= new File(chooser.getCurrentDirectory(),chooser.getSelectedFile().getName());
    DocumentIsUnedited=true;
    DocumentIsSaved=true;
    resetTitle();
    repaint();
    else
    switch(showNotSavedDialog("Open")){
    case JOptionPane.YES_OPTION: save(); open(); break;
    case JOptionPane.NO_OPTION: DocumentIsUnedited=true; open(); break;
    case JOptionPane.CANCEL_OPTION: break;
    private void setFiletype()// Helper method to get the filetype of saved/opened documents
    filetype=null;
    for(int i=0;i<FileFormats.length;i++){
    if(filename.toLowerCase().endsWith(FileFormats[i])) filetype = FileFormats[i];
    else{
    for(i=0;i<filename.length();i++){
    if(filename.toLowerCase().charAt(i)=='.')
    filetype=filename.substring(i);
    if(filetype==null) filetype=".txt";
    private void resetTitle()
    this.setTitle("SimpleTextEditor - "+filename);
    private ImageIcon getMyIcon(String filename){
    ImageIcon pic = new ImageIcon("Images/"+filename);
    return pic;
    private int showNotSavedDialog(String title)// Helper method to create "Save? Yes/No/Cancel" dialogs
    int n = JOptionPane.showConfirmDialog(this,"The last document has not been saved. \nDo you want to save it first?",
    title,
    JOptionPane.YES_NO_CANCEL_OPTION,
    JOptionPane.QUESTION_MESSAGE);
    return n;
    //-----------------| Listeners and Helper classes |----------------
    protected class MyDocumentListener implements DocumentListener
    public void insertUpdate(DocumentEvent e) {
    SimpleTextEditor.this.DocumentIsUnedited=false;
    public void removeUpdate(DocumentEvent e) {
    SimpleTextEditor.this.DocumentIsUnedited=false;
    public void changedUpdate(DocumentEvent e) {
    SimpleTextEditor.this.DocumentIsUnedited=false;
    protected class MyUndoableEditListener implements UndoableEditListener {
    public void undoableEditHappened(UndoableEditEvent e) {
    //Remember the edit and update the menus.
    undo.addEdit(e.getEdit());
    undoAction.updateUndoState();
    redoAction.updateRedoState();
    //Helper class for FileFilter, allows a description to be assigned to a filetype
    protected class SimpleFilter extends javax.swing.filechooser.FileFilter
    String type,des;
    public SimpleFilter(String type, String des)
    this.des=des;
    this.type=type;
    public boolean accept(File f){
    if(f.isDirectory())return true;
    else{
    if(f.getName().toLowerCase().endsWith(type)) return true;
    else return false;
    public String getDescription(){
    return des;
    //------------| Methods to help create menus and toolbar |--------------
    protected JMenu createStyleMenu()
    JMenu menu = new JMenu("Style");
    menu.add(bold);
    menu.add(italic);
    menu.add(underline);
    menu.addSeparator();
    menu.add(new StyledEditorKit.FontSizeAction("12", 12));
    menu.add(new StyledEditorKit.FontSizeAction("14", 14));
    menu.add(new StyledEditorKit.FontSizeAction("18", 18));
    menu.addSeparator();
    menu.add(new StyledEditorKit.FontFamilyAction("Serif","Serif"));
    menu.add(new StyledEditorKit.FontFamilyAction("SansSerif","SansSerif"));
    menu.addSeparator();
    Action red = new StyledEditorKit.ForegroundAction("Red", new Color(255,0,0));
    red.putValue(Action.SMALL_ICON,getMyIcon("red.gif"));
    menu.add(red);
    Action green = new StyledEditorKit.ForegroundAction("Green", new Color(0,150,0));
    green.putValue(Action.SMALL_ICON,getMyIcon("green.gif"));
    menu.add(green);
    Action blue = new StyledEditorKit.ForegroundAction("Blue", new Color(0,50,150));
    blue.putValue(Action.SMALL_ICON,getMyIcon("blue.gif"));
    menu.add(blue);
    Action black = new StyledEditorKit.ForegroundAction("Black", new Color(0,0,0));
    black.putValue(Action.SMALL_ICON,getMyIcon("black.gif"));
    menu.add(black);
    menu.add(more);
    return menu;
    protected JMenu createEditMenu() {
    JMenu menu = new JMenu("Edit");
    menu.add(undoAction);
    menu.add(redoAction);
    menu.addSeparator();
    menu.add(cut);
    menu.add(copy);
    menu.add(paste);
    menu.addSeparator();
    Action selectall=getActionByName(DefaultEditorKit.selectAllAction);
    selectall.putValue(Action.NAME, "Select All");
    menu.add(selectall);
    return menu;
    protected JMenu createFormatMenu(){
    JMenu menu = new JMenu("Format");
    menu.add(spellchecker);
    menu.add(alignleft);
    menu.add(alignright);
    menu.add(aligncentre);
    menu.add(alignjustify);
    return menu;
    protected JMenu createInsertMenu(){
    JMenu menu = new JMenu("Insert");
    Action insertimage = new InsertImageAction(this);
    menu.add(insertimage);
    Action insertdate = new InsertDateAction();
    menu.add(insertdate);
    Action insertline = new InsertLineAction();
    menu.add(insertline);
    JMenu bullets =new JMenu("Bullet Points");
    bullets.add(new InsertBulletAction(CIRCLE,"Circle"));
    bullets.add(new InsertBulletAction(TRIANGLE,"Triangle"));
    bullets.add(new InsertBulletAction(SQUARE,"Square"));
    menu.add(bullets);
    return menu;
    public JToolBar createToolbar(){
    JToolBar bar= new JToolBar();
    JButton newbutton=new JButton(getMyIcon("new.gif"));
    newbutton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    newDoc();
    bar.add(newbutton);
    JButton savebutton=new JButton(getMyIcon("save.gif"));
    savebutton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    save();
    bar.add(savebutton);
    JButton openbutton=new JButton(getMyIcon("open.gif"));
    openbutton.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e)
    open();
    bar.add(openbutton);
    bar.addSeparator();
    for(int i=0;i<tools.length;i++){
    JButton button=new JButton();
    button.setAction(tools[i]);
    button.setIcon(getMyIcon(tools[i].getValue(Action.NAME)+".gif"));
    button.setText("");
    bar.add(button);
    if((i==2)||(i==6))bar.addSeparator();
    return bar;
    public void createToolbarActions(){
    bold = new StyledEditorKit.BoldAction();
    bold.putValue(Action.NAME, "Bold");
    italic = new StyledEditorKit.ItalicAction();
    italic.putValue(Action.NAME, "Italic");
    underline = new StyledEditorKit.UnderlineAction();
    underline.putValue(Action.NAME, "Underline");
    more = new MoreColorsAction();
    cut = getActionByName(DefaultEditorKit.cutAction);
    cut.putValue(Action.NAME, "Cut");
    copy = getActionByName(DefaultEditorKit.copyAction);
    copy.putValue(Action.NAME, "Copy");
    paste = getActionByName(DefaultEditorKit.pasteAction);
    paste.putValue(Action.NAME, "Paste");
    alignleft = new StyledEditorKit.AlignmentAction("Left Justify",StyleConstants.ALIGN_LEFT);
    alignright = new StyledEditorKit.AlignmentAction("Right Justify",StyleConstants.ALIGN_RIGHT);
    aligncentre = new StyledEditorKit.AlignmentAction("Align Centre",StyleConstants.ALIGN_CENTER);
    alignjustify = new StyledEditorKit.AlignmentAction("Fully Justify",StyleConstants.ALIGN_JUSTIFIED);
    spellchecker = new StyledEditorKit.AlignmentAction("Spell Checker",StyleConstants.ALIGN_JUSTIFIED);
    tools = new Action[]{  cut, copy, paste, bold, italic, underline, more, alignleft, alignright, aligncentre, alignjustify, spellchecker };
    // helper methods to enable menu creators to get their actions by name
    private void createActionTable(JTextComponent textComponent) {
    actions = new Hashtable();
    Action[] actionsArray = textComponent.getActions();
    for (int i = 0; i < actionsArray.length; i++) {
    Action a = actionsArray[i];
    actions.put(a.getValue(Action.NAME), a);
    private Action getActionByName(String name) {
    return (Action)(actions.get(name));
    //----------------| Custom Actions |--------------------
    class InsertImageAction extends AbstractAction {
    protected SimpleTextEditor parent;
    public InsertImageAction(SimpleTextEditor parent){
    super("Image...");
    this.parent=parent;
    public void actionPerformed(ActionEvent e) {
    int n = parent.picChooser.showOpenDialog(parent);
    if(n==0){
    String filename=picChooser.getSelectedFile().getName();
    File file = new File(picChooser.getCurrentDirectory(),filename);
    Icon pic = new ImageIcon(file.getAbsolutePath());
    textpane.insertIcon(pic);
    SimpleTextEditor.this.repaint();
    class InsertDateAction extends AbstractAction {
    public InsertDateAction(){
    super("Date");
    public void actionPerformed(ActionEvent ble) {
    Calendar c= Calendar.getInstance();
    String[] months= new String[]{"01","02","03","04","05","06","07","08","09","10","11","12"};
    textpane.replaceSelection(c.get(c.DAY_OF_MONTH)+"/"+months[c.get(c.MONTH)]+"/"+c.get(c.YEAR));
    class InsertLineAction extends AbstractAction {
    public InsertLineAction(){
    super("Horizontal line");
    public void actionPerformed(ActionEvent e) {
    Icon pic = new ImageIcon("Images/line.gif");
    textpane.insertIcon(pic);
    class InsertBulletAction extends AbstractAction {
    protected int type;
    protected String filenames[] = new String[]{"square.gif","triangle.gif","circle.gif"};
    public InsertBulletAction(int type,String name){
    super(name);
    this.type=type;
    this.putValue(SMALL_ICON,new ImageIcon("Images/"+filenames[type]));
    public void actionPerformed(ActionEvent e) {
    Icon pic = new ImageIcon("Images/"+filenames[type]);
    textpane.insertIcon(pic);
    textpane.replaceSelection(" ");
    class MoreColorsAction extends AbstractAction {
    public MoreColorsAction(){
    super("More Colors");
    public void actionPerformed(ActionEvent e){
    AttributeSet as = textpane.getCharacterAttributes();
    SimpleAttributeSet sas = new SimpleAttributeSet(as);
    Color newColor = JColorChooser.showDialog(
    SimpleTextEditor.this,
    "C

    Here you go guys:
    Peace!
    import javax.swing.*;
    import javax.swing.Timer;
    import javax.swing.border.BevelBorder;
    import javax.swing.text.*;
    import javax.swing.text.rtf.*;
    import javax.swing.event.*;
    import javax.swing.filechooser.*;
    import javax.swing.undo.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    import java.beans.*;
      -------------------| Simple Text Editor example application using Java 1.3 with Swing |--------------
    public class SimpleTextEditor extends JFrame
        private JTextPane textpane;
        private JMenuBar mb;
        private JFileChooser chooser,picChooser;
        private Hashtable actions;
        private JPopupMenu popup;
        private JMenuItem exit, newDoc, save, open, saveAs,print;
        private About ab;
        private StyledEditorKit edkit;
        private RTFEditorKit rtfkit;
        private DefaultStyledDocument doc;
        private MyDocumentListener doclistener;
        private MyUndoableEditListener undolistener;
        //Useful variables
        private String filename = "untitled1.txt",filetype = ".txt";
        private File thisfile;
        protected String FileFormats[],FileDescriptions[],PicFileFormats[],PicFileDescriptions[];
        protected boolean DocumentIsUnedited = true, DocumentIsSaved = false;
        public static int SQUARE = 0,TRIANGLE = 1,CIRCLE = 2;
        public String newline = "\n";
        protected UndoManager undo;
        protected UndoAction undoAction;
        protected RedoAction redoAction;
        // These are the actions used in the menus and on the toolbar
        protected Action bold, italic, underline, alignleft, alignright, aligncentre;
        protected Action spellchecker, alignjustify, more, cut, copy, paste, tools[];
        public SimpleTextEditor()
            super("SimpleTextEditor - untitled1.rtf");
            this.setLocation(200, 200);
            this.setIconImage(getMyIcon("Icon.gif").getImage());
            getContentPane().setLayout(new BorderLayout());
            undo = new UndoManager();
            //Set up the file formats and file choosers etc
            FileFormats = new String[]{".rtf", ".txt", ".java", ".bat"};
            FileDescriptions = new String[]{"Rich Text Format Files", "Text Files", "Java Source Files", "DOS Batch Files"};
            PicFileFormats = new String[]{".gif", ".bmp", ".jpg"};
            PicFileDescriptions = new String[]{"Gif Images", "Bitmap Images", "JPEG Images"};
            chooser = new JFileChooser();
            picChooser = new JFileChooser();
            picChooser.setAccessory(new ImagePreview(picChooser));
            javax.swing.filechooser.FileFilter defaultFilter = new SimpleFilter(FileFormats[0], FileDescriptions[0]);
            javax.swing.filechooser.FileFilter defaultPicFilter = new SimpleFilter(PicFileFormats[0], PicFileDescriptions[0]);
            for (int i = 1; i < FileFormats.length; i++)
                chooser.addChoosableFileFilter(new SimpleFilter(FileFormats, FileDescriptions[i]));
    for (int i = 1; i < PicFileFormats.length; i++)
    picChooser.addChoosableFileFilter(new SimpleFilter(PicFileFormats[i], PicFileDescriptions[i]));
    chooser.setFileFilter(defaultFilter);
    picChooser.setFileFilter(defaultPicFilter);
    File working = new File("C:/Documents");
    if (!working.exists())
    working = new File("C:/MyDocuments");
    if (!working.exists()) working = new File("C:/");
    if (working.exists())
    chooser.setCurrentDirectory(working);
    picChooser.setCurrentDirectory(working);
    // Set up Document object and Editor kits
    doc = new DefaultStyledDocument();
    edkit = new StyledEditorKit();
    rtfkit = new RTFEditorKit();
    // Set up Listener objects
    doclistener = new MyDocumentListener();
    undolistener = new MyUndoableEditListener();
    doc.addDocumentListener(doclistener);
    doc.addUndoableEditListener(undolistener);
    //Set up main GUI content
    textpane = new JTextPane(doc);
    textpane.setPreferredSize(new Dimension(400, 400));
    textpane.setMinimumSize(new Dimension(400, 400));
    JScrollPane scroller = new JScrollPane(textpane);
    scroller.setPreferredSize(new Dimension(400, 400));
    mb = new JMenuBar(); // Create a menu bar
    JMenu File = new JMenu("File");
    JMenu Help = new JMenu("Help");
    //Sort out Actions etc
    createActionTable(textpane);
    createToolbarActions();
    JMenu Style = createStyleMenu();
    undoAction = new UndoAction();
    redoAction = new RedoAction();
    //Create Style, Edit and Format menus + Toolbar
    JMenu Edit = createEditMenu();
    JMenu Format = createFormatMenu();
    JMenu Insert = createInsertMenu();
    JToolBar toolbar = createToolbar();
    getContentPane().add("North", toolbar);
    // set up main menu items with ActionListeners
    newDoc = new JMenuItem("New");
    newDoc.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    newDoc();
    exit = new JMenuItem("Exit");
    exit.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    exit();
    print = new JMenuItem("Print");
    print.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    print();
    save = new JMenuItem("Save");
    save.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    save();
    saveAs = new JMenuItem("Save As...");
    saveAs.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    saveas();
    open = new JMenuItem("Open...");
    open.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    open();
    JMenuItem about = new JMenuItem("About");
    about.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    ab = new About(SimpleTextEditor.this);
    ab.show();
    ab.setLocation(400, 300);
    // Create the popup menu
    popup = createEditMenu().getPopupMenu();
    popup.addSeparator();
    popup.add(createStyleMenu());
    popup.add(createFormatMenu());
    textpane.add(popup);
    // set up Help and File menus
    Help.add(about);
    File.add(newDoc);
    File.add(open);
    File.add(print);
    File.add(save);
    File.add(saveAs);
    File.addSeparator();
    File.add(exit);
    // add the menus to the menubar
    mb.add(File);
    mb.add(Edit);
    mb.add(Format);
    mb.add(Style);
    mb.add(Insert);
    mb.add(Help);
    this.setJMenuBar(mb);
    getContentPane().add("Center", scroller);
    // Add mouse Listener to the textpane for popup events
    textpane.addMouseListener(new MouseAdapter()
    public void mousePressed(MouseEvent e)
    if (e.isPopupTrigger())
    popup.show(textpane, e.getX(), e.getY());
    e.consume();
    public void mouseReleased(MouseEvent e)
    if (e.isPopupTrigger())
    popup.show(textpane, e.getX(), e.getY());
    e.consume();
    //-----------------| Main active methods |------------------
    public void exit()// Main Exit method
    if (DocumentIsUnedited)
    {//Check that document is saved/unedited etc
    dispose();
    setVisible(false);
    System.exit(0);
    else
    switch (showNotSavedDialog("Exit"))
    case JOptionPane.YES_OPTION:
    save();
    exit();
    break;
    case JOptionPane.NO_OPTION:
    DocumentIsUnedited = true;
    exit();
    break;
    case JOptionPane.CANCEL_OPTION:
    break;
    public void newDoc()//Method to create new documents
    if (DocumentIsUnedited)
    initDoc();
    filename = "untitled.txt";
    filetype = ".txt";
    resetTitle();
    else
    switch (showNotSavedDialog("New Document"))
    case JOptionPane.YES_OPTION:
    save();
    newDoc();
    break;
    case JOptionPane.NO_OPTION:
    DocumentIsUnedited = true;
    newDoc();
    break;
    case JOptionPane.CANCEL_OPTION:
    break;
    private void initDoc()// Helper method to initialize a new document
    doc = null;
    doc = (DefaultStyledDocument) edkit.createDefaultDocument();
    doc.addDocumentListener(doclistener);
    textpane.setStyledDocument(doc);
    public void print()
    new TimerTestDialog(this);
    class TimerTestDialog extends JDialog
    TimerTestDialog(Frame parent)
    super(parent);
    setLocationRelativeTo(parent);
    setupDialog();
    setModal(false); // this will allow you to do still stuff with the main frame
    * sorry, using a Timer instead of your original TimerTask - it's simpler
    Timer t = new Timer(2000, ticker);
    t.start();
    private void setupDialog()
    Container c = getContentPane();
    c.setLayout(new BorderLayout());
    c.add(getDisplayPanel(), BorderLayout.CENTER);
    c.add(getButtonPanel(), BorderLayout.SOUTH);
    setSize(300, 150);
    setVisible(true);
    private Component getDisplayPanel()
    label = new JLabel("---", JLabel.CENTER);
    label.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    JPanel backing = new JPanel(new BorderLayout());
    backing.add(label, BorderLayout.NORTH); // this will ensure the label doesn't go all tall
    panel.add(backing, BorderLayout.CENTER);
    return panel;
    private Component getButtonPanel()
    JPanel panel = new JPanel(new BorderLayout());
    panel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    JPanel backing = new JPanel(new BorderLayout());
    JButton closeButton = new JButton("close");
    closeButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    dispose();
    backing.add(closeButton, BorderLayout.NORTH);
    panel.add(backing, BorderLayout.EAST);
    return panel;
    private ActionListener ticker = new ActionListener()
    public void actionPerformed(ActionEvent e)
    label.setText(String.valueOf(getRandomNumber()));
    private int getRandomNumber()
    return r.nextInt(10) + 1; // shift from 0-9 to 1-10
    private JLabel label;
    * NOTE - this is the best way to use random stuff in java. if you use instance members
    * you can sometimes get the same result each time. not really sure how that works but
    * i've seen it happen
    private static Random r = new Random();
    public void saveas()
    int n = chooser.showSaveDialog(this);
    if (n == 0)
    filename = chooser.getSelectedFile().getName();
    boolean ext = false;
    setFiletype();
    thisfile = new File(chooser.getCurrentDirectory(), filename);
    DocumentIsSaved = true;
    save();
    resetTitle();
    repaint();
    public void save()// Save method. Used by "Save As..." as well
    if (DocumentIsSaved)
    try
    FileOutputStream out = new FileOutputStream(thisfile);
    if ((filetype.equals(".rtf")) || (filetype.equals(".doc")))
    rtfkit.write(out, doc, 0, doc.getLength());
    else
    edkit.write(out, doc, 0, doc.getLength());
    catch (Exception e)
    System.out.println("" + e.getMessage() + "");
    DocumentIsUnedited = true;
    else
    saveas();
    public void open()// Find a file and read it into the document
    if (DocumentIsUnedited)
    int n = chooser.showOpenDialog(this); // get the outcome of the dialog
    if (n == 0)
    File file = chooser.getSelectedFile();
    filename = chooser.getName(file);
    setFiletype();
    resetTitle();
    initDoc();
    try
    FileInputStream in = new FileInputStream(file);
    if (filetype.equals(".rtf"))
    rtfkit.read(in, doc, 0);
    edkit.read(in, doc, 0);
    catch (Exception e)
    System.out.println("" + e.getMessage() + "");
    thisfile = new File(chooser.getCurrentDirectory(), chooser.getSelectedFile().getName());
    DocumentIsUnedited = true;
    DocumentIsSaved = true;
    resetTitle();
    repaint();
    else
    switch (showNotSavedDialog("Open"))
    case JOptionPane.YES_OPTION:
    save();
    open();
    break;
    case JOptionPane.NO_OPTION:
    DocumentIsUnedited = true;
    open();
    break;
    case JOptionPane.CANCEL_OPTION:
    break;
    private void setFiletype()// Helper method to get the filetype of saved/opened documents
    filetype = null;
    for (int i = 0; i < FileFormats.length; i++)
    if (filename.toLowerCase().endsWith(FileFormats[i]))
    filetype = FileFormats[i];
    else
    for (i = 0; i < filename.length(); i++)
    if (filename.toLowerCase().charAt(i) == '.')
    filetype = filename.substring(i);
    if (filetype == null) filetype = ".txt";
    private void resetTitle()
    this.setTitle("SimpleTextEditor - " + filename);
    private ImageIcon getMyIcon(String filename)
    ImageIcon pic = new ImageIcon("Images/" + filename);
    return pic;
    private int showNotSavedDialog(String title)// Helper method to create "Save? Yes/No/Cancel" dialogs
    int n = JOptionPane.showConfirmDialog(this, "The last document has not been saved. \nDo you want to save it first?",
    title,
    JOptionPane.YES_NO_CANCEL_OPTION,
    JOptionPane.QUESTION_MESSAGE);
    return n;
    //-----------------| Listeners and Helper classes |----------------
    protected class MyDocumentListener implements DocumentListener
    public void insertUpdate(DocumentEvent e)
    SimpleTextEditor.this.DocumentIsUnedited = false;
    public void removeUpdate(DocumentEvent e)
    SimpleTextEditor.this.DocumentIsUnedited = false;
    public void changedUpdate(DocumentEvent e)
    SimpleTextEditor.this.DocumentIsUnedited = false;
    protected class MyUndoableEditListener implements UndoableEditListener
    public void undoableEditHappened(UndoableEditEvent e)
    //Remember the edit and update the menus.
    undo.addEdit(e.getEdit());
    undoAction.updateUndoState();
    redoAction.updateRedoState();
    //Helper class for FileFilter, allows a description to be assigned to a filetype
    protected class SimpleFilter extends javax.swing.filechooser.FileFilter
    String type,des;
    public SimpleFilter(String type, String des)
    this.des = des;
    this.type = type;
    public boolean accept(File f)
    if (f.isDirectory())
    return true;
    else
    if (f.getName().toLowerCase().endsWith(type))
    return true;
    else
    return false;
    public String getDescription()
    return des;
    //------------| Methods to help create menus and toolbar |--------------
    protected JMenu createStyleMenu()
    JMenu menu = new JMenu("Style");
    menu.add(bold);
    menu.add(italic);
    menu.add(underline);
    menu.addSeparator();
    menu.add(new StyledEditorKit.FontSizeAction("12", 12));
    menu.add(new StyledEditorKit.FontSizeAction("14", 14));
    menu.add(new StyledEditorKit.FontSizeAction("18", 18));
    menu.addSeparator();
    menu.add(new StyledEditorKit.FontFamilyAction("Serif", "Serif"));
    menu.add(new StyledEditorKit.FontFamilyAction("SansSerif", "SansSerif"));
    menu.addSeparator();
    Action red = new StyledEditorKit.ForegroundAction("Red", new Color(255, 0, 0));
    red.putValue(Action.SMALL_ICON, getMyIcon("red.gif"));
    menu.add(red);
    Action green = new StyledEditorKit.ForegroundAction("Green", new Color(0, 150, 0));
    green.putValue(Action.SMALL_ICON, getMyIcon("green.gif"));
    menu.add(green);
    Action blue = new StyledEditorKit.ForegroundAction("Blue", new Color(0, 50, 150));
    blue.putValue(Action.SMALL_ICON, getMyIcon("blue.gif"));
    menu.add(blue);
    Action black = new StyledEditorKit.ForegroundAction("Black", new Color(0, 0, 0));
    black.putValue(Action.SMALL_ICON, getMyIcon("black.gif"));
    menu.add(black);
    menu.add(more);
    return menu;
    protected JMenu createEditMenu()
    JMenu menu = new JMenu("Edit");
    menu.add(undoAction);
    menu.add(redoAction);
    menu.addSeparator();
    menu.add(cut);
    menu.add(copy);
    menu.add(paste);
    menu.addSeparator();
    Action selectall = getActionByName(DefaultEditorKit.selectAllAction);
    selectall.putValue(Action.NAME, "Select All");
    menu.add(selectall);
    return menu;
    protected JMenu createFormatMenu()
    JMenu menu = new JMenu("Format");
    menu.add(spellchecker);
    menu.add(alignleft);
    menu.add(alignright);
    menu.add(aligncentre);
    menu.add(alignjustify);
    return menu;
    protected JMenu createInsertMenu()
    JMenu menu = new JMenu("Insert");
    Action insertimage = new InsertImageAction(this);
    menu.add(insertimage);
    Action insertdate = new InsertDateAction();
    menu.add(insertdate);
    Action insertline = new InsertLineAction();
    menu.add(insertline);
    JMenu bullets = new JMenu("Bullet Points");
    bullets.add(new InsertBulletAction(CIRCLE, "Circle"));
    bullets.add(new InsertBulletAction(TRIANGLE, "Triangle"));
    bullets.add(new InsertBulletAction(SQUARE, "Square"));
    menu.add(bullets);
    return menu;
    public JToolBar createToolbar()
    JToolBar bar = new JToolBar();
    JButton newbutton = new JButton(getMyIcon("new.gif"));
    newbutton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    newDoc();
    bar.add(newbutton);
    JButton savebutton = new JButton(getMyIcon("save.gif"));
    savebutton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    save();
    bar.add(savebutton);
    JButton openbutton = new JButton(getMyIcon("open.gif"));
    openbutton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    open();
    bar.add(openbutton);
    bar.addSeparator();
    for (int i = 0; i < tools.length; i++)
    JButton button = new JButton();
    button.setAction(tools[i]);
    button.setIcon(getMyIcon(tools[i].getValue(Action.NAME) + ".gif"));
    button.setText("");
    bar.add(button);
    if ((i == 2) || (i == 6)) bar.addSeparator();
    return bar;
    public void createToolbarActions()
    bold = new StyledEditorKit.BoldAction();
    bold.putValue(Action.NAME, "Bold");
    italic = new StyledEditorKit.ItalicAction();
    italic.putValue(Action.NAME, "Italic");
    underline = new StyledEditorKit.UnderlineAction();
    underline.putValue(Action.NAME, "Underline");
    more = new MoreColorsAction();
    cut = getActionByName(DefaultEditorKit.cutAction);
    cut.putValue(Action.NAME, "Cut");
    copy = getActionByName(DefaultEditorKit.copyAction);
    copy.putValue(Action.NAME, "Copy");
    paste = getActionByName(DefaultEditorKit.pasteAction);
    paste.putValue(Action.NAME, "Paste");
    alignleft = new StyledEditorKit.AlignmentAction("Left Justify", StyleConstants.ALIGN_LEFT);
    alignright = new StyledEditorKit.AlignmentAction("Right Justify", StyleConstants.ALIGN_RIGHT);
    aligncentre = new StyledEditorKit.AlignmentAction("Align Centre", StyleConstants.ALIGN_CENTER);
    alignjustify = new StyledEditorKit.AlignmentAction("Fully Justify", StyleConstants.ALIGN_JUSTIFIED);
    spellchecker = new StyledEditorKit.AlignmentAction("Spell Checker", StyleConstants.ALIGN_JUSTIFIED);
    tools = new Action[]{cut, copy, paste, bold, italic, underline, more, alignleft, alignright, aligncentre, alignjustify, spellchecker};
    // helper methods to enable menu creators to get their actions by name
    private void createActionTable(JTextComponent textComponent)
    actions = new Hashtable();
    Action[] actionsArray = textComponent.getActions();
    for (int i = 0; i < actionsArray.length; i++)
    Action a = actionsArray[i];
    actions.put(a.getValue(Action.NAME), a);
    private Action getActionByName(String name)
    return (Action) (actions.get(name));
    //----------------| Custom Actions |--------------------
    class InsertImageAction extends AbstractAction
    protected SimpleTextEditor parent;
    public InsertImageAction(SimpleTextEditor parent)
    super("Image...");
    this.parent = parent;
    public void actionPerformed(ActionEvent e)
    int n = parent.picChooser.showOpenDialog(parent);
    if (n == 0)
    String filename = picChooser.getSelectedFile().getName();
    File file = new File(picChooser.getCurrentDirectory(), filename);
    Icon pic = new ImageIcon(file.getAbsolutePath());
    textpane.insertIcon(pic);
    SimpleTextEditor.this.repaint();
    class InsertDateAction extends AbstractAction
    public InsertDateAction()
    super("Date");
    public void actionPerformed(ActionEvent ble)
    Calendar c = Calendar.getInstance();
    String[] months = new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"};
    textpane.replaceSelection(c.get(c.DAY_OF_MONTH) + "/" + months[c.get(c.MONTH)] + "/" + c.get(c.YEAR));
    class InsertLineAction extends AbstractAction
    public InsertLineAction()
    super("Horizontal line");
    public void actionPerformed(ActionEvent e)
    Icon pic = new ImageIcon("Images/line.gif");
    textpane.insertIcon(pic);
    class InsertBulletAction extends AbstractAction
    protected int type;
    protected String filenames[] = new String[]{"square.gif", "triangle.gif", "circle.gif"};
    public InsertBulletAction(int type, String name)
    super(name);
    this.type = type;
    this.putValue(SMALL_ICON, new ImageIcon("Images/" + filenames[type]));
    public void actionPerformed(ActionEvent e)
    Icon pic = new ImageIcon("Images/" + filenames[type]);
    textpane.insertIcon(pic);
    textpane.replaceSelection(" ");
    class MoreColorsAction extends AbstractAction
    public MoreColorsAction()
    super("More Colors");
    public void actionPerformed(ActionEvent e)
    AttributeSet as = textpane.getCharacterAttributes();
    SimpleAttributeSet sas = new SimpleAttributeSet(as);
    Color newColor = JColorChooser.showDialog(
    SimpleTextEditor.this,
    "Choose Text Color",
    doc.getForeground(as));
    if (newColor != null)
    StyleConstants.setForeground(sas, newColor);
    textpane.setCharacterAttributes(sas, true);
    SimpleTextEditor.this.repaint();
    class UndoAction extends AbstractAction
    public UndoAction()
    super("Undo");
    setEnabled(false);
    public void actionPerformed(ActionEvent e)
    try
    undo.undo();
    catch (CannotUndoException ex)
    System.out.println("Unable to undo: " + ex);
    ex.printStackTrace();
    updateUndoState();
    redoAction.updateRedoState();
    protected void updateUndoState()
    if (undo.canUndo())
    setEnabled(true);
    putValue(Action.NAME, undo.getUndoPresentationName());
    else
    setEnabled(false);
    putValue(Action.NAME, "Undo");
    class RedoAction extends AbstractAction
    public RedoAction()
    super("Redo");
    setEnabled(false);
    public void actionPerformed(ActionEvent e)
    try
    undo.redo();
    catch (CannotRedoException ex)
    System.out.println("Unable to redo: " + ex);
    ex.printStackTrace();
    updateRedoState();
    undoAction.updateUndoState();
    protected void updateRedoState()
    if (undo.canRedo())
    setEnabled(true);
    putValue(Action.NAME, undo.getRedoPresentationName());
    else
    setEnabled(false);
    putValue(Action.NAME, "Redo");
    //-------------| Very nice Image Previewer 'borrowed' from Sun's Java Tutorial
    class ImagePreview extends JComponent implements PropertyChangeListener
    ImageIcon thumbnail = null;
    File file = null;
    public ImagePreview(JFileChooser fc)
    setPreferredSize(new Dimension(100, 50));
    fc.addPropertyChangeListener(this);
    public void loadImage()
    if (file == null)
    return;
    ImageIcon tmpIcon = new ImageIcon(file.getPath());
    if (tmpIcon.getIconWidth() > 90)
    thumbnail = new ImageIcon(tmpIcon.getImage().getScaledInstance(90, -1,
    Image.SCALE_DEFAULT));
    else
    thumbnail = tmpIcon;

  • About every 30 sec im getting a lag in firefox,any ideas why?Useing the newest version.

    about every 30 sec or so my mouse freezes along with the page im viewing.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Get every 10 sec a int.value and need to take the sum of the last 18 values

    Hi,
    i get every 10 sec a int.value and need to take the sum of the last 18 values (3 minutes).
    the programm should work permanently.
    I tried with a 1d-array but didn´t get a result. Could anyone help me?
    Best regards
    kasche

    Use the example in the posted link, then add another shift register for your sum of all elements. Dont add all the elements every time, add them to a running total when they come in. You will need to evaluate how big this number is going to get, however, and decide if you should use an I64 for your running total of all elements. Even this will overflow eventually. 
    So your code would look like that posted by GerdW in the above link, then add a shift register with a starting value of 0. Then add your input value to the value comming from this shift register and send the output to the shift register's output terminal. This creates your running total of all values. The code by GerdW provides your "last 18 elements" total in a very efficient manner, just change the 15 to an 18.
    I have attached a sample bit of code to make it clear. I saved it in LV 8.0 so more people can open it.
    CyberTazer
    Software Systems Engineer
    Attachments:
    Running 18 total.vi ‏11 KB

  • Help! Music stops every 2 sec...

    Hi,
    I have a macbook and a netgear modem. I managed to add the airport express to the network, but i still have two pbs:
    1. music stops every two secs, and then starts again. looks like their is some saturation... doesnt do it when directly linked (wireless) to the airport.
    2. for the airport to be recognized, all wap and wep must be unabled... not convenient..
    I tried everything, i am stuck!!!
    ced

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • NEW09 imac External Monitor causes mouse to freeze every 4 sec for half sec

    Would love some help
    Every time I connect my external monitor my mouse will stick every 4 sec for less than a half sec (not exact but it it's doing it in a repeating pattern).. If I unplug it it stops and when I plug it back in in starts again.
    4 day old imac 10.5.7 fully updated 2009 CTO Ati 4850 4gigs ram 1tb storage.
    I tested all of my peripherals on 3 other mac's including new 8 core and mini and it works just fine (even when I connect the DELL monitor.
    Also, tried to do a mirror instead of extended desktop and the problem persists
    peripherals include Intouse3 Wacom with latest driver (I thought that was the issue so I tried older drivers and uninstalled them). Mighty mouse USB and keyboard w numeric keypad
    External monitor is a new dell "24 1920 1080 monitor
    Thanks it would be awesome if I didn't have to lug this thing down to Gen bar

    Did you do the usual general trouble-shooting?
    Run Disk Utility and use the +Repair Disk Permissions+ on the startup volume.
    When you restart, use the reset PRAM procedure.
    http://support.apple.com/kb/HT1379
    If that does not help, try creating a new admin user account in System Preferences Accounts pane
    http://docs.info.apple.com/article.html?path=Mac/10.5/en/8235.html
    Log out and log in to the new account. Does this same problem occur in the new account? If not, you have narrowed down the cause to something in your normal account. It could be some corrupted user preference setting, or some background process (perhaps something third party) that runs when you are logged into your normal account.
    If it does occur in the new account too, restart using the Mac OS X installation disc. Insert the disc and restart with the C key held down to force a restart from the optical drive. When it gets to the Installer's first screen, don't go any further, but note if this problem still occurs (when you are booted from a different system).

  • Skype is not working properly on my ipad air it is getting disconnected in every 45 sec

    Skype is not working properly on my ipad air it is getting disconnected in every 45 sec
    Iup graded the OS from 7 to 7.1 still the problem remain same Please help me to trouble shoot

    Trouble shoot your wifi connection.  If wifi is slow to buffer videos it will also have a problem with video chats.

  • HT4623 i pressed update on my iphone4 and now the apple icon just comes on and off every 10 secs and i cant turn on my phone. please help me..

    i pressed update on my iphone4 and now the apple icon just comes on and off every 10 secs and i cant turn on my phone. please help me..

    Hello dagobertofromelsalvador,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Unable to update or restore
    http://support.apple.com/kb/HT1808
    Best of luck,
    Mario

Maybe you are looking for