I want to display All Opportunities associated with the same Product as this OpportunityLineItem
I'm trying to display opportunities associated with an OpportunityLineItem on a Visualforce page on the OpportunityLineItem object   I have a problem in the select I do not know how to retrieve the OpportunityLineItem name in this request I have hard code the OpportunityLineItem name  public List&lt;OpportunityLineItem&gt; getOpp() {     return [SELECT TotalPrice, Opportunity.Name, Opportunity.StageName,                     Opportunity.Account.Name, Opportunity.id, Product2.Name              FROM OpportunityLineItem               WHERE Product2.Name='GenWatt Diesel 10kW'     ]; }
Show that if $a$ is an odd integer and $b$ is an even integer then $\gcd(a,b)=\gcd(a,b/2)$ Show that if $a$ is an odd en integer and $b$ is an even integer then $\gcd(a,b)=\gcd(a,b/2)$.  I understand that since $a$ is not divisible by $2$ but $b$ is, the gcd of $a$ and $b$ also can't be divisible by $2$ but I'm getting stuck using this to help me. 1.7.4 Problem with mobs spawning Which groups have precisely two automorphisms Which groups $G$ have precisely two automorphisms, i.e., precisely one non-trivial automorphism?  Examples: $G= C_3, \mathbf{Z},\ldots$.  I think $G$ has to be abelian. In fact, we have $ \vert G\vert \geq 3$. Therefore, if $G$ is not abelian, we have at least two non-trivial inner automorphisms.  If we can show that $G$ is cyclic the above examples are all of them. Probability associated with experiencing all outcomes Python string prints as [u'String'] This will surely be an easy one but it is really bugging me.   I have a script that reads in a webpage and uses  to parse it. From the soup I extract all the links as my final goal is to print out the link.contents.  All of the text that I am parsing is ASCII. I know that Python treats strings as unicode, and I am sure this is very handy, just of no use in my wee script.   Every time I go to print out a variable that holds 'String' I get [u'String'] printed to the screen. Is there a simple way of getting this back into just ascii or should I write a regex to strip it? What are LiDAR returns? Can someone help with an explanation and some references, in order to understand the nature of return pulses within a LiDAR system. Do we use abstract algebra in real life? Do we use abstract algebra in real life?   Is there any application of abstract algebra in real life? Clear 301-redirect cache in Firefox Is it possible to clear only 301-redirects from Firefox's cache? CTRL+F5 doesn't do the job since you just reload the target without caching but do not clear the cached redirect.  An option to disable caching of those redirects completely would be fine, too - but some way (possibly through an extension) to remove those cached redirects would be better.  Note: I'm not looking for answers that disable all caching (including CSS, JS, etc.) Postfix Connection Timed out I used the  tutorial below to setup postfix and dovecot on a Digital Ocean server. But I'm getting "Connection Timed out" when postfix/smtp tries to deliver an email to a remote host like gmail or yahoo..      RECEIVING A NEW MESSAGE /var/log/mail.log    Feb 2 22:33:38 localhost dovecot: auth-worker: Debug: Loading modules from directory: /usr/lib/dovecot/modules/auth  Feb 2 22:33:38 localhost dovecot: auth-worker: Debug: pam(app,189.63.49.XXX): lookup service=dovecot  Feb 2 22:33:38 localhost dovecot: auth-worker: Debug: pam(app,189.63.49.XXX): #1/1 style=1 msg=Password:   Feb 2 22:33:38 localhost dovecot: auth: Debug: client out: OK#0111#011user=app  Feb 2 22:33:40 localhost postfix/submission/smtpd[1045]: E9AA724264: client=unknown[189.63.49.XXX], sasl_method=PLAIN, sasl_username=app  Feb 2 22:33:43 localhost postfix/cleanup[1052]: E9AA724264: message-id=  Feb 2 22:33:43 localhost postfix/qmgr[32661]: E9AA724264: from=, size=485, nrcpt=1 (queue active)  Feb 2 22:33:45 localhost postfix/submission/smtpd[1045]: disconnect from unknown[189.63.49.XXX]  Feb 2 22:34:14 localhost postfix/smtp[1053]: connect to mta5.am0.yahoodns.net[98.136.216.25]:25: Connection timed out    Feb 2 22:24:21 localhost postfix/smtp[1013]: connect to mta6.am0.yahoodns.net[98.136.217.202]:25: Connection timed out  Feb 2 22:24:21 localhost postfix/smtp[1014]: connect to gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out  Feb 2 22:24:21 localhost postfix/smtp[1015]: connect to gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out  Feb 2 22:24:21 localhost postfix/smtp[1012]: connect to aspmx.l.google.com[173.194.68.27]:25: Connection timed out    Here is /etc/postfix/main.cf   /etc/postfix/master.cf   Result from #> netstat -nlptu Why can't I import a SVG file from Adobe Illustrator or Inkscape? Given the following image:   $\hskip{1.5 in}$   Supposing $A(100, 300)$ and $B(300, 100)$, how can I find the angle $\alpha$ between A and B?  On a side note, what's the main difference between a point and a vector? translating a point to a vector is as simple as Point = Vector? Sometimes I find articles where the terms are interchangable swap x and y axis on data generated plot How to pass argument to script which is input to bash Creation parameters menu greyed out When adding a UV Sphere mesh in Blender 2.8, the creation parameters menu on the bottom left of the attached image for this UV Sphere seems to be greyed out. Any idea why this might be? Thanks. Categorical Principal Component Analysis - using Count, Continuous, Ordinal variables together I have some variables and I want to reduce their number for further analysis. I initially thought of combining them using factor analysis. But since the variables are of all kinds (rating, count, ordinal, continuous dollar amount) I am thinking about using CATPCA for it. However, I have some questions about the technique -   Is CATPCA the right approach or Latent Class Factor Analysis would be the better one? By using the different kinds of variables together - how will the object scores be interpreted? For example - The rating question is on a 10 point scale but the dollar amount ranges from 0 to 1000s, so what will the object score obtained after CATPCA represent? And is it comparable to the Factor Score obtained from traditional PCA? For ordinal variables - Do all of them need to be in the same form, e.g. 1 meaning lowest and 10 meaning highest? Or can they be used in whatever form they are? Is it good to categorize the count and continuous variables based on their distribution and then treat then as ordinal/categorical variables?   I would highly appreciate any help you can provide! What is the appropriate statistical test when calculating the busiest day of the week? We have 10 years of data and Monday is the busiest (most visits to the hospital) on average. If we wanted to assess whether that is true and report a p-value, what is the appropriate statistic?   We believe the answer is chi-square as we found a peer-reviewed medical article from the Annals of Emergency Medicine (highest circulating journal for that specialty) that used chi-square for this very calculation.   If chi-square is appropriate, what values do we use for observed and expected values for chi-square? One approach would be to list all the values for Monday as observed values, or all the means for Mondays averaged across a month, or all the means for Mondays averaged across a year.  If there were no busiest or least busy days, we would assume that the visits would be the same every day of the week. That means our "expected values" for Chi-Square would be the mean of the visits for any given week. Why does the following hold:  \begin{equation*} \displaystyle \sum\limits_{n=0}^{\infty} 0.7^n=\frac{1}{1-0.7} = 10/3\quad ? \end{equation*}  Can we generalize the above to      $\displaystyle \sum_{n=0}^{\infty} x^n = \frac{1}{1-x}$ ?   Are there some values of $x$ for which the above formula is invalid?  What about if we take only a finite number of terms? Is there a simpler formula?     $\displaystyle \sum_{n=0}^{N} x^n$   Is there a name for such a sequence?    This is being repurposed in an effort to cut down on duplicates, see here: Coping with  duplicate questions.  and here: . Random Gaussian Variables Is there a class in the standard library of .NET that gives me the functionality to create random variables that follow Gaussian distribution? Spinning bike's pedals are way bigger than the cleat pedals I have. What size do I need? How do I add Python to the Windows PATH? I want to be able to run Python commands from the Windows CMD. However, if I don't specify Python's full path for each command, I get an error saying "Python is not recognized as an internal or external command, operable program or batch file."  How do I add Python to the Windows PATH permanently?