After upgrading jQuery 1.10.2 some problems appear
Turning live() into on() in jQuery
can I use same functions with the different type of argument inputs Consider:  namespace WindowsApplication1 {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }          private void button1_Click(object sender, EventArgs e)         {             //int[] val = { 0, 0};             int val;             if (textBox1.Text == "")             {                 MessageBox.Show("Input any no");             }             else             {                 val = Convert.ToInt32(textBox1.Text);                 Thread ot1 = new Thread(new ParameterizedThreadStart(SumData));                 ot1.Start(val);             }         }          private static void ReadData(object state)         {             System.Windows.Forms.Application.Run();         }          void setTextboxText(int result)         {             if (this.InvokeRequired)             {                 this.Invoke(new IntDelegate(SetTextboxTextSafe), new object[] { result });             }             else             {                 SetTextboxTextSafe(result);             }         }          void SetTextboxTextSafe(int result)         {             label1.Text = result.ToString();         }          private static void SumData(object state)         {             int result;             //int[] icount = (int[])state;             int icount = (int)state;              for (int i = icount; i &gt; 0; i--)             {                 result += i;                 System.Threading.Thread.Sleep(1000);             }             setTextboxText(result);         }          delegate void IntDelegate(int result);          private void button2_Click(object sender, EventArgs e)         {             Application.Exit();         }     } }   Why is this error occurring?     An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int) Gray cone obscuring/clipping the 3D Viewport Is it possible to adjust the frame rate of viewport playback? Is it possible to play an animation in the viewport at a slow framerate?  Just because of the rather heavy scene it's already going at about 8 fps, but I would like to be able to play it even slower (an in a controlled manner) for the purpose of recording an animation with automatic keyframes. 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? If every real-valued continuous function is bounded on $X$ (metric space), then $X$ is compact. maximum of two uniform distributions I have a question. Let's suppose that the two random variables $X1$ and $X2$ follow two Uniform distributions that are independent but have different parameters:  $X1 \sim Uniform(l1, u1)$  $X2 \sim Uniform(l2,u2)$  If we define X3 as the maximum of X1, and X2, i.e., $X3 = max(X1, X2)$, what kind of distribution would it be? It is certainly not a uniform and I can calculate the cumulative probability, i.e., $p(X3 &lt;= a)$, because $p(X3 &lt;= a) = p(X1 &lt;= a) p(X2 &lt;= a)$. But, I wonder if there exists any density function that can model X3. I have a trained logistic regression model that I am applying to a testing data set. The dependent variable is binary (boolean). For each sample in the testing data set, I apply the logistic regression model to generates a % probability that the dependent variable will be true. Then I record whether the acutal value was true or false. I'm trying to calculate an $R^2$ or Adjusted $R^2$ figure as in a linear regression model.  This gives me a record for each sample in the testing set like:  prob_value_is_true         acutal_value    .34                          0    .45                          1    .11                          0    .84                          0     ....                        ....             I am wondering how to test the accuracy of the model. My first attempt was to use a contingency table and say "if prob_value_is_true > 0.80, guess that the actual value is true" and then measure the ratio of correct to incorrect classifications. But I don't like that, because it feels more like I'm just evaluating the 0.80 as a boundary, not the accuracy of the model as a whole and at all prob_value_is_true values.  Then I tried to just look at each prob_value_is_true discrete value, as an example, looking at all samples where prob_value_is_true=0.34 and measuring the % of those samples where the acutal value is true (in this case, perfect accuracy would be if the % of samples that was true = 34%). I might create a model accuracy score by summing the difference at each discrete value of prob_value_is_true. But sample sizes are a huge concern here, especially for the extremes (nearing 0% or 100%), such that the averages of the acutal values are not accurate, so using them to measure the model accuracy doesn't seem right.  I even tried creating huge ranges to ensure sufficient sample sizes (0-.25, .25-.50, .50-.75, .75-1.0), but how to measure "goodness" of that % of actual value stumps me. Say all samples where prob_value_is_true is between 0.25 and 0.50 have an average acutal_value of 0.45. Is that good since its in the range? Bad since its not near 37.5% (the center of the range)?  So I'm stuck at what seems like should be an easy question, and hoping someone can point me to a resource or method to calculate an accuracy stastic for a logistic regression model. Can a ring without a unit element have a subring with a unit element? How to prove sum of powers property of roots of unity? We know that $1+\alpha_1+\alpha_2+...+\alpha_{n-1}=0$ where $\alpha_i$ are the roots of $z^n=1$. How can I prove that: $$1+\sum_{i=1}^{n-1}\alpha_i^m=\begin{cases}0\quad m\in Z,m\not\equiv0\pmod n\\n\quad m\in Z,m\equiv0\pmod n\\\end{cases}$$ How do I duplicate a whole line in Emacs? gnome-terminal fails to start (timed out) I just upgraded from Ubuntu 16.04 to 18.04. My workflow is to connect from Windows using VcXsrv to Ubuntu (ssh with X tunneling), starting a xterm on Ubuntu. Inside the xterm I am typing gnome-terminal to get a gnome-terminal. Since the upgrade this is not working anymore. I am getting $ gnome-terminal   # Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.   # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Fehler beim Aufruf von StartServiceByName für org.gnome.Terminal: Zeitüberschreitung wurde erreicht    or when starting with English locale $ LANG=en_US.utf8 gnome-terminal   # Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.   # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached  I am not always getting the first line, but I am always gettint the timeout error. Digging more into the issue I found out  sudo gnome-terminal works gnome-terminal works when run in a xterm when locally logged in on the PC when I am also logged in locally on the PC then gnome-terminal in the remote session's xterm opens a gnome-terminal on the local session on the PC (still getting the first error line about registering with accessibility bus) when I am also logged in over rdp (Windows network connection) then a gnome-terminal in the ssh session opens a gnome-terminal in the xrdp session when I login over rdp (Windows network connection), logoff there, then gnome-terminal can open a gnome-terminal  What can I do to get gnome-terminal in a remote session's xterm to work? What does "had had" mean? How does this differ from "had"? For example, what is the difference between the following two sentences:     I had a bad day      I had had a bad day How can I reset or revert a file to a specific revision? How to disable javascript modal popup ads Using a comma before "but" Is it possible to model a PIN InGasAS photodiode in a SPICE simulator? I want to know if it is possible to model a InGasAs panchromatic PIN photodiode, in accord with datasheet, in simulator SPICE MicroCAP 12. Because the supplier doesn't provide a SPICE model. And if it is possible, which are those steps. Here is data-sheet  And below I will attach an electrical schematic of a transimpedance amplifier with phototdiode, used as a smoke receiver. I want to monitor graphically the impulse of photodiode in function of output of transimpedance for sensibilty. I found a type of photodiode in the Micro-CAP 12 library but it is simple photodiode, which does not match the datasheet. I flagged a question, , as "low quality" but a moderator declined it. I thought that the post was a low quality one and would like to know why the moderator did not.  Hopefully shedding light on this matter will avail me of the knowledge to be a better flagger in future.  My logic was that mysql-fetch-row is not supposed to return an array of results. If it does than its name would be mysql-fetch-rows.  What's your take on the situation? Showing that $\sum_{i=1}^n \frac{1}{i} \geq \log{n}$ Accessing the web page's HTTP Headers in JavaScript How do I access a page's HTTP response headers via JavaScript?  Related to , which was modified to ask about accessing two specific HTTP headers.     Related: