I have a response from an AJAX request and depending upon the situation that calls it, I want to either replace the data on the screen, or append new data to the screen.   Two possibilities are as followed:  $('#data').append(response); $('#data').html(response);   I tried to do something like:  var action = "append" $('#data').(action)(response)   That didn't work, how can I do this?
I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?  Depending on the circumstances, I may need to pass various arguments into the method too.  Some of the functions may take the form of namespace.namespace.function(args[...]).
Is there a graceful way to handle passing a list of ids as a parameter to a stored procedure?   For instance, I want departments 1, 2, 5, 7, 20 returned by my stored procedure. In the past, I have passed in a comma delimited list of ids, like the below code, but feel really dirty doing it.   SQL Server 2005 is my only applicable limitation I think.  create procedure getDepartments   @DepartmentIds varchar(max) as   declare @Sql varchar(max)        select @Sql = 'select [Name] from Department where DepartmentId in (' + @DepartmentIds + ')'   exec(@Sql) Today I found my first ever (to the best of memory) emoji in a post.        Having no idea this was even possible I came here looking for some history. I found there is an  tag. There seems to be consensus that they add little to no value on SE per  &amp;  we also know they don't translate well on all devices    I don't find any history other then this one post  where there is any focused attempt to support them. I don't find any history of discussion on supporting them.    Two questions   Is it possible to disable emojis across Stack Exchange?   If yes   Should we disable emojis across Stack Exchange? How can I distribute a native executable for a Python program? Lately all of my work has been in Python (and Ruby), and I'm in love with those two languages. There are many libraries for game development on Python but the problem I see is that many of those frameworks don't cover the "distribution" aspect of game creation. I'd like to code my game on Python (and any other pure Python extra libraries I need) and be able to distribute an executable for the main PC platforms (Windows, Mac and Linux).  Any options out there or what are the best combinations for this? (maybe pyglet + cx_freeze) The replier's From email address is modified when Marketing Cloud RMM forwards an email to the routing address We've set up RMM to forward replies to routing address and SFMC adds our subdomain to the replier's From email address (i.e. replier@gmail.com becomes replier.gmail.com@oursubdomain.com). However, their reply-to address remains the same.  It seems like DMARC Forward Reply Rewrite is enabled, but we were advised not to touch it as that may affect email deliverability.  Is there any workaround to this? And what will happen if we disable this feature? I would like to add my bibliography to my presentation in IEEE format. What should I add to my preamble and code.  \documentclass{beamer} \setbeamertemplate{footline}[page number]  \usepackage{graphicx} \usepackage{booktabs} \begin{document} \section{Reference} \begin{frame} \frametitle{Reference}  \end{frame}   I'm using the same bibTex which I use to make the IEEE paper. How do you "OR" criteria together when using a criteria query with hibernate? Can I mix MySQL APIs in PHP? Compiling LaTeX document empties .bbl file I'm trying out biblatex for the document I'm compiling, using the biber backend on my miktex distribution. Everything, including biber, should be up to date, assuming the MiKTeX repository currently holds the latest versions of everything.  This is what the biblatex documentation (p. 101) says about how often I have to run biber to update my .bbl file:     Whenever a reference to a work which has not been cited before is   added, this procedure must be repeated. This is also the case if the   last reference to a work which has been cited before is removed   because some citation labels may change in this case.   So if I make changes to my document (which is a very common activity in the process of writing a document), but leave the citations unchanged, I should not have to re-run biber before compiling the changes. However, every time I compile my document, regardless of the compiler or documentclass, the .bbl file is emptied. Consequently, the next time I compile the document without running biber, the bibliography is removed (seeing as the .bbl file contains nothing), and all my citations are broken. For this reason, I have to run biber before every time I compile the document, which largely counters the benefit of externalizing the bibliography in the first place.  How can I make the compilers stop overwriting my .bbl file and make everything behave as described in the biblatex manual?  Upon investigating the contents of the auxiliary files, I found that the .bbl file (after running biber, before compiling) begins with the following lines:  % $ biblatex auxiliary file $ % $ biblatex bbl format version 2.3 $   Does the biblatex version 2.8 still mark the .bbl files as version 2.3? If not, could this be the problem? And if so, why does my 2.8 version of biblatex (partly) behave as version 2.3?  Any help solving this problem would be much appreciated. Given a set $\{1,2,3,4\}$, how is the following relation $R$ antisymmetric?  $$R = \{(1, 2), (2, 3), (3, 4)\}$$  Note: Antisymmetric is the idea that if $(a,b)$ is in $R$ and $(b,a)$ is in $R$, then $a = b$. In my textbook  it says the above is antisymmetric which isn't the case as whenever $(a,b)$ is in $R$, $(b,a)$ is not. Pigeonhole-principle with two choices I am able to solve this sort of problem pretty easily.     An arm wrestler is the champion for a period of 75 hours. The arm   wrestler had at least one match an hour, but no more than 125 total   matches. Show that there is a period of consecutive hours during which   the arm wrestler had exactly 24 matches.   However this homework problem I can't seem to figure out.     Tyler has five weeks to prepare for his driver’s test. His mother   volunteers to ride with him for either 15 minutes or one half hour   every day until the test but not for more than 15 hours in all. Show   that during some period of consecutive days, Tyler and his mother will   drive for exactly 8.75 hours.   If I try doing it the same way as the first problem. I get $70$ pigeons and $95$ pigeon holes. I honestly don't know where to start with this problem. I thought that maybe I could assume that they only drove $.25$ hours on each day and prove that there is a period of consecutive days where they drove for exactly $8.75$ hours. Then I could say that we assume there is one day that they drove for $.5$ hours and work my way up, but I can't seem to get that to work either. Break a loop animation (Make Cyclic) to start a new one I've used the 'Make Cyclic' to loop these keyframes (image below). So, I want to break the loop at a certain time to do a new animation (insert another kf to do a different thing than the loop does). Any help how to do this?    Thanks in advance! Can we please move the  "Start a bounty" link to be in the same location as all of the other action buttons? It makes no sense to me for this to be buried after the comments - It's an action on the Question. It can be very difficult to locate, especially when your question gets .  I don't think this should be that difficult to implement - it's just moving the location of a design element. Can we please get this button moved? Energy conservation in General Relativity Do Dragonborn get tails/wings? How to monitor battery condition and pop-up notification? Essentially, I would like  into a working answer.   I know how to extract the battery percentage from :   upower -i $(upower -e | grep BAT) | grep --color=never -E percentage|xargs|cut -d' ' -f2|sed s/%//   And how to pop-up a basic notification:   notify-send "battery low"   But how can I set up a (bash?) script to permanently monitor the output and send notification as per this pseudo-code:   if battery_status &lt; 10% then notify-send "battery low" and put my system to suspended state sudo pm-suspend What's the word for the when you suck snot back up your nose? My mom and I say 'soup' like: "Why are you souping the snot back up your nose?" But I realise that this is not accurate. So what's the word? how to avoid ssh asking permission? We are attempting to speed up the installation of oracle nodes for RAC installation. this requires that we get ssh installed and configured so that it doesn't prompt for a password.  The problem is: On first usage, we are prompted for  RSA key fingerprint is 96:a9:23:5c:cc:d1:0a:d4:70:22:93:e9:9e:1e:74:2f. Are you sure you want to continue connecting (yes/no)? yes   Is there a way to avoid that or are we doomed to connect at least once on every server from every server manually? How to add keyboard shortcuts? I want Ctrl+Alt+B bring up a browser.  Ctrl+Alt+Delete is handy.  Can I set up Ctrl+Alt+B to bring up a browser (either default or specific)? $S := \{x \in \Bbb R^3: ||x||_2 = 1 \}$ and $T: S^2 \to \Bbb R$ is a continuous function. Is $T$ injective? $S := \{x \in \Bbb R^3: ||x||_2 = 1 \} \subset (\Bbb R^3, || \cdot ||_2 )$ and $T:S^2 \to (\Bbb R, |\cdot |)$ is  a continuous function.  I've already shown that $$T_{\mathrm{max}} := \mathrm{sup}\{ T(x) : x \in S^2\}  \: \: \mathrm{ and }\: \: T_{\mathrm{min}}:= \mathrm{inf}\{ T(x) : x \in S^2\}$$ are reached by $T$ with the argument that $S^2$ is closed and bounded and therefore after the Heine-Borel-Theorem compact, and therefore since T is continuous it assumes its max and min in $S^2$.   Now i have answer the following:     1) Is there a point $x_0 \in S^2$ with $T(x_0)=T(-x_0)$ ?      2) Is there a value $T \in(T_{\mathrm{min}}, T_{\mathrm{max}})$ which is only assumed at exactly one point of $S^2$ ?   I wanted to show that $T$ is injective to get that 1) is false and 2) is true but i didn't get anywhere. Any ideas? Thanks in advance! Was it just coincidence that Tahir Mahmood went on stage? In episode 3 of “Bodyguard,” Tahir Mahmood steps onto stage at St. Mary’s college as the Home Secretary is speaking and the two of them, plus others, are blown up by a bomb. In the next episode we discover that the stage had a weight trigger and that his arrival set it off. This heavily implies that whoever asked him to go on stage was affiliated with those who planted the bomb.  We know that Mahmood was sent on stage by advisor Rob Macdonald as part of a scheme, together with other members of the home secretary’s staff, to embarrass her. The audience knows that some of the people in on this scheme have been plotting with the U.K. security services. This, together with interference in video recordings of the event, characteristic of the security services, implicates the security services in the assassination.  In the final episode it is revealed that the bomb had been set by members of an organized crime gang who had gotten the explosives from an Islamic terrorist. A senior member of the police force had been helping them by leaking information. So, were the security services involved? If so, why? If not, who got Mahmood to go up on the stage? Was it just coincidence that he went up there at the right time?