I'm trying to populate the sum(total selling price)of child object on to the "total order item value"{currecny data type field} of parent object. Here is the code  trigger Rollup on OSF_Order_Items__c (after delete,after insert,after update,after Undelete) {  set&lt;Id&gt;OpportunityIds=new set&lt;Id&gt;(); if(trigger.isInsert || trigger.isUpdate || trigger.isUnDelete){ for(OSF_Order_Items__c o:trigger.new){ OpportunityIds.add(o.Opportunity__c); } } if(trigger.isDelete) { for(OSF_Order_Items__c o:trigger.old){ OpportunityIds.add(o.Opportunity__c); }} Map&lt;Id,Double&gt;OpportunityMap=new Map&lt;Id,Double&gt;(); for(AggregateResult q:[select Opportunity__c,sum(Total_Selling_Price__c)from OSF_Order_Items__c where Opportunity__c IN:OpportunityIds group by Opportunity__C]){ OpportunityMap.put((Id)q.get('Opportunity__c'),(Double)q.get('expr0')); } List&lt;Opportunity&gt;OpportunitiesToUpdate = new List&lt;Opportunity&gt;(); for(Opportunity o:[Select Id,**convertcurrency(Test_Total_Order_Item__c)** from Opportunity where Id IN:OpportunityIds]){ Double Item =OpportunityMap.get(o.Id); o.Test_Total_Order_Item__c=Item; OpportunitiesToUpdate.add(o); } update OpportunitiesToUpdate; }   Problem: The vaule which was returned was not coorect. for example the value expected is USD 15,561 AND result is USD 11335. I observe 11335 is and euro euivalent of 1556l. my org currency is euro.  i want to display the sum of child along with userdefined currency on to the parent as it is. any luck?
I am confused by the behaviour of Currency fields in Multi-Currency environments. My app does a calculation on day X and stores its result in a record.  The custom page which displays a SUM of those values should always display the same as a database query. But...it does not. If I change Exchanges Rates those values change.  Was it wrong to store currency values in a Currency field, am I querying incorrectly or do I need to display a values that is manually calculated?  How does Multi-Currency and Currency fields work together? When are currency values converted and which conversion rate is taken into account?  I am confused?!
Nautilus not generating thumbnails in 13.10 Like the title says, Nautilus is not generating thumbnails for any file types (pictures, documents, pdf, etc) after a clean install of 13.10.  I have checked the preferences and it is set to always generate thumbnails.  Help please! MySQL string replace Were there any canon examples of Harry being an innately powerful wizard? Was Harry Potter an innately powerful/skillful Wizard in any way, based on canon?  It seems that whenever Harry Potter performed some unusually potent bit of magic (potent as far as require raw power AND/OR skill), most of the time we find that it wasn’t innately Harry’s skill, but a combination of:   some extraneous magic forces/rules/powers circumstance great reaction time (which is obviously extraordinary from his Quidditch playing; and is likely a larger factor in his dueling than the strength of his magic) general smartness or (the part that Harry’s detractors, including Voldemort missed) Harry’s strength of character/personality   The only two counter-examples I can think of which show him as having extraordinary or at least obviously above average magical abilities are:   His skill at flying brooms - while a part of it is pure physical skill, at least part is magical. His (corporeal) Patronus charm   As far as examples of his unusual feats being due to reasons listed above:   Obviously, surviving Avada Kedavra as an infant - due to Lily’s sacrifice Parselmouth talent - proxied via Voldemort’s piece of soul. Ability to see the Sorcerer’s Stone in the Mirror of Erised - due to purity of his character, nothing magical. Obvious lack of talent at potion making throughout all of the books (sans cheating in HBP) His win over the Basilisk - due to Hermione’s research, character traits, and as a consequence of the last one, getting Fawkes and Gryffindor’s Sword’s help.  Just to be clear, before someone flames me - what he did was obviously super extraordinary, BUT IMHO he would have achieved the same result if he was turned into a Squib for the duration of Chamber of Secrets fight. TriWizard Tournament entry - wasn’t him, it was Barty Crouch TriWizard Tournament second challenge - a combination of character and outside help (someone told him about Gillyweed) TriWizard Tournament third challenge - Mostly, Barty Crouch’s cheating  Note that I’m omitting the first challenge, since that one was the aforementioned Broom flying skills. His survival in the cemetery after Voldemort’s return - again, a combination of superior strength of character and super powerful wandlore magic that had nothing to do with his skill as a Wizard. The whole “last Horcrux” thing when surviving the second Avada Kedavra from Voldemort His ownership of the Elder Wand in the very last duel with Voldemort.   So, to paraphrase my original question, was there any canon/JKR evidence that Harry was anything but a completely average/mediocre wizard in any way, shape, or form if you take into account only his own magical abilities and skills? Can I use 'in' instead of 'at'? -- "I have more books in my house." I am learning English using the Duolingo English course, one of correct solution was      I have more books at my house.   Can I use      I have more books in my house.   If it is OK, what is the difference between both? Let $f(\sin x)$ be a given function of $\sin x$.   How would I show that $\int_0^\pi xf(\sin x)dx=\frac{1}{2}\pi\int_0^\pi f(\sin x)dx$? While reviewing First Posts on Super User, I noticed that I couldn't edit this question (see below). Clicking the &quot;edit&quot; link simply does nothing. Editing is not possible for me right now because I have already five suggested edits pending. It used to be the case that the link would've been grayed out (and the reason shown as a popover). , and while I'm not sure it's an improvement, the current implementation needs some fixing at least.  This bug appears regardless of the actual reason that the edit isn't possible; for instance,  is another user experiencing the same bug who couldn't suggest an edit because of an already pending one. Apparently, I'm far from the only one who experiences this issue. As of last Sunday morning,  have been posted networkwide (and are still alive) and  is #16. Virtual member call in a constructor How can I start a process over SSH such that it will continue to run after I disconnect? My Ubuntu is running fsck on every bootup How to download packages from a command-line given repository? I want to prove that $\mathbb{Q}$ is countable. So basically, I could find a bijection from $\mathbb{Q}$ to $\mathbb{N}$. But I have also recently proved that $\mathbb{Z}$ is countable, so is it equivalent to find a bijection from $\mathbb{Q}$ to $\mathbb{Z}$? Where to find cross section data for $e^{-}$ + $p$ $\longrightarrow$  $p$ + $e^{-}$ ?  does not include it. I need to calculate the following determinant in order to prove the following equality:  $$\det\begin{pmatrix} a &amp; b &amp; c &amp; d \\ -b &amp; a &amp; -d &amp; c \\ -c &amp; d &amp; a &amp; -b \\ -d &amp; -c &amp; b &amp; a \end{pmatrix} = (a^2+b^2+c^2+d^2)^2.$$  I tried using Gauss-algorithm to get an easier matrix, but I'm not sure if I did it correctly.  Calling the $4$ lines $I$, $II$, $III$ and $IV$, I did:  (1) $II \cdot a$  (2) $III \cdot a$  (3) $IV \cdot a$  After this I did:  (4) $II' + I \cdot b$  (5) $III' + I \cdot c$  (6) $IV' + I \cdot d$  So finally I got the following matrix:  $$\begin{pmatrix} a &amp; b &amp; c &amp; d \\ 0 &amp; a^2+b^2 &amp; bc-ad &amp; ac+bd \\ 0 &amp; ad+bc &amp; a^2+c^2 &amp; cd-ab \\ 0 &amp; bd-ac &amp; ab-cd &amp; a^2+d^2 \end{pmatrix}.$$  I thought this would make the determinant a bit easier, unfortunately I must have done something wrong. Is multiplication with single lines allowed as I have done it?  Thank you very much. Live CD asks for a username and password Most efficient way to check for DBNull and then assign to a variable? If we can construct lines of distance $1$ and $x$, then how do we construct a line of distance $x^2$? The author is trying to prove it is impossible to square a circle of radius $1$ under the assumption that $\pi$ is transcendental. Even with this assumption, the author explains that if the circle can be squared, then we could draw a line with distance $\pi^{1/2}$. Everything good at the moment. Then he claims that, if such construction is possible, we could also draw a line of distance $\pi$, and that the proof would, under the stated assumption, be complete.     The thing I don't get is how, from a line with distance $\pi^{1/2}$, we could create a line with distance $\pi$. What is the difference between building from source and using an install package? I was wondering: when installing something, there's an easy way of double clicking an install executable file, and on the other hand, there is a way of building it from source.   The latter one, downloading a source bundle, is really cumbersome.  But what is the fundamental difference between these two methods? How to get hardware specs of Android device? Why can't variable names start with numbers? Let $G$ be a lie group with lie algebra $\frak{g}$. Let $Aut(\frak g)$ be the automorphism group of $\frak{g}$.   Its clear to me that $Aut(\frak{g})$ $\subset GL(\frak{g})$ since any automorphism of $\frak{g}$ is also a linear transformation. Now i have several questions:   How do i prove that $Aut(\frak{g})$ is actually a lie subgroup of $GL(\frak{g})$? I've tried playing with actions to realize $Aut(\frak g)$ as an orbit or an isotropy subgroup but nothing worked out... Say $H \subset G$ is an abstract subgroup (not necessarily lie). Are the following statements equivalent?   $$\{T_e H \text{  is closed under the lie bracket of } \frak{g} \}$$  $$ \{H \text{is a lie subgroup of } G\}$$   How does the lie algebra of $Aut(\frak g)$ look like? When does $Aut(\frak g)$ $= G$? what does $Aut(\frak g)$ tell me about $G$?