.submit() function not working in jquery
Difference between  and
Magic quotes in PHP According to the , in order to make code more portable, they recommend using something like the following for escaping data:  if (!get_magic_quotes_gpc()) {     $lastname = addslashes($_POST['lastname']); } else {     $lastname = $_POST['lastname']; }   I have other validation checks that I will be performing, but how secure is the above strictly in terms of escaping data? I also saw that magic quotes will be deprecated in PHP 6. How will that affect the above code? I would prefer not to have to rely on a database-specific escaping function like mysql_real_escape_string(). Can I recover my deleted world? I was playing terraria today, and my friend came and deleted the my world.  Is there a way for me to recover my world? Are all electrons identical? Why should two sub-atomic (or elementary particle) - say electrons need to have identical static properties - identical mass, identical charge? Why can't they differ between each other by a very slight degree? Is there a theory which proves that?  Imagine an alien of size of order of Milky-way galaxy examining our solar system with a probe of size of 10's of solar system dimension and concludes that all planets are identical. If anonymity is so important, why is it not universal? A frequent argument brought up in support of voting anonymity is that it can lead to potential grudges. Certainly the review system is of the same nature.  I cannot wrap my mind around the fact that voting is anonymous and reviewing is not. Either both should be public--and this would be fine since public reviewing has been successful--or both should be anonymous--and I assume this would be the desired option since this community holds anonymity so dear.  One could say that voting rates the posts, the actual meat of the site, while reviewing is based on clarifying the purpose of the site and cleaning it up.   answer makes the point that the community can trust that votes are a good measure of quality for the very reason that they do not know who cast them; the mentality that a high-ranking member may have supported something could blur the line between "science" and "politics/religion."  Reviewing, then, can be seen as a judgment of specific members rather than quality of edit/questions, which seems to fall precisely under the "politics/religion" umbrella--the review system is much more vulnerable to grudges due to this.  So let's discuss the differences and the implications of these disjointed anonymity policies. I feel like someone made a comment as an answer on a question with a bounty just so they could reap the "auto bounty" since they are the only answer on it.   I've flagged the bad/useless answer (as a non-answer) for moderator review but the bounty will be assigned automatically in less than 24hrs and I feel like this guy/gal is just trying to cheat the system.   All I'm trying to do is ensure the bounty simply expires and the guy/gal that was trying to cheat the system by putting down a useless guess doesn't get it.   I've answered my own question (properly) and marked it as the accepted answer, not sure if that makes a difference though in this person still cheating the system since I'm the OP and created the accepted answer.   Here is the post: I have a problem understanding the proof of Rencontres numbers (Derangements) I understand the whole concept of Rencontres numbers but I can't understand how to prove this equation  $$D_{n,0}=\left[\frac{n!}{e}\right]$$  where $[\cdot]$ denotes the rounding function (i.e., $[x]$ is the integer nearest to $x$). This equation that I wrote comes from solving the following recursion, but I don't understand how exactly the author calculated this recursion.  $$\begin {align*}  D_{n+2,0} &amp; =(n+1)(D_{n+1,0}+D_{n,0}) \\ D_{0,0} &amp; = 1 \\ D_{1,0} &amp; = 0  \end {align*} $$ What is it called when a non-verb is used as a verb? This is in very common use on the internet. I just read this:     "[The] hotel employee walks in, I say "uh, puppy" and she just NOPEd the [heck] out of the room."   This is often done by adding 'd to the word. Static nested class in Java, why? How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office? How can I create an Excel spreadsheet with C# without requiring Excel to be installed on the machine that's running the code? Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag. Let us consider The following example   \documentclass{article} \usepackage{enumerate} \begin{document} \begin{enumerate}  \item Which of the following numbers is the largest ?\\ $2^{3^4},2^{4^3},3^{2^4},3^{4^2},4^{2^3},4^{3^2}.$  \begin{enumerate}[(a)] \item  $2^{3^4}$ \item  $3^{4^2}$ \item  $4^{3^2}$  \item $4^{2^3}$ \end{enumerate}  \end{enumerate} \end{document}   This produces :    But I'd like to produce the following using the same package  :   OR     OR   How can I do that? Can I become leader of the Thieves' Guild without finishing the main chain and is there any benefits from being the leader anyway? I completed the quest where you get the Skeleton Key and I don't really want to continue the chain until I've done a lot of the other stuff in the game, since the key is so useful. Brynjolf said before that I would become leader of the guild after everything was over.  Can I become the leader anyway without finishing the Nightingales quest chain? Are there any bonuses for being the leader? Are there any countable Hausdorff connected spaces? Do countable Hausdorff connected topological spaces exist? Highlight text in code listing while also keeping syntax highlighting I’m using the listings package for code listings. Now I try to highlight some part of the code using \hl from the soul package.  Here’s an example of a resulting query where the injected part of a SQL injection should be highlighted:  \begin{lstlisting}[escapechar=@,language=SQL] SELECT name, password FROM users WHERE name='@\hl{' UNION SELECT "10", 1 \#}@'; \end{lstlisting}   But inside the highlighted part the SQL syntax highlighting is not applied.  So I tried to use \lstlinline for the code part inside \hl as well but it didn’t work:  \begin{lstlisting}[escapechar=@,language=SQL] SELECT name, password FROM users WHERE name='@\hl{\lstinline[language=SQL]$' UNION SELECT "10", 1 #$}@'; \end{lstlisting}   Although this \lstinline part works outside the lstlisting block, it doesn’t work inside it. The error I get for that particular line is:     Extra }, or forgotten \endgroup.   Maybe I’m just missing just some special syntax to get this working. Or is it not possible at all to get proper syntax highlighting for the \hl-highlighted part as well? Do electrons move around a circuit? We could imagine a simple electronic circuit composed by a power source and a resistor.   It is usual find descriptions as "The moving charged particles in an electric current are called charge carriers. In metals, one or more electrons from each atom are loosely bound to the atom, and can move freely about within the metal. These conduction electrons are the charge carriers in metal conductors." (wikipedia ). That made me imagine electrons going from power -, running by the wires, crossing the resistor and returning to power +, where they suffer a new kick to power -. All that at near the speed of light.  In this model, it is easy to define "electrical current intensity" as proportional to the number of electrons per second that cross one specific point of the circuit.  However, looking for the physics of resistivity, I can read the phrase "The actual drift velocity of electrons is very small, in the order of magnitude of a meter per hour." (wikipedia ). This is a complete different point of view, where electrons are more or less fixed around a fixed position (or moving very slowly), an electricity is a wave of "collisions" or "jumps" of electrons, like in a Newton's cradle (or "do the wave" as public in a football match). Obviously, we do not need severals hours from the switch on to the light on.  So, the question is, do electrons move around a circuit ? References to band theory are welcome.  A related question is: if electrons doesn't moves along the circuit, what is "electrical current intensity"?  Note: I known there are similar questions already posted, but answers of the ones I've read are not very detailed (could be I've not found the best ones). Please, be a few patient before "close vote". Is there animation software available? Is there commercial-grade computer animation software available for Ubuntu, similar to the professional software sold for the Windows operating system?  This question goes out to those of you who may be using such software professionally.  My daughter recently graduated from the Art Institute of Seattle, and needs to put together an animation portfolio in order to interest employers in the field.  As you know, such software is usually provided by the employer and the costs are high - several thousand dollars.  I suggested that she investigate Ubuntu as a possible way to acquire the tools she needs.  But, since I have no idea what might be available, either as open source or proprietary animation software, I am reaching out to the Ubuntu community for help in the hope someone who is using such software can help her.  Thank you for reading this post, and for any information you might have. $AB-BA=I$ having no solutions Since reading the answers to my question about  I've been good about giving my meat time to defrost in the refrigerator. However, my plans for tonight have changed and I'd like to defrost some ground beef that is completely frozen for dinner this evening. What are my options to do so quickly and safely? How to diff a commit with its parent? Aside from writing an alias or script, is there a shorter command for getting the diff for a particular commit?  git diff 15dc8^..15dc8   If you only give the single commit id git diff 15dc8, it diffs that commit against HEAD. Everything that I have read says that iWorks/ iMovie etc should be free for Mac users after 1 September 2013.   I already bought Pages but want Numbers and iMovie. My MacBook Pro with retina is early 2015 and I am being charged.    Why is this please?