A table made containing the edit information field a problem to run code undifined code in function  please help me to fix this error  "info" id table in html   function submit () {     var table = document.getElementById("info");     var td1 = document.createElement("td")     var td2 = document.createElement("td");     var row = document.createElement("tr");      td1.innerHTML = document.getElementById("p-name").value;     td2.innerHTML = document.getElementById("p-id").value;      row.appendChild(td1);     row.appendChild(td2);     table.children[0].appendChild(row);   create button in script  var bedit = document.createElement("BUTTON"); var bename = document.createTextNode("Edit");  bedit.appendChild(bename); bedit.onclick = function () { edit_row(event) }  td6.appendChild(bedit);}   function code on click button in submit function  function edit_row() {     bedit.style.display = "none";     bsave.style.display = "block";      var input = document.createElement("INPUT");     input.setAttribute("type", "text");      var string = td1.textContent;      td1.innerHTML = "";     td1.appendChild(input);      input.value = string; }
What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined globally?
jquery stop child triggering parent event How do I derive the Lorentz contraction from the invariant interval? Reviewing some basic special relativity, and I stumbled upon this problem:  From the definition of the proper time: $$c^2d\tau^2=c^2dt^2-dx^2$$ I was able to derive the time dilation formula by using $x=vt$: $$c^2d\tau^2=c^2dt^2-v^2dt^2=c^2dt^2\left(1-\frac{v^2}{c^2}\right)\rightarrow d\tau = dt\sqrt{1-\frac{v^2}{c^2}}=t/\gamma$$  Now, I would very much like to be able to derive the length contraction formula in a similar fashion, and feel strongly that this should be possible. The definition of the invariant interval is: $$ds^2=dx^2-c^2dt^2$$ using $t=\frac{x}{v}$ I tried: $$ds^2=dx^2-\frac{c^2}{v^2}dx^2=dx^2\left(1-\frac{c^2}{v^2}\right)\rightarrow ds=dx\sqrt{1-\frac{c^2}{v^2}}$$  This is where I'm stuck: I don't see how this can be converted to a Lorentz factor...  Any help that will allow me to arrive at the desired result $ds=\gamma dx$ would be very much appreciated. Who are the Steam Mascots? So with the Steam Summer Sale in full swing, I've finally taken notice of the Steam Mascots.  Judging by the latest background, the black one, at least, has a name: Cyl.  Do the other two have names as well? Are there only these three?   What's their story? Which QGIS installation for Windows comes with r.in.lidar? Prove that $\int_0^1t^{p-1}(1-t)^{q-1}\,dt=\frac{\Gamma(p)\Gamma(q)}{\Gamma(p+q)}$ for positive $p$ and $q$ I'm trying to prove that for $p,q&gt;0$, we have $$\int_0^1t^{p-1}(1-t)^{q-1}\,dt=\frac{\Gamma(p)\Gamma(q)}{\Gamma(p+q)}.$$    The hint given suggests that we express $\Gamma(p)\Gamma(q)$ as a double integral, then do a change of variables, but I've been unable thus far to express it as a double integral.  Can anyone get me started or suggest an alternate approach?  Note: This wasn't actually given to me as the $\Gamma$ function, just as a function $f$ satisfying $$f(p)=\int_0^\infty e^{-t}t^{p-1}\,dt$$ for all $p&gt;0$, but I recognized that. This is in the context of an advanced calculus practice exam. How does one check what websites a person logs into using their Google account? Link broken on desktop but work on nautilus file manger I created a shortcut to a text file called &quot;imp&quot; on right-clicking it from the default file manager everything works well. But on clicking it on the desktop I get this  Any Idea why? What is the best format to capture addresses for a universal user-base? What is the best and most usable format to capture address information from a universal user base? I was thinking to have the system detect the country by IP address and have that selected by default, and then state/province droplist would be populated accordingly. But the issue is some countries have states and provinces and some do not. Some have postal codes and some do not. Is there a universal standard to capture complete address info to ensure efficiency for most users?  FYI: I did research on here and while there are some questions that are close, none are about this exact same question (unless I missed something) In what situation do you put a comma before "because"?   And, when do you not put a comma before "because"?   I've always assumed that you put a comma, because the clause introduced by "because" will always be independent, because it cannot stand on its own, because it wouldn't make sense on its own.   Is this the case? Could you think of an example where it doesn't take a comma? Is it necessary to explicitly remove event handlers in C# table of contents no word separation Is it possible to have in the toc no word separation but have a word separation in the chaptername:  For example:   Contents  1. max Mustermann   Chapter  Max Muster- mann How do I prove that $$ a^3+b^3+c^3−3abc = 1 $$ if   $ a = 1+\frac{x^3}{3!}+\frac{x^6}{6!}......$ , $b=x+\frac{x^4}{4!}+\frac{x^7}{7!}....$ , $c=\frac{x^2}{2!}+\frac{x^5}{5!}+\frac{x^8}{8!}......$ ?  I have tried the following :-  I discovered that $a+b+c=e^x$ and that $a=\frac{d(b)}{dx}$, $b=\frac{d(c)}{dx}$, $c=\frac{d(a)}{dx}$ . But I am unable to proceed further with these information. Why doesn't the Related question list show that questions are closed? Mobile site says "your answer couldn't.." when submitting a question edit that creates a new tag Noticed this on Bicycles, but I presume it affects any Stack Exchange site   Write question Edit question, write a new tag Submit edit   When performing the above steps, I properly get an error message, but it says "answer" instead of "question" or "edit". Can I complete the Pokedex with only 6th Generation games? How do I find the Arch-mage at the end of the quest "Under Sarhaal"? I have equations inside an environment which has a larger left-margin than the main text (analogous to an enumerate/itemize environment, implemented with the changepage package's adjustwidth environment). Just as equations in enumerate/itemize behave, the equations are centered with respect to the entire text, rather than just the width of the container environment. I want the latter behavior.  I'm trying to accomplish this by wrapping all display-math in minipages. Namely, I'm modifying the mathdisplay environment in amsmath.sty as follows:  \makeatletter \let\oldmd\mathdisplay \def\mathdisplay#1{%   \newline   \begin{minipage}{\textwidth-\@totalleftmargin}%     \oldmd{#1}% } \let\oldendmd\endmathdisplay \def\endmathdisplay#1{%   \oldendmd{#1}%   \end{minipage} } \makeatother   This is almost working, but there are some issues with spacing which I don't understand how to fix. Here's how the the normal \[ ... \] and numbered \begin{equation} ... \end{equation} look with the above modification:      My main confusion is why the numbered version is behaving so differently from the unnumbered. But all in all I want to fix this so that the spacing above and below is even as it usually is. Any help is appreciated, thanks.  Edit: Here's a compilable example:  \documentclass{amsart}  \usepackage{lipsum} \usepackage{calc} \usepackage{changepage}  \makeatletter \let\oldmd\mathdisplay \def\mathdisplay#1{%   \newline   \begin{minipage}{\textwidth-\@totalleftmargin}%     \oldmd{#1}% } \let\oldendmd\endmathdisplay \def\endmathdisplay#1{%   \oldendmd{#1}%   \end{minipage} } \makeatother  \setlength{\parindent}{0pt}  \begin{document}  \lipsum[1]  \begin{adjustwidth}{20pt}{} \lipsum[2] \[ x \mapsto \hom(-,x) \]  \lipsum[3] \begin{equation}   y \mapsto \hom(y,-) \end{equation} \lipsum[4] \end{adjustwidth}  \lipsum[5]  \end{document} OK, I will try and stick to the facts to explain this whole situation. I would really appreciate everyone's comments:   Me (Irish passport) my wife (Filipino passport) and 2 year old twins (Irish passports) all live in the UK. My wife has residence here. We are flying from Manchester to Doha. We're Planning to stay 3 weeks. As my wife had a UK residence stamp &amp; EEA Family permit visa, we called the UK home office to just verify if she could travel to Qatar without a Visa. They informed us (recorded conversation) that my wife had the same entitlement to me as long as she was traveling with me. I understand now, that our calls should have been straight to the Qatar embassy in London to Verify. We just took it from the UK Home Office as being correct. We arrive at Manchester Airport. We asked the Qatar Airways check in staff to verify my wife's passport to confirm she is entitled to entry in the state of Qatar. Check-in staff confirmed everyone is OK with my wife's passport as we board our 8 hour flight to Doha with our 2 year old twins. We get to Doha and my wife is refused entry at immigration as they say she requires a visa. Calls are made by Qatar airways to Manchester Airport - Qatar airways admit full responsibility for allowing us to travel when we should not have been allowed to travel. We have to re-book flights at Doha - Qatar Airways just changed our return flight to get us back on the next available flight.  We had to pay to enter a lounge in Doha airport with our own money, just so we can give our children some rest and food. We return to Manchester 8 hours later. The twins' double buggy is missing (still missing to date). I understand my wife didn't have the correct Visa, as we were given false information by the UK home office. But, they should not have allowed us to board a plane with those checks being done. If I had known at Manchester airport, I could have made the journey myself with 1 of my children, and I could have processed the Visa for my wife at our hotel in Doha. But, because were not noticed and all allowed to board, I was never given this option. Are Qatar Airways at fault? Should all our flights be re-instated? Are we entitled to compensation? Should they reimburse our expenses?   This is currently being reviewed by the airline. It would be good to get comments and peoples thoughts. Repeat the same reference in footnote on different pages Question  The following is from Bartle:  Give an example of a function $f$ on $X$ to $\mathbb{R}$  which is not $X-$measurable but is such that $|f|,$ and $f^2$ are measurable.  Relavant Information  A family $\textbf{X}$ of subsets of $X$ is a $\sigma$ algebra in case:   $\phi, \mathbb{R} \in \textbf{X}$ $X \setminus A \in \textbf{X}$ if $A \in \textbf{X}$ If $(A_n) \in \textbf{X}$, then the union $\bigcup_{n=1}^{\infty} A_n \in \textbf{X}$  Any set in $\textbf{X}$ is called $X-$ measurable.   A function is $X-$ measurable if for every real $\alpha$, the set $\{x \in X : f(x)&gt;\alpha\}$ belongs to $\textbf{X}$  Attempt  Consider the following function: $$f=\begin{cases} 1 &amp;\mbox{ if} \ x \not\in\mathbb{Q} \\                   -1 &amp;\mbox{ if} \ x \in \mathbb{Q}  \end{cases}$$ defined from $\mathbb{R}$ to $\mathbb{R}$ with $\textbf{X}$ being the Borel algebra (the $\sigma$ algebra generated by all open intervals $(a,b)$) Then if $\alpha \in [-1,1)$, the set $\{x: f(x)&gt;\alpha\}$ consists of the irrational numbers. If I can show that the irrationals are not in the Borel Algebra, then I would be done since $|f|=f^2$ is a constant and easily shown to be measurable. Unfortunately I do not know how to show that the irrationals are not in the Borel Algebra.  Edit it has been brought to my attention that the irrationals are in the Borel algebra. I think this is because the rationals, being countable, can be shown to be in the Borel algebra by constructing appropriate small neighborhoods around each rational and then taking the intersections. I now seek to construct a set that is not in the Borel algebra  Alternatively I have tried to define a set other than the irrationals that is not in the Borel Algebra and define a similar function but to no avail. I am currently self studying this book so it would be of great help to me if the answer could contain heuristics on how to tell when a set if borel measurable (although I do not require this in the answer).