unexpected error exception from hresult 0x81030137

While running Windows Phone 8.1 on simulator got this error when changing configuration:

unexpected error exception from hresult 0x81030137

Fixed it by removing the app on the simulator and ran it again from visual studio. To remove hold down the lauch icon on the mobile, then you’ll get a menu to uninstall it.

Tagged with:

How to unsubscribe Apple Music

To unsubscribe from Apple Music do the following:

  1. Open Apple Music app on your iphone/ipad
  2. Hit the account icon in the top left corner
  3. Choose “View Apple ID”
  4. Choose “Manage” under subscriptions
  5. Click the switch to “Off” under auto renewal


Tagged with: ,

Mac No Display On Targus DisplayLink

Updated to Yosemite, now on 10.10.1 and the external display disappeared. It’s running through a targus dockingstation displaylink.

There is multiple post about the issue on dipslayLink forum, some users got it to work: http://www.displaylink.org/forum/forumdisplay.php?f=30/

Tried both running the lastest DisplayLink 2.2 and the 2.3Beta, none of them work for MacBook Air 2013. Ended trying installing an old release 2.1 and this apparently work, even though it’s stated that it works up until 10.9 Maverick. But not concerned about it, you can download the drivers from here: http://displaylink.com/support/mac_downloads.php


Tagged with: , ,

Mac Disable the Dock Jumping Bouncing

Let’s face it, the jumping/bouncing of an icon is annoying. Open the terminal “Applications -> Utilities -> Terminal” and enter the following:

defaults write com.apple.dock no-bouncing -bool TRUE && killall Dock

Stop iPhoto From Automatically Opening

iPhoto automatically opens up when connecting your iPhone og iPad. The issue is that it’s not iPhoto itself but “Image Capture” that opens it up.

Open Image Capture. Locate devices and click on button in the bottom left, icon with an arrow inside a box. Select “Connecting this iPhone opens: ” select No application.

Reset Mac Failed

Was going to hard reset a MacBook Air from 2010, the issue could probably happen on all Mac though. This is what was done:

So by holding down the alt-key (option-key) and the powerbutton while the mac is shut down you’ll get into a recovery state for both resetting and using time travel. In this case I erased the main hdd and selected reinstall OS X. By continuing it says this: “To download and restore os x your computer’s eligibility will be verified with apple”.

This gave the following error: “An error occurred while preparing the installation. try running this application again”


The issue was the date. Apparently if the date is obscured Apple will not approve. Open up the terminal, it can be accessed from from the Utility menu on top while in the recovery mode.

Type in “date”, this will print out the date and time, if this isn’t correct, hurray! You can fix this.

To change the date and time, type in “date 201410081224”. The command parameters depends on your date format for you machine. So the order might be different for you. But something close to “”date” year month date hour min”. If you’re still total lost type “man date” and take a look at the examples further down the manual page.

Thank to “Rcd_” from forum: https://discussions.apple.com/message/25282853 for the date solution.

If the date thing wasn’t your issues take a look at the following which might case your error:

Try Computers that can be upgraded to use OS X Internet Recovery: http://support.apple.com/kb/HT4904

OS X: About OS X Recovery: http://support.apple.com/kb/HT4718

Tagged with: ,

OS X Yosemite Prevent Fullscreen From Zoom Button

Apple has changed the functionality of the zoom button for every window in OS X Yosemite, the third and green button. It’s not a zoom button anymore (nor a maximize  as in MS Windows), it is now a fullscreen. Which at first (and second time) is annoying and confusing. There doesn’t seem to be a way to permanently change this back to a just doing the zoom as previous. But you can change it temporarily each time by hitting Alt/Option. This will change the button’s functionality to zoom. Visually it’ll change from fullscreen icon Screen Shot 2014-09-17 at 10.27.53 (two arrows/squares) to the zoom icon Screen Shot 2014-09-17 at 10.28.16 (plus icon).


Xcode UIToolbar Set Height Is Locked

The object in Xcode: UIToolbar is locked when using the Interface Builder at 44 px tall. You can easily change this programmably by using setFrame

[myToolbar setFrame:CGRectMake(0,50,320,30)];

However you are able to do this in the Interface Builder as well by creating a constraints for the UIToolbar. Select the toolbar element and choose Editor > Pin > Height. You can now select the constraint and change the height to e.g. 30 px.

No Sound After Sleep On Mac

This problem started occurring around 10.9.0, might have been in earlier version too, but it still exist now in 10.9.2. The sound disappear on the mac after you wake it from sleep mode, but it’s not consistent, there can go days without it happening. There doesn’t seem to be a specific time interval it needs to be in sleep mode, it can occurred with and without headphones or other external audio plugged in. A lot of people has this problem and posted several topics about it on Apple’s forum. There isn’t any official fix for this problem, but there is a workaround by resetting the audio. This solution has been extended a bit so you only need to call one command after setting it up. We create a file which reset the audio, add an alias to .bashprofile which will call the file.

1. Open a terminal. Run the following command which will create a file and open it (Note: The ~ character means your home folder e.g /Users/john)

touch ~/resetsound && open ~/resetsound

2. Paste the following which will to the resetting of the audio, by unloading and loading

 sudo kextunload /System/Library/Extensions/AppleHDA.kext
 sudo kextload /System/Library/Extensions/AppleHDA.kext
 sudo killall coreaudiod

3. Save and close the file. Back in the terminal we open up .bash_profile to create the alias, which is a shortcut command

open ~/.bash_profile

4. Append the following line to the file. It will make the resetsound file runable and then run it

alias rezsound='chmod +x ~/resetsound && ~/resetsound'

5. Save and close the file. Reload the .bash_profile so you can call your new command from anywhere

source ~/.bash_profile

6. Now you can reset the sound by calling “rezsound” from anywhere in the termimal


When ever the mac comes back from sleep and there is no sound, you can now call rezsound from the terminal and it will reset the sound and it will come back to life.

Tagged with: , ,

Running Windows Phone 8 emulator on MacBook Air

The setup: MacBook Air mid-2013, 4gb ram. Running Windows 8.1 in Parallels Desktop 9 and Visual Studio Premium 2013 with Windows Phone 8 plugin. Enabled the Hyper-V in Windows Features. When running the Windows Phone 8 emulator the following error message came:

Windows Phone Emulator
The Windows Phone Emulator wasn’t able to ensure the virtual machine was running:

Something happened while starting a virtual machine: ‘Emulator WVGA 512MB.user’ could not initialize. (Virtual machine ID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

The processor topology specified for the virtual machine cannot be supported by this host. For instance, this can happen when the virtual processor or socket count for the virtual machine exceeds the logical processor or socket count for the host.

This was due to number of virtual processor, even though Parallels recommends only using 1cpu since using more is unstable (unsure if the condition has change in Parallels 9, the source was for Parallels 8 http://kb.parallels.com/en/115211 ). Changing the numbers of cpu to 2 still ran Windows 8.1 fine.

Next up: Memory:

Windows Phone Emulator
The Windows Phone Emulator wasn’t able to ensure the virtual machine was running:

Something happened while starting a virtual machine: ‘Emulator WVGA 512MB.user’ could not initialize. (Virtual machine ID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

Not enough memory in the system to start the virtual machine Emulator WVGA 512MB.user with ram size 512 megabytes. (Virtual machine ID XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

This was due to allocated memory was only set to 1gb. The recommended size is between 512mb – 1524mb, but 1524 wasn’t enough. Setting the memory to 2048mb will prompt you with “are you sure?”. 2gb ram made it work on the MacBook Air virtual machine with Windows 8.1, the Windows Phone 8 emulator will start and run the project now.