I create new element with js like this:  $("#vorschau_tr").append('&lt;td&gt;&lt;img src="bla.jpg" class="flipped js_is_a_broken_time_wasting_piece_of_garbage"&gt;&lt;/td&gt;');   And try to just alert something like that:  $(".js_is_a_broken_time_wasting_piece_of_garbage").on({     mouseover: function () {         alert('enter');     },     mouseleave:function () {         alert('leave');     } });   I know it was asked multiple times but every time it says the solution is to use on which I do but it's not working so how to do that?  $(".js_is_a_broken_time_wasting_piece_of_garbage").live( click, function(){     alert('js_inventor_is_a_pos'); });   isn't working too
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.
Is drinking water during or after a meal better? Brightness fn key shortcut doesn't work on ASUS laptop The brightness shortcuts via fn key don't work.  I tried each solution from . After editing /etc/default/grub file I rebooted.  GRUB_CMDLINE_LINUX="acpi_osi=Linux" GRUB_CMDLINE_LINUX="acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi=linux acpi_backlight=vendor" GRUB_CMDLINE_LINUX="acpi_osi_Linux"   What other workarounds/solutions are there?  Relevant output:  $ sudo lshw -C display   *-display UNCLAIMED             description: 3D controller        product: GK107M [GeForce GT 750M]        vendor: NVIDIA Corporation        physical id: 0        bus info: pci@0000:01:00.0        version: a1        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list        configuration: latency=0        resources: memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff   *-display        description: VGA compatible controller        product: 4th Gen Core Processor Integrated Graphics Controller        vendor: Intel Corporation        physical id: 2        bus info: pci@0000:00:02.0        version: 06        width: 64 bits        clock: 33MHz        capabilities: msi pm vga_controller bus_master cap_list rom        configuration: driver=i915 latency=0        resources: irq:50 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64) I remember reading a while back about arithmetics with only a single operator that did all the work of the familiar $+ - \times /$ operators. If there is such a thing, could someone point me to it?  As background: I have a side project where I'm playing with neural nets and genetic search algorithms. Right now it's the good old kind, with matrix multiplication and addition. I thought it would be interesting to implement a sort of neural network that used a combined or "all in one" operator.  I've googled like heck and can't pick up the trail of where I thought I saw that before.  Is there study in that area, or am I mis-remembering, or worse, just making it up? I'd appreciate any pointers. How is money held in escrow for a home purchase from a IRA treated by the IRS? Why is the field inside a conducting shell zero when only external charges are present? I'm looking for an example of a finitely generated module with submodules that are not finitely generated.  I've found  dealing with group (i.e. an example of a finitely generated group with subgroups that are not finitely generated). But I can't figure out whether that question do help to this one.  And I actually want to find a more "module-like" example rather than an example derived from a 'strange' group.  Can you please help? Thank you! The following methods can be used to add CSS for specific versions of IE:   Paste the code into html.tpl.php:  &lt;!--[if lt IE 9]&gt;&lt;link type="text/css" rel="stylesheet" src="/sites/all/themes/mytheme/less/ie.css"&gt;&lt;![endif]--&gt; Make use of the plugin  Use drupal_add_css() function   I have always used option #1 above, and adding yet another plugin for something so simple seemed crazy. BUT working with LESS and calling in statically means the file does not get processed by the LESS pre-processor, so the question:  How do you include a stylesheet using drupal_add_css() for specific versions of IE? Which is correct: "has died" or "died"? To me, using Present Perfect form means the event can occur again. So, saying      someone has died   may not be grammatically correct.  Also, I noticed (it might be just coincidence):     passed away   is used more often than     has passed away   Is using Present Perfect correct here? kidle_inject causing very high load Whenever kidle_inject starts running on my system the load shoots up. In general it only gets to a load of around this 5.23, 3.65, 2.54 but a lot of the time it jumps up past the 15 mark on each of them. At that point the system grinds to a halt and I have to power it off.  This only happens when the kidle_inject process starts. How can I disable this process so my machine can work and I can get some work done.  Example top:  top - 12:43:48 up  3:02,  3 users,  load average: 6.57, 5.53, 3.33 Tasks: 256 total,   3 running, 253 sleeping,   0 stopped,   0 zombie %Cpu(s):  5.9 us, 16.6 sy,  0.0 ni, 74.7 id,  0.5 wa,  0.0 hi,  2.3 si,  0.0 st KiB Mem:   8080252 total,  7937856 used,   142396 free,   258904 buffers KiB Swap:        0 total,        0 used,        0 free.  4061336 cached Mem    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND 13509 root     -51   0       0      0      0 S  54.7  0.0   3:29.47 kidle_inject/1 13511 root     -51   0       0      0      0 S  54.1  0.0   3:30.92 kidle_inject/3 13510 root     -51   0       0      0      0 S  48.8  0.0   3:11.60 kidle_inject/2 13508 root     -51   0       0      0      0 S  47.6  0.0   3:08.47 kidle_inject/0 Configuring Firefox to use a proxy from the command line I'm looking for a way to tell Firefox to use a proxy in Ubuntu Ludid (10.04.1 LTS).   I'm installing Ubuntu semi-automatically on several identical machines. For this, I use a script that, amongst other things, sets system-wide proxy settings:  echo "export http_proxy=http://myproxy:3128/" &gt; /etc/profile.d/proxy.sh echo "export HTTP_PROXY=http://myproxy:3128/" &gt;&gt; /etc/profile.d/proxy.sh chmod a+x /etc/profile.d/proxy.sh   I can confirm that the variables are set correctly when checking in a shell. Most programs respect this setting and use my proxy. Firefox, however, does not. When I open its network connection settings dialog, however, it is pre-set to "use system settings" for the proxy.   What does Firefox expect here? A differently-named variable? Can I set something in FF's prefs.js? Proving that a list of perfect square numbers is complete Well, I have a number  $n$ that is given by:  $$n=1+12x^2\left(1+x\right)\tag1$$  I want to find $x\in\mathbb{Z}$ such that $n$ is a perfect square.  I found the following solutions:  $$\left(x,n\right)=\left\{\left(-1,1^2\right),\left(0,1^2\right),\left(1,5^2\right),\left(4,31^2\right),\left(6,55^2\right)\right\}\tag2$$     Is there a way to prove that this a complete set of solutions? So I mean that the solutions given in formula $(2)$ are the only ones?     My work:   We know that: $$ 1 + 12x^2 \left(1+x \right) \ge 0   \space \Longleftrightarrow \space   x \ge -\frac{1+2^{-2/3}+2^{2/3}}{3}   \approx -1.07245 \tag3 $$ So we know that for $x&lt;-1$ there are definitely no solutions. Should we avoid negative words when writing error messages? WinForms DataGridView font size How do I change font size on the DataGridView? How can I vertically align elements in a div? On June 28, 2017, Apple  that     macOS High Sierra will be the last macOS release to support 32-bit apps without compromise.   How can I find out which apps on my Mac are 32-bit so that I can see if I need to upgrade them? I was following  on creating a watch and noticed that when I rendered the watch, some pieces were messed up.  I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture:    Other examples:     I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it? I am just starting out learning mathematical induction and I got this homework question to prove with induction but I am not managing.  $$\sum\limits_{k=1}^{n}{\frac{1}{\sqrt{k}}\ge\sqrt{n}}$$  Perhaps someone can help me out I don't understand how to move forward from here: $$\sum\limits_{k=1}^{n+1}{\frac{1}{\sqrt{k}}+\frac{1}{\sqrt{n+1}}\ge \sqrt{n+1}}$$ proof and explanation would greatly be appreciated :) Thanks :)  EDIT sorry meant GE not = fixed :) How do I get a remote host IP address if I don't have ping, and don't have any bind utilities like dig, nslookup, etc?  I need an answer that does not include 'install X' or 'use sidecar container'. I am looking for something that relies on nothing more than bash and the basic shell commands. Wacom Graphics Tablet CTH-480 / CTL-480 Not Detected In Ubuntu 13.10 My Wacom tablet (CTH-480) is not detected by the Wacom Tablet option under settings. The Tablet shows up when I run lsusb but does not show up under settings. Again Thanks. I was trying to install minted package in TeXLive. I installed it and then run sudo tlmgr update --all. It was running slow so I stopped it using Ctrl+Z in an ubuntu terminal and then I run sudo tlmgr update --list. After that I installed texlive-latex-extra and python-pygments. Later on I run sudo tlmgr update --all again and let it finish.  After that I am trying to run a simple code using listings and greek but I get an error     Bad Character code (256)   A MWE that illustrated the problem is the following  \documentclass{book}  \usepackage[english,greek]{babel} \usepackage[iso-8859-7]{inputenc} % %\usepackage[utf8]{inputenc} \usepackage{kerkis} \usepackage{pifont} % %  \newcommand{\sw}{\selectlanguage{english}} \newcommand{\sq}{\selectlanguage{greek}} \newcommand{\eng}[1]{\latintext#1\greektext} \newcommand{\gre}[1]{\greektext#1\latintext}  \usepackage{xcolor} \usepackage{listings} \usepackage{textcomp}  \definecolor{listinggray}{gray}{0.9} \definecolor{lbcolor}{rgb}{0.9,0.9,0.9}  \lstdefinestyle{JavaStyle}{         backgroundcolor=\color{lbcolor},     tabsize=4, %   rulecolor=,     language=Java,      % choose the language of the code         basicstyle=\scriptsize,     % the size of the fonts that are used for the code         upquote=true,         aboveskip={1.5\baselineskip},         columns=fixed,         showstringspaces=false,         extendedchars=false,         breaklines=true,         prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},         frame=single,         numbers=left,         showtabs=false,         showspaces=false,         showstringspaces=false,         identifierstyle=\ttfamily,         keywordstyle=\color[rgb]{0,0,1},         %commentstyle=\color[rgb]{0.026,0.112,0.095},         commentstyle=\itshape\color{green!40!black},         stringstyle=\itshape\color{red!90!black},         numberstyle=\itshape\color{yellow!50!black} }  \lstdefinestyle{CppStyle}{         backgroundcolor=\color{lbcolor},     tabsize=4, %   rulecolor=,     language=C++,       % choose the language of the code         basicstyle=\scriptsize,     % the size of the fonts that are used for the code         upquote=true,         aboveskip={1.5\baselineskip},         columns=fixed,         showstringspaces=false,         extendedchars=false,         breaklines=true,         prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},         frame=single,         numbers=left,         showtabs=false,         showspaces=false,         showstringspaces=false,         identifierstyle=\ttfamily,         keywordstyle=\color[rgb]{0,0,1},         %commentstyle=\color[rgb]{0.026,0.112,0.095},         commentstyle=\itshape\color{green!40!black},         stringstyle=\itshape\color{red!90!black},         numberstyle=\itshape\color{yellow!50!black} } \begin{document}  This is a dummy text. kjhbki \end{document}   The .aux file says  \relax  \select@language{greek} \@writefile{toc}{\select@language{greek}} \@writefile{lof}{\select@language{greek}} \@writefile{lot}{\select@language{greek}}   while the .log file can be found   Any idea why is this happening and how to fix this? Note that if I remove the listings preamble, delete all produced files and build the document, everything works fine.