I am unsure if this is even possible, but basically, I have event listeners that were automatically added to a checkbox control by a library (jQuery).  Inspecting the control in Chrome Developer Tools, under the Event Listeners, I can see that touchmove has been attached to my control.  How would I be able to basically remove that Event Listener, particularly if I don't know the function that was attached to it?  Looking for some advice. Thanks.
I have an input type="image". This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image is paired with, I setup an event handler for the input-image. Then when the user clicks the image, they get a little popup to add some notes to the data.  My problem is that when a user enters a zero into the text box, I need to disable the input-image's event handler. I have tried the following, but to no avail.  $('#myimage').click(function { return false; });
How can I search an Excel spreadsheet in SharePoint? Looking to be able to search an Excel spreadsheet from the SharePoint mobile app.  I have a spreadsheet with Postal Codes/Zip Codes with corresponding information. I would like to be able to search as you would in Excel.  When I upload a test spreadsheet, it opens as like a PDF. User has "Read" permissions for the document library the spreadsheet is located in.  Thanks in advance, Getting "experimental" true displacement to work Propose a privilege to sit in the 500 reputation mark As , the retag privilege serves a lot more confusion and a lot less of its benefit due to the suggested edit system. It must be done away with. It will be done away with. ♪  In light of this decided course of action, we're going to need a new snack for the road between "Create Tags" at 300 reputation and "Established User" at 1000 reputation. We'd like your help in thinking about some ideas on what would be a nice privilege to sit at this level. Since we're... a bit dry on our end.  The primary guideline in deciding what kind of privilege to put here is acknowledging its position in the overall hierarchy of privileges. 500 reputation is an early-intermediate user, one who has started to really get the hang of the site and its function. It can be something that provides convenience in how they currently can act on the site, or it could be some new functionality that fits as an early ability (especially considering there's no new abilities until 2000 reputation's "Edit Everywhat" ability).  I look forward to hearing what creative ideas y'all can provide. Should seemingly arbitrary things like "play piano for Church" or "intramural badminton" go on M.S. or PhD applications in sciences/engineering? And if they should, I assume that these things should go on a resume under something like "Activities and Community Service". I mean I consider being able to sight read music to play at my Church as a significant feat (how many people can do that?) and might sway one person on an admissions committee if he or she enjoys music and understands how hard one must have worked to accomplish this.   Badminton?.... perhaps not so much Is there a term for the moment when a lot of users visit/log onto your website at the same time? Is there a term for the moment when a lot of users visit/log onto your website at the same time? Fields finitely generated as $\mathbb Z$-algebras are finite? Suppose $k$ is a field that is finitely generated as a ${\mathbb Z}$-algebra.  (That is, $k$ is a quotient of ${\mathbb Z}[X_1,\dots,X_n]$ for some $n$). Does it follow that $k$ is finite? We have an Always On "cluster" that consists of 2 servers (there will be more), so one is PRIMARY and other(s) is(are) SECONDARY. The idea was to dedicate SECONDARY as a readonly replica, so it would be a somewhat search-server.  I do know how to set ConnectionString in the C# so it will use SECONDARY replica - just add ApplicationIntent=ReadOnly.  But I don't understand how to address the SECONDARY from stored procedure if I'm using distributed query. Is there a way to set some parameters to the query (like WITH statements or something), so query would use only replica and not the PRIMARY node?  The thing is, obviously from the start server1 is PRIMARY and server2 is SECONDARY, but when server1 fails then server2 is PRIMARY and server1 will be SECONDARY after it get fixed. So I cannot just use the static server2's name.  So far I've managed to get current replica's server name as a variable and use it in EXEC:  -- find first available replica DECLARE @replicaServer nvarchar(50)  SELECT TOP 1     @replicaServer = RCS.replica_server_name FROM     sys.availability_groups_cluster AS AGC     INNER JOIN sys.dm_hadr_availability_replica_cluster_states AS RCS           ON RCS.group_id = AGC.group_id     INNER JOIN sys.dm_hadr_availability_replica_states AS ARS           ON ARS.replica_id = RCS.replica_id     INNER JOIN sys.availability_group_listeners AS AGL           ON AGL.group_id = ARS.group_id WHERE ARS.role_desc = 'SECONDARY'       AND connected_state = 1  -- and query it DECLARE @cmd nvarchar(MAX) = 'SELECT * FROM [' + @replicaServer + '].[somebase].[someschema].[sometable]' EXEC (@cmd)   But that's a shame, I guess. Broken screen while debug mode was disabled. How can I re-enable adb? The screen of my phone is physically broken, so it doesn't display anything, but the touch aspect does seem to be working, as I can unlock my phone, and get haptic feedback.  Before I go to get it replaced, I'd like to back up some personal data from the built-in memory to the SD card. I'm fairly certain that if I can get adb to recognize the device, then I can use  to see where I am touching the screen and do what I need to do. Problem is, when I plug it in, it's not recognized, while my emulator is.  I suspect that I might not have USB debugging enabled, which I think is necessary for adb to work. If this is the case, can someone give me screenshots of their Droid X (running 2.3.X) going from the home screen, through all the menus, to activating debug mode? Hopefully I can do it by dead reckoning and adb from there.  Edit: I haven't changed anything about the ROM or launcher; it's all stock. I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:  System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)** at x.Foo.FooGO() at x.Foo.Foo2(String groupName_) in Foo.cs:line 123 at x.Foo.UnitTests.FooTests.TestFoo() in FooTests.cs:line 98** System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.203, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)  I look in my references, and I only have a reference to Utility version 1.2.0.203 (the other one is old). Any suggestions on how I figure out what is trying to reference this old version of this DLL file? Besides, I don't think I even have this old assembly on my hard drive. Is there any tool to search for this old versioned assembly? Move iTunes folder outside Music folder iTunes by default stores its settings, the iTunes Library.itl file, and the music library audio tracks, inside the \Users\username\Music\iTunes folder.  I don't want my Music folder polluted with program settings, especially because I'm synchronizing that folder on the cloud. Via the settings panel I can only change the path of the audio tracks, but the settings remain in the default position.  Is there a way to completely move the iTunes folder to another path?  PS: I've looked at the answers to , but the focus there is on moving the media library only, not the whole iTunes directory. Which partition is mounted to where? I would like to search my table having a column of first names and a column of last names.  I currently accept a search term from a field and compare it against both columns, one at a time with       select * from table where first_name like '%$search_term%' or      last_name like '%$search_term%';   This works fine with single word search terms but the result set includes everyone with the name "Larry". But if someone enters a first name then a space, then a last name, I want a narrower search result. I've tried the following without success.         select * from table where first_name like '%$search_term%' or last_name      like '%$search_term%' or concat_ws(' ',first_name,last_name)      like '%$search_term%';   Any advice?  EDIT:  The name I'm testing with is "Larry Smith".  The db stores "Larry" in the "first_name" column, and "Smith" in the "last_name" column.  The data is clean, no extra spaces and the search term is trimmed left and right.  EDIT 2:  I tried Robert Gamble's answer out this morning.  His is very similar to what I was running last night.  I can't explain it, but this morning it works.  The only difference I can think of is that last night I ran the concat function as the third "or" segment of my search query (after looking through first_name and last_name). This morning I ran it as the last segment after looking through the above as well as addresses and business names.    Does running a mysql function at the end of a query work better than in the middle? Git for beginners: The definitive practical guide How to install folding at home (Folding@home FAHControl) on Ubuntu 19.10 this is a follow up to the problem described .  I have the same problem and the proposed solution does not completely solve the problem. I mean, it does solve the problem but also creates another one. The new problem is that the theorems, lemmas and the rest are placed in such as way that they are not cut (of course), but this leaves then big empty spaces in many pages. So the problem is that, the problem described  does not seem to be fully resolved using the nocut option.   Do you any of you have a good idea on how to solve this?  Thanks! How do we escape the cycle of bad college eating? Mouseover text: And yet I never stop thinking, 'sure, these ingredients cost more than a restaurant meal, but think how many meals I'll get out of them! Especially since each one will have leftovers!'    Randall Munroe really hit the nail on the head with this comic and especially the mouseover text. There's this sort of cycle that I seem to follow when I try cooking, and I need to get my way out of it. It goes like this:   Decide I should cook something. Thumb through my recipe books, find one or two recipes I like. Write down the ingredients for the recipes in a list. Go to the grocery store, stumble around for a while and eventually find exactly those ingredients. Go back home; at some point in time soon after, cook each recipe. Whew, that was a lot of work! Spend the next week or two eating junk again, until I decide I should cook something. (repeat)   Very similar to the comic; sometimes I too let the leftovers go bad (usually not). And every time I rack up a huge bill at the supermarket and think to myself it's justified because of the leftovers or the amount of food. Not to mention, that's a lot of work for just a couple of meals, and a long list of ingredients.  I love cooking fresh meals but that's just so much overhead and so time consuming! So I always resort back to Easy Mac, Ramen, frozen dinners and frozen pizza. Yuck.  How can I escape this cycle and cut down on the overhead? How can I focus on more than 2 recipes at a time without buying giant lists of ingredients and spending tons of money? Is it really worth the trouble or should I just chock it up to being a college student and wonder about the years ahead of me where I'll have much more time to spend cooking one meal at a time? I reviewed  in the First Posts queue.  Which said      i changed it to 'localsystem' and done. thanks much   So it obviously was a potential low quality post. But sometimes such answers can be spot on, so I checked it out, better safe than sorry. I turned out the post had been deleted. Great! So I clicked "No action needed". Then I got this:    You can imagine I felt "wrongfully accused".  I think that deleted posts should not be used for review audits, because the meaning of "No action needed" is not clear in this context. Let me know I have upvotes even after hitting the rep cap When you cap, you don't see any upvotes you get on your profile, therefore, you don't have any update on how your questions / answers are doing unless you look at them manually.   Capping the 200 daily rep is not a reason to stop posting here so could I get notified somehow that my posts are being voted on ? Maybe put a little +X in a different color letting me know that I got these votes but I won't get the reputation for it.   I can go and see in my reputation feed inside my profile and see it :    So I don't see why it wouldn't show up in the feed above.  Maybe putting the feed button green without any +X just like when you aquire a badge. List of generally believed conjectures which cannot all be true There are some conjectures which most leading experts believe in albeit no one can prove it yet. For example: $\mathcal{P} \neq \mathcal{NP}$, the Riemann hypothesis or the Collatz conjecture.  My question is whether there is a set of such conjectures which cannot all be true, eg. is a statement such as "Either $\mathcal{P} = \mathcal{NP}$ or the Riemann hypothesis is wrong" true? C++ performance of accessing member variables versus local variables Is it more efficient for a class to access member variables or local variables? For example, suppose you have a (callback) method whose sole responsibility is to receive data, perform calculations on it, then pass it off to other classes. Performance-wise, would it make more sense to have a list of member variables that the method populates as it receives data? Or just declare local variables each time the callback method is called?  Assume this method would be called hundreds of times a second...  In case I'm not being clear, here's some quick examples:  // use local variables class thisClass {     public:         void callback( msg&amp; msg )         {             int varA;             double varB;             std::string varC;             varA = msg.getInt();             varB = msg.getDouble();             varC = msg.getString();              // do a bunch of calculations          }  };  // use member variables class thisClass {     public:         void callback( msg&amp; msg )         {              m_varA = msg.getInt();              m_varB = msg.getDouble();              m_varC = msg.getString();               // do a bunch of calculations         }      private:         int m_varA;         double m_varB;         std::string m_varC;  };