Sunday, September 3, 2017

Mac OS X Yosemite and laters hurt my eyes

I had been using MacBook Pro 13'' late 2011 for a several years by staring at the screen for all day without any problems. One day, I upgraded from OSX Lion 10.7 to OSX Yosemite 10.10 and then I got headache and eye strain after staring at the screen for about 15 minutes. When I downgraded it back to OS X Lion, the problem was gone. Obviously, the OS X version is the culprit. I then tried OSX v10.11 and macOS Sierra v10.12, and I got the same problem. After that, I bought a MacBook Air 11'' mid 2013 and I experienced the same.

At first, I thought it was because of the new UI design was too bright (not clear) and the font did not look clear so I tried to calibrate the display to make it darker and increase contrast in Accessibility. Everything was better. It was clearer and easier to see. However, the problem still existed. I even copied the Display profile (*.icc files) from OS X Lion and used it on those new OSXs but no luck.

I gave up and sticked to OS X Mavericks for a while. Note that OS X Mavericks and priors are fine. In the beginning of September 2017, I started to learn Swift 4. As Swift 4 is compatible only with OS X 10.10 and laters, I tried to make research on this problem again. I went through several forums and someone said she had the same problem but her eyes seemed to be better when she changed the Display profile to  "sRGB IEC61966-2.1". She said she couldn't see the difference when switching to that profile, but she felt better with switching to that profile. I tried it too but it didn't work. 

After that, I tried the Apple RGB profile, which I copied from Windows 8 I installed on my MacBook Pro 13'', and my eye condition seemed to be 90% better. No pain in the eyes anymore. I could star at the screen for hours. Note that the other display profiles from Windows 8 didn't solve my problem. However, I still felt a little bit fatigue and got a little bit headache though. 

To improve the fatigue eye condition, I then changed the Color Temperature in Night Shift setting to warmer may be at 40%. The headache issue resulted from small system font size. I increased it by decreasing the screen resolution from 1366x768 to 1280x720.

Overall, switching the Display profile, increasing the Color Temperature, and increasing system font size did improve my eye condition about 90% after I've tested it for a few hours. After using it for a few days, I feel my condition has 99% improved. I think my eyes is getting used to it.

Monday, August 21, 2017

Main.storyboard: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.

I'm using Xcode 6.1 on Mac OS X Mavericks v10.9.5. The warning appeared when I have more than one view controllers in my story board.

To remove the warning, I set the Storyboard ID (in the Identity Inspector) for all the view controllers, which are not root view controller. The root view controller is the one with the Is Initial View Controller property checked (in Attributes Inspector).

The storyboard ID identifies the view controller within a storyboard. Storyboard ID is used when you want to programmatically access a view controller for some reasons such as switching to another view.

Got black screen when starting simulator

I'm using Xcode v6.1 on Mac OS X Mavericks v10.9.5. I'm new to iOS so i'm developing a simple app for learning. It's using two frameworks such as UI Kit and Foundation. When running my app in simulator, sometimes it worked but some other times i just showed black screen as shown in the image below.


As you can see on the title bar of the simulator, the app was built and run on iPhone 4s. Then I changed the destination device to iPhone 5 or newer, it worked. I don't know why but perhaps my application is using some classes or libraries which are not supported by iPhone 4s.

To change the running device, click on Product menu then Destination and select iPhone 5. After that, clean the project (command+shift+K), and build and run (command+R) it again.


Saturday, June 24, 2017

Can't download XCode using iGetter download manager

I can download XCode from the website https://developer.apple.com but we have to login first. It worked fine on my Chrome browser but not in iGetter. I copied the download URL from Chrome and used it in iGetter but when I clicked the Start button to download, iGetter downloaded index.html file instead.

The culprit is I'm using 3 users or 3 different sessions in Chrome browser. When you click the button to add a URL to download in iGetter, iGetter will use the cookie from the default browser. My default browser is Chrome so it should had worked. But since I was running 3 sessions or users in Chrome, iGetter didn't know which session of Chrome it should import the cookie from.

I fixed it by changing browser to Firefox because I had only one session or profile in Firefox. I logged into the Apple developer web site and downloaded the XCode then copied the download URL from Firefox and pasted it in iGetter. I then configured iGetter to get the cookie from Firefox instead. I configured it in the New URL dialogue box as shown in the image below.







Thursday, April 27, 2017

Chrome prevent computer from sleep on Windows 8


1). Open Command Prompt as Administrator and run the following command:
C:\Windows\system32>powercfg /requests
DISPLAY:
None.
SYSTEM:
[DRIVER] Cirrus Logic CS4206B (AB 28) (HDAUDIO\FUNC_01&VEN_1013&DEV_4206&SUBSYS_
106B1C00&REV_1003\4&6062198&0&0001)
An audio stream is currently in use.
AWAYMODE:
None.
EXECUTION:
[PROCESS] \Device\HarddiskVolume3\Program Files (x86)\Google\Chrome\Application\
chrome.exe
WebRTC has active PeerConnections
PERFBOOST:
None.
2). Override Chrome Power Request
powercfg /requestsoverride PROCESS chrome.exe AWAYMODE DISPLAY SYSTEM

To remove the override for Chrome,
powercfg /requestsoverride PROCESS chrome.exe

To check the current list of power request overrides,
powercfg /requestsoverride



Reference


Tuesday, January 24, 2017

Can't delete a song from iPhone

I'm using iPhone 6 and iTunes 12.5.4. The problem is the song I deleted from iPhone came back when I clicked on Sync button in iTunes.

The correct way to delete it is:
- (Do connect your device to your machine) Open iTunes
- Select Musics from the combobox at the top left corner if it's not selected by default
- Select Library tab of the right pane if it's not selected by default and choose Songs under the Library section of the left pane
- Select the song you want to delete and press Delete key
- Connect your device
- Click on Summary sub menu on the left and click Sync button

Monday, January 16, 2017

No Sound on Windows 8 on Macbook Pro 13'' Late 2011

I'm using Macbook Pro 13'' Late 2011 and my CD ROM drive is broken so i installed Windows 8 using USB drive instead.

The bootable USB drive created by Boot Camp Assistant didn't work. When Boot Camp Assistant restart the machine, the machine did boot from the USB but then i got a black screen with the message that "No bootable medium found....". Note that this way worked on my friend's Macbook Pro 13'' 2012 model.

I then used Disk Utility application to create a Windows 8 bootable USB stick on my Macbook Air 11'' mid 2013. It worked on both my Macbook Air and Macbook Pro. I could setup Windows 8 successfully on both machines but sound problem still happened on Macbook Pro.

After that, I tried Driver Genius program to backup the working sound driver on Windows 8 from my Macbook Air and even from my friend's Macbook Pro then restored it on my Macbook Pro but still no luck.

Some people on the net said because I installed it using EFI and then the sound driver didn't load properly (only with my current model of Macbook Pro). Installing it using Legacy Boot Loader (Master Boot Record), the sound really worked. Here is how i did it http://vathanakmao-technotes.blogspot.com/2017/01/install-windows-7-on-macbook-pro-using.html