Can't get correct return value from an jQuery Ajax call
How do I return the response from an asynchronous call?
Solve this integral for free WiFi I saw this today, I checked in Mathematica and the integral comes out to $\pi$, but I have no idea how to solve it.     FREE Wi-Fi: The Wi-Fi password is the first $10$ digits of the answer.   $$\int_{-2}^2\left(x^3\cos\frac x2+\frac12\right)\sqrt{4-x^2}\ dx$$ How are you dealing with the  in your machine learning models? Let's say you used to predict the number of sales each month. The virus affected your results last year and it will affect for at least a couple of months. So your model, I guess, is missing a lot. What are some approaches we can use to fix our models? I'm trying to split text in a JTextArea using a regex to split the String by \n However, this does not work and I also tried by \r\n|\r|n and many other combination of regexes. Code:  public void insertUpdate(DocumentEvent e) {     String split[], docStr = null;     Document textAreaDoc = (Document)e.getDocument();      try {         docStr = textAreaDoc.getText(textAreaDoc.getStartPosition().getOffset(), textAreaDoc.getEndPosition().getOffset());     } catch (BadLocationException e1) {         // TODO Auto-generated catch block         e1.printStackTrace();     }      split = docStr.split("\\n"); } Deny access to a webpage using web.config Catching poisoned arrows When catching an arrow tipped with poison (like the ones used by yuan-ti) with an ability like the one the monk has or the one given by arrow catching gloves: does the ability reduce the poison damage? If so, is the total damage or the piercing one caused by the arrow only the damage that must be downed to 0 to catch the missile? Which databases use real multidimensional indices? Is oracle ever using several indices to get data from tables, or will it always take the one that seems to have the highest selectivity? How about other dbms? Natural Deduction - How to define literals? I'm currently working on the following question:  "At least one of Plato and Democritus believed in the theory of forms. Plato believed in the theory of forms only if he was not an atomist, and Democritus was an atomist only if he did not believe in the theory of forms. Democritus was an atomist. Prove, using Natural Deduction, that Plato was not an atomist"  I have been working for quite some time to take the information and turn it into a set of literals and statements I can work with.  So far, I have got $P \lor D$,  $P \Rightarrow \lnot a$,  $D \Rightarrow A$,  $D = A$  However, I cannot seem to make these prove the statement using natural deduction, any hints? Back-transformation of regression coefficients I'm doing a linear regression with a transformed dependent variable. The following transformation was done so that the assumption of normality of residuals would hold. The untransformed dependant variable was negatively skewed, and the following transform made it close to normal:   $$Y=\sqrt{50-Y_{orig}}$$  where $Y_{orig}$ is the dependent variable on the original scale.   I think it makes sense to use some transformation on the $\beta$ coefficients to work our way back to the original scale. Using the following regression equation,   $$Y=\sqrt{50-Y_{orig}}=\alpha+\beta \cdot X$$  and by fixing $X=0$, we have   $$\alpha=\sqrt{50-Y_{orig}}=\sqrt{50-\alpha_{orig}}$$  And finally,  $$\alpha_{orig}=50-\alpha^2$$  Using the same logic, I found  $$\beta_{orig}=\alpha\space(\alpha-2\beta)+\beta^2+\alpha_{orig}-50$$  Now things work very well for a model with 1 or 2 predictors; the back-transformed coefficients resemble the original ones, only now I can trust the standard errors. The problem comes when including an interaction term, such as  $$Y=\alpha+X_1\beta_{X_1}+X_2\beta_{X_2}+X_1X_2\beta_{X_1X_2}$$  Then the back-transformation for the $\beta$s are not so close to the ones from the original scale, and I'm not sure why that happens. I'm also unsure if the formula found for back-transforming a beta coefficient is usable as is for the 3rd $\beta$ (for the interaction term). Before going into crazy algebra, I thought I'd ask for advice... What is the significance of the name Bleach? The name "Bleach" seems to be having no relevance to the plot unlike most other series. Was it just chosen at Kubo-sensei's whim or does it have some significance? Maybe some cultural significance associated with shinigami, etc. that I am now aware of? A famous exercise which one encounters while doing Complex Analysis (Residue theory) is to prove that the given integral: $$\int\limits_0^\infty \frac{\sin x} x \,\mathrm  dx = \frac \pi 2$$ Well, can anyone prove this without using Residue theory?  I actually thought of using the series representation of $\sin x$: $$\int\limits_0^\infty \frac{\sin x} x \, dx = \lim\limits_{n \to \infty} \int\limits_0^n \frac{1}{t} \left( t - \frac{t^3}{3!} + \frac{t^5}{5!} + \cdots \right) \,\mathrm  dt$$ but I don't see how $\pi$ comes here, since we need the answer to be equal to $\dfrac{\pi}{2}$. Best practices for Feed restructuring in a social app database Which one is correct: '3 hour journey' or a '3-hour journey'? Which one of the following is correct (bold part)?      It took us quite a long time to get here. It was 3 hour journey.   or     It took us quite a long time to get here. It was a 3-hour journey. How to get GUI sudo password prompt without command line? Currently, for all my commands that require root access, I have to type them out on a command line.  I would like for the GUI to prompt me to key in my password, when sudo is required, instead of having to type out the commands from command line.  Is there any way to enable this? Previously one version of Ubuntu desktop had this feature out of the box.  This version of Ubuntu (that I am now running) I upgraded from a server installation.  I will add, my user account is already added to sudo group. Thus I can run commands such as sudo gedit or sudo apt-get but I'm not able to install software in the Ubuntu Software Center. Do web designers need to know how to code? As a web developer, both front-end and back end architect, I work with many different designers and sometimes find it frustrating working with design comps where no thought was put into how to accomplish the design in basic CSS and HTML.  On the other hand as a developer I'm expected to be able to produce code from any design.  Do web designers need to know basic modern CSS and HTML techniques?  Why or why not is this important for a well rounded web designer?  Some general thoughts:   Front end web developers should be skilled enough to code up any design. Web designers should have an understanding of how users will actually interact with their design. Design shops would rather have designers design and leave all the coding up to the developers. How to deal with cross-thread access exceptions? It would be nice if backticked code in question titles were rendered the same way they are in question bodies. Since there are so many questions with code in them I feel it would be a big plus. .  This would look a lot nicer in listings and on the page itself if the code strings were rendered as such.  Similar ideas discussed . Use feature as module? Does anyone have experience with using a feature as a module? The usage I am talking about is strictly placing hooks inside the .module file. Can that trigger any sort of bug? Can I give a creature trample after blockers have been assigned? I declare my attack with a 3/3 creature &amp; then my opponent assigns a 1/1 creature to block.  Am I allowed to use the ability of an  (1 Green Mana - Target creature gains trample until end of turn) on my original 3/3 creature to make sure that, in addition to his creature dying, he receives 2 damage to himself as well?  Or would that give my opponent the chance to go back and assign a secondary blocker? Copying and pasting text between applications without style When pasting text, some applications (Chrome, Microsoft Office, etc.) will do what they can to re-render copied text with style, and some of those applications do not appear to offer an option to paste without style.  This results in spending lots of time removing formatting (where it is even possible) and then cleaning up the mess left behind, just to get clean text.  I want to prevent text styling from attaching itself to text that I copy and paste between applications. Is there an OS-level way to do this, i.e. one that can apply to all applications? Failing that, is there a per-application way to tell Chrome, Safari, Word etc. not to copy and/or paste with style? Reputation changes not visible in the achievement box (again) Just like , which was marked as . But today, it's not working again. I'm still notified of new badges:      Update: it looks like new events are now updated; reputation events from earlier this UTC afternoon are still missing: