Uncaught TypeError: "#text1".val is not a function
Event binding on dynamically created elements?
Why people think dark matter as a massive particle? Couldn't it be gravitational waves? Dark matter is said to be present in the galaxies which helped galaxies to exist in the first place forming the glue to attach all the matter in the galaxies.  Given that dark matter never been seen or detected and only effect of which could be felt why do we believe it would be a particle? We have universe (almost) equally distributed in all directions with dark matter forming the skeleton for all the matter that could be seen. Can the dark matter be a illusion of gravitational waves interfering with each other forming this uniform interference pattern of galaxies/matter that is seen by us?  That would also explain the repulsive dark energy which would be the troughs in the gravitational waves indicating desructive interference in the gravitational waves.  Can we hope to simulating the above to come to the possible conclusion of source(two or many) of these gravitational waves that could give rise to skeleton of dark matter and dark energy which may be present in some higher dimentions? Does Metal have to be Hemalurgically charged for Ruin to control someone? Update pgfmath macro in foreach loop I need to update a variable defined in a pgfmathsetmacro command inside a foreach loop. Apparently, the var is only updated when it is used after the update command. Here is a MWE:  \begin{tikzpicture} \draw [help lines] (0,0) grid (3,3); \pgfmathsetmacro{\a}{1} \foreach \b in {2,3} {     \node [blue] at (\a,0) {\a};     \pgfmathsetmacro{\a}{\b}     \node [red] at (0,\a) {\a}; } \end{tikzpicture}   The red nodes are printed at updated positions and the value printed is also updated; the blue nodes are not: they keep their initial value (1) and are located at the initial position (0,1).  Why is this? Thanks José How to understand the combination formula? I'm reading an algorithm book. In which it mentioned:     Imagine (once again) you have n people lined up to see a movie, but   there are only k places left in  the theater. How many possible   subsets of size k could possibly get in? That’s exactly $C(n,k)$, of   course,  and the metaphor may do some work for us here. We already   know that we have $n!$ possible orderings of  the entire line. What if   we just count all these possibilities and let in the first $k$? The only   problem then is  that we’ve counted the subsets too many times. A   certain group of k friends could stand at the head of  the line in a   lot of the permutations; in fact, we could allow these friends to   stand in any of their $k!$  possible permutations, and the remainder of   the line could stand in any of their $(n–k)!$ possible  permutations   without affecting who’s getting in. Aaaand this gives us the answer!       $$C(n,k)= \frac{n!}{k!(n −k)!}$$      This formula just counts all possible permutations of the line (n!),   and divides by the number of  times we count each “winning subset,” as   explained.   I'm not quite understand why the reminder can in any $(n-k)!$ permutation, if he stands at the end of the queue, won't he let all these people in?  And why I should use $n!$ to divide by $k!(n-k)!$ ? Didn't see that consequence from the metaphor.  If you have better ideas to explain this formula, you can use them of course. I've seen many science popularisation documentaries and read few books (obviously not being scientist myself). I am able to process and understand basic ideas behind most of these. However for general relativity there is this one illustration, which is being used over and over (image from Wikipedia):    I always thought that general relativity gives another way how you can describe gravity. However for this illustration to work, there needs to be another force, pulling the object down (referring to a direction in the attached image). If I put two non-moving objects in the image, what force will pull them together?  So where is my understanding incorrect? Or is general relativity not about explaining gravity and just describes how heavy objects bends spacetime (in that case the analogy is being used not correctly in my opinion)?    UPDATE Thank you for the answers and comments. Namely the XKCD comics is a spot on. I understand that the analogy with bent sheet of fabric pretty bad, but it seems that it can be fixed if you don't bent the fabric, but just distort the drawn grid.   Would you be so kind and answer the second part of the question as well - whether general relativity is explaining gravitational force. To me it seems that it is not (bending of spacetime simply can not affect two non-moving objects). However most of the time it is being presented that it does. Word/phrase for the activity of hiding mistakes What word/phrase can I use to describe the activity of hiding a stupid mistake/incident, such as quickly cleaning up tea spilled by accident before anyone could notice? What is the standard solution in JavaScript for handling big numbers (BigNum)? Batch files: How to read a file? Proof of $\gcd(a,b)=ax+by\ $ [Bezout's identity] How to get WordPress' hooks/actions run sequence? In what order add_action hooks execute? i.e. init wp_head wp_footer after_theme_setup  etc... ??? ??? ???     EDIT: I've also posted my solution. Is there a general formula for finding the primitive of $$e^{ax}\sin(bx)?$$  I've done this manually with $a=9$ and $b=4$ using Euler's formulas. But it takes a bit of time. Is there a pattern here? Value of having done applied math research when applying to PhD programs in pure math I will be a second year math under-grad in September, and currently doing an internship at applied math research institute. Most probably, I will come up with a research paper at the end of the internship.  However, my interest after my bachelors is to do PhD in pure math from a top math school.My question is this:     Would the admission committee consider my current research since it is in applied math?    In addition, if anyone can suggest me some ideas on how can I bridge the gap between my paper in applied math and my interest in analysis, I would be extremely grateful.  P.S.:  is a related but different question also of mine. When I created my account, I used Facebook Connect as my only login type and I can only log in to my account using it.  I wish to create a Stack Exchange login to be able to log in with instead of Facebook Connect, but I can't find how to do this. It seems that the option for creating a Stack Exchange login is only present when creating a new account? Specify CSS class names on SVG paths using Illustrator Is there a way to edit SVG files in Illustrator where you can specify a CSS class for each path?  I already know in Illustrator that if you give the layer name an actual name, Illustrator will use that name as the path's ID, which is fine if you don't plan on reusing the icon more than once on the same page.  My current workaround is to just use the IDs method, but then later convert the IDs to classes in my code editor, but it's pretty annoying to have to do every time I generate my SVG sprite.  If that's currently not possible in Illustrator, are there any other apps that will allow you to specify that? Or maybe a Grunt or Gulp package?  It looks like you might be able to do it with Inkscape with a , so I might look at that if there's no other good solutions out there. Proposition      Let $\mathcal{P_e}$ be the set of functions $p_e(x) = a_o + a_2x^2 +  \cdots + a_{2n}x^{2n}$, $p_e : \mathbb{R} \to \mathbb{R}$      Show that all $f:[0,1]\to\mathbb{R}$ can be uniformly approximated by   elements in $\mathcal{P_e}$   Attempt:    Since we are talking about polynomials let's try play with Weierstrass Theorem  By definition $\mathcal{P_e}$ is dense in  $C^0([0,1], \mathbb{R})$ , if for every funciton $f \in C^0([0,1], \mathbb{R})$, $\exists p_e \in \mathcal{P_e}$ such that $\forall \epsilon &gt; 0, \forall x \in [0,1], ||p_e-f||&lt; \epsilon$  So we want to show $\|p_e - f\| &lt; \epsilon$  Try something like...since every continuous function is approximated by polynomials i.e. $\forall \epsilon &gt; 0,\ \|f - p\| &lt; \epsilon$, therefore let $p$ be a polynomial, $p = a_0 + a_1x + a_2x^2 + a_3x^3 + \cdots$  $$\|p_e - f\| \leq \|f - p\| + \|p - p_e\|$$  $$\Rightarrow \|p_e - f\| &lt; \epsilon + \|p_o\|,$$ where $p_o$ is an odd polynomial  $$\Rightarrow \|p_e - f\| &lt; \epsilon + \sup_x|a_1+a_3+\cdots+a_{2_n+1}|$$  Stuck.   In any case, $p$ and $p_o$ is poorly defined. What would be the standard approach to prove the proposition? How to make a different font and color of text in labels? Is it possible to make a bold or italic, and change the color of individual words Label?  Example: the first line is bold in red text, font 12, second row 10 green italic font Money - Countable or Uncountable noun page suggests that we use much with only uncountable nouns whereas the use of many/several is limited to countable nouns only. So I conclude that money is uncountable noun as I've heard people saying phrases like      So much money!   But, We do count the money in our daily life then why is it that money is considered an uncountable noun instead of countable? What if I say      I have $500 to spend   Wouldn't the money be considered countable in this case?  Edit The question may be considered duplicate of the suggested question but, in my opinion, the question on that link itself is not answered properly. What's the canonical way to check for type in Python? What is the best way to check whether a given object is of a given type? How about checking whether the object inherits from a given type?  Let's say I have an object o. How do I check whether it's a str? What is the smallest convex set includes all smooth unit curves? I try to understand: is there a smallest in area convex set that every smooth curve with length 1 can be placed inside it by translation and rotation?  I only have a upper bound $S \leq \frac14+\frac{\pi}{16}$ because of convex hull of two circles radius $\frac14$ and simple lower bound $S\geq\frac1{4\pi}$.  Does this set exist and what is its length? Shell Script - how to scp into remote server and download files and protect password