I am using recordViewForm (in API version 43) because I have to use lightning:outputField tags inside for its automated formatting and features like mailTo, tel:, map on address, etc. (and I am pulling in the fields to be displayed dynamically from Custom Metadata type so I can not hardcode the field names and its types). I am NOT implementing force:hasrecordId interface as this component is added only in Custom Lightning component.  When I pass the record Id to recordViewForm, I see following error. For testing, I displayed record id just before recordViewForm tag so I am sure recordId is NOT null.    Now if I use lightning Data Service to get recordId and pass it to recordViewForm, I do not see above error however, none of the fields are displayed. I am stuck here due to dynamic nature of the field list that I want to display. Otherwise I could have simply hardcoded the field names according to their types.  Anybody else facing this issue? OR any help is appreciated?
I need to create an edit component for an SObject from which I do not know the objectApiName at design time. I only know the Id of the SObject. objectApiName could be any valid SObject-name.  Now I want to use lightning:inputField   This needs to be wrapped by lightning:recordEditForm  In case I hardcode it to "Order", provide a vaild Order Id and let the controller load the order and assign it to the Parent-attribute, this works flawlessly:  &lt;aura:attribute name="recordId" type="String" default="" /&gt; &lt;aura:attribute name="Parent" type="SObject" default="{}" /&gt; &lt;aura:attribute name="ParentType" type="String" default="" /&gt; &lt;b&gt;{!v.ParentType}({!v.recordId})&lt;/b&gt; &lt;br/&gt; &lt;lightning:recordEditForm recordId="{!v.recordId}"  objectApiName="Order"&gt;     &lt;lightning:messages /&gt;     &lt;lightning:inputField fieldName="Name" /&gt;     &lt;lightning:button class="slds-m-top_small" variant="brand" type="submit" name="update" label="Update" /&gt; &lt;/lightning:recordEditForm&gt;   It looks like below and even the Update-button works as expected and saves the record:    But what I really want is  &lt;lightning:recordEditForm recordId="{!v.recordId}"  objectApiName="{!v.ParentType}"&gt;   Note the {!v.ParentType} instead of the hardcoded "Order"  As an great unfortunate, this only collapses to that error-popup    In the screenshot you see, that the ParentType is correctly bound to v.ParentType (right above the button) which a I also verify in the console  Suspicion  I set the ParentType-attribute as a result of APEX call (asynchronously). This seems to be too late for the lightning:recordEditForm. It tries to render with objectApiName at a time where it is still blank, hence it crashes during initialization...  Question  Is there a clean way to avoid this and get something to fly with an dynamic objectApiName?  Trying to use $A.createComponents()  As @sfdcfox suggested I jump on the $A.createComponents() which turned indeed out to be tricky, exactly as sfdcfox has predicted. Im following this .  Added a button to the markup    Added a handler to the js-controller:  makeEdit : function(cmp, evt, hlp) {      console.log('ParentId :: ', cmp.get("v.ParentId") );      console.log('ParentType :: ', cmp.get("v.ParentType") );      $A.createComponents([             ["lightning:recordEditForm",{                 "recordId"          : cmp.get("v.ParentId"),                 "objectApiName"     : cmp.get("v.ParentType"),             }],             ["lightning:inputField",{                 "fieldName" : "Name"             }]         ]         ,function(components, status, errorMessage){             if (status === "SUCCESS") {                 var wrapper         = components[0];                 var inner           = components[1];                 wrapper.set("v.body", inner);             }             else if (status === "INCOMPLETE") {                 console.log("No response from server or client is offline.")                 // Show offline error             }             else if (status === "ERROR") {                 console.log("Error: " + errorMessage);                 // Show error message             }         }     ); },   Now I can press the button - but nothing - I repeat: n o t h i n g - gets rendered at all. What is my fault here? Note that the console.log get output and the attribute are holding good values.
Request Web Page in c# spoofing the Host I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too.  I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is).  I need to do this because we want to perform the initial request for a page before the user can.  We have 10 web server which are load balanced, so we need to request the file from each of the web servers.    I have tried the following:  HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.1.5/filename.htm"); request.Headers.Set("Host", "www.mywebsite.com"); WebResponse response = request.GetResponse();   Obviously this does not work, as I can't update the header, and I don't know if this is indeed the right way to do it. Recall the following relevant definitions. We say that   $b$ is divisible by $a$ in $R$, or $a\mid b$ in $R$, if $b = r a$ for some $r\in R$. $a$ and $b$ are associates  in $R$ if $a\mid b$ and $b\mid a$, (or, equivalently, if $aR = bR$). $u\in R$ is a unit if it has a multiplicative inverse (a $v\in R$ such that $uv=vu=1$). $a$ and $b$ are unit multiples in $R$  if $a = ub$ for some unit $u\in R$.   Given these definitions, my question is,     If $R$ is a commutative ring with unity and $a,b\in R$ are associates in $R$, are $a$ and $b$ unit multiples in $R$?   I was told that this not always true. But I encountered some difficulties in finding a counterexample. Elementary proof for $\lim\limits_{n \to\infty}\frac{n!e^n}{n^n} = +\infty$ As seen in  question, the series $\sum\limits_{n=1}^{\infty} \dfrac{n!e^n}{n^n}$ diverges. (One way to see this is by noting that the terms of the sum are greater than $1$ and, therefore, don't converge to zero.)  However, more is true: not only are the terms greater than $1$, they blow up to $+\infty$! To see this, one can apply Stirling's approximation and get $\dfrac{n!e^n}{n^n} \sim \sqrt{2\pi n}$.  My question is: is there an elementary proof for $\lim_{n \to\infty}\dfrac{n!e^n}{n^n} = +\infty$?  The reason I'm asking this is that I'm taking a Calculus course and I was assigned the exercise of proving the divergence of the series above and I would feel more satisfied if I could prove that its terms go to $+\infty$ (as opposed to merely proving the terms are greater than $1$.) Obviously, things like Stirling's approximation are outside the scope of the course, so I can't really use them.  (To be clear, you can use anything one learns in $4$ semesters of standard Calculus courses. I hope this restriction is not too obscure.) How to get world-space matrix of any pose bone? Is there a command for getting world-space matrix of pose bones, same as obj.matrix_world for objects? I found pose_bone.matrix, but it gives weird result for me. Is there a quicker way to turn on WiFi Hotspot? is there a way to automate (or at least reduce the number of steps) to turn on or turn off the WiFi hotspot on my Galaxy 3.  I have to    unlock  press the menu button  press settings press More Settings Tethering and portable hotspot Slide portable hotspot on. Can't insert code in my beamer slide I want to put some PHP code in my slide with the package listings but I have this error message:  Argument of \frame has an extra }.&lt;inserted text&gt;\par }   My latex code :   \documentclass{beamer}  \usepackage[utf8]{inputenc}  \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{setspace} \usepackage{color} \usepackage{listings}  \usetheme{CambridgeUS}   \begin{frame} \begin{large}     Contexte : \newline \pause \end{large}  \begin{itemize}     \item Avertir Drupal \end{itemize} \begin{lstlisting}  // Gestion du contexte ete2013 // Utilisation d'un nouveau template if (%variables['ctpage'] == "ete2013") {     variables['template_files']=array('page-ete'); } \end{lstlisting} \end{frame} Inaccurate shading on object I am relatively new to Blender so please excuse me if this is rather amateur!   The bottom of my torus has poor surface quality, I have scaled the vertices down for a smaller (variable) tubular radius all the way around the torus and at the bottom the surface quality is awful, with inaccurate shading. Any ideas as to what is wrong and/or how I could fix this?  Thanks, itsanate How to view/erase images from both CF and SD cards on Canon EOS 5D mk3? I've been trying to setup my Canon EOS 5D mk3 to shoot in "backup mode". I have two cards:    32GB CF  8GB SD   I've set it like the following:  SET UP1 menu ------------ Record func.:       Rec. separately Playback:           1 [CF]  SHOOT1 menu ------------ Image type/size CF: RAW 22M Image type/size SD: JPEG 9,8M   It works ok, except I have one problem. Since I have only these two cards, on some large shoots I need to erase some in order to free some space to make the card last till the end of shoot.  When viewing images and deleting the ones I want to delete, it seems that I can only see the contents of the CF card, and when I delete an image I delete only the RAW file saved on the CF.  Is there a way to delete the JPEG from the SD card along with it's RAW "parent" on the CF card? Ppening an HTML file on localhost in XAMMP/apache 2.2 using subdirectories under htdocs I have a site directory for html (dreamweaver CSS3) with lots of subdirectories that contain HTML files for a number of drop down menus. They work fine where they are, but they all have menus that are JavaScript and could be kept in a separate file. So, I want to use Include. I don't want to have to FTP my files to HostGator every time I want to test the includes. I want to have this on my local machine. So, I am attempting for the first time to setup XAMMP and then run my html files (site) on localhost, so I can see what they look like before ftping everything to HostGator and putting it live.  I tried copying the main site folder to htdocs, and then copying the path to the file I want to run in front of the localhost in Firefox, but it gave me file not found:   Do I have too many subdirectories? Why isn't the file being found? It is there.  Tried this too:   No go. Transcendental Extensions. $F(\alpha)$ isomorphic to $F(x)$ Let $E$ be an extension field of $F$ and $\alpha \in E$. Then $\alpha$ is transcendental over $F$ if and only if $F(\alpha)$ is isomorphic to $F(x)$, the field of fractions of $F[x]$.   This was a theorem in an abstract algebra textbook with a very brief proof. Can someone please explain why this theorem holds? I'm having difficulty grasping the concepts at hand.  Thanks! (a) Solve the equation $yu_x+xu_y=0$  with the condition $u(0,y) = e^{-y^2}$. (b) In which region of the xy plane is the solution uniquely determined?     I did the first part but I don't understand how to do part b.  I read   But I don't understand how the argument is based. A more clear explanation is appreciated How can I download a distribution? Am I right in thinking that the Drupal distributions that I can download from  are a standard Drupal core download with a load of other stuff added at /profiles?  Anyone know if there are any plans to create a dev branch of distributions that would automatically update the core version that the distribution is running on? Currently it seems that the distribution runs on whatever core version its developer has chosen.  And how can I use distributions with Drush? Is there an equivalent to drush dl drupal that will download a specific distribution?  And, finally, is there any difference between an install profile and a distribution? Let $R=\frac{\mathbb{C}[x,y]}{\langle x^2-y^2-1 \rangle}$. Prove that (1) $R$ is an integral domain. (2) Any nonzero prime ideal of $R$ is maximal.  My idea: (1) The first part is easy. Since $x^2-y^2-1\in \mathbb{C}[y][x]$ is Eisenstein with respect to the prime $y+i$, it is irreducible. Hence the ideal generated by it is a prime ideal. (2) I am struggling with this part. I have one approach (not sure if correct). Approach : Let $I=\langle x^2-y^2-1 \rangle$. Then $R=\mathbb{C}[x,y]/I$.  Any ideal of $R$ is of the form $J/I$ where $J\subseteq \mathbb{C}[x,y]$ is an ideal containing $I$. If we can show that any prime ideal $J$ containing $I$ is maximal, then we are done. How to prove this? Is there any other way to prove the second part? Edit: I am trying to avoid Hilbert Nullstellensatz and the notion of dimension of a ring, as these concepts are not there in the syllabus of the exam from which I found this question. You can use the range feature of unicode-math to set the math font for a specific unicode slots or the macro accessing the glyph. I tried this with the sum sign &amp; Latin Modern, see my example:  \documentclass{scrartcl}  \usepackage{amsmath} \usepackage{unicode-math} % use unicode in math &amp; setup math fonts \setmathfont{Asana Math} %\setmathfont[range=\sum]{Latin Modern Math} % substitute Sum sign  \begin{document}  Notice the different sum sign $\sum$, as intended.   Notice also, the difference in spacing, not intended: \begin{equation}     \begin{bmatrix}         0           &amp; \frac{1}{2}   &amp; \frac{2}{3} \\         \frac{3}{4} &amp; 0             &amp; \frac{4}{5} \\         \frac{5}{6} &amp; \frac{6}{7}   &amp; 0     \end{bmatrix}     \begin{pmatrix}         A \\         B \\         C     \end{pmatrix} \end{equation} \end{document}   However, not only the sum sign, but also the spacing in the matrices changes. With Latin Modern commented out (as in the example):  With Latin Modern active (remove % before relevant line):  Why is that? BTW, I'm using Lualatex from TeXLive 2012. Review filter appears to be broken When browsing questions for a given tag, a review indicator has recently started showing up that links to the open review tasks for that tag.  For example, this is what I see when viewing :    The number 187 in the screenshot above would link to    However, clicking on that often opens review tasks that do not have the tag in question.  For example, it opened the following on successive attempts:   (c)   (java)  It seems that the filters are broken.  A sample screenshot (note the mention of the filter on the review page): VBA array sort function? I'm looking for a decent sort implementation for arrays in VBA. A Quicksort would be preferred. Or any other  other than bubble or merge would suffice.  Please note that this is to work with MS Project 2003, so should avoid any of the Excel native functions and anything .net related. Can anyone help me with this?     If 738 consecutive integers are added together, where the 178th number in the sequence is 4,256,815, what is the remainder when this sum is divided by 6? I was working on a problem in group theory, which asks about the automorphism group of a direct product of groups.  Okay, so I know that if $G,H$ are two groups whose orders are relatively prime, then $\operatorname{Aut}(G\times H)\cong\operatorname{Aut}(G)\times \operatorname{Aut}(H)$.  I also know that if $G,H$ are abelian and simple and isomorphic, then $\operatorname{Aut}(G\times H)\cong \operatorname{GL}_2(\mathbf{Z}_p)$ where $p$ is the order of $G$.  What I don't know is the following: what if $G,H$ are simple, yet not abelian? Let us for now focus on a more restricted case where $G\cong H$, in particular, $G=H$. What can we say about the group $\operatorname{Aut}(G\times H)$? (I heard something about this group being related to what is called "wreath product", which I do not know...)  Thanks bunch in advance! Don't impose delay loading Close dialog when you haven't just loaded it If I wave around a bar magnet, the magnetic field in the space around it changes. Is this enough to go through the whole speed of light derivation implying that the motion creates an electromagnetic wave? If so how do I determine the wavelength and direction of the resulting wave?