I have problem, i have coded some simple if statement on beggining of the code that looks like this:     manager.on('sentOfferChanged', function(offer, oldState) {  if (TradeOfferManager.ETradeOfferState[offer.state] === &quot;Declined&quot;) {   var ifvartruefalse = false;   return; } if (offer.itemsToGive.length == 0){     if (offer.state == TradeOfferManager.ETradeOfferState.Accepted){      var ifvartruefalse = true;     }   } });  Then I am trying to call that var from these if statements to tell me if its true or false inside another if statement:                                                     if (ifvartruefalse == false){                                                     message.reply('&lt;:false:750799883572609245&gt; **Trade was declined, deleting the coinflip**');                                                     return                                                   }                                                      if (ifvartruefalse == true){                                                     message.channel.send('&lt;:true:750799921497505913&gt; **Trade was succesfully confirmed**, generating random ticket from 0 to 100');  And keep getting error that ifvartruefalse is not defined. Please someone help...
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
Does $1^{\infty}=e$ or $1^{\infty}=1$? How can I determine the sudo password? What is the default password of the sudo? I visit some forums, it tells that the default password is password, but it doesn't work, how can I determine the password? Zorn's Lemma states that if every chain $C$ in a partially ordered set $X$ has an upper bound then there is at least one maximal element in $X$.  Let $n\in \mathbb{N}$, $C_n \subset \mathbb{N}$ be the set containing the natural numbers $\{1,\dots,n\}$. Then if $k\le n$, $C_k\subset C_n$, so $C_n$ is a chain. Also, $C_n$ has an upper bound, such as $n+1$. But what is the maximal element of $\mathbb{N}$?  There's something I don't get in Zorn's Lemma statement. Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application. Background My application consists of a Winforms UI, a backend WCF service and a website to publish content to the UI and other consumers. To prevent the situation where the UI starts up and fails to work properly because of a missing WCF service or website being down I have added an app startup check to ensure that all everything is alive. The application is being written in C#, .NET 3.5, Visual Studio 2008 Current Solution Currently I am making a web request to a test page on the website that will inturn test the web site and then display a result. WebRequest request = WebRequest.Create(&quot;http://localhost/myContentSite/test.aspx&quot;); WebResponse response = request.GetResponse();  I am assuming that if there are no exceptions thown during this call then all is well and the UI can start. Question Is this the simplest, right way or is there some other sneaky call that I don't know about in C# or a better way to do it. Should I vote to close a duplicate question, even though it's much newer, and has more up to date answers? I have seen this many times, a question is being asked because a previous, duplicate question was asked and answered a few years ago and has no longer relevant answers.  The  is to edit the old question, or add new answers to it, but it is not always happening.  I was wondering, should I still mark it as duplicate and vote to close it? Or just leave it as is? Orange squares appearing on render? I'm trying to render a scene in Blender, and as of yesterday (it was not doing this when I was working on it 2-3 days ago), I am seeing orange squares dancing around the rendered image. Google tells me that these are render tiles (I think), but what are they, why are they there, and how do I get rid of them? Outlook: scheduling recurring out-of-office? In Outlook, is there a way (or an add-on that can do it) to schedule a recurring out-of-office message?  I work 4 10's, so I'm out of the office every Monday, and it's a bit of a pain to have to reset my out-of-office message every single week. Does an absolutely integrable function tend to $0$ as its argument tends to infinity? Suppose that $f:[0,\infty)\rightarrow\mathbb{R}$ is continuous. Is it true that   $$\int_{0}^\infty|f(t)|dt&lt;\infty\Rightarrow \lim_{t\rightarrow\infty}f(t)=0?$$  If so can you provide a proof, otherwise a counter example. Thank you. Direct observations of a black hole? I'm not very knowledgeable about physics generally, but know that nothing can escape a black hole's gravitational pull, not even light (making them nearly invisible?).   My question is: What has been obtained from direct observation of a black hole to prove their existence? Please note that I'm not questioning the existence of black holes, but am just curious as to how we have come to realize it. Radical of $\mathfrak{gl}_n$ I find it intuitive enough that the radical of $\mathfrak{gl}_n\mathbb F$ is the scalar matrices, but I have trouble finding an easy, but complete proof:  Proof. Let $\mathfrak s$ denote the scalar matrices. Clearly $\mathfrak s\subset\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$. Suppose that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is generated by more than one element, so that $X\in\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$, but $X\notin\mathfrak s$. We can change basis such that $\mathrm{rad}(\mathfrak{gl}_n\mathbb F)$ is upper-triangular. (The change of basis leaves the scalar matrices invariant.) Then $X$ is upper-triangular.  I want to conclude that there exists a $Y\in\mathfrak{gl}_n\mathbb F$ s.t. $[X,Y]$ is not upper-triangular. How can I see that $Y$ always exists, except by waving hands? Why can't we initialize members inside a structure? Why can't we initialize members inside a structure ?  example:  struct s {    int i = 10; }; My prof gave us this definition of an Echelon system:     A system of m linear equations in n variables is called an echelon system if         m ≤ n.   Every variable is the leading variable of at most one equation.   Every leading variable is to the left of the leading variables of all lower equations.   Every equation has a leading variable.      I don't understand this definition at all.  Q1)If you have this system of equations:  $ax_1 + bx_2 + cx_3 = z$  $dx_1 + ex_2 + fx_3 = z$  its not an echelon system because of multiple equations having the same variable as the leading variable and therefore violating rule #2.  But if you switch around variables and rewrite the equation as:  $ax_1 + bx_2 + cx_3 = z$  $ex_2 + dx_1 + fx_3 = z$  It becomes an echelon system! Why would the way you write a system of equations affect its definition?  Q2)Why would point number three matter? Can't you just move around the equations so that they are in order of variables?  Q3)Why would point number four matter? If you have a equation in the system that doesn't have a leading variable can't you just disregard it? For example if you have the equation $0x = 0$ in the equation can't you just ignore it to have a echelon system since it doesn't affect the solution of the system? I can't write Chinese characters in edited posts, but OP could when posting Are electrons miniature black holes? Disable Hyperlink on a SharePoint 2013 page I want to disable the hyperlink for a specific class part of Site Feeds in SharePoint 2013.  I`m using Jquery to do the same, but it is not working for me. Code for reference  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.3/jquery.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;     var location= $('.ms-microfeed-userName ms-textLarge ms-subtleLink').attr("href");  $(".ms-microfeed-userName ms-textLarge ms-subtleLink").removeAttr('href');  $('ul').addClass('expanded');  $('ul.expanded').fadeIn(300);  $(".ms-microfeed-userName ms-textLarge ms-subtleLink").attr("href", location);    &lt;/script&gt; Accessing UI thread handler from a service Single Variable Calculus Reference Recommendations This question is a  of the common question asking for calculus references. It is here to  away the repetition, and give a canonical resource for calculus references.      I'm looking for a resources to learn single-variable calculus. How to list files that were changed in a certain range of time? How can I list recursively all files that were changed between 22.12.2011 and 24.12.2011? Scale Space Between Multiple Objects If I have multiple objects selected can I use scaling to make the objects closer together (without rescaling the objects)? How to sort lines by float number I've such a file:  name: xxx --- time: 5.4 seconds name: yyy --- time: 3.2 seconds name: zzz --- time: 6.4 seconds ...   Now I want to sort this file by these float numbers to generate a new file as below:  name: yyy --- time: 3.2 seconds name: xxx --- time: 5.4 seconds name: zzz --- time: 6.4 seconds ...   I've tried the command awk '{print $5}' myfile | sort -g but this will show me ONLY the float numbers.