I have a checkbox inside jquery datatable which is created dynamically with the code below.  $('#SettingsDatatable').dataTable({ "order": [], "dom": "Bfrtip", "buttons": ["copy", "csv", "excel", "pdf", "print"], "columnDefs": [{    "targets": 0,    "render": function (data, type, full, meta) {    return '&lt;input type="checkbox" ' + (data == 'True' ? 'checked' : '') + ' /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;  &lt;a href="#" data-toggle="modal" data-target="#" title="Edit"&gt;&lt;i class="glyphicon glyphicon-pencil"&gt;&lt;/i&gt;&lt;/a&gt;';   }}   Now I want to select this checkbox with code below.   $('#SettingsDatatable input[type="checkbox"]').on('click', function (event) {                 alert("Hello in"); });   But its not getting selected.  Update  $('#SettingsDatatable').on('click', 'input[type="checkbox"]', function (event) {       event.preventDefault();      event.stopPropagation();       return false; });
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.
Profile Gravatar get change Do not know whether someone else observe it or not but today I found my profile Gravatar changed. It is now different than earlier I have. Is it because today I have updated my profile information?        My previous gravatar looks like: Microsoft has steadily improved its operating cash flows in the past three years. Microsoft has steadily improved its operating cash flows in the last three years. Microsoft has steadily improved its operating cash flows for the past three years. Microsoft has steadily improved its operating cash flows for the last three years. Microsoft has steadily improved its operating cash flows for the past three years. (&quot;for&quot; omitted) Microsoft has steadily improved its operating cash flows for the last three years. (&quot;for&quot; omitted) Microsoft has steadily improved its operating cash flows during the past three years. Microsoft has steadily improved its operating cash flows during the last three years. Microsoft has steadily improved its operating cash flows over the past three years. Microsoft has steadily improved its operating cash flows over the last three years.  Which of them are idiomatic and preferred? Are they interchangeable? I think the title says all I want: I want to add context menu items for a specific file type like the yellow marked ones in the screenshot. Which registry changes do I have to make? In my case I want to assign ir.exe to .rb files. Сanonical form of a quadratic form by Lagrange's method This is just an eg. to understand how to solve it.  There is a quadratic form as below we need to bring to canonical form using Lagrange's method and find the coordinate transformation.   Then find the positive &amp; negative indexes, rank of the quadratic form. Finnally, to investigate sign-definiteness of the quadratic form by two ways: according to it's canonical form and the criterion of Sylvester: $4x_{1}^2+2x_{2}^2+10x_{3}^2-4x_{1}x_{2}-12x_{1}x_{3}-8x_{2}x_{3}$  Any clarification on how to do it are very welcomed. Is there a way of moving unwanted villagers out faster? Is there any way to speed up this process or indirectly 'force a villager to move out'?  I know they move out if it's time for a new one to move in, and I know you can't actually 'force' them persay.  I have a villager who has caused nearly all my other villagers to wear his.. rather hideous 'kiddie shirt'. ((the character's default shirt)) Aside from that his home blocks the perfect spot, very close to my river, for building a convenient bridge...  I've taken to pushing him, hitting him with a net, and I've been trying to find a Toy Hammer... He wanted to leave once and I told him to go, but then he said he wouldn't leave until I, "made an effort to get to know him" or some BS..  Are there any other ways I can get an unwanted, 'pesty', villager to leave town? What color codes can I use in my PS1 prompt? I used several colors in my PS1 prompt such as   \033]01;31\] # pink \033]00m\]   # white \033]01;36\] # bold green \033]02;36\] # green \033]01;34\] # blue \033]01;33\] # bold yellow   Where can I find a list of the color codes I can use?  I looked at  but it didn't answer my question about a list of the actual codes.  It would be nice if there was a more readable form also.  See also My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and to download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard.  Is there any way to recover the product key from the mainboard using Ubuntu? Only actions taken are displayed on question while checking the history of Low Quality Posts review On Ask Ubuntu, when I try to view my Low Quality Posts review history and click on the action taken on questions, I can only see the actions taken and no preview of the question.   :    The question still exists on the site:   It seems question review history page is missing this HTML class:  &lt;div class="reviewable-post reviewable-post-post_id"&gt;   On the other hand, everything is working fine for answers. After searching here:    I am still curious about this.  Is it possible to derive the standard error of a regression coefficient from summary data alone?   E.g., assume we are given the following variance-covariance matrix.  $\begin{bmatrix}Var(X) &amp; Cov(X,Y)\\Cov(X,Y) &amp; Var(Y)\end{bmatrix}$  We can derive the regression coefficient $\beta_{XY} = Cov(X,Y) / Var(X)$.  Given a specific n, is it possible to derive the standard error of $\beta$ as well? If so, which formula is being used? It appears that all formulas for regression standard errors that I could find assume that you know the variance of residuals of the regression, which we don't know from summary data alone.  ---UPDATE--- Based on feedback by Greg and whuber, I am now at a point, where I know that  $\sigma^2(b) = \sigma^2(X'X)^{-1}=\sigma^2(Var(X)(n-1))^{-1}$,  but typically matrix formulas for the standard error of $b$ then note that $\sigma^2$, the unknown variance of the errors, is estimated with MSE.   Based on comments by whuber, sum of squares residuals is:  $Y'Y - bX'X$, which according to Greg can be spelled out as  $Var(Y)(n-1) - b(Var(x)(n-1))$  And to go from here to MSE, I think (?) all that is left is divide by n-2,  so $(Var(Y)(n-1) - b(Var(x)(n-1))) / (n-2)$  And plugging this all in yields:  $\sigma^2(b) =((Var(Y)(n-1) - b(Var(X)(n-1))) / (n-2))\times(Var(X)(n-1))^{-1}$  I will try to see if this works out in R, and will report back. If anyone sees something blatantly wrong, I appreciate the heads up. Parent Field in Lightning Datatable Are Parent Fields supported in lightning Datatable?  I'm trying to display Account Name with Contact information, but it seems parent fields are not supported in lightning datatable.  Component:  &lt;aura:component controller="PagingSortingController"&gt;     &lt;aura:attribute name="mydata" type="Object"/&gt;     &lt;aura:attribute name="mycolumns" type="List"/&gt;     &lt;aura:handler name="init" value="{! this }" action="{! c.init }"/&gt;     &lt;lightning:datatable data="{! v.mydata }"          columns="{! v.mycolumns }"          keyField="con.id"         onrowselection="{! c.getSelectedName }"/&gt; &lt;/aura:component&gt;   Controller:  ({     init: function (cmp, event, helper) {     cmp.set('v.mycolumns', [                 {label: 'Contact Name', fieldName: 'Name', type: 'text'},                 {label: 'Phone', fieldName: 'Phone', type: 'phone'},                 {label: 'Email', fieldName: 'Email', type: 'email'},                 {label: 'Account Name', fieldName: 'Account.Name', type: 'text'}             ]);         helper.getData(cmp);     }  })   Helper:  ({     getData : function(cmp) {         var action = cmp.get('c.getContacts');         action.setCallback(this, $A.getCallback(function (response) {             var state = response.getState();             if (state === "SUCCESS") {                 cmp.set('v.mydata', response.getReturnValue());             } else if (state === "ERROR") {                 var errors = response.getError();                 console.error(errors);             }         }));         $A.enqueueAction(action);     } })   Apex Controller:  @AuraEnabled     public static List&lt;Contact&gt; getContacts() {         List&lt;Contact&gt; contacts =                  [SELECT Id, Name, Phone, Email,Account.Name FROM Contact];         return contacts;     } As a new user, I find it impossible to contribute to the community or to even begin contributing. I know why the reputation system is in place and I respect it, but at the same time it is too hard on new users.  It started with me wanting to upvote a question...     "Vote Up requires 15 reputation"   Just to appreciate a good question that helped me I need 15 rep? OK..., so I find out how I can get reputation points. More or less, I need to ask a question for +5 and add an answer for +10. I don't have any questions at the moment and I don't want to spam a random question, but I did happen to have a slightly different answer to the earlier question that I wanted to upvote. So I try to answer...     This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.   Now... I know this doesn't apply to every question, but at the same time, this means I'm forced to answer yet another question, and I don't want to go around looking for random questions and spam irrelevant answers...  Now I'm stuck. So I try to talk to some other users in the chat rooms about how to go about getting reputation points and how they first started. I entered into a "casual chat room".     You must have 20 reputation on Meta Stack Overflow to talk here.   Yes... I can understand why this is enforced, because we don't want new users to spam chat rooms, but all I wanted to do was ask for help. So I can't even talk to anyone about my newbie problems. So okay, I'll just settle for upvoting comments in the question that helped me. I don't see an upvote hover-over button so I can't even do that.    So now I'm stuck at 1 reputation point, unable to cross that 15 rep barrier, and even after posting this question I'll only have 6 rep points and still unable to do anything, and I'll be forced to look for questions to answer. Yes, I should be contributing to the community, but I shouldn't need to begin answering or making questions to upvote questions and answers. This only spurs more spam/irrelevant answers if anything.   Very, very, very new-user unfriendly. Indian passport threading coming off My Indian passport threading is coming off i.e. the cover of the passport is coming off, there are only 2 threads remaining.   Will it be a problem at the airport when going abroad ? Also anyone who has experience of getting a replacement passport fairly quick ? Because I need to get a passport in like 15 days. Why don't the Google Docs CTRL + ALT shortcuts work? I'm currently using Google Docs, but when I try to use the keyboard shortcuts like Ctrl+Alt+M it gives µ instead.    Is Chrome (9) overruling Google Docs in some way?  How can I get these shortcuts working?  I'm using Chrome dev 9 on a Dutch Windows 7 with a US-layout keyboard Colorize symbols with lstdefinelanguage in latex I want to put some symbols in green color with lstdefinelanguage in latex, but it seems that symbols are not recognized.  The symbols I need to be colored are =, > and &lt;. Is it possible? How can I do this?  The main file:  \documentclass{article}   \usepackage{graphicx,color} \usepackage{booktabs} \usepackage{listings}   \lstdefinelanguage{NeoIDL}{   sensitive = true,   keywords = [1]{module, resource, enum, annotation, for, import, entity, path,   @get, @post, @put, @delete, require, ensure, otherwise, call},   %ndkeywords={int, \char{}  },   %ndkeywordstyle=\color{blue}\bfseries,   morekeywords=[2]{&gt;, &lt;, ==},   keywordstyle=[2]\color{green},   numbers=left,   numberstyle=\scriptsize,   stepnumber=1,   numbersep=8pt,   showstringspaces=false,   breaklines=true,   frame=top,   comment=[l]{//},   morecomment=[s]{/*}{*/},   commentstyle=\color{purple}\ttfamily,   stringstyle=\color{red}\ttfamily,   morestring=[b]',   morestring=[b]"   }  \begin{document}  \begin{figure}[htb] \begin{small} \lstinputlisting[language=NeoIDL,firstnumber=1]{store_pos_servico.neo} \end{small} \caption{Service 1} \end{figure}   \end{document}   The file to be formatted:  module store {    (...)     resource order  {      path = "/order/{id}";       @post   int postOrder (Order order)     require (call store.getOrder(id) == "NotFound"),     otherwise "InvalidPrecondition"    }; } Deriving the inverse of a 2x2 matrix Change name on the main Stack Exchange profile How do function pointers in C work? After creating some hi-poly model, i'm always creating low-poly model by approximating that hi-poly mesh with triangle-by-triangle LP mesh - with snap to face mode turned on.   So the process looks like CTRL + RMB (x times), and hitting F on keyboard, so the new face was made.  Then I'm using this low poly model to texture baking, mainly for gamedev purposes.  This method is very time consuming, so how to make retopology process easier and quicker? Can I clear an area of my prison for everyone BUT max security prisoners? How do I let the world know about my role-playing system? I have been working on a short narrativist system for quite some time now. I intend to offer it freely to anyone interested but I'm not sure about a couple of things:  First, how do I package it? One option is to make a website with the rules. In that case, is making lots of small interconnected pages a good idea? Or is it better to keep it linear and on as few pages as possible? Another option is to make a book-like pdf, possibly using LaTeX. Assuming people go as far as the download page, will they be willing to get the pdf? Is it easier to read?   Second, how do I let other people know? I can't just barge into forums spamming about how great my system is. Should I look for contests or challenges, like the 24Hour RPG? Is there any point to posting on social news/bookmarking sites? Is it good form to contact game review sites and ask them to consider my game?  Feel free to ignore the secondary questions if you want to; they're there only to expose my reasoning thus far and to inspire answers.