I have an area of a page that allows for deleting files. It lists the file names with a delete button next to each. Clicking the button makes an Ajax call to a cfc that deletes the file, and the area with the list reloads with the deleted file gone. When I first load the page, everything works as it should. Once the area is reloaded, the first item in the list is missing the surrounding form tags and clicking the button will reload the page. Subsequent items have the form tags but will still reload the page. This is my code for the main page: &lt;div id=&quot;uploadedFiles&quot;&gt;&lt;cfinclude template=&quot;/includes/list-uploaded-files.cfm&quot;&gt;&lt;/div&gt;  This is the code for list-uploaded-files.cfm: &lt;cfdirectory action=&quot;list&quot; directory=&quot;#ExpandPath('/applicant-uploads/' &amp; SESSION.grantID)#&quot; listinfo=&quot;name&quot; name=&quot;qGetUploads&quot;&gt;  &lt;cfif qGetUploads.RecordCount GT 0&gt;     &lt;table class=&quot;table table-hover&quot;&gt;         &lt;cfoutput query=&quot;qGetUploads&quot;&gt;             &lt;cfset documentPath = &quot;../applicant-uploads/&quot; &amp; SESSION.grantID &amp; &quot;/&quot; &amp; name&gt;             &lt;tr&gt;                 &lt;td&gt;                     &lt;a href=&quot;#documentPath#&quot; target=&quot;_blank&quot;&gt;#name#&lt;/a&gt;                 &lt;/td&gt;                 &lt;td class=&quot;text-right deleteFormContainer&quot;&gt;                     &lt;form&gt;                         &lt;input name=&quot;documentPath&quot; type=&quot;hidden&quot; value=&quot;#documentPath#&quot; /&gt;                         &lt;button class=&quot;btn btn-warning btn-sm submitFileDelete&quot;&gt;delete&lt;/button&gt;                     &lt;/form&gt;                 &lt;/td&gt;             &lt;/tr&gt;         &lt;/cfoutput&gt;     &lt;/table&gt;     &lt;cfelse&gt;     &lt;p&gt;No supporting documents have been uploaded.&lt;/p&gt; &lt;/cfif&gt;  This is the jQuery for the Ajax: //////////////////////////////////////////////////////////////////////////////////////////// // DELETE DOCUMENT ////////////////////////////////////////////////////////////////////////////////////////////  $(&quot;.submitFileDelete&quot;).on(&quot;click&quot;,function(){     event.preventDefault();     var form = $(this).closest(&quot;td&quot;).find(&quot;form&quot;);    var formData = $(form).serialize();     console.log(formData);     $.ajax({         type: &quot;POST&quot;,         url: &quot;/cfc/documents.cfc?method=deleteDocument&quot;,         data: formData,         dataType: &quot;text&quot;,         beforeSend:function(){             return confirm(&quot;Are you sure you want to delete this file?&quot;);     },         success: function(data, status) {             $(&quot;#uploadedFiles&quot;).load('/includes/list-uploaded-files.cfm');             console.log(status);             console.log(data);         }     }); });  Is there something about loading a CF page through Ajax that I'm missing? Thanks!
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.
How to ignore accent in SQLite query (Android) How do you prove a number is prime? I am a software engineer but try to keep up with maths as I really enjoyed the subject at school. I just saw a great TED talk:   The talk states that the current largest known prime is $2^{57885161}-1$  This got me thinking - how does one actually prove whether a number this large is prime or not?  Is it just done by brute force via a computer algorithm or are there any well known mathematical techniques for doing so?  I would be really grateful for any pointers as I am eager to learn about these techniques (if they exist). I'm trying to re-learn my undergrad math, and I'm using Stephen Abbot's Understanding Analysis. In section 2.7, he has the following exercise:  Exercise 2.7.5 (a) Show that if $\sum{a_n}$ converges absolutely, then $\sum{a_n^2}$ also converges absolutely. Does this proposition hold without absolute convergence?  I'm posting about this here because my answer to that last question about whether the proposition holds without absolute convergence is "Yes", but my suspicions are raised by him merely asking the question. Usually questions like this are asked to point out that certain conditions are necessary in the statement of propositions, theorems, etc. I just want to see if I'm missing something here.  Anyway, here's how I prove the absolute convergence of $\sum{a_n^2}$, and note that I never use the fact that $\sum{a_n}$ is absolutely convergent:  Proof: Let $s_n = \sum_{i=1}^n{a_n^2}$. I want to show that $(s_n)$ is a Cauchy sequence. So, let $\epsilon &gt; 0$ and $n &gt; m$, and consider, \begin{equation}   \begin{aligned}     |s_n - s_m| &amp;= |(a_1^2 + a_2^2 + \cdots a_n^2) - (a_1^2 + a_2^2 + \cdots a_m^2)|\\                 &amp;= |(a_{m+1})^2 + (a_{m+2})^2 + \cdots + a_n^2|\\                 &amp;= |a_{m+1}|^2 + |a_{m+2}|^2 + \cdots + |a_n|^2\\   \end{aligned} \end{equation} Now, since $\sum{a_m}$ converges, the sequence $(a_m)$ has limit 0. Therefore I can choose an $N$ such that $|a_m| &lt; \sqrt{\epsilon/n}$ for all $m &gt; N$. So for all $n &gt; m&gt; N$,  we have, \begin{equation}   \begin{aligned}     |s_n - s_m| &amp;= |a_{m+1}|^2 + |a_{m+2}|^2 + \cdots + |a_n|^2\\                 &amp;&lt; \left(\sqrt{\frac{\epsilon}{n}}\right)^2 + \left(\sqrt{\frac{\epsilon}{n}}\right)^2 + \cdots + \left(\sqrt{\frac{\epsilon}{n}}\right)^2\\                 &amp;&lt; \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2 + \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2 + \cdots + \left(\sqrt{\frac{\epsilon}{n-m}}\right)^2\\                 &amp;= \epsilon   \end{aligned} \end{equation} Therefore $(s_n)$ is Cauchy and $\sum{a_n^2}$ converges. And since $\sum{a_n^2} = \sum{|a_n^2|}$, the series $\sum{a_n^2}$ is absolutely convergent. &#x220E;  Am I doing something wrong here? Am I right in thinking that $\sum{a_n}$ need not be absolutely convergent for $\sum{a_n^2}$ to be absolutely convergent? How to space columns evenly in a table with multicolumns? Let $a_n$ be the number of those permutation $\sigma $ on $\{1,2,...,n\}$  such that $\sigma $ is a product of exactly two disjoint cycles. Then find $a_4$ and $a_5$.   Calculating $a_4$: Possible cases which can happen are $(12)(34),(13)(24),(14)(23)$, any cycle of the form $(123)$ or $(12)$ i.e. two-cycles and three cycles thus we have in total $3+\frac{1}{3}4P_3+\frac{1}{2}4P_2=3+8+6=17$ but the correct answer is given to be either $11$ or $14$.  Where am I wrong? Please help. Kernel of a substitution map can't find using System.Web.UI.HtmlControls namespace Number of equivalence classes of matrices under switching rows and columns I have been thinking about this problem:  Suppose we have all $R$ by $C$ matrices, where the values are integers in $[1,n]$. Two matrices are equivalent under interchanging rows and columns. For example,   1 5     0 0       would be equal to itself and to  0 0 1 5   and would be equal to  0 0  5 1   and would be equal to   5 1 0 0   How many unique such matrices are there?  Any ideas how to go about it? Any help much appreciated! Can you fly over a Medium enemy creature in a 10ft tall corridor? The app forgets that I voted when I scroll the question Related:   I am using 1.0.71 on KitKat.  Immediately after voting, the arrow is displayed in red and the vote count is correct. However, when I scroll to read answers and then back to the top, the arrow is grey again and the vote count is reset to the previous value.  A reload of the question (pulling the finger down) is needed to show the correct situation, which is kept from then on.  This case was on security.stackexchange.com but I observed the same behavior on other sites too.  Screenshots   original state:  upvoted:  scrolled down and back up  after a reload Centos recently updated to 7.3 and there's been problems with sshd sftp group permissions. I have one user that is chrooted to it's home directory, and that user is in group sftponly. Then i have the /var/www directory, which has 775 permissions and owner is apache and owner group is sftponly. I have a bind link pointing from /home/user/files/web --> /var/www, so the user can access /var/www even though being chrooted to it's home directory. I can view files in /var/www with that user, but impossible to edit or add anything. This worked fine before the big Centos 7.3 update, and now it's stopped working. Any ideas? I have a simple cylinder which is mirrored on both the X and Y axis.  When I scale it along the X axis, the two halves of the cylinder overlap, rather than scale as it would before the mirror modifier was applied:    I haven't used Blender in a while and I know this is a simple fix. What is the function __construct used for? I have been noticing __construct a lot with classes. I did a little reading and surfing the web, but I couldn't find an explanation I could understand. I am just beginning with OOP.  I was wondering if someone could give me a general idea of what it is, and then a simple example of how it is used with PHP? Prove that $\mathrm E\left({\max}\left\{X^2 , Y^2\right\} \right) \leq 1 + \sqrt{1 - \rho^2}$ where $\rho$ is their correlation. Could a ship equipped with Alcubierre drive theoretically escape from a black hole? Could a ship equipped with Alcubierre drive theoretically escape from a black hole?  Also, could it reach parts of the universe that are receding faster than the speed of light from us? How can I join these two meshes in a proper way? I know I can Ctrl J to join them, but how can I do so without having overlapping faces? How to make a complete factory reset, without anyone being able to retrieve my data? Search which man sections contain a given entry Pacf lag axe , is not an integer I'm trying to use ARIMA process to predict the behaviour of a time series, the probleme I face is that I can't get the order of each component of ARIMA, the lag is between 0 and 1, same goes for the acf. The time series has no tendency, and I guess no seasonality.     My question is : Does this mean that ARIMA orders are all 0s, and if so, is the HoltWinters a good (or the best) solution for modelling this kind of TS ? Is it possible to create image data and save to a file from a script