Is there an debug equivalent in C# to javascript's console.dir()?
What is the best way to dump entire objects to a log in C#?
I'm not the most experienced person when it comes to commands. I worked out how to do stuff like when holding x you have y effect. I wanted to think of something that gave other people an effect when hit. Here is what I came up with but I got stuck when it said it couldn't execute the command.  /scoreboard objective add nokill dummy  /scoreboard objective add poi dummy  /scoreboard players set [player] nokill 1  /scoreboard players add @a poi 1 {SelectedItem:{id:minecraft:diamond_sword,display:{Name:{Poison sword}}}}  /execute @a[score_poi_min=1] ~ ~ ~ /effect @p[score_nokill_max=1,r=5] {HurtTime:1} minecraft:poison 10 1 What are the rules for calling the base class constructor? What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - giving you a compile error if that's missing). How to bind 'touchstart' and 'click' events but not respond to both? How can I extract text from images?  I am not talking about scanned files, but garden variety images, such as when you take a high-def picture of a blackboard at class, and it is nicely handwritten; or when you photograph a page from a recipe book and want the recipe in text format.  Any free and open software for that?  I tried tesseract, and the results were awful. Why Didn't People Think That Voldemort Died After His Attack on Baby Harry? After the Avada Kedavra curse rebounded from Harry onto Voldemort, Voldemort disappeared. I'm curious as to why so many key players believed Voldemort was still "alive" somewhere, his powers decimated, but, under the right circumstances, able to return to full power. It seems the witches and wizards in chapter one of Philosopher's Stone, The Boy Who Lived, were happy to believe that Voldemort was gone forever. Why didn't everyone believe Voldemort had died, rather than just disappeared? Was it the lack of a body? Or were there other reasons?  Here's a couple of quotes from Philosopher's Stone if anyone wants to review them. Otherwise, just disregard.     ‘A fine thing it would be if, on the very day You- Know-Who seems to have disappeared at last, the Muggles found out about us all. I suppose he really has gone, Dumbledore?’   ‘It certainly seems so,’ said Dumbledore. ‘We have much to be thankful for.’   Philosopher's Stone - page 13 - Bloomsbury - chapter 1, The Boy Who Lived   ‘But what happened to Vol– sorry – I mean, You-Know-Who?’   ‘Good question, Harry. Disappeared. Vanished. Same night he tried ter kill you. Makes yeh even more famous. That’s the biggest myst’ry, see ... he was gettin’ more an’ more powerful – why’d he go?   ‘Some say he died. Codswallop, in my opinion. Dunno if he had enough human left in him to die. Some say he’s still out there, bidin’ his time, like, but I don’ believe it. People who was on his side came back ter ours. Some of ’em came outta kinda trances. Don’ reckon they could’ve done if he was comin’ back.   ‘Most of us reckon he’s still out there somewhere but lost his powers. Too weak to carry on. ’Cause somethin’ about you finished him, Harry. There was somethin’ goin’ on that night he   hadn’t counted on – I dunno what it was, no one does – but somethin’ about you stumped him, all right.’   Philosopher's Stone - pages 46-47 - Bloomsbury - chapter 4, The Keeper of the Keys Comment submission broken for comments that end with @username Adding materials to more than one object pgfplots data time format I have this type of data set:  Time          State 22:54:14.716    5 22:54:14.716    5 22:54:14.716    5 22:54:14.716    5 22:54:14.729    4 22:54:14.919    1 22:54:14.919    1 22:54:15.128    5   I would like to plot a graph with pgfplots but the package can not read properly the time format. When transiting Moscow (SVO), citizens of which countries need a transit visa? What happened to Finn's blaster at Maz Kanata's? When entering, we see that Finn has the blaster that was given to him earlier:    However, when the fighting begins, Finn tells Maz that he needs a weapon and no longer has his blaster with him.  It seems unlikely to have been lost in the first shots, given how it is secured across his body.  Also, Han and Chewie didn't lose their weapons and they are arguably less secure.  Now, when the team gets to the Resistance base, Finn again has his blaster:    So where was this blaster during the battle? Let $a,b,c$ are non-negative numbers, such that $a+b+c = 3$.  Prove that $\sqrt{a} + \sqrt{b} + \sqrt{c} \ge ab + bc + ca$    Here's my idea:  $\sqrt{a} + \sqrt{b} + \sqrt{c} \ge ab + bc + ca$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) \ge 2(ab + bc + ca)$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) - 2(ab + bc + ca) \ge 0$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) - ((a+b+c)^2 - (a^2 + b^2 + c^2) \ge 0$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) - (a+b+c)^2 \ge 0$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge (a+b+c)^2$  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge 3^2 = 9$  And I'm stuck here.  I need to prove that:   $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge (a+b+c)^2$ or  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge 3(a+b+c)$, because $a+b+c = 3$  In the first case using Cauchy-Schwarz Inequality I prove that:  $(a^2 + b^2 + c^2)(1+1+1) \ge (a+b+c)^2$  $3(a^2 + b^2 + c^2) \ge (a+b+c)^2$  Now I need to prove that:   $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge 3(a^2 + b^2 + c^2)$   $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) \ge 2(a^2 + b^2 + c^2)$   $\sqrt{a} + \sqrt{b} + \sqrt{c} \ge a^2 + b^2 + c^2$   I need I don't know how to continue.  In the second case I tried proving:  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) \ge 2(a+b+c)$ and  $a^2 + b^2 + c^2 \ge a+b+c$  Using Cauchy-Schwarz Inequality I proved:  $(a^2 + b^2 + c^2)(1+1+1) \ge (a+b+c)^2$  $(a^2 + b^2 + c^2)(a+b+c) \ge (a+b+c)^2$  $a^2 + b^2 + c^2 \ge a+b+c$  But I can't find a way to prove that $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) \ge 2(a+b+c)$  So please help me with this problem.  P.S   My initial idea, which is proving:  $2(\sqrt{a} + \sqrt{b} + \sqrt{c}) + (a^2 + b^2 + c^2) \ge 3^2 = 9$  maybe isn't the right way to prove this inequality. Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. \"File\r\n\" Regain of reputation from downvoted and deleted answers - update FAQ I would like to find the correlation between a continuous (dependent variable) and a categorical (nominal: gender, independent variable) variable. Continuous data is not normally distributed. Before, I had computed it using the Spearman's $\rho$. However, I have been told that it is not right.  While searching on the internet, I found that the boxplot can provide an idea about how much they are associated; however, I was looking for a quantified value such as Pearson's product moment coefficient or Spearman's $\rho$. Can you please help me on how to do this? Or, inform on which method would be appropriate?  Would Point Biserial Coefficient be the right option? 'Guest' vs 'Guest User License' in sites? How do you iterate through every day of the year? To be specific, I was trying this code:  package hello;  public class Hello {      Clock clock = new Clock();      public static void main(String args[]) {         clock.sayTime();     } }   But it gave the error      Cannot access non-static field in static method main   So I changed the declaration of clock to this:  static Clock clock = new Clock();   And it worked. What does it mean to put that keyword before the declaration? What exactly will it do and/or restrict in terms of what can be done to that object? I've been looking for some addon or something to render only the marked frames on timeline, i found this answer here on the stackexchange   The thing is this script only works with multiple cameras, i have only one camera that goes all aorund the scene but i only want to render the frames that i've marked on timeline.  Is there someone who can help me modify this script? Or find a better solution? I tried to evaluate $$\lim_{x\to0}\frac{(1+x)^{1/x}-e}x$$but all my efforts were in vain . L'Hospital rule becomes very complicated. I have recently imported books into Canada from Japan.  As I bought in excess of 5000¥, the purchase was tax free and the receipt was stapled to my passport and stamped.  Since I've now come back to Canada and no issues occurred with my imports, Is it safe to remove the receipts from my passport?  As it was stamped and stapled, there will remain a trace that something was there. Could this cause problems when I return to Japan at a later time?