Delete sharing in a Trigger
How do I bulkify queries for directly or indirectly related records?
So lets say I have this interface:  public interface IBox {    public void setSize(int size);    public int getSize();    public int getArea();   //...and so on }   And I have a class that implements it:  public class Rectangle implements IBox {    private int size;    //Methods here }   If I wanted to use the interface IBox, i can't actually create an instance of it, in the way:  public static void main(String args[]) {     Ibox myBox=new Ibox(); }   right? So I'd actually have to do this:  public static void main(String args[]) {     Rectangle myBox=new Rectangle(); }   If that's true, then the only purpose of interfaces is to make sure that the class which implements an interface has got the correct methods in it as described by an interface? Or is there any other use of interfaces? I've purchased a Canon EF 50mm f/1.8 II. But I'm really disappointed in the results, especially when using it for night photography. :(  In my night shots a lot of lens flare appears in my photos. I've tried to change the angle and position of the camera to no avail. Also I cannot do any night photo without directing my camera to direct light like in street photography!  This photo was taken with my Canon 650D and 50mm 1.8 Lens in a long exposure night shot, and as you notice there is a bunch of lens flare in it. Some people suggested I remove the UV filter. This decreased the lens flare a little but there is still some flare in the photo .    I want to know if there is a problem with the lens? Or is this normal for a $100 lens? Does anyone else have a similar experience with this lens? If a function $f$ defined on $[a,b]$ and differentiable everywhere, does it mean that its derivative $f'(x)$ is continuous everywhere on $[a,b]$?  My understanding is 'yes'. Because if there were 'a gap' in $f'(x)$, we could integrate back to $f(x)$ and show that where the gap is, there would be a sharp "angle" where $f(x)$ is not differentiable. Reading about  I understood that black holes lose energy over time - which is logical in some way (otherwise they would be there forever and heat death would never technically happen)  But - how exactly does it "evaporate"? What happens when it no longer contains enough mass within it's  ? Does it explode somehow? Transforms into "regular matter"? Simply vanishes over time? Or? Pygame - blitting from x and y cordinates of image Ran out of inodes - 100% Full I am using Ubuntu 16.04 on AWS EC2 instance which has been working fine until this problem.  My problem is that I've used 100% of available inodes, as I discovered with this command:  $ df -i Filesystem     Inodes  IUsed  IFree IUse% Mounted on udev           124464    360 124104    1% /dev tmpfs          126787    449 126338    1% /run /dev/xvda1     524288 522638   1650  100% / tmpfs          126787      1 126786    1% /dev/shm tmpfs          126787      5 126782    1% /run/lock tmpfs          126787     16 126771    1% /sys/fs/cgroup tmpfs          126793      4 126789    1% /run/user/1000   The main culprits I discovered:  $ find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n    1155 /usr/src/linux-headers-4.4.0-62/include/linux    1155 /usr/src/linux-headers-4.4.0-65/include/linux    1155 /usr/src/linux-headers-4.4.0-66/include/linux    1155 /usr/src/linux-headers-4.4.0-70/include/linux    1155 /usr/src/linux-headers-4.4.0-71/include/linux    1155 /usr/src/linux-headers-4.4.0-72/include/linux    1155 /usr/src/linux-headers-4.4.0-75/include/linux    1155 /usr/src/linux-headers-4.4.0-78/include/linux    1155 /usr/src/linux-headers-4.4.0-79/include/linux    1155 /usr/src/linux-headers-4.4.0-81/include/linux    1155 /usr/src/linux-headers-4.4.0-83/include/linux    1155 /usr/src/linux-headers-4.4.0-87/include/linux    1155 /usr/src/linux-headers-4.4.0-89/include/linux    1155 /usr/src/linux-headers-4.4.0-91/include/linux    1155 /usr/src/linux-headers-4.4.0-92/include/linux    1514 /usr/src/linux-headers-4.4.0-62-generic/include/config    1516 /usr/src/linux-headers-4.4.0-65-generic/include/config    1516 /usr/src/linux-headers-4.4.0-66-generic/include/config    1516 /usr/src/linux-headers-4.4.0-70-generic/include/config    1516 /usr/src/linux-headers-4.4.0-71-generic/include/config    1516 /usr/src/linux-headers-4.4.0-72-generic/include/config    1516 /usr/src/linux-headers-4.4.0-75-generic/include/config    1517 /usr/src/linux-headers-4.4.0-78-generic/include/config    1517 /usr/src/linux-headers-4.4.0-79-generic/include/config    1517 /usr/src/linux-headers-4.4.0-81-generic/include/config    1517 /usr/src/linux-headers-4.4.0-83-generic/include/config    1517 /usr/src/linux-headers-4.4.0-87-generic/include/config    1517 /usr/src/linux-headers-4.4.0-89-generic/include/config    1517 /usr/src/linux-headers-4.4.0-91-generic/include/config    1517 /usr/src/linux-headers-4.4.0-92-generic/include/config    1517 /usr/src/linux-headers-4.4.0-93-generic/include/config   Is it safe to delete these files, and if yes could you please tell me the exact command or commands to use on my PuTTY client? Collinearity can pose certain problems in various kinds of regression problem. In particular, it can make the parameter estimates have high variance and be unstable.   Various methods have been proposed to deal with this including ridge regression, partial least squares regression, principal components regression, dropping variables and getting more data.   One method that is controversial is standardizing or scaling the independent variables, with various experts saying it is a good (e.g. Garcia) or bad (e.g. Belsley) idea. Belsley's issue seems to be (in non-technical terms) that changing the IVs just pushes the problem under the rug.  But other experts seem not to agree. And the authors tend to get rather heated in defending their own positions.   Back when I did my dissertation (on collinearity diagnostics) I found Belsley's arguments convincing, but that was long ago (I got my degree in 1999).  I'm looking either for expert guidance or for any current review article that is unbiased. How many complements are in "I ask you to clean the room"? How many complements are needed in the below sentence?     "I ask you to clean the room."   This sentence above has one complement or two complements? Can't watch youtube videos with chromium on ubuntu 13.04 64-bit I've digged all over google but I can't find any solution to my problem.   Firefox works pretty well. I have this issue only with chromium and only with youtube. I have no problem watching videos at any other site with chromium.   When I try to watch a video a black screen occurs and after a while it gives me the warning "an error occurred". Weirdly, sometimes when I try a couple of refreshing it starts to play but then the issue occurs again.  I tried removing-reinstalling chromium or the flash plugin but it did not do any good. I am having a lot of trouble with these series questions. Up until this point, I had relatively little trouble with all the questions in the book. These seem to require knowledge about approximations of functions and other external experience-based knowledge, which I just don't have yet.  Determine convergence or divergence of the given series. In the case of convergence, determine whether the series converges absolutely or conditionally.  $$\sum_{n=1}^\infty (-1)^n\left[e-\left(1+\frac 1 n \right)^n\right]$$  It's easy to see that  $$\lim_{n\to\infty}\left[e-\left(1+\frac 1 n\right)^n\right]=0$$  however, in order to apply Leibniz's Rule and show conditional convergence I need to show that the sequence is monotonically decreasing. This doesn't seem doable with straight inequalities, so I tried taking the derivative, which just resulted in an uninterpretable mess. This doesn't even begin to address the question of absolute convergence/divergence.  There are 54 of these questions... I must be missing something really fundamental if they all take this long. GNU find and masking the {} for some shells - which? How many Marvel Earths (Universes) are there? How to pronounce '-ing' followed by a vowel I'm getting into English recently and I'm a little confused by the way people pronounce a word that starts in a vowel right after a word ending in -ing.  For example:      You have to bring it up now?   I don't know if I should pronounce it as:   bring /ŋit/ brin' /nit/ bring /git/   Another example would be "I'm coming out".  Likewise, what about the ending -ang? For example:      We can just hang out and have a good time.    And to round it all up, what about a combination of the two? For example,      He got sick of hanging around waiting for you and went home.   I've been asking myself these questions for weeks. The suffix -phobia means fear of, often irrational fear of.  For example, according to Wikipedia:       or ophiophobia is a particular type of specific phobia,   the abnormal fear of snakes.   Is there a suffix attachable to ophidio- which would describe a person who is not afraid of snakes, except for, say, a coiled rattler encountered on a trail, but who dislikes them and would not willingly share space with one?  Similarly, an  (don't click here if you are at all arachnophobic) is someone who loves spiders.  Is there a suffix for someone who likes spiders but does not love them?  These are Greek suffixes, and the Greeks, theoretically, were in favor of moderation.  So, are there suffixes in use in English, derivable from Greek or not, for moderate like and moderate dislike?    Edit to explain why the question:  "Is there a suffix for loathing" does not answer my question.  My question is NOT about fear and/or loathing.  My question is about moderate dislike (and moderate like).  I can watch a snake cross my driveway with interest, but would not want it in the house or lounging on my patio.   A person who loathed snakes would not be able to admire the smooth motion of the snake as it glided over the rough gravel and disappeared into the woods.  Loathe is very different from moderate dislike; Phobia is very different from caution. Possible Duplicate:          I'm working on a website that displays distance to various locations to the nearest 1/10 mile. One of the developers (a non-native speaker) asked me an interesting question: If the distance is 1.0 mile(s), is that singular or plural? Clearly, anything other that 1.0 is plural, but is it:     1.0 miles away   or     1.0 mile away   The first option sounds more correct to my ear, but the voice of my elementary school language arts tells me that the latter option is correct.  Edit: Added the word 'away' to the example. It doesn't change the question, but might provide clarity for the answer. Also, regarding numbers between 0 and 1, after more thought, I'm not sure that the answer is as clear as I originally thought. See . I used to say "sharp sign" to refer to the # sign.   Today a friend told me that the correct term is number sign or hash sign or even just hash.  What is the difference between these options and what's the correct usage of the names for this sign? Is there anybody who can help me show the following?      $$ \sum_{x=0}^{n-1} \cos\left(k +x{2\pi\over n}\right) =0  \qquad\hbox{and}\qquad  \sum_{x=0}^{n-1} \sin\left(k +x{2\pi\over n}\right) =0 $$   I can only prove this claim for the sine expression when $k=0$, by grouping the output values such that they all cancel out (for both $n$ even and odd). I have thought about using complex numbers in exponential form to prove it, but I can't do it ... :P   I would really appreciate an algerbraic proof. iPhone App › Add voice recognition? Returning an unevaluated expression with values substituted in Python: [Errno 2] No such file or directory: 'lines.txt'