issue with click events on yajra datatable I have yajra datatable which is working properly. below is my datatable function         $.ajaxSetup({             headers:{'X-CSRF-TOKEN' : '{{ csrf_token() }}'}         });                  var table = $('#tblOrderList').DataTable({             &quot;aaSorting&quot;: [],             destroy:true,             &quot;pageLength&quot;: 25,             processing: true,             serverSide: true,             ajax: {                 url:'{{ route(&quot;admin.VirtualOrderCreditBin.getVirtualCreditOrders&quot;) }}',                 method:'post'             },             columns : [                 {data : 'order_number', name : 'orders.order_number'},                                    {data : 'location_description', name : 'location_description'},                            {data : 'customer_name', name : 'customer_name'}             ]         });  and now I want to add click events on table rows. I want to do different functionalities on right click event, left click event and duble click event. for that I have tried below code     $(document).ready(function(){         $('#tblOrderList tbody tr').mousedown(function(event) {             switch (event.which) {                 case 1:                     alert('Left mouse button is pressed');                     break;                 case 2:                     alert('Middle mouse button is pressed');                     break;                 case 3:                     alert('Right mouse button is pressed');                     break;                 default:                     alert('Nothing');             }         });     });  but this is not working I don't know why. can anybody help me in this?
Event binding on dynamically created elements? 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.
When do I use the following:   home.php frontpage.php Under Settings > Reading Settings  Front Page Posts Page    I wish to clarify this as I find myself using "Placeholder Pages", empty pages just for the sake of a menu item and to display blog listings.   If I use a Static Front Page (Set under Settings > Reading Settings > Front Page) how do I access my posts page? Do I need to have a "Placeholder Page" titled blog and use page-blog.php? GCSE: Find the number of person that will go to a party How many square meters "twenty feet square" is? One would assume it to be about 2 square meters, but this is obviously not the case. In fact, I'm reading Illium by Dan Simmons. A quote follows:     Much like the room they had faxed into, this space was windowless and about twenty feet square. But unlike the other room, this one was warm, lighted, and free of snow or ice. And unlike the other room, this one was almost filled with an oval metal machine about fifteen feet long.   By this description, "twenty feet square" seems to mean 20x20 feet aka 400 square feet or 40 square meters. Given that Dan Simmons is a renowned American writer, it's not likely that he just can't speak English correctly. So, who's right and who's wrong here? Eclipse doesn't start on Ubuntu 18.04 For a prime $p \equiv 1$ or $3$ (mod $8$), show that the equation $x^{2} + 2y^{2} = p$ has a solution. For a prime $p \equiv 1$ or $3$  (mod $8$), show that the equation $x^{2} + 2y^{2} = p$ has a solution.   I'd like to see an elementary proof. Storing the original document class page layout with geometry Is it possible, using the geometry package, to store (and restore) the original layout specified by the document class (in my case, the class is report)?    Here is some context.  I have been editing a long document in the default page layout for the report document class.  Now I found out that I need a title page.  There is a particular title page layout, and in fact, it works perfectly if I just load the geometry package with its default and change just two settings.  But then I want the rest of the document back in the original page layout!  I can't do something like \restoregeometry, since I think geometry just overrides the class options... i.e. there doesn't seem to be anything to restore.  Similarly, it seems I can't use \savegeometry or \loadgeometry.  So how can I get back to my original layout for the rest of the document without painstakingly hard-coding in all of the specific page layout variables?    Here is a minimum working example:   \documentclass[a4paper,10pt]{report}  \RequirePackage[a4paper,dvips]{geometry} % g1 \geometry{top=2.5cm,bottom=2.3cm}        % g2  \begin{document}  \input{the_title_page}  \SomeGeometryCommandsHere  % g3  \input{the_rest}  \end{document}   If I run the above code with the lines labeled "g" commented out, then the title page does not have the correct page layout, but the rest of the document is formatted perfectly.    If I leave lines g1 and g2 uncommented, then the title page has exactly the correct layout, but no matter what I put for g3 (e.g. \loadgeometry, \restoregeometry, etc.) I can't recover the original layout that I had when g1 and g2 were commented.  Of course, I could completely specify the original layout exhaustively in line g3, and this should in principle work.  However, I spent almost one hour on this last night and when I still couldn't get it formated correctly I decided I really needed a smarter solution. I want to prove that $\lim_{(x,y)\to (0,0)} \frac{\sin(x+y)}{x+y} = 1$  Is it sufficient to say that if $u = x+y$ then as $(x,y) \rightarrow (0,0)$ then $u \rightarrow 0$ and then evaluate $\lim_{u\to 0} \frac{\sin u}{u}$ which is 1 by L'Hôpital's rule?  I feel that this is somehow "cheating" and I would really like to prove it in a more rigorous way, i.e., by using an $\epsilon$ - $\delta$ argument.  I have tried for a long time to use the one variable version and prove that if $0 \lt \sqrt{x^2 + y^2} \lt \delta$ then somehow $0 \lt |x+y| \lt \delta$ and it would follow from the one variable case that $| \frac{\sin(x+y)}{x+y} - 1| \lt \epsilon$. However, because $|x+y| = 0$ when $y = -x$ I am not getting anywhere with this.  Any input on this would be helpful :) Difference between declaring variables before or in loop? How does damage dealt increase as you level up I've recently taken over as GM in my group.  We are all new to RPGs except for our original GM, so they decided to run an adventure path so it would be easier to change GMs if they had to stop playing.  Along this path, we had one CR 4 encounter that took us an hour, almost killed our bloodrager and knocked our brawler unconscious. When we leveled up, our GM told us to increase the damage we did by "one level," so my 1d6 became 2d6 and my friend's 2d6 became 4d6.  I saw no problem with this as a player, but I was looking over the adventure path and later encounters that also have a CR of 4 could be ended in one turn by our bloodrager. This would make encounters really boring, and my goal is to avoid boredom.  My question is: As you level up, how does the damage you do increase? Does it go up like my GM said so that at level 3 my rapier does 3d6 and the bloodrager's earth breaker does 6d6, or does it go up by some other method?  I have read the PHB and I don't think that what the GM was saying is correct, but being a first-time player I wasn't sure if had just missed something, so I figured I should ask elsewhere. When I run the following query in query editor I get this error.  Error     Unknown error parsing query   Query  SELECT Id, OwnerId,Account.OwnerId FROM Contact where OwnerId = Account.OwnerId limit 100   Does anybody know what the problem is? The mdframed environment fails to break into several pages (slides) when used in a frame environment from the beamer class.  In the other hand, the boitecoloriee environment from the boites package can be broken into several pages.  Here is a document that demonstrates the issue. It should not be compiled directly into pdf because boitecoloriee uses pstricks.  \documentclass{beamer} \usepackage{xcolor,boites,boites_exemples,pstricks} \usepackage{mdframed} \usepackage{lipsum}  \begin{document}  \begin{frame}[allowframebreaks]{Using \texttt{boitecoloriee}}   \begin{boitecoloriee}     \lipsum[1-2]   \end{boitecoloriee} \end{frame}  \begin{frame}[allowframebreaks]{Using \texttt{mdframed}}   \begin{mdframed}     \lipsum[1-2]   \end{mdframed} \end{frame}  \end{document}   Maybe is there a way to fix mdframed to work in slides too. Any clues? Bonferroni adjustment in SPSS - what does it do? I'm probably being a bit simplistic here, but from what I understand the Bonferroni post hoc test is simply when we adjust the alpha to account for inflated error when several post hoc tests are conducted. You divide the alpha by number of tests. So what exactly does SPSS do when we click the button for Bonferroni?   Shouldn't the dividing of alpha be done by us in interpreting the result, e.g. if we do 10 post hoc tests our alpha criterion should be .005 so if the p value is .012 then it is not significant, but SPSS hasn't done anything there, we have just changed our interpretation. So what exactly is it adjusting? About two weeks ago I had a problem with my PC that my brother wrote a question about at .  I still haven't solved the problem, so my PC is unusable now.  Now I think that it would be simpler to re-install both Win7 &amp; Ubuntu than repair them, but there're some data on their partitions. I want to recover this data.  These partitions are not mountable for some reason. I don't know why.  sudo fdisk -l about the problematic partitions:     Device    Boot      Start         End      Blocks   Id  System /dev/sda1            2048     147912703    73955328   83 Linux /dev/sdb2            206848   174079999    86936576    7  HPFS/NTFS/exFAT   And in GParted:      And the error of the mount command:  Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   And the exact same message for /dev/sda1  How can I recover my data from those HDDs?  EDIT     I have tried to specify the type of the drive:  $ sudo mount -t ext4 /dev/sda1 /olddisk mount: wrong fs type, bad option, bad superblock on /dev/sda1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so $ sudo mount -t ntfs /dev/sdb2 /olddisk NTFS signature is missing. Failed to mount '/dev/sdb2': Invalid argument The device '/dev/sdb2' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?   EDIT     sudo ntfsfix /dev/sdb2 returns:  Mounting volume... NTFS signature is missing. FAILED Attempting to correct errors... NTFS signature is missing. FAILED Failed to startup volume: Invalid argument NTFS signature is missing. Trying the alternate boot sector Unrecoverable error Volume is corrupt. You should run chkdsk. How do I use the json_encode() function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object? Inclusion of Fields whose order is a prime power Blue was correct, I need to fix my understanding of this:     Finite fields have cardinality of a prime order because they have a prime subfield that has finite characteristic.    I do not completely understand why finite field of each characteristic is unique. Perhaps we look at a polynomial and express the finite field as a splitting field? And we use uniqueness of splitting fields?  Then, why is it that  $\mathbb F_{p^m} \subseteq \mathbb F_{p^n}$ if and only if $m$ divides $n$? What is this colored fiber in my chicken? I smoked a whole chicken. When I cut into the breast I found this:    What is it and is my chicken ruined? C# Lambda expressions: Why should I use them? I have quickly read over the  documentation.  This kind of example has helped me to understand better, though:   delegate int del(int i); del myDelegate = x =&gt; x * x; int j = myDelegate(5); //j = 25   Still, I don't understand why it's such an innovation. It's just a method that dies when the "method variable" ends, right? Why should I use this instead of a real method? Why is this sentence correct? “She suggested that he go to the cinema.” How can I separate a single object file into multiple objects based on closed geometry? Let's say you have a single obj with a number of separate closed 3D geometries in it. For example's sake, imagine you have an obj called neighborhoodfirehydrants.obj that includes the model for all of the fire hydrants on a street, which themselves are closed, but as I said above, are all within the same obj file.  Now let's say you wanted to be able to process each of those fire hydrants one at a time, separately. To the user, it's very obvious to see visually that these faces can be subgrouped into separate "objects" but in the Blender world, it sees them all as one.  I'm looking for a way (script would be ideal) to iterate through a blender obj neighborhoodfirehydrants.obj and find each of the "objects" (fire hydrants) that make it up. I've been looking into using the looping tools, but that's not making sense in this context. Website with a collection of sci fi stories set in the same universe; powerful AIs being regarded as Gods, one named Gaia, and a "technopocalypse" There is a site with lots of stories all set in a future with super powerful AIs regarded as Gods, the most powerful being matrioshka brains. They have a specific terminology but I can't remember their names. Earth has been converted into a similiar godlike computer called "Gaia" and has expelled all humans creating a dystopian exodus across the solar system. And something about rogue Von Neumann machines causing a huge crisis dubbed the "technopocalypse".