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 ). 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.


Synology Not Able To Upload File

Had this problem where Synology Diskstation did not allow to upload a file from the File Station. When pressing the upload button nothing happened. Same in all major browsers. It turned out Java needed to be updated and it apparently wasn’t allowed to run the upload procedure before the update was applied.

So make sure you have the latest version of Java:


Tagged with:

Xcode UITableView Cells Are Not Transparent Anymore

The UITableView has change in iOS 7, the transparent is turned off, well the cell’s background has a color (white) now. So the background is not visible anymore, resulting in an unwanted tableview look.

To fix this set the cell’s background to clearColor in the cellForRowAtIndexPath

– (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath


cell.backgroundColor = [UIColor clearColor];

// Set the selected- and backgroundview

// cell.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”Up.png”]];

//cell.selectedBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”Down.png”]];


This is the fix for iOS 7 and will clear the backgroundcolor.

Tagged with: ,

iOS 7 Navigation Bar Appear Over The Views

A lot of elements has changed in iOS7, they have introduced new properties that lets you adjust the layout behavior as in previous versions of iOS. The Navigation Bar appears over the views now because a default setting has changed, to address this issue use this line in the viewDidLoad()

self.edgesForExtendedLayout = UIRectEdgeNone;

This will automatically account for the extra space the navigation bar takes up.

Tagged with: ,

Windows 8.1 Go To The Desktop Instead of Start

In Windows 8.1 you can change the default launch screen, so you don’t have to start in the (Metro) Modern UI Start Screen anymore. Start your Windows 8.1, login and go to the desktop, rightclick on the Task Bar (The big blue line) and select Properties. It’ll open the “Taskbar and Navigation properties”, select the Navigation menu.





Enable the “When I sign in or close apps on a screen, go to the desktop instead of Start” and press OK.

Tagged with: , ,

Windows Phone Developement No Emulator

Visual Studio didn’t have the option to select the Windows Phone emulator, this happened after doing a repair of the Windows Phone SDK 8.0 – ENU. It only had the “Attach…” a process to it. The issue here was that the hyper-V wasn’t enable/installed.

By right clicking your windows phone project try to deploy the following message was displayed:



Either open up the Windows Features by clicking “Turn on Hyper-V” or from Control Panel -> Programs -> Programs and Features -> “Turn Windows features on or off” from the left (blue) menu. Enable Hyper-V and press OK. It will need a restart, after the reboot the emulator is in the dropdown menu.

Tagged with: ,

Graphics Error Click To Retry Creating D3d Device

Trying to start Diablo 3 gave this error:

“graphics error click to retry creating d3d device”

Now, there have been several options and solutions depending on what causes the error.

Have a look here for the varies solutions:

In this case changing resolution, DisplayModeWindowMode or other options in D3Prefs.txt didn’t work. What worked was: Right click on Diablo III icon > Properties > Advanced > Compatibility > Change Compatibility mode to Windows XP (Service Pack 3)

Tagged with: ,

Android studio 0.2.6 Default Activity Not Found

Updated Android Studio to 0.2.6 you can run into this error:

“Error: Default activity not found”, almost every line was red and some other irrelevant error. Nothing was changed in the project, only did the update from 0.2.5 to 0.2.6.

Do the following to fix the problem:

Build -> Rebuild Project and then restart Android Studio.


Thanks to #1 mike…

Source: Issue 59435 at

Tagged with: ,

Android Studio 0.1.6 Cannot Find Symbol location Class R

After updating Android Studio 0.1.6 it sometimes can’t find R and you have to rebuild your project.

java /*.java : cannot find symbol location : class com.*.R

A workaround: Module project settings -> Dependencies -> move one of the item up or down -> OK, it’ll regenerate the

Another temporary wordaround: Turning off Preferences -> Compiler -> Use External Build


Google is aware of the problem, the bug report is here:


Tagged with: , ,