Sort a list of lists according to another list
How to sort two lists (which reference each other) in the exact same way
Can git be integrated with Xcode? How accessible are the Stack Exchange sites for users of screen reader software? There are some plans to put more information on  which is a Stack Exchange site. I am concerned it may not be as readable to everyone as it could be on a plain wiki.  Is there any information on how to use Stack Exchange with a screen reader? Snap face to grid I need to move an entire object, so that one of the faces is exactly at Z=0. What is the best way to do this? Basically, if I could select Grid or 3D Cursor in the Snap To menu, that would be perfect:    My current workaround is to select the face, copy its Z coordinate, select all, move it all down by that same amount. Is there a faster way? Are Variable Operators Possible? Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end. Why aren't logarithms defined for negative $x$? I've designed for a campaign a duo of rogues. My character is as , and his follower is a Knife Mistress. Couple of question about them. Our party is about to ambush several . My Sniper will hide near their camp, and shoot the weakest one when fight begins. His follower will then rush the troll and slice him in several pieces. My Sniper has the Bleeding attack feat:  Bleeding Attack (Ex) Benefit: A rogue with this ability can cause living opponents to  by hitting them with a sneak attack. This attack causes the target to take 1 additional point of damage each round for each die of the rogue's sneak attack (e.g., 4d6 equals 4 points of bleed). Bleeding creatures take that amount of damage every round at the start of each of their turns. The bleeding can be stopped by a DC 15 Heal check or the application of any effect that heals hit point damage.  Emphasis mine. Thus, a normal enemy would bleed every turn, until he get cleaned of the bleeding effect. However, troll have a special ability, which is  5 (acid/fire)  Regeneration (Ex) A creature with this ability is difficult to kill. Creatures with regeneration heal damage at a fixed rate, as with , but they cannot die as long as their regeneration is still functioning (although creatures with regeneration still fall unconscious when their hit points are below 0). Certain attack forms, typically fire and acid, cause a creature’s regeneration to stop functioning on the round following the attack. During this round, the creature does not heal any damage and can die normally. The creature's descriptive text describes the types of damage that cause the regeneration to cease functioning.  So, the troll will automatically get rid of the bleeding effect during his first turn. My question is: Does the bleeding effect apply before the regeneration, or get neglected, because the troll will heal during his turn? Am I right to assume that, Bleeding attack effect getting triggered at the beginning of the troll turn, it will deal him the damages before the wounds heals? Apply empty style to the entire bibliography For any symbol, how can I get the full context-qualified name of the symbol as a string? ZIP Code (US Postal Code) validation I thought people would be working on little code projects together, but I don't see them, so here's an easy one:  Code that validates a valid US Zip Code. I know there are ZIP code databases out there, but there are still uses, like web pages, quick validation, and also the fact that zip codes keep getting issued, so you might want to use weak validation.  I wrote a little bit about zip codes in a side project on my wiki/blog:    There is also a new, weird type of zip code.     I can do the javascript code, but it would be interesting to see how many languages we can get here. LIM is cofinal in ON I'd like to show that the class of all limit ordinals, LIM, is cofinal in the class of all ordinals ON.  I thought that I could do this by contradiction and assume that it wasn't cofinal in ON. Then there is an $\alpha \in$ ON such that for all $\beta \in $ LIM: $\beta &lt; \alpha$, i.e. $\beta \in \alpha$ and hence LIM $\subset \alpha$.  This means that LIM is a set so we can consider $\bigcup$ LIM. Then we have $\beta &lt; \bigcup$ LIM for all $\beta \in$ LIM by definition of $\bigcup$ LIM. So LIM $\subseteq \bigcup$ LIM.   $\bigcup$ LIM is either a limit or a successor ordinal.  If it is a limit ordinal then $\bigcup$ LIM $\in$ LIM and by transitivity of ON, $\bigcup$ LIM $\subseteq$ LIM, so $LIM = \bigcup$ LIM in this case which would mean that $\bigcup$ LIM $\in$ LIM $= \bigcup$ LIM which would be a contradiction because sets cannot contain themselves. Hence $\bigcup$ LIM cannot be a limit ordinal.  If $\bigcup$ LIM is a successor ordinal then $\bigcup$ LIM = $\beta \cup \{&#160;\beta \}$ for some $\beta \in $ ON.  Now I'm not sure how to proceed from here. I'm also not sure about whether I'm on the right track with this proof because I think there should be a shorter way  to prove this.  Thanks for your help. Spoilers for The Last Jedi:      Just before Snoke is slain,   he narrates Kylo Ren's thoughts/feelings (saying things like "he turns the lightsaber towards his enemy" and so on) we see the Skywalker lightsaber being manipulated through the Force to point towards and then slay Snoke. My question is, do we know for sure who was using to Force to use the Skywalker lightsaber in this scene?   It could have been   A) Kylo Ren was turning igniting the Skywalker lightsaber with the Force. Snoke assumed the thoughts/feelings he was sensing were directed at Rey but they weren't.   Or... B) Snoke was so preoccupied with Kylo's thoughts that he wasn't paying any attention to Rey's thoughts. Rey takes advantage of this and uses the Force to turn and ignite the Skywalker lightsaber to slay Snoke. This option is reinforced by the fact that  1) the Skywalker lightsaber then zooms into Rey's hand, not Kylo's.  2) after the ensuing scuffle, Kylo Ren reveals that he hasn't switched sides; he is still a believer in the First Order.  3) Kylo Ren even tells Hux that Rey slew Snoke. How to find historical airfares? Is there a way to find out how much it would have cost to buy a particular airplane ticket at some point in the past?    For example, how could I find out how much it would have cost to buy a one-way itinerary from airport A to airport B on October 1, 2011 for travel on November 1, 2011? solving diophantine equations using congruences So, a question in Elementary Number Theory by David M. Burton:     Problems 4.4      2(a) Using congruences, solve the diophantine equation 4x + 51y = 9       Hint: $4x \equiv 9(mod \ 51) $ gives $ x = 15 +51t$, whereas $ \ 51y \equiv 9 (mod \ 4)$ gives $y = 3+4s $. Find the relation between $s$ and $t$ From this hint, I substitute $ x = 15 +51t$ and $y = 3+4s$ in the given equation $4x + 51y = 9$ to get the relation $s = -t-1$ and using which I can get the solutions $ x = 15 + 51t, \ y =-1-4t$ But we know that the solutions of $ax \equiv b (mod \ n)$ is equivatent to the solutions of the diophantine equation $ax -ny = b$, so, solutions of $4x \equiv 9(mod \ 51) $ is equivalent to solutions of the equation $4x-51y=9$ whereas, solutions of $51y \equiv 9(mod \ 4) $ is equivalent to solutions of the equation $-4x+51y=9$ Now, my question is: as, the above equations $4x-51y=9$ and $-4x+51y=9$ are different, then what is the point of substituting $ x = 15 +51t$ (solution of $4x-51y=9$) and $y = 3+4s $ (solution of $-4x+51y=9$) in the given equation $4x+51y=9$ to find a relation between $t$ and $s$ ? Isn't it absurd as $ x = 15 +51t$ and $y = 3+4s $ are solutions of two different equations? Can anyone please explain this? PS: I did it like this $4x \equiv 9(mod \ 51) $ gives $ x = 15 +51t$ and by substituting it in $4x+51y=9$ we get $y=-1-4t$ Alternative to LibreOffice Base for Ubuntu Assume that the matrices $A,\: B\in \mathbb{R}^{n\times n}$ satisfy  $$ A^k=0,\,\, \text{for some $\,k\in \mathbb{Z^+}$}\quad\text{and}\quad AB=BA. $$  Prove that $$\det(A+B)=\det B.$$ L1 regression estimates median whereas L2 regression estimates mean? Directing graph such that any outdegree would be at most 2 Let $G=(V,E)$ be a graph. Suppose that for every subgraph $G'=(V',E') , G' \subset G$, we have $|E'| \le 2|V'|$. Show it's possible to direct $G$ such that any outdegree would be at most $2$.   I tried proving it by induction. I've realized that the minimum degree at any subgraph of $G$ is at most 4. I tried removing the vertex $v_0$ with the minimal degree at a certain subgraph from the original graph, claiming that the graph from the remaining vertexes can be directed as required. How can I include the vertex $v_0$ in the new directed graph such that any outdegree would still be at most 2? Thanks 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. Limit of $(x_n)$ with $0<x_1<1$ and $x_{n + 1} = x_n - x_n^{n + 1}$ Let $0 &lt; x_1 &lt; 1$ and $x_{n + 1} = x_n - x_n^{n + 1}$ for $n \geqslant 1$.      Prove that the limit exists and find the limit in terms of $x_1$.   I have proved the existence but cannot manage the other part.  Thanks for any help.