I hope I figured it out. I have no more Black screen issue &amp; flickering since I did below  yesterday:


Found advise from a user and Killed process called "warmd", process user: unknown.
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/warmd.8.html
When my Screen went black sporadically, My ipad was connected and nearby my MacBook , I relocated it further away (I read about interference issues)
I right clicked on battery icon and it showed me that Battery needs Service. I fully re-charged and re-booted my Pro and WoohLah, Battery status was back to normal....
I switched GPU >> Installed programm called GFXcardstatus (you can Google that)
In Applications->Utilities->Terminal
enter: sudo pmset -a lidwake 0   to reverse replace 0 with 1
enter your computer password...


This sends your laptop to sleep on closing but on opening tap any key to wake. According to advise by other user on the net this has stopped his issue with black screen and lastly I performed it after step 1-4.

Not sure what caused it tho but fiddeling around with above sorted my issue.



I posted this comment in the apple discussions forum.

I hope that helps.

Good luck to all of you!

Why is my MacBook Pro's screen going black for a second?
According to the OWASP Application Security Verification Standard:


  V11.3 Verify that every HTTP response contains a content type header
  specifying a safe character set (e.g., UTF-8).


According to the RFC for the application/json Media Type:


  JSON text SHALL be encoded in Unicode. The default encoding is UTF-8.
  
  Since the first two characters of a JSON text will always be ASCII
  characters [RFC0020], it is possible to determine whether an octet
  stream is UTF-8, UTF-16 (BE or LE), or UTF-32 (BE or LE) by looking
  at the pattern of nulls in the first four octets.


If your encoding is in fact UTF-8, this implies there is no security benefit to setting the Content-Type header to application/json; charset=utf-8 instead of just application/json.

Is it reasonable to make an exception to the OWASP rule for application/json?
