My Trigger is here.  Invoice is custom Object which have Look up relationship with Account.  Help me with bulkifying this Trigger.  trigger InvAmountUpdate on Invoice__c (After Update) {     for(Invoice__c inv:Trigger.New)     {         Account acc=new Account();         acc=[Select id,Account_Balance__c From Account Where id =:inv.Account__c];          if(acc.Account_Balance__c==null)             acc.Account_Balance__c=0;            Invoice__c  invOld=Trigger.oldMap.get(inv.id);         if(inv.Invoice_Amount__c!=invOld.Invoice_Amount__c)             acc.Account_Balance__c=acc.Account_Balance__c-invOld.Invoice_Amount__c+inv.Invoice_Amount__c;      update acc;     } }
trigger AccountReplicate on Account (after delete, after insert, after update) {     if ( trigger.isInsert ) {         for ( Account acc : trigger.new ) {             AccountOne__c ac = new AccountOne__c();             ac.Fax__c = acc.Fax;             ac.Phone__c = acc.Phone;             ac.Name =acc.Name;             insert ac;         }     }      if ( trigger.isUpdate ) {         integer  i = 0;         list&lt;AccountOne__c&gt; a2 = new list&lt;AccountOne__c&gt;([SELECT Id                                                         FROM AccountOne__c                                                         WHERE Name =: trigger.old[i].Name ]);         for ( AccountOne__c c1 : a2 ) {             c1.Name = trigger.new[i].name;             c1.Fax__C = trigger.new[i].Fax;             c1.Phone__C = trigger.new[i].Phone;             i++;         }         update a2;     } }   I tried bulk trigger for the update operation, but it's not working can anyone help me?
What is the order when doing $x^{y^z}$ and why? I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial?    Kindly help me explain it with detailed explanation. Is it possible to make an EXACT ISO of my system to put on other computers? I am new to linux, but had a question. I am getting in the business of buying old computers, putting Linux on them, then donating them to students who don't have their own computer at home. I have gone through and installed Xubuntu on my system, installed/uninstalled all the software that I want/need, and now want to know if there is a way that I could make an ISO of my system, and put it onto ANOTHER computer, and still have all of my tweaks, and programs ready to go after the ISO has installed. That way I don't need to go through and spend an hour or two on every computer.   What programs would you recommend for creating an ISO like this?   Thanks, Tobin Is 45 mins enough in Newark airport terminal C to change the plane for connecting flight? Prove the inequality $\frac{a}{c+a-b}+\frac{b}{a+b-c}+\frac{c}{b+c-a}\ge{3}$ What is the difference between IQueryable and IEnumerable? What is the difference between IQueryable&lt;T&gt; and IEnumerable&lt;T&gt;?    See also  that overlaps with this question. Anti-Matter Black Holes Assuming for a second that there were a pocket of anti matter somewhere sufficiently large to form all the type of object we can see forming from normal matter - then one of these objects would be a black hole.  Question is, would there be a difference between an anti matter black hole and a normal matter black hole - in terms of how would the matter/anti-matter make the black hole different, or would they be the same?  I would expect the answer to be that the black hole formed from anti matter would retain the anti-matter properties in such a way that if it was to merge with a black hole at same size formed from normal matter that they would annihilate  each other con convert into pure energy - Would that be a correct understanding? How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule? How do I get the icon associated with a file type? I have a form that displays file information in a TabControl, and I'd like the pages to have the file's icon in their tab.  How do I get the icon associated with a file type?  I'd prefer solutions that don't involve looking things up in the registry, but if that's the only way then so be it. Is there an easy way to see associativity or non-associativity from an operation's table? Most properties of a single binary operation can be easily read of from the operation's table. For example, given $$\begin{array}{c|ccccc} \cdot &amp; a &amp; b &amp; c &amp; d &amp; e\\\hline a     &amp; e &amp; d &amp; b &amp; a &amp; c\\ b     &amp; d &amp; c &amp; e &amp; b &amp; a\\ c     &amp; b &amp; e &amp; a &amp; c &amp; d\\ d     &amp; a &amp; b &amp; c &amp; d &amp; e\\ e     &amp; c &amp; a &amp; d &amp; e &amp; b \end{array}$$ it is easy to check that it is closed (no elements occur in the table which don't occur as row or column index), commutative (the table is symmetric), has a neutral element (the row and column of $d$ are copies of the index row/column), and has an inverse element for each element (there's a $d$ in each row and column). In other words, almost all important properties can immediately be seen. The only part missing is associativity.  Therefore my question: Is there a simple way to see directly from the operation's table (i.e. without doing explicitly all the calculations) if an operation is associative? Prove that $f'(a)=\lim_{x\rightarrow a}f'(x)$. Convert Shapefiles to GeoJSON? I'm trying to convert Shapefiles from the  website into a GeoJSON file for use with Google Maps API. I'm using QGIS to facilitate but I can't get the projection/coordinates right. So far I've tried Google Mercator (EPSG:900913) and WGS 84 (EPSG:4326) with no luck. I'm using the OpenLayers to verify results and it keeps placing Texas near the  Gulf of Guinea (0 lat, 0 lng). Is 225.225.225.128 a valid subnet mask? It is becoming more common for people to explicitly state the pronouns to be used in addressing themselves: he/him, she/her, or they/them. For example, a name tag for a conference might read:  Cory Lopez Some Company She/Her   Usage seems to have settled on the singular they and them as gender neutral pronouns. Alternatives that were once widespread in niche communities, such as sie/hir, seem to have died out.   Whether or not one agrees with this language  shift, the pairing between subject and object case is fixed.  It's difficult to imagine someone who uses "he" as his subject case using anything but "him" as object case, and it's even harder to imagine that such a person would succeed in getting people to use a non-obvious collection of personal pronouns. (And you may see what I did -- flat out assumed that "he" and "his" automatically go together.)  What are the roots of the practice of presenting subject and object case pronouns as opposed to just subject case, subject and possessive, or some other combination?   (Note: I am not interested in a discussion of the gender politics and cultural shifts involved, just the mechanics of how the current representation was chosen.) Journals selection - alternative criteria to impact factor While trying to select the journals I can submit my present work and future work, I realize the time between the date the authors send the article to the journal and when the revised article is submitted. Usually this is something between 6 months and more than 12 months.  Althought I am focusing on the Impact Factor (IF) to select journals, I think that 12 months to have a feedback that might include "add more variables analysis","this article will be more valuable if you test also model x,y and z", can have a huge impact on you work. It will make you stop what you are currently doing and possible spend up to 2 months making the changes. This might make a big mess on your work if you have deadlines to respect, however this happens to everyone in academia.  My question is, besides the IF journal based selection, how can we select a journal with enought quality with lower IF? What alternative criteria should one use to select the journal? Should we choose newly created Journals? how to prove $G_1$ and $G_2$ aren't isomorphic? If $u$ is harmonic and bounded in $0 < |z| < \rho$, show that the origin is a removable singularity This is a reworking of a previous question  which was marked as a duplicate. Some nice folks have referred me to solutions to similar problems. I still have a couple of questions, since one of the solutions used the Poisson kernel, which is not the desired solution in the text, because the Poisson kernel has not been introduced yet. The other solutions were for problems that were similar, but whose solutions were only partially applicable, as I understand them.  I'm working on a problem from p. 166 of Lars Ahlfors' Complex Analysis:     If $u$ is harmonic and bounded in $0 &lt; |z| &lt; \rho$, show that the origin is a removable singularity in the sense that $u$ becomes harmonic in $|z|&lt;\rho$ when $u(0)$ is properly defined.   My Solution So Far:   Here's what I've got for a non-Poisson kernel solution: We want to find a harmonic conjugate for $u$ in the punctured disk, and then we can apply big Picard to show that $0$ is a removable singularity. The problem is that the punctured disc is not simply connected.   If we take $\sigma = (u \circ \exp)(z): L \to \mathbb{C}$, where $L$ is the left half-plane, now we have $\sigma$ harmonic, and defined in a simply connected set $L$, so it has a harmonic conjugate $\tau$. Now we wish to take $v = (\tau \circ \log):\{0 &lt; |z| &lt; \rho\}\to \mathbb{C}$, but in order to do so we need $\tau$ to be $2\pi i$-periodic. This is where my proof breaks down.  One of the similar problems which readers referred me to used the following strategy: note that since $\sigma$ is $2\pi i$-periodic, and $\sigma, \tau$ satisfy the Cauchy-Riemann equations, we have that $\nabla\tau(z) = \nabla\tau(z + 2 \pi i)$ for all $z\in L$, or in other words, $\tau(z) - \tau(z+2\pi i)$ is a constant function, say, equal to $\alpha \in \mathbb{R}$. Then, the solution suggests, we can set $$g(z) = u + iv - \frac{c}{2\pi}z,$$  in order to make $g$ $2\pi i$-periodic, and then we can use $(g\circ \log)$ on $\{0 &lt; |z| &lt; \rho\}$. But the reason why this won't work for my purposes is: now we have changed $u$! On the other hand, we can't simply subtract $\frac{c}{2\pi}\Im{(z)}$, and try to leave $u$ untouched, because now $g$ is not analytic. How can we get around this?  Another strategy entirely might be to try to use the mean-value property. Ahlfors discusses that a lot in the preceding section, and his main example is the punctured disc. Since $u$ is harmonic, we know that the average over circles centered at zero is a constant... How to list files that were changed in a certain range of time? How can I list recursively all files that were changed between 22.12.2011 and 24.12.2011? Lie algebra of $\left(\begin{smallmatrix}a & b\\ & a^2\end{smallmatrix}\right )$ in $GL_2(\mathbb{R})$ Problem. Assume that $U$ is an open and connected subset of $\mathbb R^2$, and $\gamma :[0,1]\to U$ is a closed curve, which is not null-homotopic in $U$ and not necessarily simple closed. Show that there exists a simple closed curve, which is not null-homotopic in $U$.  I am sure that this is a standard problem, and I am looking for an elegant, if possible, solution or a reference. I have in mind the following sketch of proof:  a. Construct a polygonal closed curve $\tilde\gamma$ which is homotopic with $\gamma$ in $U$.  b. Construct $\tilde\gamma$ so that it intersects itself in finitely many points, and not whole segments.  c. Use induction on the number of self–intersections of $\tilde\gamma$, in order to show that $\tilde\gamma$ is written as a product (in the fundamental group's sense) of simple closed polygonal curves.