If I am testing whether my HTML form (with method post) has been submitted (vs a fresh page load), is there any benefit to using  if( $_SERVER["REQUEST_METHOD"] == "POST" ) { }  as opposed to  if( $_POST) { }.   Let's assume that either way, after this check I am checking for isset( $_POST['my_var'] ).
Some guy called one of my Snipplr submissions "crap" because I used if ($_SERVER['REQUEST_METHOD'] == 'POST') instead of if ($_POST)  Checking the request method seems more correct to me because that's what I really want to do. Is there some operational difference between the two or is this just a code clarity issue?
What is a single word for a person who, as a habit, exaggerates a lot when relating information? How to know if other threads have finished? What does "it" refer to in "it's raining"? Invert Color Ramp in QGIS What is the purpose of the first test in an inductive proof? Learning about proof by induction, I take it that the first step is always something like "test if the proposition holds for $n = \textrm{[the minimum value]}$"  Like this:       Prove that $1+2+3+...+n = \frac{n(n + 1)}{2}$ for all $n \ge 1$.   Test it for $n = 1$:  $$n = \frac{n(n + 1)}{2} \implies 1 = \frac{2}{2}\textrm{, which holds.}$$  * The rest of the proof goes here *    So, I do it all the time (like a standard). But I never really thought about why. Why do I do such test? I can see that if the test does not hold, it cannot be proven by induction, I guess. But is there another reason we do this? I'm unable to update nodejs, and I can't see why.  If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package.  Here's what I've done:  Remove old version:  sudo apt-get remove --purge nodejs npm   Then, going by , I've run:  curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -   And then:  sudo apt-get install -y nodejs   I then run:  nodejs -v   Which returns:  v0.10.25   Can anyone explain what's going wrong? And how I can remedy this situation?  Many thanks. What is the appropriate statistical test when calculating the busiest day of the week? We have 10 years of data and Monday is the busiest (most visits to the hospital) on average. If we wanted to assess whether that is true and report a p-value, what is the appropriate statistic?   We believe the answer is chi-square as we found a peer-reviewed medical article from the Annals of Emergency Medicine (highest circulating journal for that specialty) that used chi-square for this very calculation.   If chi-square is appropriate, what values do we use for observed and expected values for chi-square? One approach would be to list all the values for Monday as observed values, or all the means for Mondays averaged across a month, or all the means for Mondays averaged across a year.  If there were no busiest or least busy days, we would assume that the visits would be the same every day of the week. That means our "expected values" for Chi-Square would be the mean of the visits for any given week. The definition of derivative of a function $f(x)$ is $$\lim_{h\to0} \frac{f(x+h)-f(x)}{h}$$  Using this definition, the derivative of $\sin\sqrt{x}$ will be:  $$\lim_{h\to0} \frac{\sin\sqrt{x+h}-\sin\sqrt{x}}{h}$$  $$\lim_{h\to 0} \frac{\cos\left(\frac{\sqrt{x+h}+\sqrt{x}}{2}\right)\sin\left(\frac{\sqrt{x+h}-\sqrt{x}}{2}\right)}{h}$$  Now i got stuck. How to find the limit or simplify this expression?  I get intuition that we have to use $$\lim_{x\to0}\frac{\sin x}{x} = 1$$  but that too is leading no where. I am unable to remove h from denominator.  NOTE  I know the derivative of $\sin\sqrt{x}$ is $\frac{\cos\sqrt{x}}{2\sqrt{x}}$ using chain rule, but this exercise was given to us for practice using division quotient. A term for adoption of a made up term Is there a term for the acceptance of a made up term that then became the name of the object/idea/action once it was invented?   Example: Cyberspace. It was first used by William Gibson in his cyberpunk novels, but when actually invented, it now is widely used across the world (or at least across the United States).  Is there a term for this phenomenon? How to download an MP3 track from a YouTube video How to take the gradient of the quadratic form? It's stated that the gradient of:  $$\frac{1}{2}x^TAx - b^Tx +c$$  is   $$\frac{1}{2}A^Tx + \frac{1}{2}Ax - b$$  How do you grind out this equation? Or specifically, how do you get from $x^TAx$ to $A^Tx + Ax$? Cannot see Samba configuration tool in the Dash in ubuntu 14.04 After a fresh installation of ubuntu 14.04 (my previous installation has seen to be broken somewhere reading .wmv file with VLC), I've installed Samba GUI tool from the software center.  It briefly appears in the launchpad then disappears. From this time I cannot the see in in the dash.  I've found this in askUbuntu   but the command sudo apt-get install samba samba-common gives me nothing to install.  Lecture des listes de paquets... Fait Construction de l'arbre des dépendances        Lecture des informations d'état... Fait samba est déjà la plus récente version disponible. samba passé en « installé manuellement ». samba-common est déjà la plus récente version disponible. Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :   kde-l10n-engb kde-l10n-fr Veuillez utiliser « apt-get autoremove » pour les supprimer. 0 mis à jour, 0 nouvellement installés, 0 à enlever et 8 non mis à jour.   The following guide  has no result either.  Any idea ?  Laurent06000 Bundling python library with addon When voting to migrate an off-topic question, why is the list of sites limited? Earlier, I voted to close  as off-topic.  The question has since been closed.  There is an , but it didn't show up in the list when I selected "off-topic".  The options were:   Meta Stack Overflow Server Fault Super User Webmasters Programmers   Questions:   Should Wordpress appear in this list? Are there any other sites that should appear in the list?   Should all non-beta sites appear in that list by default? Related (but not the same):         Earlier today I asked a question about aligning equations in an enumerate environment and got an answer that seemed to work for the example I gave, but it turns out I wasn't really specific enough for my problem.  I'm using align* environments, often as the only part of a list item. (If you're wondering why I'm not using more words to introduce the align*, these are mostly homework solutions where most of the work is algebra, etc.)  Here's my code and what it makes (above the middle line):  \begin{enumerate}   \item \begin{align*}     x^2 + y^2 &amp;= x^2 + (iy)^2 \\               &amp;= (x + iy) (x - iy)   \end{align*}   \item \begin{align*}     \frac{1}{n^2-4} &amp;= \frac14 \frac{4}{(n-2)(n+2)} \\                     &amp;= \frac14 \left( \frac{1}{n-2}-\frac{1}{n+2} \right)   \end{align*} \end{enumerate}     I'm trying to make the baseline of the first line of the align* environment the same as the number's baseline—I want the first line of the align* to have the same vertical position (centered horizontally in the same way) relative to its number as in the second half of my picture. (Side question: why is there so much space before the align* starts?) How can I use the MS JDBC driver with MS SQL Server 2008 Express? My configuration:     windows XP SP3 JDBC 2005 MS SQL Server 2008 Express, exposed via tcp/ip on port 1433 sqljdbc.jar in class path    I tried:  try {     Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();     con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433/SQLEXPRESS2008;databaseName=Test;selectMethod=cursor", "sa", ""); } catch (Exception e) {     e.printStackTrace(); }   But it always throws an exception:  java.sql.SQLException: No suitable driver   I also tried the following urls:  localhost:1433/SQLEXPRESS2008  localhost/SQLEXPRESS2008  localhost   Same results.  Any help? Comparing signatures of apks I have two .apk files that are supposed to be different versions of the same app. What is the best way to check if they where both signed with the same key?  I want to make sure no mistakes were done and the newer version would be treated as an update of the same app. Show that $K[x,xy,xy^2,\dots]$ is not Noetherian Here is the problem I am stuck on: Fix a field $K$ and consider the subring $A \leq K[x,y]$ generated by $K \cup \{x,xy,\dots,\}$. Show that $A$ is not Noetherian.  I figure that taking ideals $I_n = (x,xy,\dots,xy^n)$ should give an infinite strictly ascending chain, which would establish that $A$ is not Noetherian, but I cannot figure out how to show that each $I_n$ is a proper subset of $I_{n+1}$. Any help here? Algebraic extension of perfect field in which every polynomial has a root is algebraically closed Let $F$ be a perfect field, i.e. every irreducible polynomial over $F$ has distinct roots in the algebraic closure of $F$. Suppose that $K$ is an algebraic extension of $F$ with the property that every non-constant $p(X) \in F[X]$ has a root in $K$.   I want to show that $K$ is algebraically closed, i.e. that $K = \overline{F}$, the algebraic closure of $F$.  If $K$ were a normal extension of $F$, this would follow immediately: Let $\alpha \in \overline{F}$ and $m(X)\in F[X]$ its minimal polynomial. By our assumption, $m(X)$ has at least one zero in $K$. Since $K$ is a normal extension of $F$, it thus contains all other roots of $m(X)$ including $\alpha$.  I don't have an idea as to how to show that $K$ is a normal extension. Typeset the shrug ¯\_(ツ)_/¯ emoji I'm completing a problem set, one problem for which I literally have no idea what to do on. The graders would prefer to have a physical copy of the problem so I thought it best to include the ¯\_(ツ)_/¯ emoji as my answer, instead of something like "Dunno" or "No idea."  Option #1 is to include an image.  Beyond that I actually don't understand how this emoji works. The middle character is Japanese kana "tsu" and proves problematic - TeX wants it in math mode then renders "?" when it is.