I used the code below to display json data from backend and it works fine as I can get all users id and email.      &lt;script type="text/javascript"&gt;  // Display Result working excellently      $(document).ready(function(){         $.ajax({             url: 'data.php',             type: 'get',             dataType: 'JSON',             success: function(response){                 var len = response.length;                 for(var i=0; i&lt;len; i++){                     var id = response[i].id;                     var email = response[i].email;                      var dcr = "&lt;tr&gt;" +                          "&lt;td align='center'&gt;" + email + "&lt;/td&gt;" +                           "&lt;td align='center'&gt;&lt;input type='' name='id' id='id' value=" + id + "&gt;&lt;/td&gt;" +                         "&lt;td align='center'&gt;&lt;input type='' name='email' id='email' value=" + email + "&gt;&lt;/td&gt;" +                         "&lt;td align='center'&gt;&lt;button id='del_btn' name='del_btn'&gt;Delete&lt;/button&gt;&lt;/td&gt;" +                         "&lt;/tr&gt;";                      $("#contentTable tbody").append(dcr);                 }             }         });     });       // alert id and email before deleting content via ajax not working     $(document).ready(function(){      $('#del_btn').click(function(){     var id = $('#id').val();     var email = $('#email').val();      alert(id);     alert(email);      // here send ajax to delete content        });     });      &lt;/script&gt;          &lt;/head&gt;         &lt;body&gt;             &lt;div class="container"&gt;                 &lt;table id="contentTable" border="1" &gt;                     &lt;thead&gt;                         &lt;tr&gt;                              &lt;th width="30%"&gt;Email&lt;/th&gt;                              &lt;th width="30%"&gt;Delete&lt;/th&gt;                         &lt;/tr&gt;                     &lt;/thead&gt;                     &lt;tbody&gt;&lt;/tbody&gt;                 &lt;/table&gt;             &lt;/div&gt;         &lt;/body&gt;     &lt;/html&gt;   Here is my problem. I want to delete content of result when Delete button is clicked and to this effect,  I have attached a Delete button  and pass users id and email in a form input but when I click on delete button for each result, the jquery cannot alert id and email so that i can further post it to ajax as per code below  It seems jquery is not responding delete action button. Please how do I alert users id and email first so that I can pass it to ajax. Thanks  $(document).ready(function(){  $('#del_btn').click(function(){ var id = $('#id').val(); var email = $('#email').val();  alert(id); alert(email);  // send ajax to delete email    }); });
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.
Quick easy way to migrate SQLite3 to MySQL? Anyone know a quick easy way to migrate a SQLite3 database to MySQL? How widely accepted are Euros in Hungary and how bad is the exchange rate practiced by shops/hotels? The official currency of Hungary is the Forint but so far everything I have looked for prices online, such as trains, buses and taxis, are quoted in Euros and Forints. Hotel reservation asked that I pay in Euros at the hotel. Considering that I will only spend a few days in Budapest, are Forints necessary? Or can I pay for transport, admissions and food in Euros? In such a case, how is the conversion rate set? Is $[0,1]$ a countable disjoint union of closed sets? The volume on my macbook pro has suddenly become greyed out. I haven't installed any updates or made any modifications to the computer, it just suddenly became greyed out after waking the macbook up from sleeping.  I've tried resetting the PRAM, but I don't hear any chime at all when I start up my computer, no matter how long I wait/how many times the computer re-restarts itself.  There also seem to be no internal speakers detected when I go into system preferences. For both input and output the computer detects 0 devices.  Thanks so much in advance for any help!! Drawing Roman laurel leaves (SPQR) in TikZ I was trying to get the symbol of the old .  I'm actually interested in the laurel leaves, and not so much in the banner per se.  What I would like to have is something like this (in Tikz, as oppose to simply \includegraphics).  With the possibility to change the stylish A to any other simple roman letter.    I'm a complete newbie with TikZ, and even though I know this question sounds like do this for me, I would really appreciate if someone could at least throw in an sketch where to start. Can you stay in Turkey for over 90 days within the 180 day visa period but split over different visits? The Turkish e-visa is valid for a period of 180 days and allows you to stay for a maximum of 90 days. Am I allowed to stay for say 50 days, then another 50 days, over two different visits within the 180 day period?  I'm looking at the e-visa website  and it doesn't seem to be too clear on this. I always thought the book was Manifest Destiny but its not. The story that sticks in my head was a human in a cage over a pit? Aliens walk in and discuss how dangerous humans were. He eventually escapes. Man I miss this book. wish I wouldve written down every book I ever read. Ugh We are in the combat phase:   I declared my attackers  My opponent declared his blockers, stating which attackers he was blocking I cast an instant, which automatically kills his blocker. There is nothing blocking my attacker now   Now we're in the damage phase. I said that my attacker now does damage and  reduces my opponent's hit points. My opponent said that because my attacker was blocked no damage could be done. I pointed out that the blocker was destroyed before the damage phase, so therefore he wasn't blocking, but he wasn't having it. (My attacker does not have trample)  Is this covered by a specific section in the rules? After most recent kernel update (4.15.0-44-generic) my tablet freezes whenever plugged into docking station I performed the most recent kernel update on my Dell 5290 2-in-1 earlier today.  But moments after I plug it into its docking station, the screen flickers, blanks and freezes.  The only item left on the screen is the mouse pointer, and it is stuck.   If I leave the tablet not plugged in, it runs just fine.  It seems to be the docking station that triggers the freeze.  That said, I can log into the tablet via ssh even with the screen frozen.  So the system is still running.  But if I try to reboot the tablet via the reboot command, nothing appears to happen. sudo reboot -f will reboot the system, while sudo reboot will not.  Any ideas where I should start looking to identify this problem? Code examples, like in the TikZ/PGF manual I like very much the 'side-by-side' code examples in the TikZ/PGF manual...    ... and I would like to use the same thing in a manual I'm writing. I have found the source code for the codeexample environment that the TikZ/PGF manual uses for this purpose (specifically, it's located at /usr/local/texlive/2012/texmf-dist/doc/generic/pgf/macros/pgfmanual-en-macros.tex).  My (probably rather basic) question is: how can I use the same codeexample environment in my own documents? I ask because I tried compiling the example in the related question below, but the file couldn't be found. I am not very familiar with databases and the theories behind how they work.  Is it any slower from a performance standpoint (inserting/updating/querying) to use Strings for Primary Keys than integers? How to evaluate  $$\det\begin{bmatrix}1+x_1y_1&amp;\cdots &amp; 1+x_1y_n\\ \vdots &amp; \ddots &amp; \vdots \\ 1+x_ny_1 &amp; \cdots &amp; 1+x_ny_n\end{bmatrix}$$?  I tried factorisation but I have no idea. I could not factor anything out... I need a hint to kick off.   Edit: A conjecture due to multilinearity: if we let $v_j=(x_1y_j,\cdots,x_ny_j)^T$, then my guess would be $$\det\begin{bmatrix}1+x_1y_1&amp;\cdots &amp; 1+x_1y_n\\ \vdots &amp; \ddots &amp; \vdots \\ 1+x_ny_1 &amp; \cdots &amp; 1+x_ny_n\end{bmatrix}=\det(1,v_2,\cdots,v_n)+\det(v_1,1,\cdots,v_n)+\cdots+\det(v_1,v_2,\cdots,1)=\color{red}{0}$$ where $1$ denote $(1,\cdots,1)^T\in \Bbb K^n$,$\Bbb K$ the underlying number field. Is there anything special with complex fraction $\left|\frac{z-a}{1-\bar{a}{z}}\right|$? Is there anything special with the form:  $$\left|\frac{z-a}{1-\bar{a}{z}}\right|$$ ? With $a$ and $z$ are complex numbers.  In fact, I saw it in a problem:   If $|z| = 1$, prove that $|\frac{z-a}{1-\bar{a}{z}}| = 1$ If $|z| &lt; 1$ and $|a| &lt; 1$, prove that $|\frac{z-a}{1-\bar{a}{z}}| &lt; 1$   I can easily prove the first one with expansion:  $$z=\cos\theta + i\sin \theta \\ a = m +in$$  But it will be terrible to use in the second one. What's more, I found this form a little special so maybe there is some clever trick without using expansion?  Thank you a lot! I am a new QGIS user and i have a challenge to convert legend from right to left reading in QGIS like ArcGIS. How's This for a Simple HTTP Callout Retry Framework? Most of what I have read about retry operations is that they are vaguely complicated and indepth. I have written the code below which seems to accomplish this without too much confusion - I'm wondering if there are any pitfalls I am not seeing here.   The class uses a top-level schedulable class, which calls a queueable class to make the callout, and if the callout is unsuccessful, it just schedules the top level class again five minutes later. After testing it appears this works indefinitely.   A simple string token, assigned at the first invocation, is also passed between the classes, and I have tested and found that the token does persist, even when runs are scheduled for a later time.   Thanks for helpful thoughts!  public class SelfServe implements Schedulable {      public String Token = null;      public void execute(SchedulableContext ctx) {                  RetrieveMachineDetails Job = new RetrieveMachineDetails();             Job.Token = Token;             System.enqueueJob(Job);      }           public class RetrieveMachineDetails implements Queueable, Database.AllowsCallouts {          public String Token = null;          public void execute(QueueableContext context){                                            Http http = new Http();             HttpRequest request = new HttpRequest();                             request.setEndpoint('https://app.endpoint.com/api');                     request.setMethod('POST');                     request.setHeader('Content-Type', 'application/json;charset=UTF-8');                                      request.setBody('{"query":  "$message_=\'METRIC\' &amp;&amp; $tier=\'customer\' "}');                                                                                                                                                                                    HttpResponse response = http.send(request);                            if (response.getStatusCode() == 200) {                 //do stuff                  }              else { //retry                  DateTime Dt = system.now().addMinutes(5);                                String day = string.valueOf(Dt.day());                                        String month = string.valueOf(Dt.month());                                          String hour = string.valueOf(Dt.hour());                                       String minute = string.valueOf(Dt.minute());                                                       String year = string.valueOf(Dt.year());                                   String ScheduledTime = '0 ' + minute + ' ' + hour + ' ' + day + ' ' + month + ' ?' + ' ' + year;                  SelfServe Job = new SelfServe();                     Job.Token = Token;                 System.schedule('SelfServe Job'+Dt, ScheduledTime, Job);              }         }        }  } fp - How to keep running sum in variable? I have this code in my LaTeX:   \FPset{totalHours}{0}  \newcommand{\entry}[5]{     \FPeval{totalHours}{(totalHours)+#5}     #1 &amp; #2 &amp; #3 &amp; #4 &amp; #5 \\ }   Where \entry is meant to be an entry in a time log. The 5th argument is a number representing the number of hours in that entry. I want to keep a running total of the hours in a variable I can print later on, totalHours.   This seems to do the \FPeval but then totalHours gets reset to 0 by the next time I write \entry. What is the correct way to keep a running total? Thanks. Generating ordered combination of numbers Question 1: Let $x,y \in S$ such that $x\sim y$ if $x^2 =y^2\pmod6 $. Show that $\sim$ is an equivalence relation.    This is what I tried: Reflexive: $x^2\pmod6 = x^2$  implying $x\sim x$ Symmetry: suppose $x\sim y$, then  $x^2 =y^2\pmod6$ Operating by inverse of $x^2$ both sides we have $e=(x^2)^{-1} y^2\pmod6$ Then I have $y^2=x^2\pmod6$, hence $y\sim x$ I would like to get some corrections up to here because am not sure with this     Question 2. Find the orbits of the given permutation:    $$v:\mathbb{Z}\to\mathbb{Z}\quad\text{ defined by }\quad v(n)=n+3$$   Here is my solution which I would also want somebody to correct me! Let the relation $\sim$ be defined on $\mathbb{Z}$ by $a\sim b$ if $b=a+3$ I consider that the orbits of $v$ are the classes of $\mathbb{Z}$ with respect to $\sim$ given by  $\{b\mid b=a+3\}$. Thus I get only three orbits which are $\{1,4,7,10,…,3n-2\mid n\in \mathbb{Z}\}$, $\{2,5,8,…,3n-1\mid n\in \mathbb{Z}\}$, and $\{3,6,9,…,3n \mid n\in \mathbb{Z}\}$. Do Pokémon trainers develop some kind of limited resistance to their Pokémon's abilities? Obvious comedic aspects of the cartoon show especially aside, this may be a partial explanation. Think about it:  James can breathe Weezing's smog with no ill effects. Brock was able to hug a Sharpedo. And Ash has gotten trampled, tossed, smacked, singed, smothered, submerged, routed, run over, and electrocuted so often by his Pokemon he should be perpetually hospitalized! Yet these characters always seem to bounce back without serious injury.  Considering [a] it is partially cartoon logic, and [b] Pokémon trainers, much like animal handlers, likely will get somewhat more sturdy and hardy from simply regularly dealing with the animals they train....  Is it at all possible that just being around a Pokémon somehow helps their trainers develop a higher resistance to that Pokémon's special abilities? How are java.lang.Object's protected methods protected from subclasses? The keyword protected grants access to classes in the same package and subclasses ().  Now, every class has java.lang.Object as superclass ().  Hence I conclude that every class may access java.lang.Object's methods even if they are protected.  Take a look at the following example:   public class Testclass {   public Object getOne() throws CloneNotSupportedException {     return this.clone();   }   public Object getTwo() throws CloneNotSupportedException {     return ((Object) this).clone();   } }   While getOne() compiles fine, getTwo() gives   Testclass.java:6: clone() has protected access in java.lang.Object         return ((Object) this).clone();   I neither understand why getTwo() doesn't compile nor what's the difference (regarding the access of java.lang.Objects members) with getOne().