We know that the first request to Asp.net MVC web aplication causes the aplication to start and Application_start event to run.  I want to know when the Application is closed.thus a new request will trigger Application_start event(something like AplicationTimeout not SessionTimeout).  If available ,is it Adjustable by developer or related to iis settings?
Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, will Application_End be triggered automatically? + Are there any other reasons why Application_End could be triggered?
I would like to prove the following equality: $$k^{\phi(l)} + l^{\phi(k)} \equiv1\pmod{lk}$$if $\gcd(l,k)=1$. What methods can I use? Thank you for your help. How to align checkboxes and their labels consistently cross-browsers What prevents investors from buying high yield stocks and selling them as soon as their dividend is paid out? What prevents investors from buying high yield stocks and selling them as soon as their dividend is paid out?   I guess I am confused: If you know the yield and when the dividend will be paid out, why not buy a share an instant before the dividend is paid out and then sell it?  Do you have to have held the share for some amount of time to get the dividend? Is there too much volatility in the instant the dividend is paid out? Linear regression in a loglog-plot with fixed slope Goal: create a plot to compare the empirical convergence rate of a numerical method with the one expected from the theory.  Accordingly, given a loglog-plot, I would like to add the line which has a prescribed slope (in this case, the convergence of the method) and the best intercept to fit the data (e.g., in a least-square sense).  Question: how to do a linear regression with fixed slope in pgfplots?  What I have done so far is the following: (1) compute the regression line (of the logarithm of the quantities), (2) save the intercept, (3) plot the line with the slope expected from the theory and this intercept.  This is a good approximation of what I am looking for, provided the data are in agreement with the theory.  Thanks  MdFB Is there a way to set initial state with rigid bodies? Let's say I set up a Rigid Body simulation in Blender (not in GE), and then run the simulation for a number of frames. Is there a way to tell Blender to use the current state and position as the initial state? So that when I go back to frame 1, the rigid bodies stay in the same place they did in frame X.  For instance, if I want a pile of bricks, I first place the bricks in the air and then let them drop down on the ground, coming to rest. When they have come to rest, I want to use that position as the starting position. Why am I getting different results from two servers that located in the same destination network? There's two servers with the same network IP, and the only difference between them is the last two numbers like: 37.211.15.247 and 37.211.166.178. The Hosting Provider claims that the subnet mask for both networks is 255.254.0.0  When I try the command Tracert (Traceroute) to test the ping and to see what hops does it take to reach the destination server, I get different ping times and different forward path results which is strange because they are all located in the same company host.  Is there something wrong? Shouldn’t it take the same path too?  I have added the the full IP addresses to both servers as requested by some commenters. Well the two servers aren’t “International” anyways, so as far as I know, the only thing that comes to mind is the possibility that the two are configured on different subnetworks just like what . Though it’s suspicious.  UPDATE: After doing so much research, I found out the Subnet of these two hosts. They are on a /15 (255.254.0.0) subnet mask. Unfortunately, this is what that hosting provider claimed to me which is not true, and the true Subnet they apparently use is a /17 (255.255.128.0) Subnet mask. It turns out that they were definitely on different Subnets. That's why I got different traceroutes when I tested these two IPs 37.211.15.247 and 37.211.166.178  because they are clearly on different Subnets. Thank you everyone for these good answers, especially  his answer helped me a lot. What are good books for graduates/undergraduates in Astrophysics? There are no book recommendations for Astrophysics here. I will write my own answer, but I am also interested in what are others' views on the question (I will NOT mark my own answer as the best one). What software works well for viewing massive TIFF images on Windows 7? Does mathematics become circular at the bottom? What is at the bottom of mathematics? I am trying to understand what mathematics is really built up of. I thought mathematical logic was the foundation of everything. But from reading a book in mathematical logic, they use "="(equals-sign), functions and relations.  Now is the "=" taken as undefined? I have seen it been defined in terms of the identity relation.  But in order to talk about functions and relations you need set theory.  However,  seems to be a part of mathematical logic.  Does this mean that (naive) set theory comes before sentential and predicate logic? Is (naive)set-theory at the absolute bottom, where we can define relations and functions and the eqality relation. And then comes sentential logic, and then predicate logic?  I am a little confused because when I took an introductory course, we had a little logic before set-theory. But now I see in another book on introduction to proofs that set-theory is in a chapter before logic. So what is at the bottom/start of mathematics, logic or set theory?, or is it circular at the bottom?  Can this be how it is at the bottom?  naive set-theory $\rightarrow$ sentential logic $\rightarrow $ predicate logic $\rightarrow$ axiomatic set-theory(ZFC) $\rightarrow$ mathematics  (But the problem with this explanation is that it seems that some naive-set theory proofs use logic...)  (The arrows are of course not "logical" arrows.)  simple explanation of the problem:  a book on logic uses at the start: functions, relations, sets, ordered pairs, "="  a book on set theory uses at the start: logical deductions like this: "$B \subseteq A$", means every element in B is in A, so if $C \subseteq B, B \subseteq A$, a proof can be "since every element in C is in B, and every element in B is in A, every element of C is in A: $C \subseteq A$". But this is first order logic? ($(c \rightarrow b \wedge b \rightarrow a)\rightarrow (c\rightarrow a)$).  Hence, both started from each other? Emulate "double" using 2 "float"s C Scanf suddenly stopped reading in values Sequential renaming of files I found an answer for  which works fine for renaming filenames as follows :  1.jpg &gt; 00001.jpg 2.jpg &gt; 00002.jpg . . . 9.jpg &gt; 00009.jpg   That uses the following command:  rename 's/\d+/sprintf("%05d", $&amp;)/e' *.jpg   But my filenames aren't numeric. They are an alphanumeric sequence, like: a.jpg, b.jpg, c.jpg...... m.jpg.  In a similar way to the original question, I want to rename these so they display in the correct sequence. How do I do this? When to use (and not use) the rule of three Replacements for switch statement in Python? I want to write a function in Python that returns different fixed values based on the value of an input index.    In other languages I would use a switch or case statement, but Python does not appear to have a switch statement.  What are the recommended Python solutions in this scenario? I shall assume that the sun is at rest, so before the half mass disappear, the orbit of earth is an ellipse. Evaluating and negotiating a start-up package I've been offered an academic position, and am now in the fortunate, but unfamiliar position of negotiating the offer.  I've seen a few blogs/comments/posts on this process.  However, I have no real idea how to evaluate the offer that's been made.  Coming from the position of a postdoc, the package seems impressive (given that, as a postdoc, my "package" consists of a very modest salary and health benefits).  However, I also realize the importance of maximizing (within reason) my initial offer, as this sets the baseline for, at least, the first few years of my faculty career and could provide support that would prove very important in the initial year or so while I'm trying to obtain grant funding.  In particular, I'm looking for two types of information.  First, what types of startup packages are standard for tenure-track assistant professors of Computer Science at a public RU/VH (i.e. Research) university?  This is just to give me some point of comparison.  Second, what types of changes are reasonable to negotiate?  Can I ask for more summer salary support while still conveying to them my desire to obtain grant funding as quickly as possible?  The offer already includes a reduced teaching load for the first few years --- is it also reasonable to ask for an extra semester off prior to a tenure review?  I understand these are fairly broad questions, but any input or suggestions would be very helpful.  I'm definitely interested in the job; I really liked the department and think it's a great opportunity.  I don't want to alienate anyone by pushing too hard, but at the same time, I want to make sure that I make every reasonable effort to maximize my chances for academic success, which includes maximizing my available resources by negotiating the best startup package I can. How does a Support Vector Machine (SVM) work? Evaluate $\mathop {\lim }\limits_{x \to 0} \left( {{1 \over {{{\sin }^2}x}} - {1 \over {{x^2}}}} \right)$ I tried l'Hospital but that will require a lot (and I mean A LOT!!!) of differentiating  Is there a shortcut? $$\mathop {\lim }\limits_{x \to 0} \left( {{1 \over {{{\sin }^2}x}} - {1 \over {{x^2}}}} \right)$$  Thanks in advance TikZ is undergoing lots of development with new features being added, but the versions distributed with standard TeX releases are often a little old. How do I get the latest version? If I want to be sure that I get the latest stable version, how do I do that?    Note: I'm not asking this question for myself, but because a question like this seems to be useful for pointing to it when a new feature of TikZ is mentioned in an answer to some other question. Feel free to post answers for any operating system/TeX distribution combination. A doubt on the definition of limit of a function definition I want to prove the definition of limit of a function from definition (1) to definition (2).  (1) A function $f(x)$ is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for every sequence $\{x_n\}$ with limit $x^*$, the limit $\lim_{n-&gt;\infty}f(x_n)$ exists and is equal to $f^*$. (2) A function is said to have $f^*$ as the limit as $x$ tends $x^*$ iff for each $\epsilon &gt;0$, there exists a $\delta_\epsilon &gt;0$ such that $|f(x)-f^*| &lt;\epsilon \forall |x^*-x|&lt;\delta_\epsilon$  I am confused about the steps. Suppose I am given an $\epsilon &gt; 0$ and $x^*$. I have to show the existence of a $\delta_\epsilon &gt;0$ such that for all $x$ satisfying  $|x^*-x|&lt;\delta_\epsilon$ I can construct a sequence $x_n$ which converges to $x^*$ and $x_n=x$ for some $n \geq N$. Then I can say that $f(x_n)-f^*=f(x)-f^* &lt; \epsilon$. I think I may have made some mistake about the steps.  My main confusion is the following : Suppose I choose $\delta_\epsilon=\epsilon$. Then if a sequence $\{x_n\}$ converges to $x^*$ then $x_n=x$ (where $x$ satisfies $|x-x^*|&lt;\epsilon$) for some $n\geq N$. Now, $\lim_{n-&gt;\infty}f(x_n)$ exists implies there exists an $M$ such that $\forall n\geq M$, $f(x_n)-f^* &lt;\epsilon$. Now, I need to show that for some $n \geq M$ indeed $x_n=x$. How do I show that ? This $M$ and $N$ are different.