Source code explanation in LaTeX
Macros for code annotations
Winter 18  does not get values from a parent record I am testing the new  &lt;lightning:datatable&gt;, it is really good, and is a good replacement for most of my use cases which today I use a custom list component that I have developed.  I am getting data from my server through apex method, to populate it into the &lt;lightning:datatable&gt; component. I can bind the returned list directly to the data attribute and if the column names are same as the field names, all data is bound correctly.  The problem occurs when I get data from a parent record. For example - I want the Account name of my contact.  This example can show the problem:  Component Markup    &lt;aura:handler name="init" value="{!this}" action="{!c.doInit}"/&gt;  &lt;aura:attribute name="mydata" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String"/&gt; &lt;aura:attribute name="sortedDirection" type="String"/&gt;  &lt;lightning:datatable data="{! v.mydata }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowselection="{! c.getSelectedName }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="{!false}" /&gt;        Component Controller  ({     doInit: function (component, event, helper) {         component.set('v.mycolumns', [                     {label: 'Id', fieldName: 'Id', type: 'id', sortable:"true"},                     {label: 'First Name', fieldName: 'FirstName', type: 'text', sortable:"true"},                     {label: 'Last Name', fieldName: 'LastName', type: 'text', sortable:"true"},                     {label: 'First Name Hebrew', fieldName: 'First_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Last Name Hebrew', fieldName: 'Last_name_Hebrew__c', type: 'text', sortable:"true"},                     {label: 'Account', fieldName: 'Account.Name', type: 'text', sortable:"true"},                     {label: 'Email', fieldName: 'Email', type: 'email', sortable:"true"},                     {label: 'Phone', fieldName: 'Phone', type: 'phone', sortable:"true"}                 ]);          var action = component.get("c.getRecordsFromDb");         action.setParams({             sObjectName: "Contact",             commaDelimitedFieldNames: "Id,FirstName,LastName,First_name_Hebrew__c,Last_name_Hebrew__c,Account.Name,Email,Phone",             filter: ""         });         action.setCallback(this, function(response){             var state = response.getState();             if (component.isValid() &amp;&amp; state === "SUCCESS") {                 var data = response.getReturnValue();                  component.set("v.mydata", data);             }         });         $A.enqueueAction(action);     } })   APEX Aura Enabled Method  @AuraEnabled public static List&lt;sObject&gt; getRecordsFromDb(String sObjectName,         String commaDelimitedFieldNames,         String filter) {      system.debug('\n\n\n\ngetRecordsFromDb sObjectName: ' + sObjectName + ', commaDelimitedFieldNames: ' + commaDelimitedFieldNames + ', filter: ' + filter + '\n\n\n\n');      // create a dynamic soql to get the value of the field     String sql = 'SELECT ' + commaDelimitedFieldNames + ' FROM ' + sObjectName;      if (!String.isBlank(filter))         sql += ' WHERE ' + filter;      system.debug('\n\n\n\ngetRecordsFromDb sql: ' + sql + '\n\n\n\n');     List&lt;sObject&gt; records = Database.query(sql);     system.debug('\n\n\n\ngetRecordsFromDb: ' + records + '\n\n\n\n');      return records; }   The problem is with the Account.Name field - the &lt;lightning:datatable&gt; component does not display the column data.   I know that the data is returned ok, and I know that in the object that is returned, the Account is contained like an object (probably this is the problem):    Is there a good way to show parent record data with this component? Uniform continuity of $f(x)=x^{2/3}\log x$ on $[0, \infty)$ Let $f$ be a real valued function on $[0,\infty)$ defined by  $$f(x)= \begin{cases} x^{{2}/{3}}\log x &amp; \text{ if } x&gt;0 \\  0 &amp; \text{ if } x= 0 \end{cases}$$  Then which of the following is true?  A. $f$ is discontinuous at $x=0$.  B. $f$ is continuous on $[0,\infty)$, but not uniformly continuous on $[0,\infty)$.  C. $f$ is uniformly continuous on $[0,\infty)$.  D. $f$ is not uniformly continuous on $[0,\infty)$, but uniformly continuous on $[1,\infty)$.  I could see that $f(x)=x^{\frac{2}{3}}\log x$ is continous at $x=0$   But for uniform continuity I thought boundedness of derivative would help   But I found $f'(x)=\frac{2}{3}x^{-\frac{1}{3}}\log x + x^{-\frac{1}{3}}$   This $f'(x)$ is not bounded so i can not say any thing about uniform contunuity.  Please help me to clear this.   Thank you :)  P.S : This was already asked before ( some other person but it was not having enough details so it got closed. I tried to edit that question but someone said I should not edit OP to add more details. I was afraid that may be against the rules of MSE. So, I thought i should ask this separately with my own ideas. View history of changes Possible Duplicate:          How do I view the changes made to a question, in the SO-style visual diff?  I'm sure I've seen this before, but the "history" button eludes me. Clicking "edit" gives me a drop down of the revisions, but not the actual diff.    Edit  This edit is a demonstration of the revision history functionality. How do I loop through a MySQL query via PDO in PHP? I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall.  I don't know how to loop through results with a parameter.  I am fine with the following:  foreach ($database-&gt;query("SELECT * FROM widgets") as $results) {    echo $results["widget_name"]; }   However if I want to do something like this:  foreach ($database-&gt;query("SELECT * FROM widgets WHERE something='something else'") as $results) {    echo $results["widget_name"]; }   Obviously the 'something else' will be dynamic. I would like to find a way to construct uncountably many non-isomorphic linear (total) orderings of natural numbers (as stated in the title).  I've already constructed two non-isomorphic total orderings. They are $$ 1 &lt; 2 &lt; 3 &lt;\ldots\\ 1 &gt; 2 &gt; 3 &gt;\ldots $$ where "$&lt;$" and "$&gt;$" are  strict total ordering relations.  Thanks in advance for your help. Stack Overflow 'review' button is slow, and test questions are slower In the last few weeks, the 'review' button at the top of stackoverflow.com has become very slow. I can count to 20 in some cases (but not always).   In a perhaps related phenomenon, I believe that test questions in the queue often trigger a level of extreme slowness all their very own. If I click on a queue, or 'next' after a review, and the periods sit there throbbing for a good long time, chances are that what will show up will be a review audit. Are nested functions a bad thing in gcc ? Suppose $X$ is a finite set and $f : X \to X$ is a function. Then $f$ is injective if and only if $f$ is surjective. After upgrading to Ubuntu 17.10, Ubuntu Dock icons of some of my apps are not appearing. They appear properly in the dash. I verified the *.desktop files for the applications in /usr/share/applications and ~/.local/share/applications.  E.g. dock icon is not displaying for "Terminator". Check out the attached image.    This is how the icon for the same application appears in dash search:    Content of /usr/share/applications/terminator.desktop:  [Desktop Entry] Name=Terminator Comment=Multiple terminals in one window TryExec=terminator Exec=terminator Icon=terminator Type=Application Categories=GNOME;GTK;Utility;TerminalEmulator;System; StartupNotify=true X-Ubuntu-Gettext-Domain=terminator X-Ayatana-Desktop-Shortcuts=NewWindow; Keywords=terminal;shell;prompt;command;commandline; [NewWindow Shortcut Group] Name=Open a New Window Exec=terminator TargetEnvironment=Unity   Any pointers to debug this issue will be helpful. I have scripts calling other script files but I need to get the filepath of the file that is currently running within the process.   For example, let's say I have three files. Using :   script_1.py calls script_2.py.  In turn, script_2.py calls script_3.py.    How can I get the file name and path of script_3.py, from code within script_3.py, without having to pass that information as arguments from script_2.py?  (Executing os.getcwd() returns the original starting script's filepath not the current file's.) How do I create a master workbook in excel? In powerpoint we have something called a master slide.  I want the same idea for excel.  I want to create a template that I can work on with formulas and I want it to update all children files.  Example: I have a budget template.  This template has a budget listing all required equipments and their cost for a project.  We then have a formula that calculates the total cost of all equipment. I want to update only the template file with equipment and formulas, but I want the actual files (children) to contain the costs (because they might be different costs for different locations, but the rest of the budget and its formulas are shared).  Its pretty much exactly what a master slide in powerpoint is, if you've ever used that you should understand what I'm trying to do pretty easily.  One master file to store formulas, and a bunch of children files that store the data to be accessed by those formulas.  This way if a formula needs to be changed, the templates is adjusted and all other files update accordingly.  Any ideas?  I'd prefer not to have to use VB, and I'd also like a solution that works for both mac and windows.  Found  question but no answers.  I've already created a template, but that doesn't seem to update the other files when I modify it. Lyircs of Free by Natalia Kills:     I'm free      I just spent all my money       but I rocked that like it don't cost a thing   Shouldn't it be "I've just spent all my money"? As far as I remember, our English told us to use Present Prefect in such case because of the just. Schrödingers MySQL table: exists, yet it does not Asking a question: DO or ARE? When should you ask a question with &quot;do&quot;, and when with &quot;are&quot;?  In other words,  Are you going to Spain next week?   Do you like Chinese food?  What is the rule here?  We don't say  Do you go to Spain next week?   Are you liking Chinese food?  Why is that? Beryllium Vacuum Sphere Boat/Aircraft Is it possible to make a solid rigid evacuated "balloon" out of Beryllium or other elements or alloys?  The critical buckling pressure at which an evacuated sphere is given as $$ P_1=\frac{2E\cdot\left(h/R\right)^2}{\sqrt{3\left(1-\nu^2\right)}} $$ where $E$ is , $h$ the shell's thickness, $R$ the radius to the midsurface shell, and $\nu$ is .  Of course this is theoretical and experimental and literature values for submersibles hover around 1/4 of the theoretical pressure.  Beryllium has the following properties:   Density=1.85 g/cm$^3$ Young's Modulus=287*10$^9$ Pa Poisson Ratio=0.032   Calculating the upward force, buoyancy at 101.3 kPa atmospheric pressure and Radius of 10m gives 4.24*10$^8$ N. The weight of this sphere with shell thickness 1mm has 2.32*10$^7$ N downward force of Beryllium material, so it will theoretically float at ground level.   Calculating the critical buckling stress of this beryllium sphere is 331.57 kPa, which is 3.27 times the atmospheric pressure of 101.3 kPa, so theoretically it won't buckle. But in experimentation done in earlier experiments as stated before, due to construction/material non-ideal situations, the critical buckling formula predicts about 4 times stronger than actual, so it would need about 400 kPa, not 331 kPa as Beryllium sphere with this specification would hold. Increasing the strength capability also increases weight and therefore lowers it's ability to float, but Beryllium is the closest element with this situation I have calculated that could work if ideal (I have only been using periodic table elements and household materials)  Is it possible with an alloy of elements? Using the equations for buckling and buoyancy, the following is needed. What alloys/materials come to your mind?  Material considerations:   Material with larger Poisson ratio Material with larger Young's Modulus Less dense material Construction (is it possible)   Material considerations affect on lift   Thickness can be larger, increases strength by the squared. But also increases weight. If a material with lower density with similar structural properties as Beryllium is used, it would help. Radius can be lower for same reason, but also lowers buoyancy (volume)   My other designs (don't worry about these just yet, just if you are curious is a vacuum sphere with a pressurized "outer tube" with spokes in tension (carbon fiber nanotubes maybe) to keep the 2 spheres in position. Another is a spherical truss out of carbon fiber nanotubes with a light membrane around. The truss prevents the outer membrane from collapsing due to the atmospheric pressure  The "point" of this if you ask, as to why not use a traditional balloon is it can be used as a boat by filling the sphere with air, and then used as a aircraft at will by evacuating the sphere. An alternative mode of transportation for sea vessels etc. Prove $e^{x+y}=e^{x}e^{y}$ by using Exponential Series Units and Nilpotents If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.   I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint? Error: invalid environment block. Press any key to continue...   The error message appears immediately after the boot screen on purple background. Ubuntu 12.04.1 LTS. Copy files from Network Mapped Drive I am trying to copy a file over from a mapped drive on a network to the current computer through a batch file.   I've already attempted the following below and still no results. The plan is to run a batch file to copy a file from a network drive down to the local C:\ drive.   @echo off copy H:\Videos\TargetVideo\TargetVideo.mp4 C:\Video\ My laptop running Windows 7 Ultimate (non OEM) died on me today and it has tonnes of stuff on it - my projects, Visual Studio and office installations, etc. etc.  I am getting a new laptop from somewhere and was wondering if I could just unplug the hard disk from my original (dead) machine and plug it into the new one.  I remember trying this once with Windows Xp (on a desktop) and the OS crashed on boot and I had to reinstall everything again.  I have read about  but by the looks of it, it can be used only when the host computer is alive and kicking -- which mine isn't.  My old laptop was a Compaq Pressario v3000 (3 years old) on an AMD and the new one is going to be a new dual core Intel HP laptop.  Any ideas?  Thanks!