I have some Javascript that works perfectly before a postback happens in ASP.Net, however when a postback event occurs from a button click the script no longer runs.   this is the code I am using  function displayCheckboxInSubject() {     var CountSelectedCB = [];     console.log("in displayCheckBoxInSubject with loader");     $(".subjectCB").on("change loader", function () {     //$(".subjectCB").change(function () {         selectedCB = [];         notSelectedCB = [];         CountSelectedCB.length = 0;         $(".subjectCB").each(function () {             //alert("in here two")             if ($(this).find("input").is(":checked")) {                 //alert("in here three")                 CountSelectedCB.push($(this).find("input").val());             }         });          $("#txtSubject").val(CountSelectedCB.join(", "));     }).trigger("loader");  }  $(document).ready(displayCheckboxInSubject);   I would be grateful if someone could point me in the right direction of how to resolve this.   thanks  Simon
I have several input and option elements on my page, each (well almost) have an event attached to update some text on the page once they change. I use jQuery which is really really cool :)   I also use Microsofts  framework, utilizing the UpdatePanel. The reason why I do that is that certain elements are created on the page based on some server-side logic. I don't really want to explain why I use the UpdatePanel - even if it could (it can with quite some effort) be rewritten to use only  I still want that UpdatePanel.  You probably guessed it - once I have a postback on the UpdatePanel the jQuery events stops working. I actually was expecting this, since the "postback" is not really a new postback so my code in document.ready that binds the events won't be fired again. I also confirmed my suspicion by reading up on it in the jQuery help libraries.  Anyway I'm left with the problem of rebinding my controls after the UpdatePanel is done updating the . I preferably need a solution that does not require adding more .js files (jQuery plug-ins) to the page but something as simple as being able to catch the UpdatePanel's 'afterupdating' where I can just call my method to rebind all the form elements.
is $f$ constant or dilation $f:\mathbb{R}^3\to\mathbb{R}, f(rx)=r^{\alpha}f(x)$ for some $\alpha&gt;0$, $\forall x\in\mathbb{R}$, for any $r\in\mathbb{R}$, could any one tell me which of the following is true?  $1.$ If $f(x)=f(y)$ whenever $||x||=||y||=\beta&gt;0$, then $f(x)=\beta ||x||^{\alpha}$  $2.$ If $f(x)=f(y)$ whenever $||x||=||y||=1$, then $f(x)= ||x||^{\alpha}$  $3.$ If $f(x)=f(y)$ whenever $||x||=||y||=1$, then $f(x)=c||x||^{\alpha}$ for some constant $c$  $4.$ If $f(x)=f(y)$ whenever $||x||=||y||$, then $f(x)$ must be a constant function. Thank you. where do I use Database. Methods? I m trying to understand where we use following Database.Methods. I know if we want to insert a record to an object we use DML Statement. What i want to know is why/where we use Database. methods. It might be silly question. Database.saveResults Database.insert Database.query Database.Query Database.error   really appreciate the inputs. Thanks a ton in advance. How do I clear command prompts in minecraft? Whenever I do camera tracking in Blender the reconstruction is always zooming out or not on the axis. I have a great quality camera, but the end results of the camera tracking always has the model sliding. If you have a solution please tell me. Convergence of a Harmonic Continued Fraction How can I make a "Movie Clip" node start at a certain frame of the scene? "Welcome to emergency mode!" Think it is a fsck problem My computer booted to a black screen with this error message.  Welcome to emergency mode! After logging in,type "journalctl -xb" to view    system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to    try again to boot into default mode.   journalctl -xb snippet (what I think is wrong):  -- Unit systemd-fsckd.service has begun starting up. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1 contains a file system with errors, check forced. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: Inodes that were part of a corrupted orphan linked list found. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: /dev/sdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: (i.e., without -a or -p options) juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: fsck failed with error code 4. juli 09 15:40:16 kim-SSD-Sationary systemd-fsck[414]: Running request emergency.target/start/replace juli 09 15:40:16 kim-SSD-Sationary systemd[1]: systemd-fsck-root.service: main process exited, code=exited, status=1/FAILURE juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Failed to start File System Check on Root Device. -- Subject: Unit systemd-fsck-root.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel --  -- Unit systemd-fsck-root.service has failed. --  -- The result is failed. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Unit systemd-fsck-root.service entered failed state. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: systemd-fsck-root.service failed. juli 09 15:40:16 kim-SSD-Sationary systemd[1]: Starting Remount Root and Kernel File Systems... -- Subject: Unit systemd-remount-fs.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel   I ignored other errors like: ACPI PCC probe failed, nvidia not proprietary, etc.  I can access my PC by pressing Ctrl+D , but it is annoying. i have a tiny little problem with xslt, js and html entities, eg. within a template:  &lt;script type="text/javascript"&gt;     &lt;xsl:value-of select="/some/node"/&gt;     for (var i = 0; i &amp;lt; 5; i++) {         //            ^^^ js error     } &lt;/script&gt;  &lt;script type="text/javascript"&gt;     &lt;xsl:value-of select="/some/node"/&gt;     for (var i = 0; i &lt; 5; i++) {         //            ^ xslt error     } &lt;/script&gt;  &lt;script type="text/javascript"&gt;     &lt;xsl:value-of select="/some/node"/&gt;     // &lt;![CDATA[     for (var i = 0; i &lt; 5; i++) {         //            ^ becomes &amp;lt;     }     // ]]&gt; &lt;/script&gt;   &lt;script type="text/javascript"&gt;     &lt;xsl:value-of select="/some/node"/&gt;     for (var i = 0; i &lt;xsl:value-of disable-output-escaping="yes" select="string('&amp;lt;')"/&gt; 5; i++) {         // works of course     } &lt;/script&gt;   does anyone have an idea where my problem could come from? i always thought the xslt processor would leave the content of a &lt;script/&gt; element unescaped when using the html output method ...  i run libxslt2 version 1.1.24 on OSX which was installed using macportsports ... I am getting the error:   touch: cannot touch `/opt/tsrm/compliance/cme/log/20121207.log`: No such file or directory   on the touch command: touch $LOGFILE  I also checked the link: , But I didn't understand the answer.   Note: I was also getting mkdir: cannot create directory; I fixed this by adding the -p option.   Could this be something with the version of Linux I am working in? Finding a distribution from the sum of two random variables in a joint trinomial distribution Let X and Y have a trinomial distribution with join probability function:  $ f(x,y) = \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}; x=0,1,...n, y=0,1,...n$  Let $T=X+Y$  I can't seem to figure out where to go exactly. Here's where I am at:  $\sum_{x=0}^{n} \frac{n!}{x!y!(n-x-y)!}p^x q^y (1-p-q)^{n-x-y}\mbox{ substitute in Y=T-X}$ $\sum_{x=0}^{n} \frac{n!}{x!(t-x)!(n-t)!}p^x q^{t-x} (1-p-q)^{n-t}$   I think I could I figure out the algebra.. if I could just see what to do with the summation. I know I have to involve a t somewhere, but I'm not sure. Maybe somebody could just show me how to set up my summation correctly with the substitution? Series $\sum_{n=1}^\infty \frac{n^n}{(n!)^2}$ It would be nice to allow users to mark a change in an answer (or question) as minor (e.g. for a simple spelling or grammar correction). A change marked as minor wouldn't push the question on top of the list of questions on the home page or in the feeds. It wouldn't trigger any notification. This could be implemented with a "Minor change" checkbox when editing an entry (a la Confluence). What do you think? Why does the Contains() operator degrade Entity Framework' Linq queries? Why is electric field lines away from (+) and toward (-)? I have a questions about the electric field lines.   Well in the basic learning, we know that:   The electric field lines extend away from a positive charge They move forward a negative charge   Let's take parallel plates, which make a uniform electric field.If we take the basic learning, which I mentioned, in accounts, it's very easy to understand that this is the direction of a positive charge object if we put the object between the plate (move away the positive charged plate and toward negatively charged plate).  The problem is if we put a negative charged object between. Isn't the electric field reversed ? I have just installed Ubuntu on my pc. Everything is working fine but the Wifi is not working properly When i am trying to connect to a network it is not working and showing error "Activation of Network Connection failed ". Sometime i am able to connect to the network but the network strength is very week. My PC uses realtek driver for wifi.  Here's the output of lspci; lsusb      00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 21) 00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) 00:13.0 SATA controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SATA Controller (rev 21) 00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 21) 00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 21) 00:1b.0 Audio device: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series High Definition Audio Controller (rev 21) 00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 21) 00:1c.1 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #2 (rev 21) 00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 21) 00:1f.3 SMBus: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx SMBus Controller (rev 21) Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 006: ID 5986:065e Acer, Inc  Bus 001 Device 005: ID 0bda:b720 Realtek Semiconductor Corp.  Bus 001 Device 004: ID 046d:c077 Logitech, Inc. M105 Optical Mouse Bus 001 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory Bus 001 Device 008: ID 2717:ff80   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   output of usb-devices | awk '/b720/' RS=  T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=04 Dev#=  5 Spd=480 MxCh= 0 D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1 P:  Vendor=0bda ProdID=b720 Rev=02.00 S:  Manufacturer=Realtek S:  Product=802.11n WLAN Adapter S:  SerialNumber=00e04c000001 C:  #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=500mA I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I:  If#= 2 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=ff Prot=ff Driver=rtl8xxxu   How to fix this issue?? Windows 10 K&N Edition Anniversary update - Media player update not working I own a Windows 10 K or N Edition which doesn't include the media player package. My problem is: I want to have preview thumbnails in the explorer for my MP3s and videos.  I had the issue before when I updated to Win10 but there  saved me. Since the Anniversary update they are gone again.   Now I can install the old update but I still don't get the media player nor the preview images.  I tried most of the things Microsoft offers me but they are either not installable or don't work.  Any ideas what might be the correct update package?  Thx!  Ron Nautilus 3.6 doesn't have a status bar? In 12.04, Nautilus showed the amount of remaining space in the status bar , but as of 13.04 the status bar is gone.  gsettings set org.gnome.nautilus.window-state start-with-status-bar true   turned out "no such key".  Is there any way to bring back the status bar? Non-existence of a Surjective Function from a Set to Its Subsets (Cantor's theorem) How do I design a 2A or more power supply for my consumer USB devices? I understand that many of my consumer devices charged by USB ports can charge at higher rates than 0.5A.  However, in testing, I've found they don't consume more than this. Test Setup  I have a power supply that outputs between 0 and 30 volts, and 0 to 20 amps. I set the voltage to 5 volts, then connected up a female USB to the wires correctly. When I plug in a Samsung Galaxy S4 Mini, it pulls around 0.44 amps. It is the same with a Samsung Galaxy Tab Pro. However, when I connect an iPad Air with an official lightning cable, it only pulls around 0.11 amps. Also, I tried connecting a ZGPAX S28 smartwatch and it was still about 0.44-0.45 amps.  The power supply is more than capable of outputting the maximum 2.1 amps, so why doesn't it to at least the tablets? What do I need to do in my test setup to convince the devices to consume their maximum charging current? Intuition on the Kullback-Leibler (KL) Divergence