I have a Visualforce page that has a Lightning Component being loaded with it (basically, the VF is a container for the Component).  The code:  &lt;apex:page showHeader="true" sidebar="true"&gt;     &lt;apex:includeLightning/&gt;     &lt;div id="ltng"&gt;         &lt;script type="text/javascript"&gt;             $Lightning.use('c:InvoiceGenerator', function() {                 $Lightning.createComponent('c:InvoiceCreator', {}, 'ltng', function() { console.log('loaded!') })             })         &lt;/script&gt;     &lt;/div&gt;   &lt;/apex:page&gt;   The problem is that I can not access it with a Partner Community user, but I can access it just fine on both sandbox (Summer 17) and production (Spring 17) as an admin user, so Locker Service doesn't seem to be issue here.  When accessing the page as a community user, the following error is logged to the console:  Uncaught SyntaxError: Unexpected token w in JSON at position 0     at JSON.parse (&lt;anonymous&gt;)     at XMLHttpRequest.xhr.onreadystatechange (lightning.out.delegate.js?v=1496073716760:143)   The component's app contains the following lines:  &lt;aura:application extends="ltng:outApp" access="GLOBAL"&gt;     &lt;c:InvoiceCreator&gt;&lt;/c:InvoiceCreator&gt; &lt;/aura:application&gt;   Am I right to assume that this is a bug, or Lighning Out isn't available to community users at all?  edit  I decided to inspect the error that was shown in Chrome, and I've noticed that it is an error when handling another error from the server. Somewhere on lightning.out.delegate.js theres a piece of JS that is used to handle errors, that has these lines:  var exceptn = JSON.parse(jsonExcptn); displayErrorText(exceptn.message);   And when trying to parse jsonExcptn, the script throws an error, because jsonExcptn is not a valid JSON string. It contains the typical internal server error message. More specifically, this is the variable content:  "while(1); */{   "message":"Erro interno do servidor\\nID do erro: 340480800-85527 (1241894257)" }"
I recieve the below error when I am trying to call a Custom Lightning Component in a Visualforce page that is used in Communities.    Unrecognized Content-Security-Policy directive 'reflected-xss'.   logo180.png Failed to load resource: the server responded with a status of 404 (Not Found)   CommunityHomePage:1 Uncaught SyntaxError: Unexpected token w in JSON at position 0     at JSON.parse ()     at XMLHttpRequest.xhr.onreadystatechange (lightning/lightning.out.delegate.js?v=ZCuyRUYzK_kAf4cKCIeS2A:143)   My Component  &lt;aura:component controller="LeadController" implements="forceCommunity:availableForAllPageTypes"&gt;     &lt;aura:attribute name="theLead"          type="Lead"          default="{ 'sobjectType': 'Lead',                    'Rating__c': 2,                    'Company': '',                    'FirstName': '',                    'LastName': '',                    'Email': '' }"/&gt;     &lt;form&gt;          &lt;ui:inputText value="{!v.theLead.Company}" label="Company" class="input"/&gt;         &lt;ui:inputText value="{!v.theLead.FirstName}" label="First" class="input"/&gt;         &lt;ui:inputText value="{!v.theLead.LastName}" label="Last" class="input" /&gt;         &lt;ui:inputEmail value="{!v.theLead.Email}" label="Email" class="input" /&gt;         &lt;ui:button label="Save" press="{!c.save}"/&gt;     &lt;/form&gt; &lt;/aura:component&gt;   My Lightning App is   &lt;aura:application access="GLOBAL" extends="ltng:outApp" implements="forceCommunity:availableForAllPageTypes"&gt;     &lt;aura:dependency resource="c:CommunityChatter"/&gt; &lt;/aura:application&gt;   My VF Page is  &lt;apex:page standardController="Lead"&gt;     &lt;apex:includeScript value="{!$Site.BaseUrl}/lightning/lightning.out.js"/&gt;     &lt;script&gt;         $Lightning.use("c:MyLightApp", function() {             $Lightning.createComponent(                 "c:CommunityChatter",                 {},                 "theLead",                 function(cmp) {                     console.log("Component created!");                     console.log(cmp);                 });             });     &lt;/script&gt;      &lt;div id="theLead"&gt;&lt;/div&gt; &lt;/apex:page&gt;
hot network questions have inconsistent CSS for visited/not visited depending on the site you're on This is a HNQ excerpt from Stack Overflow. Visited questions are objectively darker.    This is a HNQ excerpt from Super User. Visited questions are objectively lighter.    This is a HNQ excerpt from Seasoned Advice. Visited questions are objectively darker.    This is a HNQ excerpt from Puzzling, a beta site. Visited questions are objectively darker, although the difference is hard to spot.    This is a HNQ excerpt from Travel. Visited questions actually have a completely different color.    These are 5 different sites, with 5 different formats for how the HNQ sidebar displays links. Some make visited links darker. Some make them lighter. Some make them a little big darker. some give visited links a completely different color. This is very confusing: If someone visits one of these HNQ questions and wants to continue browsing the HNQ from there, they likely expect that the links in that HNQ segment have consistent layout compared to the HNQ segment from the website they came from.  Is this something worth looking into? I realize that each site has their own look and feel, but an element that appears on every site should be consistent IMHO. People have expectations about how links work, and one of those is that if you click on a link within the same domain (which the HNQ segment arguably is), they behave similary on that page as they do on the page you come from. Relative performance of std::vector vs. std::list vs. std::slist? Key uses weak digest algorithm I'am getting this kind of message while updating my ubuntu 16.04 LTS:  W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1) W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by key 3B068FB4789ABE4AEFA3BB491397BC53640DB551 uses weak digest algorithm (SHA1)   Can anyone help me? I heard the following comment of Mr. Marco Rubio about Mr. Donald Trump on CBS’s “Face the Nation” in a clip in February 29th AP Radio News:  “There is never gonna be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald Trump. Donald Trump is not Republican Conservative. Donald Trump is trying to pull off the biggest scam in American political history.”  I thought I misheard “There is never gonna be a time where –“ for “There is never gonna be a time when –“ at first, because I was in understanding that time should be trailed by “when” as a relative noun or adverb. An English Japanese dictionary at hand (Readers English Japanese Dictionary published by Kenkyusha) provides “where” singly as a relative to refer the ‘place.’ However, my lookup of the following two sources endorsed that I heard it right:  Here is what is never going to happen in this race. There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to get out for purposes of rallying around Donald..  “Here is what is never going to happen,” Rubio continued. “There's never going to be a time where the Republican Party rallies around and says you have to get out or anyone has to ...   Is it common, at least not uncommon to use “where” after “time” as a relative? How do I jump to the next or previous word with CTRL + arrow keys in a console? In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is in text or in framebuffer modes?  In my configuration, the CTRL + arrow keys are transformed into escaped character sequences and not interpreted. How can I test within a document, whether or not the initial  \documentclass[a4paper,11pt,twoside,fleqn,draft]{report}   includes the "draft" option? My naive attempt  \newif\ifmydraft \mydraftfalse \DeclareOption{draft}{\mydrafttrue}   does not work, and breaks a later \usepackage command. Windows service stops automatically How to prefix post permalinks with /blog/ - without affecting custom post types? I have several custom post types, which are properly structured as /%post_type%/%postname%/, however I wish to have the same effect for regular blog entries: /blog/%postname%/  If I prepend the permalink structure with /blog/ it affects the custom post types as well, so currently my permalink structure is simply /%postname%/  Which is the recommended way of doing this? I had a solution involving some rewrites, but the permalink shown in the post editor area does not reflect it. Separate labels in cases Is it appropriate to use the salutation "Dear All" in a work email? I have observed that in my work place, whenever a mail is sent to more than one person( like an information, meeting request or a notice etc.), the mail starts with the salutation "Dear All". This, somehow, doesn't seem correct to me. For me, a salutation should address the reader individually, at least in its singular form, as in "Dear Colleagues".  Am I correct in thinking that? Does there exist a free good molecule / atom simulation software? I'm looking for a software or software package (for example C/C++) that can simulate a lot (say thousands at least) of molecules in action (ie. in movement or attached to say static walls).  I have found several but they seems to be either 'gas only', 'water only', or not really scientific (a lot of small balls dodging around moved by an unique formula). What are tag synonyms and merged tags? How do they work? Proving that $a \mathbb{Z} \cap b\mathbb{Z} = \operatorname{lcm}(a,b)\mathbb Z$ Given $m \in \mathbb{Z}$, let $m\mathbb{Z}$ denote the set of integer multiples of $m$, i.e. $m\mathbb{Z} := \{mk\mid k \in \mathbb{Z}\}$.   Now let $a,b \in \mathbb{Z}$ with $a,b$ not both $0$. Prove that $a\mathbb{Z} \cap b\mathbb{Z} = \operatorname{lcm}(a,b)\mathbb{Z}$.   I am trying to write a proof for this, but I am unsure of what method to use. Also I am confused by $mk\mid k$, because wouldn't $m=1$ for this to be true. Are there integral solutions to the equation $x^2+y^2-z^2=1$? I set up a new VPS instance of Ubuntu and am wondering what the easiest way is to get up and running with a basic LAMP stack (i.e. which packages are required, which configuration options need to be tweaked, if any, etc.). note: This is a question about relativistic effects. I've included some detail about the spacecraft and its orbit for background, but the question is about relativistic effects and their observability.     When the Parker Solar Probe passes within 8.5 solar radii of the Sun, it will be moving really fast.  A perihelion and aphelion of about 6.6 and 109 million kilometers suggests a semi-major axis of 57.8 million kilometers. The standard gravitational parameter for the Sun is:  $$GM_{Sun} \ = 1.327\times 10^{20} m^3/s^2$$  So using the :  $$v^2 \ = \ GM_{Sun}\left(\frac{2}{r}-\frac{1}{a}\right)$$  the orbital velocity at perihelion will be about 195,000 m/s, or about 25 times faster than a satellite in LEO. This is close to one part per thousand of the speed of light! I think this will be a new record for a spacecraft velocity relative to the solar system.  Depth of a gravitational potential well for an object of mass $m$ is approximately given by:  $$u_G \ = \ -GM_{Sun}\frac{1}{r}$$  At 6.6 million kilometers the spacecraft will be 23 times deeper in the Sun's gravitational well than it would be at 1 AU.  Will there be any particularly unique relativistic effects detectable for the Parker Solar Probe during it's close flyby of the Sun?  Just for example, during one close flyby, how much time will its on-board clock gain or lose compared to some convenient standard solar system timescale? I know there are several different choices, "GPS time" might be one but I don't want to arbitrarily choose an inconvenient one.     above: Parker Solar Probe cropped, from .    above: screen shot from NASA's      note: the link seems to be dead now, but there is plenty of related information available at     above: Illustration of the Parker Solar Probe's orbit, from . How old were each of the Doctor's incarnations? Counting traversed arcs on routes to write attributes using ArcGIS for Desktop? I have number of persons located on a road network and I have calculated their shortest distance to a particular location.  From the routes output created from Closest Facility can I   break the routes down into the individual arcs traversed by each person? assign each arc a count attribute indicating the number of individuals who use that arc to get to their destination?   I am using Network Analyst in ArcGIS 10.2 for Desktop. Overlapping matches in Regex Username and Password not recognized when logging into Minecraft