Changing a global variable inside a function
Using global variables in a function
Interpreting spline results Why don't applications update by calculating difference? Is every sub-lattice of $\mathcal P(X)$ isomorphic to a sub-lattice of $\mathcal P(X')$ containing singleton sets? how do i get my stolen phone& pictures back? On 7 july 15 someone broke in my house and stole my galaxy note 3 it did not have service it has been disconnect for about 6mo now i would like to get my phone back because it had picture of me and my dad who died the day after father day this past june &amp; other family pictures that can not be replaced.how do i go about getting those back? ESTA approved on the same day as B-1/B-2 visa refused I am writing because I have a question regarding my ESTA application and because I could not find a similar case online that would help me at this stage. I have never been to the U.S. so this would be my first visit.    I am a German citizen, hence eligible for the Waiver Program. I applied for an ESTA in June 2014 and got approved. After further research on the Internet I learned that the passport should be valid until 6 months after the planned return date. My passport was due to run out in Feb 2015 - which still should have been fine but because I didn't want to take chances I applied for a new passport which was issued August 2014 and is now valid until August 2024. My passport number has been changed also.    After I received my new passport I was advised by a friend to apply for a B-1/B-2 visa as it would allow me to extend my stay and it seemed like a good idea at first. On the day of my interview I also applied for a new ESTA with my new passport number (just in case) which again was granted.   Unfortunately for me the interview for the B-1/B-2 visa was unsuccessful and I got rejected. I was not aware then that after a rejected interview one could not travel with ESTA, otherwise I would have never risked it!  Now I am very concerned, can I still use my ESTA and enter the U.S.? as I read everywhere that once you get rejected the chances of getting through are very slim and any visa rejection will result in not being able to use the waiver program.  It might be important to note that both the B-1/B-2 interview and the waiver application were on the same day, 21st of August 2014, so depending on how one might look at it that might present a problem too I suppose.  I guess the frustration lies in the fact that I did not need to apply for a B-1/B-2 visa to begin with, and had I not I would now not have these problems. I would like to know how likely it is that I can still travel under the waiver program, if at all, and what my options are at this point. Show $\lim_{n \to \infty} n^{-1} E \left( \frac{1}{X}1_{[X>n^{-1}]} \right) =0$ Suppose $X$ is a non-negative random variable satisfying  \begin{align*} P[0 \le X &lt; \infty ]=1. \end{align*} Show   a)  \begin{align*} \lim_{n \to \infty} n E \left( \frac{1}{X}1_{[X&gt;n]} \right) =0 \end{align*} b)  \begin{align*} \lim_{n \to \infty} n^{-1} E \left( \frac{1}{X}1_{[X&gt;n^{-1}]} \right) =0 \end{align*}  What I did  I showed part a) already here is the proof:  \begin{align*} n E \left( \frac{1}{X}1_{[X&gt;n]} \right) \le n E \left( \frac{1}{n}1_{[X&gt;n]} \right)=n\cdot\frac{1}{n}P[X&gt;n]=P[X&gt;n] \end{align*} So $\lim_{n \to \infty} n E \left( \frac{1}{X}1_{[X&gt;n]} \right) \le \lim_{n \to \infty} P[X&gt;n]=0$.  What about part b)? The same techniques no longer works.  I was thinking that  \begin{align*} \lim_{n \to \infty} n E \left( \frac{1}{X}1_{[X&gt;n]} \right) \le \lim_{n \to \infty} n E \left( \frac{1}{X} \right) \le 0 \end{align*} but I am not sure that $E \left( \frac{1}{X} \right) &lt; \infty$ I was wondering if it is possible to get a link to a rigorous proof that  $$\displaystyle \lim_{n\to\infty} \left(1+\frac {x}{n}\right)^n=\exp x$$ Area51 proposals are being advertised now all over the network? I want to print the floating point number with exactly two significant digits in bash (maybe using a common tool like awk, bc, dc, perl etc.).  Examples:   76543 should be printed as 76000 0.0076543 should be printed as 0.0076   In both cases the significant digits are 7 and 6. I have read some answers for similar problems like:      but the answers focus on limiting the number of decimal places (eg. bc command with scale=2 or printf command with %.2f) instead of significant digits.  Is there an easy way to format the number with exactly 2 significant digits or do I have to write my own function? Possible Duplicate:          I've added myself back into the admin's group I think, by following   But I still can't do commands like:  sudo aptitude update   I get the message  oshirowanen is not in the sudoers file.  This incident will be reported.   How do I add myself into the sudoers group now that I am in the admin group? Remove Reviewer and Steward badges Badges should encourage good behaviour. But what when a badge encourages more bad behaviour than good?  We hear it all the time - robo reviewers, badge-hunters. The review system fights with that users that only want badges and not want to help.  There are many suggestions how to find such robo-reviewers or how to make it difficult to robo-review. But why not cut them off at the source? Don't make them want to review for badges at all.  Remove the Reviewer and Steward badges! The Custodian Bronze badge should suffice to bring a user to the review system. And we really only want users doing reviews who want to help and not doing it for the badges. Given a group $ G $, how many topological/Lie group structures does $ G $ have? I want to do something like the following in TeX:  \begin{nobreak}    Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page.    \end{nobreak}   Is this possible? Why would var be a bad thing? Closures in a for loop Ranking based on binomial data (example: website conversions) Can we search posts by number of comments? How does light speed up after coming out of a glass slab? As I learned today in school, my teacher told me that when light enters a glass slab it slows down due to the change in density and it speeds up as it goes out of the glass slab. This causes a lateral shift and the light emerges out from the point different than that from where it should have actually emerged from.  Okay so what I mean to ask is, when light enters point A on glass slab and emerges from point C why does the light speed up? Where does it get the energy it has lost when it entered the glass slab?  P.S.: Also, if I place a very very very large glass slab and make a beam of light pass through it will the light never come out as all the energy was lost in place of heat? Find the solution of following differential equation:     $$\frac{dy}{dx}=\frac{1}{xy(x^2 \sin (y^2)+1)}$$   Could someone hint me something to get through this problem? Why "be king", not "be a king"? I've heard people say "be king" (as in "I can't wait to be king") in movies and TV. Why don't they say "be a king"? Which is correct?