I am trying to display some banner from a remote location using hrefs and img in JavaScript.  On client side:  &lt;script src="data/JScript.js?id=123" type="text/javascript"&gt;&lt;/script&gt;   I want some solution so that I can make 123 dynamic in below JS file. As of now it is hard coded.  I just want that i will give client the above JS link and it will generate a dynamic link to a website with a querystring paramenter like (www.abc.com/123)   JS file (JScript.js):  document.write('&lt;div style="text-align:center" class="img-responsive" &gt;&lt;a href="www.test.com/123" &gt; &lt;img style="width:200px;height:200px;" src="http://pixel.nymag.com/imgs/daily/intelligencer/2015/07/18/20-donald-trump.w529.h352.2x.jpg" alt="" &gt; &lt;/img&gt; &lt;/a&gt; &lt;/div&gt;');
How can I reference the script element that loaded the javascript that is currently running?  Here's the situation. I have a "master" script being loaded high in the page, first thing under the HEAD tag.  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt;   There is a script in "scripts.js" which needs to be able to do on-demand loading of other scripts. The normal method doesn't quite work for me because I need to add new scripts without referencing the HEAD tag, because the HEAD element hasn't finished rendering:  document.getElementsByTagName('head')[0].appendChild(v);   What I want to do is reference the script element that loaded the current script so that I can then append my new dynamically loaded script tags into the DOM after it.  &lt;script type="text/javascript" src="scripts.js"&gt;&lt;/script&gt; loaded by scripts.js--&gt;&lt;script type="text/javascript" src="new_script1.js"&gt;&lt;/script&gt; loaded by scripts.js --&gt;&lt;script type="text/javascript" src="new_script2.js"&gt;&lt;/script&gt;
What is the point of isomorphism concept? Console freezes on auto-complete of /mnt/folder (CIFS) share I have a Ubuntu 14.04 server that will lock up after an undetermined amount of time when you attempt to tab-auto-complete the path of a CIFS share in the /mnt directory. I mount the share and it seems to work fine for a uncertain amount of time. I can do ls or run du on folders within the mounted share. Then I will go to tab out a folder path and my console locks up. I can start a new session but it will lock as soon as I try to mess with the mounted share; this even happens to other users if I have them try as well. I have no idea why this is happening? I've never seen this issue. Referencing to "above" or "below"? Setup IIS 7.5 with multiple website bindings and SSL? On IIS 7.5 I am trying to achieve this with two websites:  Default Web Site is bound to:  (blank host header port 80 - http) (blank host header port 443 - https) go.example.com www71.example.com the IP address of go.example.com  2nd web site "Beta" is bound to:  beta.example.com (blank host header port 443 - https) * using blank only because it doesn't seem to be possible to    bind https to a named host header   And both need to work with SSL.  But I have these problems:   When I type in beta.example.com, I see the go.example.com site instead I can not seem to add the SSL binding to both websites at once (I have a single *.example.com wildcard certificate).  The beta site will not even start if I add the https binding to it.   This is how I have set it up:    What is the correct way to set it up? How can a quasar be 29 billion light-years away from Earth if Big Bang happened only 13.8 billion years ago? I was reading through the Wikipedia article on  and came across the fact that the most distant Quasar is 29 Billion Light years. This is what the  exactly says      The highest redshift quasar known (as of June 2011[update]) is ULAS-J1120+0641, with a redshift of 7.085, which corresponds to a proper distance of approximately 29 billion light-years from Earth.   Now I come to understand that the  singularity is believed to be around 13.8 Billion years ago.  So how is this possible? Does the presence of such a quasar negate the Big Bang Theory?   I'm not a student of Physics and was reading this out of (whimsical) curiosity. Is there something I'm missing here or the "proper distance" mentioned in the fact is a concept that explains this?  Edit: My Bad! Here's how..  A simple google search led me to  which says the farthest quasar found is 12.9 billion LYs and not 29 billion. So in the end we have just proven that wikipedia needs more moderation. I have purchased a game on Steam and can not find out the details of the file or purchase. How does one find their CD Key from a game purchased in Steam? Equicontinuity on a compact metric space turns pointwise to uniform convergence I know that   If $\{f_n\}$ is an equicontinuous sequence,  defined on a compact metric space $K$, and for all $x$, $f_n(x)\rightarrow f(x)$, then $f_n\rightarrow f$ uniformly.  I'm having trouble proving this.  I see the same problem  but am having trouble following the proof, particularly with part (3).  Can someone guide me through a proof of this result? I am currently learning how to use TikZ/PGF to make some figures for a project report, and so I have a question:     Is there is a practical way of making a particular object into a node?   The object I have in mind is shown in the Figure below. I want the object to consist in the big circle, the two circular arcs, the label and anchors at north, south, east and west. The dotted lines are simply there to indicate that I am going to have paths going out of these points, which is why I need the anchors there.     I include the source, in the case that it is useful to anyone.  \begin{tikzpicture} \draw[help lines, gray, dotted] (-2,-2) grid (2,2);  \begin{scope}[shift={ (0,0) } ]     \begin{scope}[rotate=90]         \draw[thick] (-1,0) arc[start angle=-90, delta angle=90, %                               x radius=1, y radius=1] -- (0,1) %NW                      (0,-1) arc[start angle=180, delta angle=-90, %                                    x radius=1, y radius=1] -- (1,0); %SE         \draw[gray] (0,0) circle (1);     \end{scope} % Anchor replacements     \node(N1)       at (0,1)    {};     \node(S1)       at (0,-1)   {};     \node(E1)       at (1,0)    {};     \node(W1)       at (-1,0)   {}; % Label     \node(Crossing number) at (0,0) {1}; \end{scope}  \path[thick, gray, dotted] [ out=90,   in=270]     (N1.center) edge (0,2) [ out=180,  in=0]       (W1.center) edge (-2,0) [ out=270,  in=90]      (S1.center) edge (0,-2) [ out=360,  in=180]     (E1.center) edge (2,0); \end{tikzpicture}   PS. I have had a look at the Manual, but I could not find a description of how to do this. How can i find the python triggered by the GUI? I read a short story (I think, but it might have been a novel), where most races discover a very easy way to travel faster than light at a certain point in their technological development.   What I remember:   The guys in wooden ships bounced around subjugating the people without FTL travel. Earth had never figured out the FTL, and so had poured its effort in a different path, achieving present day technology. The aliens were freaking out about handing the humans FTL travel. The story was told from the point of view of the aliens. I read it in the last 10 years, but there is no telling how old it actually was, although I do remember them mentioning F-18s or F-14s. Function with varying number of For Loops (python) How do I get a tourist visa/card for Cuba? How do I get a tourist visa (or a tourist card) for Cuba?  I live in the Netherlands, but I'm not a Dutch citizen, I have an Italian passport. Is the function differentiable at $0$? Let $$f(x) = \begin{cases}\begin{align*}&amp;\cos{\dfrac{1}{x}}, &amp;x \neq0 \\ &amp;0, &amp;x=0. \end{align*}\end{cases}$$ Is the function $F(x) = \displaystyle \int_{0}^x f dx$ differentiable at $0$?  We can see that the function $f(x)$ is continuous everywhere except $x=0$. In order to show differentiability we will need to show the derivatives from the left and right are equal. So we need to show that $$\lim_{h \to 0^+} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^-} \dfrac{F(x+h)-F(x)}{h}.$$ The derivative from the right is $$\lim_{h \to 0^+} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^+} \dfrac{\displaystyle \int_{0}^x\cos{\dfrac{1}{x+h}}-\int_{0}^x\cos{\dfrac{1}{x}}}{h}$$ and the derivative from the left is $$\lim_{h \to 0^-} \dfrac{F(x+h)-F(x)}{h} = \lim_{h \to 0^-} \dfrac{\displaystyle \int_{0}^x\cos{\dfrac{1}{x+h}}-\int_{0}^x\cos{\dfrac{1}{x}}}{h}.$$ I am not sure how to proceed. Proof for Property of Complex Numbers Is the inequality $\lvert z_1 + z_2 \rvert \ge \lvert z_1 \rvert - \lvert z_2 \rvert$ incorrect, where $z_1$ and $z_2$ are any two complex numbers? I need an example to prove that it is. And in case it is correct, can you please give the proof? Thanks for any help. Proving the convergence of $\sum\limits_{n=1}^{\infty}\frac{1}{1+z^n}$ for $|z| > 1$ $\sum\limits_{n=1}^{\infty}\frac{1}{1+z^n}$, $|z|&gt;1$.  There are two facts that my professor uses that I am confused about.  The first is: $|1+z^n| \geq ||z|^n-1|$, I believe this is true for any $|z|$.  The other is: $\frac{1}{|z|^n-1} \leq \frac{2}{|z|^n}$, I believe this is also true for any $|z|$.  Can anyone prove these statements for me? This problem comes from another equation on another question (. I tried to split it in half but I found out that $$\sum_{k=0}^\infty \frac{k}{2^k}$$ can't be divided. Knowing that $$\sum_{k=0}^\infty x^k=\frac{1}{1-x}$$ I wrote that $$\sum_{k=0}^\infty \frac{k}{2^k}=\sum_{k=0}^\infty \left(\frac{\sqrt[k] k}{2}\right)^k=\frac{1}{1-\frac{\sqrt k}{2}}=\frac{2}{2-\sqrt[k] k}$$ But that's not what I wanted. Could anyone help me? Get the size (size in Kb or MB) of an featured image? Stopping to eat is tedious, is there any way to automate the process? While I've managed to optimize and automate almost everything, constantly having to stop and eat is annoying (I run around a lot, so I get hungry quickly). Is there any device or tool that will keep me well fed at all times without having to stop and feed? Splicing a Javascript array from within the callback passed to forEach How to call the method correctly in Preference.OnPreferenceChangeListener()