I am not able to call this method in my test class:  WebServiceCallout.invoke(            this,           request_x,           response_map_x,           new String[]{endpoint_x,           'https://www.imed.com.ar/Producto',           'https://www.imed.com.ar/',           'Producto',           'https://www.imed.com.ar/',           'ProductoResponse',           'wwwImedComAr.ProductoResponse_element'}
This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, including more unit test resources, navigate to the  tag.  How do I unit test code that includes a SOAP or REST-based callout, or indirectly calls code that makes a callout? I'm getting an error saying that callouts are not supported.
How to escape quotes in shell? Is exon order always preserved in splicing? Are there any cases in which the splicing machinery constructs an mRNA in which the exons are not in the 5' -> 3' genomic order? I'm interested any such cases, whether they involve constitutive or alternative splicing. What primitives are needed to generically implement public-key cryptography? What's with the Japanese SO's stats? I took this screenshot just now, and  about the new . I refreshed the page, went back, and nothing changed.    And, here's what I find odd:  It clearly isn't almost 2014 years old. That's more likely when it was started.  How can there be 8.7 questions a day, while there are 0 visits a day? That's kind of impossible.   I'm hoping here that it's not just me. I know very limited Japanese, not even enough to hold a conversation with a toddler. I'm merely observing. Unable to access outside service from inside LAN I have a weird port forwarding problem. I tried to open my port 22 to the outside network. I was able to access it as long as I am not inside the LAN. I can access it from my office for example. But from within the LAN, I can access the port using the local ip, but I can't access the port using the external IP. It's as if the router is blocking the loopback. I've check all my router settings, turned off anything firewall/filtering related. Any ideas? is there any diffrence to use nonlinear or liner activation function in single hidden layer network Which Content Management System (CMS)/Wiki should I use? This is a general, community wiki  question to address non-specific "I need a CMS or Wiki that does x, y, and z..." questions.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .    I have a list of features that I want for my website's Content Management System (CMS) - where can I find a [free] script that includes all of them? Proof by induction that if $n \in \mathbb N$ then it can be written as sum of different Fibonacci numbers Proof that every natural number $n\in \mathbb N$, can be written as the sum of different Fibonacci numbers between $F_2,F_3,\ldots,F_k,\ldots$.  For example: $32 = 21 + 8+3 = F_8+F_6+F_4$  Research effort:  The base step it's simple:  Let $k=1$ it can be britten as $k=1=F_2$  For the inductive step I considered:  Let $k = k  F_2 =F_2+F_2+\cdots+F_2 = \sum_{i=2}^w a_iF_i, a_i =\{0,1\} $  Then if $k$ suffice I want to see if $k+1$ suffices too... But I'm not realy seeing how to use the inductive hypothesis, so I assume It's wrong.  Any thoughts on which can the inductive step be? Mesh imported to Unity is inside out I have a scenario. (Windows Forms, C#, .NET)   There is a main form which hosts some user control. The user control does some heavy data operation, such that if I directly call the UserControl_Load method the UI become nonresponsive for the duration for load method execution. To overcome this I load data on different thread (trying to change existing code as little as I can)   I used a background worker thread which will be loading the data and when done will notify the application that it has done its work.   Now came a real problem. All the UI (main form and its child usercontrols) was created on the primary main thread. In the LOAD method of the usercontrol I'm fetching data based on the values of some control (like textbox) on userControl.    The pseudocode would look like this:  CODE 1  UserContrl1_LoadDataMethod() {     if (textbox1.text == "MyName") // This gives exception     {         //Load data corresponding to "MyName".         //Populate a globale variable List&lt;string&gt; which will be binded to grid at some later stage.     } }   The Exception it gave was     Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on.   To know more about this I did some googling and a suggestion came up like using the following code  CODE 2  UserContrl1_LoadDataMethod() {     if (InvokeRequired) // Line #1     {         this.Invoke(new MethodInvoker(UserContrl1_LoadDataMethod));         return;     }      if (textbox1.text == "MyName") // Now it wont give an exception     {     //Load data correspondin to "MyName"         //Populate a globale variable List&lt;string&gt; which will be binded to grid at some later stage     } }   BUT BUT BUT... it seems I'm back to square one. The Application again  become nonresponsive. It seems to be due to the execution of line #1 if condition. The loading task is again done by the parent thread and not the third that I spawned.  I don't know whether I perceived this right or wrong. I'm new to threading.  How do I resolve this and also what is the effect of execution of Line#1 if block?  The situation is this: I want to load data into a global variable based on the value of a control. I don't want to change the value of a control from the child thread. I'm not going to do it ever from a child thread.   So only accessing the value so that the corresponding data can be fetched from the database. Fibonacci Recurrence Relations Solve the recurrence relation $f(n) = f(n − 1) + f(n − 2)$ with initial conditions $f(0)=1$, $f(1)=2.$   So I understand that it grows exponentially so $f(n) = r^n$ for some fixed $r$.  This means substituting this $r^n = r^n-1 + r^n-2$ which gives the characteristic equation of $r ^ 2 - r - 1 = 0$. I'm not 100% sure where to move on from here. Is there a quick way to get to the Control Panel in Windows 8? Obviously in all previous versions of Windows you could simply click START and then select "Control Panel" to get to it, but on Windows 8 there is no such option.  Is there an easy way to quickly get to it without having to press WIN, type "Control Panel", and then press Enter? How does Salesforce SSO call just-in-time handler methods I am having a hard time digging up some information on this as I believe it is still relatively new. If you implement SSO with Salesforce you have the ability to enable SAML. I have enabled SAML and have also enabled JIT with an automatically created class to support it.  Out of this newly generated class, there are two global methods that I am assuming are called upon SSO, but I do not know which one is called or how.   global User createUser(Id samlSsoProviderId, Id communityId, Id portalId,     String federationIdentifier, Map&lt;String, String&gt; attributes, String assertion) {     User u = new User();     handleJit(true, u, samlSsoProviderId, communityId, portalId,         federationIdentifier, attributes, assertion);     return u; }  global void updateUser(Id userId, Id samlSsoProviderId, Id communityId, Id portalId,     String federationIdentifier, Map&lt;String, String&gt; attributes, String assertion) {     User u = [SELECT Id, FirstName, ContactId FROM User WHERE Id=:userId];     handleJit(false, u, samlSsoProviderId, communityId, portalId,         federationIdentifier, attributes, assertion); }   Does Salesforce have some backend code that interprets the SAML coming over the SSO and then calls the methods appropriately?   The reason I am asking this is because I would like to cancel a user's SSO if they do not match x fields based off of the values coming across in the SAML in the SSO. If I did not want to update a user or create a user, would I be able to add in my own global class that could be called from the SSO?   Let me know if this is unclear / does not make sense.  Thanks How to intuitively understand eigenvalue and eigenvector? I'm learning multivariate analysis and I have learnt linear algebra for two semester when I was a freshman.  Eigenvalue and eigenvector is easy to calculate and the concept is not difficult to understand.I found that there are many application of eigenvalue and eigenvector in multivariate analysis. For example     In principal components, proportion of total population variance due   to kth principal component equal    $$\frac{\lambda_k}{\lambda_1+\lambda_2+...\lambda_k}$$   I think eigenvalue product corresponding eigenvector has same effect as the matrix product eigenvector geometrically.   I think my former understanding may be too naive so that I cannot find the link between eigenvalue and its application in principal components and others.   I know how to induce almost every step form the assumption to the result mathematically. I'd like to know how to intuitively or geometrically understand eigenvalue and eigenvector in the context of multivariate analysis(in linear algebra is also good).  Thank you! How do I undo 'git add' before commit? I mistakenly added files to Git using the command:  git add myfile.txt   I have not yet run git commit. Is there a way to undo this, so these files won't be included in the commit? Should edits with only minor code improvements be accepted. As an example, I'm reviewing an edit that changes all double quotes to single quotes and renames a variable in some javascript. With the exception of the variable rename (which is not entirely necessary), the edit is frivolous. Should I accept on the merits of a debatable variable name change? More than once I've accidentally run a number of commands and polluted my bash history. How do I close my terminal without saving my bash history? I'm using Fedora. The app keeps asking for a nickname, and I have entered dozens of names, but it keeps saying that the names aren't available. How can I find an available name? I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at?  I wish I had more details on how I am implementing this timed delay, but until I have more information on how to add a timed delay I am not sure on how I should even attempt to implement this. Logical or operator not behaving as expected