I have a html table which displays the data from database i am reloading the data inside the table every 30 secs from the database but while doing so table gets reloaded with the every new value inserted from the database but it does not retains the functionality of the delete button in that table,whereas before reload it allows me to delete and after reload nothing happens when i click on that button also it does not allow editing of the columns whereas before reload it allows me do that ..what should i do? here is my html table code-  &lt;div id="divGrid"&gt;                              &lt;table class="footable" data-filter="#filter" id="tableresult" &gt;                                &lt;thead&gt;                                  &lt;th&gt;Client name&lt;/th&gt;                                  &lt;th&gt;Staff name&lt;/th&gt;                                  &lt;th&gt;Matter&lt;/th&gt;                                  &lt;th&gt; Delete&lt;/th&gt;                               &lt;/thead&gt;                              &lt;tr id="&lt;?php echo $id; ?&gt;" class="edit_tr"&gt;  &lt;td class="edit_td" &gt; &lt;span id="client_&lt;?php echo $id; ?&gt;" class="text"&gt;&lt;?php echo $clientname; ?&gt;&lt;/span&gt; &lt;input type="text" value="&lt;?php echo $clientname; ?&gt;" class="editbox" id="client_input_&lt;?php echo $id; ?&gt;" /&amp;gt; &lt;/td&gt;  &lt;td class="edit_td"&gt; &lt;span id="staff_&lt;?php echo $id; ?&gt;" class="text"&gt;&lt;?php echo $staff; ?&gt;&lt;/span&gt;  &lt;input type="text" value="&lt;?php echo $staff; ?&gt;" class="editbox" id="staff_input_&lt;?php echo $id; ?&gt;"/&gt; &lt;/td&gt;  &lt;td class="edit_td"&gt; &lt;span id="matter_&lt;?php echo $id; ?&gt;" class="text"&gt;&lt;?php echo $matter; ?&gt;&lt;/span&gt;  &lt;input type="text" value="&lt;?php echo $matter; ?&gt;" class="editbox" id="matter_input_&lt;?php echo $id; ?&gt;"/&gt; &lt;/td&gt; &lt;td class="delete_td"&gt;&lt;input type="button" id="del" class="btn btn-danger" value="&amp;times;"&gt;&lt;/input&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;  &lt;/table&gt; &lt;/div&gt;   and script that i am using for reloading table-  &lt;script&gt; $(document).ready(function(e) {      var refresher = setInterval("update_content();",30000); // 30 seconds  });  function update_content(){    $('#divGrid').load('main.php #divGrid&gt;table');  } &lt;/script&gt;   functionality that delete button performs before reload and should actually retain even after delete is-  $(document).ready(function(){  var ID = 0; var parent = null;      $('input[type=button]').click(function(){          ID = $(this).parent().parent().attr('id');    parent = $(this).parent().parent();    $('#modal').dialog('open');      }); $('#modal').dialog({     autoOpen: false,      title: 'Delete Confirm Box',      width: 400,       buttons : [             {                 text: 'OK',                 click: function () {                     $("#modal").dialog('close');                      var data = 'id=' + ID;                       $.ajax(                 {                     type: "POST",                     url: "delete.php",                     data: data,                     cache: false,                     success: function()                     {                         parent.fadeOut('slow', function(){                             $(this).remove();                         });                     }                 });                     }             },             {                 text: 'Cancel',                 click: function () {                     $("#modal").dialog('close');                 }             }         ] });    });
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.
Multiples of an irrational number forming a dense subset We should make books of our best content! And that's a good idea!  We have a lot of high quality content here, certainly enough for a small book.   I'm not saying that it necessarily has to be integrated into the main site, but this is just a suggestion if anyone wants to implement it.   Stack Exchange probably could make money selling the physical books though. CC-BY-SA allows selling, as long as you allow others to make copies of your book, and credit the author.  What Wikipedia does is you can custom order any set of articles as a book (it even has a nice set of authors at the end, to satisfy the BY part of CC-BY-SA).  This could even tie into the docs feature. This is a very simple question but I believe it's nontrivial.  I would like to know if the following is true:      If $R$ and $S$ are rings and $R[x]$ and $S[x]$ are isomorphic as rings, then $R$ and $S$ are isomorphic.    Thanks!  If there isn't a proof (or disproof) of the general result, I would be interested to know if there are particular cases when this claim is true. Pattern in Isomorphisms between $\mathbb Z_m \times \mathbb Z_n$ and $\mathbb Z_{mn}$ I'm currently using  but it sometimes falls over when the RSS or Atom feed isn't well formed. Are there any other options for parsing RSS and Atom feeds with PHP? When documenting location, should current or historical place names be used? When I am documenting records, do I use the name of a city or country as it is called today or as it was in the year an ancestor was there?  Related to: Background I was ignorant as an undergraduate and didn't focus heavily in any specific area. I finally graduated with a single math/computer science degree that consisted of 5 math classes beyond multivariable calculus and a few relatively basic computer science classes (algorithm analysis, SQL database design, etc.). My only research experience is in economics. Now, I work at a research institution in economics where I primarily write Stata/MATLAB code. Question I'd like to get more mathematics under my belt over the next few years in order to either enroll in a PhD program in economics/finance or a M.S. program in finance. What are my options for getting more math experience that I can use in graduate school admissions? Options These are the options I thought of so far, but I would like to know more if possible.  Study enough courses through a system like Open CourseWare to gain enough experience to enroll in more advanced undergraduate classes part time, which my employer might pay for, and then ideally move into an M.S. program in applied math.  Return to my alma mater for a M.S. degree in math that would at least give me a basis to either move into another math graduate program with higher rankings or a lower-ranked graduate program in the fields of my choice.  Join the Air Force and hopefully take advantage of the GI bill to take more courses somewhere and gain entrance into an M.S. program in applied math.  (Sadly) Forgo advanced mathematics and find a consulting job, which although unpleasant in the field of economics (in my opinion), wouldn't be difficult to obtain given my research background in the field.   Do I have any other options? I also plan to take the GRE subject test in mathematics to prove that I have at least minimal knowledge, regardless of what course I pursue (since many graduate programs will require it). ViewParam vs @ManagedProperty(value = "#{param.id}") Suppose Pat is male. Which one is correct?     I found out Pat is male.      I found out Pat was male.   Does the following change make any difference?     She said Pat is male.      She said Pat was male.   Suppose you created a mathematical model. When you are describing a result, which one (or neither) is correct?     The model analysis shows that the equilibrium is stable.      The model analysis showed that the equilibrium is stable. Get display resolution from the command line for Linux Desktop I'm looking for a method of reporting display resolution. I want to set up scripts to launch rdesktop, and I want to launch it on several machines with different resolutions, so I want a way to dynamically determine it. At the end of the new Guardians of the Galaxy Vol. 2 Trailer we meet Star Lord's father:                                  Dad appears to be human. But Peter Quill's mother said in the first film that his father was a      "being made of pure light".    What race (species?) is Star Lord's father in the MCU? Countable axiom of choice: why you can't prove it from just ZF This is a follow-up question to the discussion about the finite axiom of choice .  Suppose we have a countable collection of non-empty sets $\{A_1, A_2, A_3,\cdots\}$ Reasoning as indicated in that discussion, we can prove the existence of a choice function $c_n$ such that $c_n(i)$ belongs to $A_i$ for $i = 1,\cdots,n$  Again reasoning as suggested and using induction, we can prove the existence of a function $C$ defined over $\{1, 2, \cdots\}$ such that $C(n)$ is a choice function defined for $i=1,\cdots,n$ with $C(n)(i)$ an element of A_i. We can require in addition that $C(n)(i)$ and $C(n-1)(i)$ are equal for $i=1,\cdots,n-1$.  Now it would it seem that we can prove the countable axiom of choice by taking the union of $C(1)$, $C(2)$, $\cdots$  The question is as follows: why is that proof wrong? I suspect the answer may have something to do with the axiom of union. When using QuickLook to quickly look through multiple images (pressing space and then using the arrow keys to navigate), some images will not get displayed by QuickLook when hitting them up a second time (going back for example).   A GIF does a much better job than me showcasing the issue. So here's me previewing a few random images:    I have tried deleting   ~/Library/Preferences/com.apple.QuickLookDaemon.plist ~/Library/Caches/com.apple.QuickLookDaemon/Cache.db ~/Library/Caches/com.apple.QuickLookDaemon32/Cache.db ~/Library/Containers/com.apple.quicklook.ui.helper  and restarting, unfortunately to no avail.  Repairing permissions and restarting the Finder in 32-bit mode, as suggested  by others, don't appear to have any effect on this issue either.  This happens with all kinds of images, no matter their source or format. "Reality" of length contraction in SR I was in argument with someone who claims that length contraction is not &quot;real&quot; but only &quot;apparent&quot;, that the measurement of a solid rod in its rest reference frame is the &quot;real length&quot; of the rod and all other measurements are somehow just &quot;artificial&quot; and &quot;apparent&quot;. Seemed to me like a bad conversation about poorly defined words and not really relevant to physics, but then some quotes were offered:  ...so that the back appears closer to the front. But of course nothing has happened to the rod itself.  (Rindler)  The effects are apparent (that is, caused by the motion) in the same sense that proper quantities have not changed.  (Resnick &amp; Halliday) At the same time, the  insists that length contraction and time dilation are &quot;real&quot;, with observable consequences:  Time and space dilation are often referred to as ‘perspective effects’ in discussions of STR. Objects and processes are said to ‘look’ shorter or longer when viewed in one inertial frame rather than in another. It is common to regard this effect as a purely ‘conventional’ feature, which merely reflects a conventional choice of reference frame. But this is rather misleading, because time and space dilation are very real physical effects, and they lead to completely different types of physical predictions than classical physics. [...] However, this does not mean that time and space dilation are not real effects. They are displayed in other situations where there is no ambiguity. One example is the twins' paradox, where proper time slows down in an absolute way for a moving twin. And there are equally real physical effects resulting from space dilation. It is just that these effects cannot be used to determine an absolute frame of rest.  I went through a lot of Einstein, Minkowski and Lorentz original material, and didn't find anything about what is &quot;real&quot; and what is not. Finally, I know about muons, where the effects of SR seem to be very real (from , but I had seen it in a physics class before):  When a cosmic ray proton impacts atomic nuclei in the upper atmosphere, pions are created. These decay within a relatively short distance (meters) into muons (their preferred decay product), and muon neutrinos. The muons from these high energy cosmic rays generally continue in about the same direction as the original proton, at a velocity near the speed of light. Although their lifetime without relativistic effects would allow a half-survival distance of only about 456 m (2,197 µs×ln(2) × 0,9997×c) at most (as seen from Earth) the time dilation effect of special relativity (from the viewpoint of the Earth) allows cosmic ray secondary muons to survive the flight to the Earth's surface, since in the Earth frame, the muons have a longer half life due to their velocity. From the viewpoint (inertial frame) of the muon, on the other hand, it is the length contraction effect of special relativity which allows this penetration, since in the muon frame, its lifetime is unaffected, but the length contraction causes distances through the atmosphere and Earth to be far shorter than these distances in the Earth rest-frame. Both effects are equally valid ways of explaining the fast muon's unusual survival over distances.  So which is which? Why do Rindler, Resnick &amp; Halliday use the word &quot;apparent&quot;? Given the following problem     Let $U$ and $V$ be finite dimensional vector spaces, such that $\dim(U) = \dim(V)$. Prove that $U$ and $V$ are isomorphic.   I was just wondering if somebody could critique and validate my proof.  Proof  Two vector spaces $U$ and $V$ are isomorphic if and only if there exists a bijection $\phi: U \to V$. That is, an invertible linear map between the two. Let $\dim(U) = \dim(V) = n$ and let $\left\{u_1, \dots, u_n\right\}$ and $\left\{v_1, \dots, v_n\right\}$ be bases for $U$ and $V$, respectively. It follows that any vector $u \in U$ can be written as  $$ u = c_1u_1 + \cdots + c_nu_n $$  We define $\phi: U \to V$ as  $$ \phi(c_1u_1 + \cdots + c_nu_n) = c_1v_1 + \cdots + c_nv_n $$  Observe that $\phi$ is invertible. That is, given a vector  $$ v = d_1v_1 + \cdots + d_nv_n $$  in $V$, we define $\phi^{-1}: V \to U$ as  $$ \phi^{-1}(d_1v_1 + \cdots + d_nv_n) = d_1u_1 + \cdots + d_nu_n $$  Since there exists a bijection between $U$ and $V$, they are isomorphic. How to inject Spring Bean for factory method requiring MyClass.class parameter I need to calculate the surface (m2) of external walls of all the buildings in a town. By external walls I mean all the walls of a building or parts of a wall which are not in contact with another building. I have a 2D shapefile of polygons with the cadastral footprint of the buildings, which includes information of the building’s height in the attribute table.  I don’t really know how can I do it… My idea is to convert the 2D file to 3D and use the 3D shapefile to distinguish the external walls from the shared walls (parts of a building that are shared with other buildings) of all buildings, and from there, calculate the total area but I’m not sure whether this can be done with ArcScene.  Anybody knows how could it be done and if there is an automate way to do it? Graph for relationship between two ordinal variables What is an appropriate graph to illustrate the relationship between two ordinal variables?  A few options I can think of:   Scatter plot with added random jitter to stop points hiding each other. Apparently a standard graphic - Minitab calls this an "individual values plot". In my opinion it may be misleading as it visually encourages a kind of linear interpolation between ordinal levels, as if the data were from an interval scale. Scatter plot adapted so that size (area) of point represents frequency of that combination of levels, rather than drawing one point for each sampling unit. I have occasionally seen such plots in practice. They can be hard to read, but the points lie on a regularly-spaced lattice which somewhat overcomes the criticism of the jittered scatter plot that it visually "intervalises" the data. Particularly if one of the variables is treated as dependent, a box plot grouped by the levels of the independent variable. Likely to look terrible if the number of levels of the dependent variable is not sufficiently high (very "flat" with missing whiskers or even worse collapsed quartiles which makes visual identification of median impossible), but at least draws attention to median and quartiles which are relevant descriptive statistics for an ordinal variable. Table of values or blank grid of cells with heat map to indicate frequency. Visually different but conceptually similar to the scatter plot with point area showing frequency.   Are there other ideas, or thoughts on which plots are preferable? Are there any fields of research in which certain ordinal-vs-ordinal plots are regarded as standard? (I seem to recall frequency heatmap being widespread in genomics but suspect that is more often for nominal-vs-nominal.) Suggestions for a good standard reference would also be very welcome, I am guessing something from Agresti.  If anyone wants to illustrate with a plot, R code for bogus sample data follows.  "How important is exercise to you?" 1 = not at all important, 2 = somewhat unimportant, 3 = neither important nor unimportant, 4 = somewhat important, 5 = very important.  "How regularly do you take a run of 10 minutes or longer?" 1 = never, 2 = less than once per fortnight, 3 = once every one or two weeks, 4 = two or three times per week, 5 = four or more times per week.  If it  would be natural to treat "often" as a dependent variable and "importance" as an independent variable, if a plot distinguishes between the two.  importance &lt;- rep(1:5, times = c(30, 42, 75, 93, 60)) often &lt;- c(rep(1:5, times = c(15, 07, 04, 03, 01)), #n=30, importance 1            rep(1:5, times = c(10, 14, 12, 03, 03)), #n=42, importance 2            rep(1:5, times = c(12, 23, 20, 13, 07)), #n=75, importance 3            rep(1:5, times = c(16, 14, 20, 30, 13)), #n=93, importance 4            rep(1:5, times = c(12, 06, 11, 17, 14))) #n=60, importance 5 running.df &lt;- data.frame(importance, often) cor.test(often, importance, method = "kendall") #positive concordance plot(running.df) #currently useless   A related question for continuous variables I found helpful, maybe a useful starting point: Admob SMART_BANNER size Why do I have two docks in Ubuntu desktop (with GNOME 3) after installing Dash to Dock? What's going on here? I've installed the  on Ubuntu 17.10. Everything was cool, and as I was trying to hone and tweak the look of my desktop, at some point the shortcuts bar (dock?) on the left is duplicated.  (Click image to enlarge) The default, which normally disappears with Dash to Dock, is there underneath the one that usually shows up when I install Dash to Dock. Why? I've tried to go through the options for Dash to Dock, the GNOME Tweak Tool, and the regular Ubuntu settings, but I can't figure it out.