Access last JSON element with javascript
Get the last item in an array
Why do some Kree have white skin? This seems bizarre to me.  All the Kree we've seen thus far (MCU based) were blue skinned... Ronan the Accuser being the most famous  What do Kree people look like?  Is there anything concrete with their appearance?  It seems odd that Danvers (Captain Marvel) and Jude Law's character (Yon-Rog?) and the "Supreme Intelligence" are all white skinned. is there a way to add hyperlinks in a Illustrator document? I am creating a CV in Illustrator and exporting it to a PDF. I just read an article which stated that it is a good idea that we use hyperlinks in the CV so that the employer can just click and not have to copy the address. I like this idea, but I don't know how to add a hyperlink to text in Illustrator. Is it possible? Health decreasing for no apparent reason I am playing Dragonborn DLC. I am currently going through one of the black books quests and even though I am not fighting my health bar keeps going down. I can heal back up to full again but it keeps disappearing. If I do not heal I will die in about 30 seconds.  I have no disease or nothing is visible anyway, no clue as to what's wrong. I can leave the black book quest or fast travel to a different location or rest for 24 hours but still the health disappears. How do I Deserialize this XML document:  &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Cars&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1020&lt;/StockNumber&gt;     &lt;Make&gt;Nissan&lt;/Make&gt;     &lt;Model&gt;Sentra&lt;/Model&gt;   &lt;/Car&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1010&lt;/StockNumber&gt;     &lt;Make&gt;Toyota&lt;/Make&gt;     &lt;Model&gt;Corolla&lt;/Model&gt;   &lt;/Car&gt;   &lt;Car&gt;     &lt;StockNumber&gt;1111&lt;/StockNumber&gt;     &lt;Make&gt;Honda&lt;/Make&gt;     &lt;Model&gt;Accord&lt;/Model&gt;   &lt;/Car&gt; &lt;/Cars&gt;   I have this:  [Serializable()] public class Car {     [System.Xml.Serialization.XmlElementAttribute("StockNumber")]     public string StockNumber{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Make")]     public string Make{ get; set; }      [System.Xml.Serialization.XmlElementAttribute("Model")]     public string Model{ get; set; } }   .  [System.Xml.Serialization.XmlRootAttribute("Cars", Namespace = "", IsNullable = false)] public class Cars {     [XmlArrayItem(typeof(Car))]     public Car[] Car { get; set; }  }   .  public class CarSerializer {     public Cars Deserialize()     {         Cars[] cars = null;         string path = HttpContext.Current.ApplicationInstance.Server.MapPath("~/App_Data/") + "cars.xml";          XmlSerializer serializer = new XmlSerializer(typeof(Cars[]));          StreamReader reader = new StreamReader(path);         reader.ReadToEnd();         cars = (Cars[])serializer.Deserialize(reader);         reader.Close();          return cars;     } }   that don't seem to work :-( Not flying the first leg of the journey – Company cancels the second-leg ticket I've a friend that booked a round-trip journey. He booked A-to-B and B-to-A. Somehow he needed to be earlier at location B, so he took a train and did not take the flight from A to B.  When he went to the airport to take the "back home" flight (B-to-A), he was informed that his ticket was canceled because he did not take the A-to-B flight. They canceled the ticket and sold it to someone else.  Is this normal? The company said it was their right to do so, and he could not get the flight back. The company was Iberia. What is the difference between independent and mutually exclusive events? Cards entering the battlefield simultaneously and "Enter the Battlefield" effects I was playing modern with the owner of a shop.  He played a  which he used to bring in 7 lands: 5 basic mountains and 2  cards.  He then claimed that each  triggered 5 times (killing me).  I am doubting this now.    Here is my reason: The two  cards entered at the same time as the other 5 basic lands.  That means when they were on the battlefield and their ability was in effect, the other 5 basic lands were already there too.  That seems too late to trigger a "Enters the Battlefield" effect.  So here is my question.  Am I right or wrong?  If I am wrong, please show me how the enter the battlefield effect can trigger for something that enters the battlefield at the same time as itself.  If I am right, please show me the rules that prove it.  I now have two shop owners that are convinced that this is a legal play.  If it is not legal, I am going to need clear rules citations to convince them.    Side note:  If I am wrong and it is a legal play, then I have a follow up scenario.  Say I have 2  cards and 5 other human cards in my graveyard.  If I play a spell that lets me return all of them to the battlefield at the same time (say ), would the  cards get 6 +1/+1 counters on them?    To me, if the trick that was played on me with  is legal then my  cards should also get the +1/+1 counters. So, I have about 7 actions users may need in my app, and I have to use text instead of icons because it is a customer requirement.  I can add only 3 actions to my toolbar on iPhone 6. On Android you have the hamburger menu (see image), but I have never seen it in iOS.       So, what is the appropriate concept in iOS to add many actions into a menu? Why is the set of commutators not a subgroup? Fold a plane. then fold again Imagine a piece of paper and you fold it in half and then fold it again. that's what I am trying to do and cant. If I use bones the influence of the bones won't allow me to because I need 2 bones to control the same area. If I try shape keys it just deforms the mesh if I try to make it in multiple steps or does the wrong animation because it draws the shortest path instead of rotating from a point like a piece of paper would. I have an armature set up, but the bones aren't moving the mesh properly  The mesh and armature:    The vertex group of the bone I am going to move:    As you can see, the circled region doesn't belong to the vertex group. But, when I move the bone look what happens:    That part of the mesh has moved with the bone.. Why? How to put a brace on the right, not left, to group cases? How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&amp;=bbb\\ c&amp;=ddddddd\\ e&amp;=ffffffffff \end{cases} \end{align}   Thanks for any help with this! How to test hypothesis of no group differences? I have been reading through my notes and I came across this example and I found it hard to understand so I need some help in explaining how the inverse of this is found.  The set $\mathbb Q(\sqrt 2)=\{a+b\sqrt2$: $a,b$ in $\mathbb Q \}$ is a field. The inverse of an element $a+b\sqrt 2$ in $ \mathbb Q(\sqrt 2$) is  $$\frac{1}{a+b\sqrt{2}}=\frac{a}{a^2-2b^2}+\frac{-b}{a^2-2b^2}\sqrt{2} $$  Can anyone explain  to how the inverse was found? Appreciate your help. What could cause exposure problems after my camera got wet? I had an unfortunate accident where my DSLR camera (and me) briefly ended up in a river. The camera wasn't fully submerged but it did get very wet. It still works, sort of, although the electrics are doing some random things. I'm hoping that's just a bit of dampness doing that, that will fix itself when it dries out fully.  More concerning is that the documents exposure metering seems to be all wrong when using the viewfinder. Pictures are extremely overexposed and nearly white. But if I use live view, then they are fine.  Why could cause this? I assume the light is routed a different way when using the viewfinder and maybe it is going through something with water/condensation on it? Taskbar > File Explorer > Context Menu failing me So I have the latest version of Windows 10, and this is a new PC.  File Explorer is in the taskbar.  When I open the context menu (right-click) on it, I get the list of folders as seen in the picture.  When I right click on any of them, I get the blank black box you see in the picture.  If I click on any of the folders, such as Downloads or Update.  Nothing happens.  They don't open.  The only way to use it is to click on the actual File Explorer icon and then navigate from there.  I've tried uninstalling things (not that I have much installed since it's a fresh install) and I've tried scans, etc.  This only happens with File Explorer.  Everything else works fine.  I can't figure it out. The most prominent place I've noticed this is when SSH-ing at work, but I feel like I've observed this behaviour elsewhere too.  When I try to log into Linux servers from my Windows desktop at work, I've noticed that if I mis-type my password, it takes a good 5 seconds or so before I get "Access Denied" back. Then when I type my password correctly, the login (along with welcome messages etc) is virtually instant.  Is there any logical reason for this, or would it be down to some odd configuration that's specific to the machines here at work? Energia/MSP-EXP432 Issue: Analog In Pin removing voltage from Voltage Divider In the circuit below, I want to measure the voltage going to the ADC (output from the voltage divider consisting of a fixed resistor and photoresistor) using an MSP-EXP432; however, the MSP-EXP432 "Analog In" pin is lowering the output voltage (i.e. the voltage going into the ADC from the voltage divider drops when the "Analog In" pin is connected).  I set the analog pin as an input in the code shown below in Energia.  Is there any way to fix this?    const int bitsOfADC = 14; // 14-bit ADC Launchpad //int maxVal = 2^N -1;  // 2^14-1 int maxVal = 16383; float FSV = 5.0; // Supply to 0804ADC float LaunchPadResolution = FSV/maxVal; int D7 = A13; int D6 = A14; int ADCInput = A6; boolean D7_State = LOW; boolean D6_State = LOW; void setup() {   delay(1000);   Serial.begin(9600);   pinMode(D7, INPUT);   pinMode(D6, INPUT);   analogReadResolution(bitsOfADC);   pinMode(ADCInput, INPUT); } The mediation package in R returns results in which:   Average Direct Effect (ADE) (the unmediated effect) is not statistically significant The Average Causal Mediated Effect (ACME) (the effect of the mediator alone) is positive and statistically significant The Total Effect (ADE+ACME) is larger than the ADE and ACME alone, positive and statistically significant   Does this indicate that the variable being mediated can only act through the mediator DV? I'm not quite certain as to how this would be interpreted.  Thank you for any help. Trackpad not working after update to Ubuntu 14.10 on Dell Inspiron 15R