Can someone guide me how i can connect two salesforce personal Org using REST Services.  Basically I have very little idea about Web Services.  But i want to integrate two Org using REST web service.  Thanks in Advanvce Guys
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.
Adding two numbers concatenates them instead of calculating the sum Let $L$ be a finitely generated free module over a commutative ring $A$. Set $n=\operatorname{rank} L$. Let $x_1,\dots,x_m$ be generators of $L$. Then $m \ge n$? If $m = n$, then is $x_1,\dots,x_m$ a basis of $L$? Crontab entry executing every hour How to understand Cauchy's proof of AM-GM inequality(the last step) The AM-GM inequality: $$a_1a_2\cdots a_n\leq\left(\frac{a_1+\cdots + a_n}{n}\right)^n$$  the trivial case: $a_1a_2 \leq \left(\frac{a_1+a_2}{2}\right)^2 $ is self-evident.  then cauchy use this fact repeatedly. He get: $$a_1a_2\cdots a_{2^m} \leq \left(\frac{a_1+a_2+\cdots +a_{2^m}}{2^m}\right)^{2^m}.\tag{$\ast$}$$  This is easy to understand, and natural, but next step:  he let  $$b_1 = a_1,\ b_2=a_2,\ \ldots,\  b_n=a_n,\  b_{n+1}=\cdots=b_{2^m}=\frac{a_1+a_2+\cdots a_n}{n}$$  replace $a_1, a_2,\ldots ,a_{2^m}$ with $b_1, b_2, \ldots b_{2^m}$ in $(\ast)$ and simplified both left and right. He get the answer. I can repeat his proof, but I don't know why Cauchy can got this idea. How does he got it? How to prompt for user input and read command-line arguments Prevent iTunes from starting when iPhone/iPod/iPad is plugged in on Windows Is there any way to prevent iTunes from starting under XP when an iPhone is plugged in?  Using iTunes v 9.  Usually I just want to charge my phone and don't want iTunes to start.  Note: Exact  of this question - except this is for v9 on Windows.  The answer in the related question doesn't work for me. Problem Statement  Let $f(x) = x^3 + ax^2 + bx + c$ and $g(x) = x^3 + bx^2 + cx + a$ where $a,b,c$ are integers with $c\not=0$   Suppose that the following conditions hold:   $f(1)=0$ the roots of $g(x)=0$ are the squares of the roots of $f(x)=0$      $$\text{Find the value of} \: \: a^{2013} + b^{2013} + c^{2013}$$   My attempt  Let $f(x) = (x-p)(x-q)(x-r) \: \:$ and $g(x) = (x - p^2)(x-q^2)(x-r^2)$  Expanding we get $$f(x) = x^3 - (p + q + r)x^2 + (pq + pr + qr)x - pqr$$  $$g(x) = x^3 - (p^2 + q^2 + r^2)x^2 + (p^2q^2 + p^2r^2 + r^2q^2)x - p^2q^2r^2$$  And so we have $$a = -(p+q+r) = -p^2q^2r^2$$ $$b = pq + pr + qr = p^2 + q^2 + r^2$$ $$c = -pqr = p^2q^2 + p^2r^2 + r^2q^2$$  Then we get the following relations  $$a = -c^2$$ $$b = a^2 - 2b \implies 3b = a^2 \implies b = \frac{c^4}{3}$$  From $f(1) = 0$ we have $a + b + c = -1 \implies \dfrac{c^4}{3} + c - c^2 = -1$  However, upon graphing this function, I saw that there are no integer solutions for $c$. Have I done something wrong?  Edit  For future readers, my approach can simplified alot if you replace $r$ with $1$ since $f(1) = g(1) = 0$ From      Glueballs are predicted by quantum chromodynamics to be massive, notwithstanding the fact that gluons themselves have zero rest mass in the Standard Model. Glueballs with all four possible combinations of quantum numbers P (parity) and C (c-parity) for every possible total angular momentum have been considered, producing at least fifteen possible glueball states including excited glueball states that share the same quantum numbers but have differing masses with the lightest states having masses as low as 1.4 GeV/c2 (for a glueball with quantum numbers J=0, P=+, C=+), and the heaviest states having masses as great as almost 5 GeV/c2 (for a glueball with quantum numbers J=0, P=+, C=-).   Rather than going through a list of possible mechanisms that unfortunately I know next to nothing about, such as can the mass be attributed to virtual quarks, or binding energy between the gluons, I would rather leave the question as in the title to find out as much as I can.  Also, although the SM is firmly established, would the discovery of Glueballs buttress it further?  My apologies for not knowing more about the interior of hadron like particles or if the answer is readily available (or worse, blindingly obvious). I'm using PostGIS 1.5.2, with geometries in SRID:900913. I need create a circles using a list of points as centre, with a radius of 600 kilometers. I'm using this query:  INSERT INTO circles (geom) (    SELECT ST_Buffer(point, 600000, 'quad_segs=8')     FROM points );   But circles created have not 600 kilometers of radius (radius is near this length, but not exactly).  Are there other methods to create circles in PostGIS?  NOTE: Information represented is from Spain. Correct projection is 4326, but client use Google rasters, so I am storing data in 900913 to avoid reprojections and increase performance. Is it possible to boot Ubuntu using the Windows bootloader? As noted by many people, Windows 8's UEFI requirements might will won't get in the way of installing Linux (or whatever), as the replacement bootloader will also need to be signed somehow. Some systems All systems will let you disable the signature requirement, but the feature might be hidden to disable or you might not be willing to give up on the benefits of a secure bootloader.  Is it necessary to replace the bootloader in the first place? To keep ourselves to software that's gone golden, how can I install Ubuntu 11.04 using Windows 7's own bootloader? I want to plot the function 1/(x²+y²), but since it tends to infinity in (0,0), I get a horrible plot:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[grid=both]     \addplot3 [surf] {1 / (x^2 + y^2)};   \end{axis} \end{tikzpicture} \end{document}     By restricting the domain of z, I get anyway a not so nice plot:  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}   \begin{axis}[grid=both,restrict z to domain=0:1]     \addplot3 [surf] {1 / (x^2 + y^2)};   \end{axis} \end{tikzpicture} \end{document}     I would like to get something smooth, which finish in a circle (the circle of the intersection of this function with the plane z=1 for example).  Something like this would be great: In .NET, which loop runs faster, 'for' or 'foreach'? My account has 20 (!) sites associated to it.  I only use it for 3-5 sites.  To reduce clutter, I would like to delete my profiles that I do not use much.  I have went through , but when I enter the profile URL as:  http://russian.stackexchange.com/users/5772/alex   it gives the error message:     oops! this isn't a link to a valid profile   What procedure do I go through to delete my profile only on certain sites? Finding the Transform matrix from 4 projected points (with Javascript) A capacitor stores half the energy when charged from a battery each and every time? I understand that when a battery is connected to a capacitor that half the energy is stored in the capacitor while the other half is lost to heat or whatever other losses are involved once the capacitor is charged to the exact same voltage level of the battery.  Only a one time direct connection with a simple switch from open to closed that charges the capacitor up to the voltage level of the battery is what is being referred to. My question is does this occur each and every time?   Once the capacitor is charged to the voltage level of the battery then there should be 7.2 milliJoules of energy in the capacitor.  If the answer is yes that half the energy is transferred into the capacitor each and every time then what would the capacitor voltage have to be in order to equal 100% of the energy if it were to come from the battery?  I understand that in practice this will never happen, which is why the statement equal to 100% of the energy is indicated. (Meaning by some other method of charging means)         &ndash; Schematic created using I've been reading an  ( eMagazine) relating to the Raspberry Pi; "An ARM GNU/Linux box for $25."  In the article, page 17 at the bottom it shows an area on the Pi where a track zigzags next to a straight one with the explanation text:     The “wiggles” in tracks, ensure signals are matched  electrically,   reducing interference and signal delay.  This is particularly   important for high speed video  data and HDMI signals.     I have very limited knowledge of electrical engineering so perhaps this is a very simple question but why would you incorporate these 'wiggles' in a PCB design?  I realise the quote gives me an answer and I sort of understand the interference point due to problems with power cables and coaxial cables running next to each other but I'd appreciate something assuming very little knowledge that explained why you would get the problems and how wiggles help. For example, why isn't the board covered in wiggles? Moderators currently have a tool to add a Post Notice that says:     insufficient explanation       We're looking for long answers that provide some explanation and   context. Don't just give a one-line answer; explain why your answer is   right, ideally with citations. Answers that don't include explanations   may be removed.   However, there seems to be no equivalent wording for one-line questions.  Could the wording be changed to something like below to cover both one line questions and one-line answers?     insufficient explanation       We're looking for longer posts that provide some explanation and context.          Don't just ask a one-line question; provide some background like a brief description of your research prior to asking   Don't just give a one-line answer; explain why your answer is   right, ideally with citations.          Questions and answers that don't include explanations may be removed.   Sometimes such questions can simply be closed for being unclear or too broad but on the two sites I moderate there is an aversion to closing questions from new users, so to give them some guidance about what is expected, without spending time writing the same comment over and over, a post notice like this would provide a good "couple of clicks" alternative. Multiplicative inverse questions This is my first time posting on Math exchange. I have been self-teaching myself Mathematics and recently started learning some Algebra. I was posed the following questions, in which I would like to answer before I proceed, but having some trouble finding proper solutions. So the format will be question, and my answer.      What name do we give an element $a \in \mathbb{Z}_n$ that has a multiplicative inverse?   A modular multiplicative inverse of an integer $a$ is an integer $x$ such that $ax \cong 1 (\mod m)$. This means that the remainder after dividing $ax$ by integer $m$ is equal to $1$.      Give an example, for some $n \in \mathbb{N}$, of an element of $\mathbb{Z}_n$, that does not have a multiplicative inverse?   This question is throwing me off because - does the $n$ we speak of matter for both $n \in \mathbb{N}$ and $\mathbb{Z}_n$ ot solely $n$? My guess here would be $0$ because we cannot have an inverse of $0$.      Prove that multiplicative inverse are unique; an element $a \in \mathbb{Z}_n$ cannot have two multiplicative inverses.    Suppose that an element $a\in\mathbb{Z}_n$ has an inverse $a'$. Next, suppose that $a^*$ is also an inverse of $a$. Then, $a'$ is a solution to $a \cdot_n x=1$, and similarly $a^*$ has a solution to $a \cdot_n x=1$.   Lemma: Suppose $a'$ is multiplicative inverse of $a$ in $\mathbb{Z}_n$, then for any $b \in \mathbb{Z}_n$ the equation $a \cdot_n x=b$ has a unique solution, such that $x = a' \cdot_n b$.   By Lemma, equation $a \cdot_n x = 1$ has a unique solution, namely $x=a'=a^*$. Therefore, an element $a\in \mathbb{Z}_n$ cannot have two multiplicative inverses.    Thank you for the help. I would love any constructive feedback for these. If you can help me elaborate on some ideas, that would be really helpful also.  Thank you very much! I've got a bunch of files named with a the pattern 99 - DescriptiveName.txt and I'd like to remove the number from the front so I just have DescriptiveName.txt.  How can I do this? Can I do it from the command line or is there a utility that can do this? Floor a date in SQL server In SQL Server, how do I "floor" a DATETIME to the second/minute/hour/day/year?  Let's say that I have a date of 2008-09-17 12:56:53.430, then the output of flooring should be:   Year:  2008-01-01 00:00:00.000 Month: 2008-09-01 00:00:00.000 Day: 2008-09-17 00:00:00.000 Hour: 2008-09-17 12:00:00.000 Minute: 2008-09-17 12:56:00.000 Second: 2008-09-17 12:56:53.000