I'm trying to trigger an event attached to a html  tag  This table is builded insde a function       function detail(id){       console.log(id)     }  function search(data){                 $.post(url, {valorBusqueda: textoBusqueda}, function(data) {                      data = JSON.parse(data);                          $.each(data, function(i, val){                                  id = val.id;                                   html += '&lt;tr onclick="detail('+id+')"&gt;';                                 html += '&lt;tr&gt;';                             }                         });                         });  }   But when I click the  element I get this err:   Uncaught ReferenceError: detallePaciente is not defined  when is actually defined in my file  any idea how could I solve this?
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.
The intuition I have for why quantum computing can perform better than classical computing is that the wavelike nature of wavefunctions allow you to interfere multiple states of information with a single operation, which theoretically could allow for exponential speedup.   But if it really is just constructive interference of complicated states, why not just perform this interference with classical waves?  And on that matter, if the figure-of-merit is simply how few steps something can be calculated in, why not start with a complicated dynamical system that has the desired computation embedded in it. (ie, why not just create "analog simulators" for specific problems?) I've got a secondary harddrive (a separate physical device, not a logical partition) specifically dedicated for the Virtual Memory paging file.  The drive is 3.5x larger than my RAM, so it's plenty large.  When I configure Windows 7's virtual memory to put the paging file on this second harddrive and not the same drive as the operating system, I'm warned,     If you disable the paging file or set the initial size to less than 800 megabytes and a system error occurs, Windows might not record details that could help identify the problem. Do you want to continue?   So in other words, if I get a Blue Screen of Death, I won't be able to investigate why, just because I put my paging file at a more efficient location.  The best explanation I can find from searching the web is that Windows just doesn't want to make error dumps on a drive separate from the operating system location.  Can anybody give me a less nonsense explanation for this?  I don't want to have to tell Windows, "Sure, go ahead and continue managing a paging file on the primary drive," just so I can get a debug dump, as that totally defeats the purpose of a physically separated paging file.  Is there a workaround to having my paging file on a separate drive and still get error dumps? How to get Ubuntu download for a Mac? Two Circles and Tangents from Their Centers Problem Let $\Gamma_1$ and $\Gamma_2$ be two non overlapping circles with centers $O_1$ and $O_2$ respectively. From $O_1$, draw the two tangents to $\Gamma_2$ and let them intersect $\Gamma_1$ at points $A$ and $B$. Similarly, from $O_2$, draw the two tangents to $\Gamma_1$ and let them intersect $\Gamma_2$ at points $C$ and $D$.  Prove that $AB=CD$.  I've done some extensive angle chasing on this but have been unable to make any real progress. Can't decide whether $ABCD$ is supposed to be rectangle (as in my diagrams), a parallelogram or even a trapezium. There is a homothety taking one circle to the other but as far as I can see this doesn't help as we don't have a clearly defined center to this.  Any help/hints would be greatly appreciated. Diffeomorphism group of the unit circle I am given to understand that the group of diffeomorphisms of the unit circle, $\operatorname{Diff}(\mathbb{S}^1)$, has two connected components, $\operatorname{Diff}^+(\mathbb{S}^1)$ and $\operatorname{Diff}^-(\mathbb{S}^1)$, the diffeomorphisms that preserve or reverse the canonical (counterclockwise) orientation, respectively.  Question 1: How does one prove that?  Question 2: Given $\Phi, \Psi \in \operatorname{Diff}^+(\mathbb{S^1})$, can one construct an explicit path joining them?  I'd be satisfied already with a proof that we can join $\Psi, \Phi \in \operatorname{Diff}^+ (\mathbb{S}^1)$, without giving the path explicitly. I tried the obvious path, $t \mapsto \dfrac{t\Phi + (1-t)\Psi}{|t\Phi + (1-t)\Psi|}$, but that doesn't seem to work.  Thanks. Draw a vector with mathematica I sold an investment in a standard brokerage account at a small loss because I needed the money for a down payment.  I still think it is a good investment, can I buy the same investment in a standard IRA without running into wash sale problems?  I will probably just wait the 30 days any way to avoid any headaches, but I want to know if there is a definitive answer on this.    Being as the cost basis in the traditional IRA doesn't matter, I wouldn't think there would be a problem. Where did the name "Stack Exchange" come from? I get Stack Overflow (which I'm guessing was the first site?) and Super User, Code Review, and the other sibling site names make sense to me.  But I've never heard of a stack exchange before.  Is a stack exchange a real thing, or is this site's name a combination of Stack Overflow and an exchange of ideas? How to increase difficulty in Dungeon World I've been GMing for a couple of sessions now and I'm still struggling at making encounters or situations more difficult. I will describe dangerous situations and encounters in fiction but the mechanics make it too easy for my players to succeed.  For instance no matter how big I describe the Troll, if the fighter of the party charges him and swing his sword, roll+2 for Hack and slash, he'll easily hit the troll. Almost 40% chance to hit without consequences. Creating a copy of primary database and attaching the copy database in the same sql instance I just got into a project in which we have only one SQL Server 2012 copy. We have 12 databases attached to the primary instance of SQL Server 2012.  As I don't have SQL Server 2012 or supporting OS, I have to depend on the primary instance of SQL Server 2012.  I am not sure whether it is good to create copy/clone of all 12 databases and attach it to same instance and work on the copy for data manipulation and query testing purpose.  Based on Kin's query  SELECT    SERVERPROPERTY ('MachineName') AS PhysicalMachineName,    SERVERPROPERTY ('ServerName') AS SQLServerName,    SERVERPROPERTY ('Edition') AS ServerEdition,    CAST(SUBSTRING(@@Version,charindex('SQL',@@version, 1),15) AS VARCHAR(255)) +  ' + '         + CAST (SERVERPROPERTY ('productlevel')AS VARCHAR (50)) + ' + (Build'        + CAST (SERVERPROPERTY ('ProductVersion') AS VARCHAR (50)) +')' AS ProductVersion,     RIGHT(@@version, (Len(@@Version)-charindex('Windows',@@version, 1))+1) AS [O.S.],  SERVERPROPERTY ('Collation') AS Collation   Following is the output. I ignored PhysicalMachineName and SQLServerName.  ServerEdition : Business Intelligence Edition (64-bit) ProductVersion : SQL Server 2012 + RTM + (Build11.0.2100.60) O.S.           : Windows NT 6.1 &lt;X64&gt; (Build 7601: Service Pack 1)  Collation      : SQL_Latin1_General_CP1_CI_AS This is a follow up from this .  I'm using this slightly modified script to enumerate all installed MSI packages:  strComputer = "."  Set objWMIService = GetObject("winmgmts:" &amp; _     "{impersonationLevel=impersonate}!\\" &amp; _     strComputer &amp; _     "\root\cimv2")  Set colSoftware = objWMIService.ExecQuery _     ("SELECT * FROM Win32_Product")     If colSoftware.Count &gt; 0 Then     For Each objSoftware in colSoftware         WScript.Echo objSoftware.Caption &amp; vbtab &amp; _         objSoftware.Version     Next Else     WScript.Echo "Cannot retrieve software from this computer." End If   What is surprising however, is its abysmal performance. Enumerating the 34 installed MSI packages on my XP box takes between 3 and 5 minutes !  By comparison, the Linux box that sits besides is taking 7s to enumerate 1400+ RPMs... sigh  Any clues on this ? What happens when my aasimar Celestial warlock has overlapping class and racial features? If you are an Aasimar warlock whose otherworldly patron is The Celestial, you will know the light cantrip from both race and class. Additionally, once you reach 6th level in warlock you will have resistance to radiant damage from both race and class.  Is there any ruling on what happens when you have overlapping class and race features? How to get permission number by string : -rw-r--r-- I need to set the same chmod, how to get number for -rw-r--r-- ? Dell R730xd - Best way to configure storage for simultaneous use with ZFS & Hardware RAID I recently purchased a Dell R730xd that came with an H730 RAID card. I would like to bring an existing 6 disk ZFS pool to this server as well as create an additional 6 disk hardware RAID.   Is it possible to configure an H730 RAID card to operate in both HBA and RAID mode simultaneously? And then only manage 6 of the disks in a hardware RAID and allow the OS to manage the remaining 6 disks in a software RAID?  If not, can a Dell R730xd use both an H730 RAID card and an LSI 9207-8i HBA card simultaneously? Would you simply plug one SAS cable from each card into each part of the Backplane? Will I need to purchase any new cables to connect the LSI 9207-8i to the backplane in my R730xd?  Is there a better card to use for ZFS in an R730xd using spinning disks than the LSI 9207-8i? Favorite questions in the Android app I haven't been able to find my favorite questions in the official Stack Exchange Android app.  Looking at my accounts page gives nothing on them. There are three ways I know to pronounce the -ed at the end of an adjective:   /t/ as in cracked. /d/ as in lined. /ɪd/ as in naked   I realise naked is a special case because, as , it comes for Old English nacod, so the suffix isn't added.   shows the pattern of pronunciation of -ed in all other cases. However it doesn't explain why  ends with /ɪd/ (or /id/ or /əd/ depending on the dialect).   that wicked comes from OE wicca, so the d wasn't already there.  Why do we pronounce wicked as /ˈwɪkɪd/ and not /ˈwɪkt/? Is there any option with 'ls' command that I see only the directories? Sometimes, I need to check only the directories not files. Is there any option with the command ls? Or is there any utility for doing that?  EDIT: I'm using Mac OS X, and ls -d gives me . even though I have directories. C++ equivalent of java's instanceof What is the preferred method to achieve the C++ equivalent of java's instanceof? Can you restore log file backups to a mirror database after failure? Purely a theoretical question as I've been considering possible DR scenarios...  In this scenario:   The link between a principle and a mirror server becomes unavailable for a period of time (e.g. network outage) Incremental log backups are still being taken during this time Then the principle database fails and is unrecoverable   Is it possible to restore the incremental log backups onto the mirror to bring it up to date and back online, or would you need to start from scratch with a restore of a full backup?  Depending on the size of the database the difference could be hours of downtime so it would be nice to know.  I'm predominantly interested in SQL Server 2008 R2 and 2012 but other people may be interested in other versions if there's a difference. ISP blocking port 25 My ISP has started blocking port 25 so I can not send email through my dedicated server any more.   I have several options:   Send email through the SMTP server provided by my ISP. Any problems with this? Setup mu server so that it receives email on another port instead of port 25     No one else sends email through my server so it should be OK. How do I do this on a Linux server? Buy a static client IP - these are not being blocked so far.   Which one is preferable?