My question is a generic one, so i am sure someone will flag it, but i am hoping i can receive some helpful directions. I have 2 salesforce org - Org1, Org2. I build a rest API in Org2. Now i need to access it from Org1. My integration concepts are weak and there is so much stuff that i do not know where to start, given that i cant spend 6 months learning authentication before delivering my work. From what i understand, there are 2 ways for this connection to work -  Where a user from Org1 gets authenticated into Org2 as himself. Which means he will have a user account in both orgs. Someone told me that there is a way to set up connected app to achieve this, and we will need to use JWT to achieve this. Is that correct? Where all users from Org1 gets authenticated in as a common API user set up in Org2. And that API user will have proper access. Again, someone told me that there is a way to set that up in connected app. I will google more into it I have also noticed that community users (who technically dont even have an account in an org) gets authenticated as portal users. Not sure if that is any different from above 2.  Does above 3 categories summarize all the possible ways to connect Org1 to Org2 when accessing rest api inside Org2? I just need brief summary of how many ways can it be done, and some directions on what topics to read for it. Most people just say - &quot;read about OAuth - . I understand that is a good advice, but for a newbie who needs to start working on stories right away, it will take me forever before i can deliver anything. So looking for some advices on quick summary and ways to quick start some implementation, then i will grasp concepts as i go on with implementation steps. SO far i know how to write classes that expose methods as rest apis. I know connected apps perform the task of OAuth. It gets confusing for me when i see some code using JWT, some discussions on cross-org, basic auth, etc etc. Information is scattered. It seems like unending pool of &quot;things i dont know or dont even know what i am missing&quot;. So i figured i will start with a simple use case of Org1 users trying to access rest resource in Org2. Any guidance on how many ways to achieve it (authentication part) and what is the path to do that, would be greatly appreciated. I would start by reading those specific topics and implement it.
I am trying to integrate one Salesforce org to other org by using Oauth setup, I wanted to use  use consumer key and consumer secret key in my REST class to connect with the org, after connection part completion, I want to access Get(), Put(), Post(), etc. Including the ability to set Oauth and Authorization headers needed for Salesforce Rest API calls.  Actually I'm new in REST implementation so can you please explain me by using code samples.
Mirrored object not symmetrical I am trying to mirror an object and the original is symmetrical along all axis, but when I attempt to mirror across the y axis, the mirrored side is tilted to a different angle. Here are two examples of what I mean:   I am sure you all too have experienced this frustration before. A dialog box opens that displays only part of a long string (e.g. a file path), but won't allow you to select the text so you can read the full string. Neither text container will resize upon window resizing. (By the way, you can force windows —specially dialog boxes— to resize with tools such as , but helps little in this case, since controls are fixed-width.) The text is hidden, period. Copying a very long drop-down list control contents to a text file.   Do you know any way to solve these problems? Find and extract a number from a string I have a Sharepoint online page on which I would like to remove the blue navigation bar at the very top of the screen (the one with the seach bar in the middle and the button on the left with 9 dots to switch to different Microsoft apps). I have checked all of the header settings and also went into the site settings and modified the search settings. I was able to exclude the site from search results, however the blue bar still remains. Is this possible to remove in a default SharePoint online site without using custom CSS or anything like that? I asked this question  but I haven't gotten a useful answer. Could you tell me the difference in meaning between these sentences?        Do you think you will visit them next week?     Will you visit them next week?     Are you going to visit them next week?     Are you visiting them next week?     Are you going to be visiting them next week?     Are you planning to be visiting them next week?     Do you plan to visit them next week?      Will there be any difference in the answers?        I think I will visit them next week.     I will visit them next week.     I am going to visit them next week.     I am visiting them next week.     I am going to be visiting them next week.     I am planning to be visiting them next week.     I plan to visit them next week.      Can I use "planning to" instead of "going to"?  (E.g. "Are you planning to visit them next week? — Yes, I am planning to visit them next week.") Which of these sentences show that the subject of conversation has already been discussed? For example, I talked with a friend of mine about my plans to visit somebody. So my friend is aware of my plans.  And my last question. Which of these seven sentences express that the action will certainly take place? Nonphysical entities cannot be observed. Therefore such entities cannot be verified by observation. How could statements like "God exists" be even considered true? Why would anyone appeal to the metaphysical realm at all?  It seems to me that the best method by which we should go about in understanding the world is by initially ruling out the possibility of the metaphysical altogether for the simplest answer (a sort of null hypothesis). Once we can get a hold of a natural cause of some phenomenon, we should be satisfied that that is all there is to it. Formulating some nonphysical cause would be unnecessary, superfluously complicated, or even cluttered. Now if there was some problem that we were certain could not be solved by observation or experimentation or whose solution could not possibly exist in the observable realm, yet must be true, I would consider the possibility of a metaphysical cause.      That said, I don't think that if you can't empirically observe something, it doesn't exist; rather, I would declare total agnosticism and say that it is unknowable. Remove HTML tags from a String Is there a good way to remove HTML from a Java string? A simple regex like replaceAll(&quot;\\&lt;.*?&gt;&quot;, &quot;&quot;)   will work, but things like &amp;amp; wont be converted correctly and non-HTML between the two angle brackets will be removed (i.e. the .*? in the regex will disappear). Factorizing polynomials over fields other than $\mathbb{C}$ I have this picture:  (I have the original in Pixen and could export it to several different formats. I went with PNG though since it's lossless.)  When I open my picture in Preview (OS X) and zoom in, it looks fine. The characters have extremely sharp boarders between them and the background. However, when I put it into my LaTeX document, compile it to a PDF (using TeXShop) and then zoom in, it suddenly have gotten blurry (see screenshot: ).  Minimal working example:  \documentclass[12pt]{article} \usepackage{graphicx} \begin{document} \includegraphics[scale=1]{fig1.png} \end{document}   In the end, I would like to be able to scale the picture freely without there being any blurring at all. What is the difference between "till" and "until"? What is the difference between till and until?    When to use till or until? Please explain with examples. We've just been learning about complex numbers in class, and I don't really see why they're called numbers.  Originally, a number used to be a means of counting (natural numbers).  Then we extend these numbers to instances of owing other people money for instance (integers).  After that, we consider fractions when we need to split things like 2 pizzas between three people.  We then (skipping the algebraic numbers for the purposes of practicality), we use the real numbers to describe any length; e.g. the length of a diagonal of a unit square.  But this is when our original definition of a number fails to make sense- when we consider complex numbers, which brings me to my main question: what is a rigorous definition of 'number'?  Wikipedia claims that "A number is a mathematical object used to count, label, and measure", but this definition fails to make sense after we extend $\mathbb{R}$.     Does anyone know of any definition of number that can be generalised to complex numbers as well (and even higher order number systems like the quaternions)? Execute shell commands in Python How can I find all files I can not write to?  Would be good if it takes standard permissions and acls into account.  Is there an "easy" way or do I have to parse the permissions myself? If you cast Blindness/Deafness as a 3rd level spell, can you target one creature with both effects? I need some advice as I am struggling with the following combinatorics exercise.  Let $k$ be a given positive integer. Show that any non-negative integer $N$ can be written uniquely in the form $$N=\binom{x_k}{k}+\binom{x_{k-1}}{k-1}+\dots+\binom{x_1}{1},$$ where $0 \leq x_1 &lt; \dots &lt; x_{k-1} &lt; x_k$.  The exercise is accompanied by this advice:  Let $x$ be such that $\binom{x}{k} \leq N &lt; \binom{x+1}{k}$. Then any possible representation has $x_k = x$. Now use induction and the fact that $N-\binom{x}{k} &lt; \binom{x}{k-1}$ to show the existence and uniqueness of the representation.  I am really stuck and thus grateful for the slightest hint on how to solve it. Let us consider the following code and the algorithm corresponding to it    \documentclass{article}   \usepackage[utf8]{inputenc}    \usepackage[]{algorithm2e}     \begin{document}     \begin{center}    \begin{algorithm}[H]     \KwData{this text}     \KwResult{how to write algorithm with \LaTeX2e }     initialization\;     \While{not at end of this document}{      read current\;      \eIf{understand}{              go to next section\;       current section becomes this one\;       }{       go back to the beginning of current section\;      }     }     \caption{How to write algorithms}    \end{algorithm}    \end{center}    \end{document}   Which gives the following     I want to add running times for each step to my algorithm as shown below (for example)    So, I need to make my algorithm as a column in the table and one more column for running times of each step, how can I make my algorithm as a column inside a table? Lunch Meeting Probability for two person to meet in given 1 hour slot and none would wait more then 15 minute. Two friends who have unpredictable lunch hours agree to meet for lunch at their favorite restaurant whenever possible. Neither wishes to eat alone and each dislikes waiting for the other, so they agree that each will arrive at a random time between noon and 1 pm, and each will wait for the other for 15 minutes or until 1:00. What is the probability that the friends will meet for lunch on a given day? Please stop using SoftwareEngineering.SE as your toilet bowl Stack Overflow users have been using the "off topic - belongs on SoftwareEngineering.SE" close reason as an alternative to all the other close reasons. It'd be helpful if people actually read the FAQ and the six  before voting to migrate questions like:   , no redeeming value to favorite lists that become argumentative , "help my exact situation" questions are too localized , fails 5 out of the 6 guidelines , fails 4 out of 6 , too localized and too vague , too broad   Absent a reversal of the Stack Overflow community from viewing SoftwareEngineering.SE as the Stack Overflow cesspool, can the "off topic - belongs on SoftwareEngineering.SE" close reason be removed in favor of manual migration by moderators who can actually spend the 10 seconds to determine if the question should be closed outright first?    To say that SoftwareEngineering.SE is such a nebulous place and nobody knows what its scope is as the reason why crappy questions keep getting migrated there is to miss the point. Good questions are good questions on all of the sites, and questions that are too vague, that are too argumentative, too localized, and too broad are universal close reasons. There is no special dispensation for SoftwareEngineering.SE to have bad questions, even if you personally think the questions on there suck.  Even the six subjective guidelines for subjective questions are universal guidelines: they affect all sites. So even if you had no idea what the consequences of using the "off topic - belongs on SoftwareEngineering.SE" close reason were, there are still all of the other close reasons for which bad questions, like the ones above, can be closed. How do I find a command if I don't know its name? Modus Operandi. Formulae for Maximum and Minimum of two numbers with a + b and $|a - b|$ I came across the following problem in my self-study of real analysis:     For any real numbers $a$ and $b$, show that $$\max \{a,b \} = \frac{1}{2}(a+b+|a-b|)$$ and $$\min\{a,b \} = \frac{1}{2}(a+b-|a-b|)$$   So $a \geq b$ iff $a-b \ge0$ and $b \ge a$ iff $b-a \ge 0$. At first glance, it seems like an average of distances. For the first case, go to the point $a+b$, add $|a-b|$ and divide by $2$. Similarly with the second case.   Would you just break it up in cases and verify the formulas? Or do you actually need to come up with the formulas?