I want to prevent my MAC from creating ._file_name files on external memory drives that I plug into it. I think I've turned off Spotlight completely. However, such files keep getting created. How to fix that?
I am using different operating systems on different machines on different locations. I am using a USB flash disk to keep my files (source codes etc.).  I am new to Mac OS X and now I realize there are lots of files created with a dot underscore ._ prefix.  Questions  Why are ._ files created?   What are their purpose?   How can I avoid them?
Are there any rules on the positioning adverbs should take in a sentence? I am working on a proof about Dedekind cuts on the positive rational numbers. I have been stuck for a while on the following point and would appreciate any help.  Given $x\in \mathbb{Q}^+$ such that $x^2&lt;2$, how to find $y\in \mathbb{Q}^+$ such $y&gt;x$ and $y^2&lt;2$? Transforming Differential Equation to a Kummer's Equation I'm trying to transform an equation of the form $$ yw^{\prime\prime}(y) - [b - ay] w^\prime(y) - [d + ey]w(y) = 0 $$ into the form of a Kummer's or confluent hypergeometric differential equation: $$ y w^{\prime\prime}(y) + [f - y] w^\prime(y) + g w(y)  = 0 $$ I know it may have something to do with merging two of the singularities of the original equation, and maybe doing something with $y$, making it $\frac{y}{b}$ and taking b to infinity, but I don't know and can't find the details for this process, and for my equation specifically. There's not too much difference between the two but just enough so that I can't get it. Thanks in advance for any help! How to install Eclipse? I want to install the latest version of Eclipse but the Ubuntu Software Centre contains an older version.  Is there a PPA or some other way to install latest Eclipse? Please describe the steps for full installation. How to sort lines with >> double angle brackets? It seems that sort behaves strangely on lines such as &gt;&gt;b    $ cat test a &gt;&gt;b b c &gt; &gt;&gt;  $ sort test &gt; &gt;&gt; a b &gt;&gt;b c   I would expect the &gt;&gt;b line to be the third line output by sort but it is the fifth. Why does it do this and is there a way to make sort give my expected output?    I'm using GNU/Linux Ubuntu 16.04. As far as I can tell downvoting is mostly useless.     For questions the only people who get downvoted are lower rep users, or incredibly stupid questions    most questions that are downvoted get closed anyway which should be sufficient downvoting doesn't have too much affect on your rep anyway a negative comment is more useful and more of a push too change or delete the question  For answers downvoting is often used incorrectly as well   people commonly competitively downvote (downvoting another answer to a question that you also answered) obviously not a good behavior downvoting (and upvoting) are contagious, meaning one downvote leads to a bunch of others even though downvotes don't effect rep that much they create a negative environment, no one wants their post downvoted, on the other hand criticizing comments, I think, are far more welcome      So basically in a nutshell a downvote serves no real purpose even if a post deserves it. Flagging, closing and commenting are much more useful to everyone including the poster than downvoting so why have it.    I now see from the answers and comments that downvotes do serve a purpose and would like to retract my request. Diagonalizable matrix with parameters $$     \begin{bmatrix}     -2 &amp; -2 &amp; 0 &amp; 0 \\     -b &amp; -b &amp; 0 &amp; 0 \\      0 &amp; 0 &amp; -4 &amp; 4 \\      0 &amp; 0 &amp; b &amp; -b \\     \end{bmatrix} $$  I have this matrix and I need to find the values for $b$ that this matrix won't  be diagonalizable.  For what I got this matrix is diagonalizable for every $b$ value.  Please write me also the final answer, thank you very much. creating a tar archive without including parent directory I am trying to create a graphical program for my script.  Inside the script I use tar to create a tar archive.  From the graphical program I get the full name of file that I want to create a tar archive.  tar -cvf temp.tar /home/username/dir1/dir2/selecteddir    My tar archive includes home, username, dir1, dir2 and selecteddir while i want tar to create archive only including selecteddir. Limiting floats to two decimal points Rollup Summary Trigger Help I am trying to create an Apex Trigger that performs a Rollup from a custom object to Contacts.   Here is the error that I am receiving:      Didn't understand relationship 'Assignments__r' in FROM part of query   call. If you are attempting to use a custom relationship, be sure to   append the '__r' after the custom relationship name. Please reference   your WSDL or the describe call for the appropriate names.   The child relationship name is Assignments.  Below is the code:      trigger RollupActiveAssigmentLevelsToContact on pse__Assignment__c (after insert, after update, after delete) {      set&lt;Id&gt; set_id = new set&lt;Id&gt;();      List&lt;Contact&gt; con_list = new List&lt;Contact&gt;();      if(trigger.isInsert || trigger.isUpdate){         for(pse__Assignment__c myAssignment : trigger.New) {             set_id.add(myAssignment.pse__Resource__c);         }     }     else if(trigger.isDelete){         for(pse__Assignment__c myAssignment : trigger.Old){             set_id.add(myAssignment.pse__Resource__c);         }     }      if(trigger.isAfter &amp;&amp; (trigger.isInsert || trigger.isUpdate || trigger.isDelete)){         con_list = [SELECT id,Total_Levels__c, (SELECT id,name FROM Assignments__r WHERE Active_Assignment__c = TRUE) FROM Contact WHERE id IN :set_id];          for(Contact con : con_list){             if(con.Assignments__r.size()&gt;0)                 con.Total_Levels__c = con.Assignments__r.size();             else                 con.Total_Levels__c = 0;         }         if(!con_list.isEmpty())         update con_list;     } }   Below is a snap of the Child Relationship name: Proper use of the IDisposable interface Escape string for use in Javascript regex What is the most portable method of launching a terminal emulator? In my CMS, I noticed that directories need the executable bit (+x) set for the user to open them. Why is the execute permission required to read a directory, and how do directory permissions in Linux work? Prove that the square root of a positive integer is either an integer or irrational Is my proof that the square root of a positive integer is either an integer or an irrational number correct?  The proof goes like this:  Suppose an arbitrary number n, where n is non-negative. If $\sqrt{n}$ is an integer, then $\sqrt{n}$ must be rational. Since $\sqrt{n}$ is an integer, we can conclude that n is a square number, that is  for some integer a.  Therefore, if n is a square number, then $\sqrt{n}$ is rational.  Suppose now that n is not a square number, we want to show that the square root of any non-square number is irrational.  We prove by contradiction. That is, we suppose that the square root of any non-square number is rational. So $\sqrt{n} = \frac{a}{b}$, where $a,b \in Z^+, b \neq 0$. We also suppose that $a \neq 0$, otherwise $\frac ab = 0$ , and n will be a square number, which is rational.   Hence $n = \frac {a^2}{b^2}$, so $nb^2 = a^2$.    Suppose $b=1$. Then $\sqrt n = a$ , which shows that n is a square number. So $b \neq 1$. Since $\sqrt n &gt; 1$, then $a&gt;b&gt;1$.  By the unique factorization of integers theorem, every positive integer greater than $1$ can be expressed as the product of its primes.  Therefore, we can write $a$ as a product of primes and for every prime number that exists in $a$, there will be an even number of primes in $a^2$. Similarly, we can express $b$ as a product of primes and for every prime number that exists in $b$, there will be an even number of primes in $b^2$.  However, we can also express $n$ as a product of primes. Since $n$ is not a square number, then there exist at least one prime number that has an odd number of primes.  Therefore, there exists at least one prime in the product of $nb^2$  that has an odd number of primes. Since $nb^2=a^2$ , then this contradicts the fact that there is an even number of primes in $a^2$ since a number can neither be even and odd.  Therefore, this contradicts the fact that $\sqrt n$ is rational. Therefore, $\sqrt n$ must be irrational.  Is this sufficient? Or is there any parts I did not explain well? One of the first things ever taught in a differential calculus class:   The derivative of $\sin x$ is $\cos x$. The derivative of $\cos x$ is $-\sin x$.   This leads to a rather neat (and convenient?) chain of derivatives:   sin(x) cos(x) -sin(x) -cos(x) sin(x) ...   An analysis of the shape of their graphs confirms some points; for example, when $\sin x$ is at a maximum, $\cos x$ is zero and moving downwards; when $\cos x$  is at a maximum, $\sin x$ is zero and moving upwards.  But these "matching points" only work for multiples of $\pi/4$.  Let us move back towards the original definition(s) of sine and cosine:  At the most basic level, $\sin x$ is defined as -- for a right triangle with internal angle $x$ -- the length of the side opposite of the angle divided by the hypotenuse of the triangle.  To generalize this to the domain of all real numbers, $\sin x$ was then defined as the Y-coordinate of a point on the unit circle that is an angle $x$ from the positive X-axis.  The definition of $\cos x$ was then made the same way, but with adj/hyp and the X-coordinate, as we all know.  Is there anything about this basic definition that allows someone to look at these definitions, alone, and think, "Hey, the derivative of the sine function with respect to angle is the cosine function!"  That is, from the unit circle definition alone.  Or, even more amazingly, the right triangle definition alone.  Ignoring graphical analysis of their plot.  In essence, I am asking, essentially, "Intuitively why is the derivative of the sine the cosine?" Solving an equation over the reals: $ x^3 + 1 = 2\sqrt[3]{{2x - 1}}$ How do I open PDF in Adobe Reader DC without locking the file from being updated by pdflatex? I don't know if this is possible on Adobe Reader DC on Windows, but asking in case someone has managed to do it.   When I am working on a large document in LaTeX (I use TexStudio) I sometimes like to keep a second copy of my PDF on a second screen so that I can easily refer to what I wrote before, while on my main screen I would have TexStudio with its preview window, which is typically automatically in sync with my current editing location.  On Ubuntu (which uses evince as its default PDF viewer) I used to do it quite nicely. It also seems to watch the PDF file for updates, and keeps in sync of any new versions of the PDF file and reloads it (staying on the same page) when I re-run pdflatex from TexStudio.  At the moment I am working on a Windows machine, and I am trying to recreate the same workflow. I would really like to open a second viewer on my second screen so that I can navigate easily to previous chapters without losing my current position in TexStudio's preview window (which will anyway go back to the current editing location when I run pdflatex).  The only problem however is that when I open the PDF in Adobe Reader DC to put it on the second screen and then I try to recompile the PDF I get the error "I can't write to file". I presume that for some stupid reason Adobe Reader DC maintains some write lock on the file, probably keeping it open while the PDF is visible on screen.  Is there a way to disable this stupid file-locking behaviour from Adobe Reader DC?  UPDATE  After some valuable comments, a workaround is possible using a different viewer. One could either use  or  (the default PDF viewer on Ubuntu, but also available for Windows). They are not so feature rich, and maybe do not look so nice, but in this case do the job.  A similar question was posted  for reference. Determine app that keeps turning on bluetooth How do I determine the size of an object in Python?