I have a dynamically generated table. Something like this:  &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Task&lt;/th&gt; &lt;th&gt;options&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody id="tasks-list"&gt; @foreach($tasks as $task) &lt;tr id="contact_{{$contact-&gt;id}}"&gt; &lt;td&gt;{{task-&gt;name}}  &lt;td&gt;&lt;button class="btn btn-warning btn-xs btn-detail open-modal" value="{{$contact-&gt;id}}"&gt;Edit&lt;/button&gt; &lt;button class="btn btn-danger btn-xs btn-delete delete-task" value="{{$contact-&gt;id}}"&gt;Delete&lt;/button&gt;&lt;/td&gt; &lt;/tr&gt; @endforeach  &lt;/tbody&gt; &lt;/table&gt;   Then I have a button to add a new task with AJAX.  When it succesfully adds a task, a new row with the recently created info gets appended:   var task = '&lt;tr id="contact_' + data.id + '"&gt;' +'&lt;td&gt;' + data.name + '&lt;/td&gt;' + '&lt;td&gt;&lt;button class="btn btn-warning btn-xs btn-detail open-modal" value="' + data.id + '"&gt;Editieren&lt;/button&gt;&lt;div style="margin-left: 3px"' + '&lt;button class="btn btn-danger btn-xs btn-delete delete-task" value="'  + data.id + '"&gt;Löschen&lt;/button&gt;&lt;/td&gt;&lt;/tr&gt;';   $('#tasks-list').append(task);   This works fine. Everything is appended correctly and the buttons have the same propeties as the generated by Blade. Ids are also correct, there is no difference. When I click on edit or delete, I get no response. Not even an error in the console. When I refresh the site the buttons work so the stored information is actually correct.  Any help would be appreciated.  EDIT: Handler     $('.delete-task').click(function(){         $.ajaxSetup({             headers: {                 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')             }         })         var task_id = $(this).val();          $.ajax({             type: "DELETE",             url: '/task_edit/' + task_id,             success: function (data) {                 console.log(data);                 $("#contact_" + contact_id).remove();             },             error: function (data) {                 console.log('Error:', data);             }         });     });
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 make Fedora user a sudoer? My son is going on 5 and starting to learn a lot about how we're created. I've been with my husband for 10 years, but nearly 6 years ago I had no other choice but to move 1000 miles away and after trying the long distance thing it didn't work so we split up.   I ended up going through a rough patch and started dating an abusive jerk. After a year I was pregnant. He threatened me trying to force me to have an abortion and I refused. His grandmother was chief of police and he scared me into moving back to Florida.  Eventually, when I was 4 months along in my pregnancy my husband and I picked up right where we left off. He loved me so much and accepted our son as if he was his own and has done an amazing job at raising him.   He enrolled in college while I was pregnant, got us a house and went above and beyond to care for us both (as after giving birth I became very ill due to rare brain and spine conditions). I've always tried to do right by my son. Since day one, even while with my husband, I tried to keep the sperm donor involved. But he wanted no part of his son.  My husband stepped up when the biological father refused. The biological father would pretend that he cared, only to tell me he never cared about him anyway and was just trying to manipulate me into stopping child support (which I did anyway after the first year: I felt it wasn't right to take his money when my son had a dad who loved, supported and wanted him from the beginning).  This is a very long story so I'll try and make it not so much of a novel. The sperm donor has made it very clear he wants nothing ever to do with my son. My husband has been Dad since the moment my son entered this world. I've always planned to tell my son as early as possible. I think now, or in a few years, it won't be as hard on him compared to us telling him when he's a teen and who knows how he'd handle it.   I just don't know what to do. We have an extremely happy loving family. My son adores his dad. We never argue, we have a very happy non-dysfunctional marriage. I just feel we have a very special family. But I refuse to lie to my son. What if we wait and someone else maliciously tells him? Or if, when he's older and finds out, he spirals out of control?  I'm so confused, I just want to do the right thing and desperately need advice. Especially from others who have been through similar circumstances. We're planning on meeting with therapists and I guess child development specialists, if someone could also point me in the right direction for what type of doctor is best suited in this situation.   Also my son is very happy. He has a wonderful life and I feel as if he would do fine, knowing how much he loves his dad and just beginning to really grasp the concept of life. I don't think it would change anything for him, if that makes sense. I've been worrying over this for 5 years and really need some answers! Odd behavor with POSIXct/POSIXlt and subsecond accuracy Sum of the series $\sum _{ r=1 }^{ \infty }{ \frac { { r }^{ 3 } }{ r! } } $ How do I prove that the sum of the series  $1+\frac { { 2 }^{ 3 } }{ 2! } +\frac { { 3 }^{ 3 } }{ 3! } +\frac { { 4 }^{ 3 } }{ 4! } +.... = 5e$ Positive operator has a positive spectrum? Let $T : \operatorname{dom}(T) \rightarrow H $ be a positive self-adjoint operator, is it then true that $\sigma(T) \subset [0,\infty)$? This is something that sounds natural and I guess that it is true. For bounded operator, this can be easily shown, but the only proof I know cannot be adapted to unbounded operator, so I was wondering if anybody here knows how to show this? What antivirus programs are available for Ubuntu?  We previously used Symantec Endpoint Protection but it does not work in Ubuntu. Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this? How to text-to-speech output using command-line? How to get speech output from entered text by using command-line?  Also facility to change speech rate, pitch, volume etc using simple command. Can “zealot” have a positive connotation? A zealot is a person who is fanatical and uncompromising in pursuit of their religious, political, or other ideals.  I have never seen this word used with positive connotation, but could it (without causing raised eyebrows)? For example, “Gandhi was a zealot and should be admired by all who believe in non-violence.”  Also, do “zealous” and “zeal” carry the same connotation as “zealot”? How to connect to device via SSH over direct ethernet connection I have a device that I need to connect to over SSH. The device is connected to my workstation via a direct ethernet connection. I'm attempting to assign the connected device an IP address somehow that I can SSH to, however all of the guides I'm finding have the user configure the IP from whatever device they're working with (namely Raspberry Pi's and so on). This is not something I can do with this device as I've no physical interface to work with.  I've been recommended to setup a DHCP server on my workstation so it would take care of this for me, however I've no idea how to configure it and none of the guides I have followed have been helpful. With that approach, I seem to have been able to bind an IP to the interface the device is connected on, however SSHing to that IP just brings me back to my own machine.  So my main question is: How do I assign an IP address to a device directly connected to my computer via ethernet cable without having any kind of access to the device (no interface, keyboard, monitor, etc). If the answer is to set up a DHCP server on my machine, how do I properly configure this and get an IP I can SSH to?  For reference, I am using Ubuntu 16.04 with OpenSSH installed. The device is also running some flavor of Linux and has SSH software installed, but again there's no way to interact with it except through SSH. I also do not have access to my router, so plugging the device in there and letting the router do the work is not an option. Why didn't Dumbledore remove Quirrell from DADA teaching when he realized something was wrong with him? In "Harry Potter and the Deathly Hallows", from Snape's memory that Harry views, we learn that Dumbledore had misgivings about Quirrell, when he said to Snape:     Keep an eye on Quirrell, won't you?   If he knew something was off, why not remove him from a very sensitive position of teaching DADA to kids? Check if element found in array c++ I had a bunch of errors in the output of sudo apt-get update:  duplicate entries and 404 not found errors.  Figured those out, I hope: I removed PPAs that didn't have any packages associated with them, then I removed out a duplicate entry in /etc/apt/sources.list.  It seems I have royally buggered it up.  Now most of the lines say Ign when I do sudo apt-get update.  How do I go about straightening out what I have screwed up?  I need to get rid of these Igns that are all over the place.  There are about 50% (eyeball guess) Igns! Finding the radius of convergence for $\sum_{n=0}^{\infty} \frac{(n!)^kx^n}{(kn)!}$ I'm reviewing some calculus concepts right now, and this series stumped me. I'm trying to figure out what its radius of convergence is, but it's not falling for any of my old tricks. Using the root-test, I want to compute: $$ L_1=\lim_{n\rightarrow\infty} \left|\sqrt[n]{\frac{(n!)^k}{(kn)!}}\right| $$  where $k$ is some positive integer. Passing the limit through the absolute-value bars and $n$th root symbol, I now want to compute the simpler (?) $$ L_2 = \lim_{n\rightarrow\infty} \sqrt[n]{\frac{(n!)^k}{(kn)!}}$$  Which I can't seem to pin down. Numerical tests indicate it goes to 0, and that jives with an intuitive notion I have that there are always $k$ terms on the numerator, but $kn$ terms in the denominator. But since all of these terms themselves depend on $n$, proving that $L_2 = 0$ escapes me. Once we get this result (if it's correct), then clearly $L_1$ is also 0, and the radius of convergence of the series is $\mathbb{R}$. Thanks for any ideas you may have. In all shells I am aware of, rm [A-Z]* removes all files that start with an uppercase letter, but with bash this removes all files that start with a letter.  As this problem exists on Linux and Solaris with bash-3 and bash-4, it cannot be a bug caused by a buggy pattern matcher in libc or a miss-configured locale definition.  Is this strange and risky behavior intended or is this just a bug that exists unfixed since many years? Trigger an event with Prototype Javascript && operator as if statement? Creaking from cranks/spindle. How to fix? How to make use of Devel debugging functions on large or complex objects I am having trouble making real use of Devel's debugging functions kint() and dpm() in my modules and twig templates. They work fine for primitive variables, flat arrays and such, but if I want to inspect into some object like an EntityRerefenceFieldItemList they either cause the site to crash (white page) or generate so much data such that the scripts for expanding the list no longer work.  How do I circumvent these problems? My PS3 controllers have died and are not charging