In my blade view, I have rows of fields for each value in backend and at the end an empty text field. @php $x = 1; @endphp @foreach ($base_urls as $base_url)     &lt;div class=&quot;input-group mb-3&quot;&gt;         &lt;div class=&quot;input-group-prepend&quot;&gt;&lt;span class=&quot;input-group-text&quot;&gt;{{ $x }}&lt;/span&gt;&lt;/div&gt;         &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Insert url or leave empty to delete&quot; aria-label=&quot;Edit or remove url&quot; name=&quot;base_url_{{ $base_url-&gt;ID }}&quot; value=&quot;{{ $base_url-&gt;url }}&quot; /&gt;     &lt;/div&gt;     @php $x++; @endphp @endforeach  &lt;div class=&quot;input-group mb-3&quot;&gt;     &lt;div class=&quot;input-group-prepend&quot;&gt;&lt;span class=&quot;input-group-text&quot;&gt;{{ $x }}&lt;/span&gt;&lt;/div&gt;     &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Add url&quot; aria-label=&quot;Insert url&quot; name=&quot;base_url_&quot; /&gt; &lt;/div&gt;  When the user inputs something to the last empty field, I want another empty field to be generated, and so on. So I made a JS script called admin_panel.js that looks like this $('#base_urls_body form div.input-group:last-of-type input').change(function(e){     last_input_group = $('#base_urls_body form div.input-group:last-of-type');      if( $(e.target).val() != '' ){         last_input_group.after('&lt;div class=&quot;input-group mb-3&quot;&gt;&lt;div class=&quot;input-group-prepend&quot;&gt;&lt;span class=&quot;input-group-text&quot;&gt;'+field_count+'&lt;/span&gt;&lt;/div&gt;&lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Add url&quot; aria-label=&quot;Insert url&quot; name=&quot;base_url_&quot; /&gt;&lt;/div&gt;');     }  });   The field is being generated correctly, but the selector form div.input-group:last-of-type input is only detecting the input that was generated on page load, not the one generated with javascript  This is how I include my JS file in Laravel blade view. Its pushed to a stack in app.blade.php, the stack is called at the bottom of the body close tag. @push('admin_panel')     &lt;script src=&quot;{{ asset('js/admin_panel.js') }}&quot; defer&gt;&lt;/script&gt; @endpush  Maybe since admin_panel.js is loaded after everything else it doesn't detect new changes? If I remove defer attr from the script tag, I can't use jQuery in my .js file. How can I fix this?
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
In bash, how do I escape an exclamation mark? I want to do something like bzr commit -m "It works!". I can sort of escape the exclamation mark by doing bzr commit -m "It works\!". However, then my commit message includes the backslash. How do I escape the exclamation mark, while still ignoring the backslash? A search on google for "iphone developer" turns up loads of websites which have "iphone" in them, a trademarked name by Apple.  So I'm led to believe that having a domain such as iphonedeveloper.com is ok? Well, you're still using Apple's trademark, but it would be hard to brand yourself otherwise. You're an IPHONE DEVELOPER... right?  Well, what if I want to provide a website where users pay to get a list of the best offers from Ebay? I might have a domain like ebaydeals.com (I don't... i'm just speculating!).  Now I've heard that places like Ebay are really hot on the trigger and fire out emails to people who register domains like that straight away. But whats the difference?  In both cases I'm making money from the trademark, effectively, so is it just down to how lenient the company who owns the trademark is? Or are there rules? Is there a specific "line" you don't cross?  Thanks It is generally believed and claimed that quantum computers can outperform classical devices in at least some tasks.  One of the most commonly cited examples of a problem in which quantum computers would outperform classical devices is $\text{Factoring}$, but then again, it is also not known whether $\text{Factoring}$ is also efficiently solvable with a classical computer (that is, whether $\text{Factoring}\in \text{P}$).  For other commonly cited problems in which quantum computers are known to provide an advantage, such as database search, the speedup is only polynomial.  Are there known instances of problems in which it can be shown (either proved or proved under strong computational complexity assumptions) that quantum computers would provide an exponential advantage? I have already read        and many others   But I still have the following problem:   On one hand I've been told that if pure rotation takes place then the object goes on forever. This must imply no frictional force in any form acting on the body. On the second hand I've been told that during pure rotation(no external forces like wind) on a plane surface friction acts opposite to velocity of center of mass (accompanied by change of normal) and slows it down.     Both seem logical enough: The point of contact doesn't slip therefore no friction is required; So no retarding force and it must go on. Things don't go on forever; Friction must be present to slow it down.    So, which hand is correct? Or is there a third hand altogether? How to convert .bib generated by Mendeley for use with amsrefs I'm using TeX live 2010.  I have a .bib file generated from Mendeley, and  I want to use that with amsrefs, but it's confusing and the amsrefs documentation is somewhat hard to follow: how do I massage the .bib file into something that amsrefs can stomach. (I'm using amsart as the document class). I have been thinking about ways of teaching electronics and I'm wondering if the following is true...  For starters, when we talk about voltage as energy per unit charge, is this energy manifest simply as the kinetic energy of the electron?  So, all other things being equal, will the electrons coming out of a 4 volt battery will have twice the velocity of electrons coming out of a 1 volt battery because of ${1 \over 2}mv^2$?  This would seem to imply that the voltage drop across different parts of the circuit is essentially a comparison of the electron speeds at those points.  Furthermore doesn't this imply that the electrons are nearly halted by the time they reach the positive terminal of the battery? This makes intuitive sense to me, it seems pedagogically sound, and it provides an explanation for how electrons "know" to give up their energy across the circuit -- electrostatic repulsion communicates later resistances to earlier parts of the circuit.  How much of the above is correct? The one things that makes me suspicious is that, in this picture, electron density at the positive terminal of the battery is very high, and repulsive forces would prohibit this. On the other hand, if the Joules per Coulomb are not coming from kinetic energy, then what? The field? But wouldn't that just dissipate as light?  Something is wrong but I don't know what. I have the following code for a Figure with 4 subfigures:  \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption}  \begin{document}  \begin{figure}[b]     \centering     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm1.pdf}         \subcaption{$Q^{*}$ values for arm 1}         \label{fig:arm1}     \end{subfigure}     ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm2.pdf}         \subcaption{$Q^{*}$ values for arm 2}         \label{fig:arm2}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm3.pdf}         \subcaption{$Q^{*}$ values for arm 3}         \label{fig:arm3}     \end{subfigure}      ~     \begin{subfigure}[b]{\textwidth}         \includegraphics[width=\textwidth]{./plots/arm4.pdf}         \subcaption{$Q^{*}$ values for arm 4}         \label{fig:arm4}     \end{subfigure}      \caption{$Q^{*}$ values for different arms}     \label{fig:arms} \end{figure}  \end{document}   This results in   But this way, the 4 subfigures are too large to fit on 1 page. I would like to split this over 2 pages, keeping the subcaptions a, b, ... How can I do this? How can I make my browser lie about my operating system? I'm using Chromium (Version 30.0.1599.114 Ubuntu 12.10) under Linux. I'm trying to access  that claims that it doesn't work under Linux. Of course, this is most likely crazy since the web is platform-independent (unless they're using some kind of evil plug-in).  I've used a user agent switcher to supply a Windows user agent, but to no avail. Upon viewing the source, it appears that the site is using Javascript to determine the operating system. I'm looking for a way to get my browser to report in Javascript that it is Windows or MacOS.  Do you know how to do it? Setting width/height as percentage minus pixels Set Theory: Tree Property Why does the tree property hold for regular cardinals but not singular cardinals? (I.e. There exists a tree of height $\kappa$ with countable levels and no cofinal branch for $\kappa$ a singular cardinal) My proof is very different from my reference, hence I am wondering is I got this right?  Apparently, $F$ is continuous, and the identity matrix is closed. Now we want to show that the preimage of continuous function on closed set is closed.  Let $D$ be a closed set, Consider a sequence $x_n \to x_0$ in which $x_n \in f^{-1}(D)$, and we will show that $x_0 \in f^{-1}(D)$.  Since $f$ is continuous, we have a convergent sequence $$\lim_{n\to \infty} f(x_n) = f(x_0) = y.$$  But we know $y$ is in the range, hence, $x_0$ is in the domain. So the preimage is also closed since it contains all the limit points.  Thank you. How do I "parent" objects? I'm looking for a way to have two separate objects be connected, so that when I move the first object the second one will move also. The term parent is used, but how do I parent a object? How to extend WIFI from ethernet PDE separation of variables Hi could someone guide me this problem  It says ,  $ u_t - u_{xx}-2 u_x=0  $  Use the method of separation of variables to find all possible solutions.   Could someone help me out for this problem. I'm beginner at PDE. I would be much appreciated if you able to show some partial work so that I can understand.  Thanks in advance for taking my consideration Robust method to extract "pure" part of a variable I am trying to perform a multi linear regression model:  $$y_i = β_0 + β_1x_{i1} + β_2x_{i2} +... + β_px_{ip} + ε_i$$  where $$x_{i1}, x_{i2}, ..., x_{ip}$$ are highly correlated with each other (VIFs can be as low as 5 and high as 30).  I am just wondering if there exists a procedure with the following properties:  1) extracts the pure part of each independent variable, where pure is defined as a part of the variable which is uncorrelated with other variables.  2) the pure part and the original variable should be similar to each other, whether similar is defined as moments such as mean and variance and correlation coefficient (ideally >0.90) How much willpower do gravely wounded soldiers lose? The text says they suffer a permanent reduction? Remove Archives in category title How I can remove word "Archives" in head title in category page? I'm using the Twenty Twelve theme and WordPress 4.   &lt;head&gt; &lt;title&gt;"name of category" Archives  | "name of sites"&lt;/title&gt; &lt;/head&gt; Proof of "Dual normed vector space is complete" Assume $f:A\to A'$ is a function, $B\subset A'$, $C\subset A'$, and $f^{-1}(B\cap C)=\emptyset$  How can we see that $f^{-1}(B)\cap f^{-1}(C)=\emptyset$? For $a,b,c>0$, prove that $\frac{a^2}{b}+\frac{b^2}{c}+\frac{c^2}{a}\ge a+b+c+\frac{4(a-b)^2}{a+b+c}$