What is the explanation for the difference:  $ ls -l /Applications/Safari.app/Contents/Info.plist -rw-r--r--  1 root  wheel  15730 11 jui 15:02 /Applications/Safari.app/Contents/Info.plist  $ du -sh /Applications/Safari.app/Contents/Info.plist 0B     /Applications/Safari.app/Contents/Info.plist   Once the file is copied in my home folder, ls and du report the same number.  $ cp /Applications/Safari.app/Contents/Info.plist . $ du -sh Info.plist; ls -l Info.plist 16K Info.plist -rw-r--r--  1 ant  staff  15730 17 oct 16:53 Info.plist   Both directories are on this partition ( / )  diskutil  info / Device Identifier:        disk0s2 Device Node:              /dev/disk0s2 Part of Whole:            disk0 Device / Media Name:      ml2013  Volume Name:              OSX.10.8 Escaped with Unicode:     OSX.10.8  Mounted:                  Yes Mount Point:              / Escaped with Unicode:     /  File System Personality:  Journaled HFS+ Type (Bundle):            hfs Name (User Visible):      Mac OS Extended (Journaled) Journal:                  Journal size 40960 KB at offset 0xc83000 Owners:                   Enabled   Here is the output of stat:  $ stat  Info.plist 16777218 8780020 -rw-r--r-- 1 root wheel 0 15730 "Oct 17 17:47:12 2013" \  "Jun 11 15:02:17 2013" "Jun 11 15:02:17 2013" "Apr 27 11:49:34 2013"\  4096 0 0x20 Info.plist
I need to get the size of directory in terminal for signing purposes. I'm using following command:  du -s /path/to/dir   I'm multiplying the result by traditional UNIX block size (512 bytes) and get actual directory size in bytes. However, the Finder's "Get Info" dialog window shows the size slightly smaller than the one calculated with the terminal command. And it seems that it's reproducible on any folder/bundle. What am I missing?
Is this correct?     That is a real cool answer.   I learned that that was incorrect, since "real" is an adjective which can describe a noun, e.g. "real answer" but it is not an adverb which can describe an adjective, "real cool". Instead you would have to say:     That is a really cool answer.   Since "really" is an adverb. I need to find the intersection point of 2 line segments (lines are finite, i.e., they have end points).   e.g. segment 1 from $(x_1, y_1)$ to $(x_2, y_2)$ -- segment 2 from $(x_3, y_3)$ to $(x_4, y_4)$  you can assume $m_1$ and $m_2$ are the gradients of segment 1 and segment 2 respectively  similarly, $c_1$ and $c_2$ being the y-intercepts of segment 1 and segment 2 respectively  Using $y=mx+c$ I can easily find the equations of both lines and then derive the intersection point from those equations and check if that point actually lies on both the line segments (intersection point may not lie between the end points).  My problem is when I calculate the gradients $m_1$ and $m_2$ I do $\frac{y_2-y_1}{x_2-x_1}$ there for if one of the lines is vertical then I am going to have problems. How can I deal with this?  Another problem is that if the two segments intersect at a point which is also the same as one of the end points then I want to assume that they are not intersecting.  e.g. if segment 1 is from $(2, 3)$ to $(3, 7)$ and segment 2 is from $(3, 7)$ to $(7, 3)$ then I want to assume they don't intersect. I am trying to compute this integral/limit, I don't feel like I have any good insight...   $$\lim_{n \to \infty} \int_0^{n^2} e^{-x^2}n\sin\frac{x}{n} \, dx.$$  I have tried to make a change of variable to get rid of the $n^2$, I changed to $X=\frac{x}{n^2}$ but got something even worse, I've tried to reach a situation where I could use a convergence theorem for Lebesgue Integrals,... I'm not sure I'm even on the right track!  Could you give me a hint on how to start this?  Thank you very much! setting up subdomain on ubuntu server Handling registration ID changes in Google Cloud Messaging on Android I have  experience where empty spaces cause unwanted effects. It is not easy to trace the cause of these unwanted effects. In order to eliminate any doubt, I often overuse % as follows.   \usepackage% [% left=3cm, right=3cm% ]% {geometry}   or  \newcommand{\mycommand}% {% This is my command.% }   I got an extreme example that will break what Leo Liu said     In fact, only spaces which would be   output have to be removed by comment.   The following code does not produce output, but we cannot remove the % and leave a blank line between two elements of a list below.  \newpsstyle{gridstyle} { gridwidth=0.4pt, % griddots=0 }   Shortly speaking, where are the necessary places to be appended with % to remove unwanted spaces? Aligned equation which can break through pages I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page.  Q: Is there a way to (automatically) break the align equation through pages?  In the code below,  \documentclass{report}                                                           \usepackage{amsmath}                                                             \usepackage{lipsum}                                                               \begin{document}                                                                 \lipsum[1-4]                                                                     \begin{align*}                                                                   FFFFFFFFFFFFFFFFFFFFFFFF &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}\\                                                                  &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= ma\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}                                                                  \end{align*}                                                                     \end{document}      all of the equation goes to the second page. I do not want that  If I break manually, by closing the align and open another, I lose the alignment with the previous part.   \documentclass{report}                                                           \usepackage{amsmath}                                                             \usepackage{lipsum}                                                               \begin{document}                                                                 \lipsum[1-4]                                                                     \begin{align*}                                                                   FFFFFFFFFFFFFFFFFFFFFFFF &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}\\                                                                \end{align*}                                                                     \begin{align*}                                                                     &amp;= \partial_t(p)\\                                                               &amp;= \partial_t(m v)\\                                                             &amp;= m a\\                                                                         &amp;= m \dot{v}\\                                                                   &amp;= m \ddot{x}                                                                  \end{align*}                                                                     \end{document}   I do not want that either.  So far I read about breqn packages, but it seems not to do what I would like.  Any Suggestion?? Thx. Using the definition of Riemann integrability, prove that $f $is Riemann integrable on $[0,1]$ The following problem came up on a test, and I didn't get it correctly. Please help me understand the problem.  Problem: Define $f:[0,1] \to \mathbb{R}$ by $$     f(x)=  \begin{cases}     1,&amp; \text{if } x=\frac{1}{n}\\     0              &amp; \text{otherwise} \end{cases} $$ for some integer n.  Using the definition of Riemann integrability, prove that f is Riemann integrable on $[0,1]$ and evaluate the Riemann integral $\int_{0}^{1} f(x)dx$.  My Solution:  Let $\epsilon&gt;0$ and $P$ be the partition of $[0,1]$ such that $P=\{0,\frac{1}{n}- \frac{\epsilon}{3},\frac{1}{n}+ \frac{\epsilon}{3},1\}$.Then note that   $U(f,P)=M_0\Delta x_0 +M_1\Delta x_1+M_2\Delta x_2=0+(\frac{1}{n}+ \frac{\epsilon}{3})-(\frac{1}{n}+ \frac{\epsilon}{3})+0=\frac{2\epsilon}{3}$ and   $L(f,P)=0$.   Thus, for every $\epsilon&gt;0$ $$U(f,P)-L(f,P)=\frac{2\epsilon}{3}&lt;\epsilon$$.  This is the prove that I gave and the mistake that I made was that I fixed n. Some important things that I noticed about this problem were that if you graph the function $f(x)$ most of the points fall to the left or close to zero and a fewer fall to the right. Hence, this makes me believe that I need a partition such that I capture most of the points near zero so that I am only left with a finite number of points close to 1. However, I can't seem to find this partition.Any help would be appreciated. In particular, I would like to know how you come up with the partition since I always struggle to come up with one. Thank you! Declare variable to hold job name and if job running kill it I’m looking for a single file that does these things in order.   Declare a variable to hold a job name  Run a query to check whether that job declared is currently running Set up an if loop If the job is running, execute the stored procedure that kills it.   My question is to write a query that declare a variable to hold a job name and gives us result the job is still running or not if the job is running execute the stored proc to kill it.  My manager was asking me to listing running jobs and suspended jobs and declare a variable to hold job name and setup an IF loop like if job is running run proc to kill it. I'm trying to define a new environment that consists of a split environment inside an equation environment. But I'm getting an error. Here's what I'm doing:  \documentclass[a4paper,12pt]{article} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \usepackage{amsmath} \newenvironment{example}{\begin{equation}\begin{split}}{\end{split}\end{equation}}  \begin{document} \begin{example}oi\end{example} \end{document}   And the error message I'm getting is:   ERROR: LaTeX Error: \begin{split} on input line 8 ended by \end{example}.   I then tried a few other cases. If I remove the splits and define example to be just equation, it runs fine. If I remove the equations and define example to be just split, I get the exact same error message.  In other words: I only get this error when split is involved. Is there a way to make this work?  EDIT: The reason I'm doing this, is because I want a convenient way to create split-equations. I know it's similar to align. I prefer split-equations because the entire line of equations gets a single number for referencing (it's even placed in the middle line). align, however, will force me to \notag each line, otherwise I get a number for each line in the equation (which tends to get messy when equations are long and numerous). It's not the end of the world, but the split-equation combination is just quicker and easier (if I can manage to define a command for it).  Alternatively, the multline environment is not appropriate either, because it doesn't let you manually align each line (like aligning the equal signs). Instead it only lets you push everything left or right.  EDIT2: I just tried this:  \newenvironment{example}{ \begin{equation}\split}{\endsplit \end{equation}}   and got this error  ERROR: LaTeX Error: \begin{equation} on input line 8 ended by \end{example}.   Which is weird, because removing \split and \endsplit entirely doesn't return any errors (so it's not equation's fault). Indefinite articles used with plural nouns: It was AN amazing TWO DAYS The indefinite article a(n), derives from the old English word an meaning "one". Generally this word only occurs in determiner function before noun phrases which are singular. However, there seem to be some cases where this determiner occurs before plural noun phrases. I say that, but actually these noun phrase seem so bizarre to me, in terms of their structure, that I'm not sure they're definitely noun phrases at all. Here are some examples:   a full three months before we left an amazing two days an awkward ten minutes   Ignoring the article here for a moment, these noun phrases are odd because the adjective is occurring before the numeral. We would normally expect to see:   three full months two amazing days ten awkward minutes   Even given the oddness of the word order in the original phrases, I can see no reason why the normally singular indefinite article is licensed here.   Can anybody give an account of the syntactic structure of these phrases, and/or explain why the semantically singular article is able to be used with such phrases - even if they compulsorily trigger plural verb agreement?  Here is an example of one of these instances which seems to demand a plural verb:   An amazing two million people attend every year. *An amazing two million people attends every year. (ungrammatical) How can I clear the water out of this area? I've sectioned of this area in the sea near my base, and I need to get rid of all the water from it.  From what I've tried the only way I can see to clear it is fully cover one layer, delete the blocks, then go down to the next layer. Is that the only way I can clear the area or is there a better approach?  Ideally I'd like a survival method (if there is a better one), but any commands what could be used I'd like to hear just so I can learn more commands :) Why does Ubuntu keep asking for my gmail password? Stack Overflow is getting a Meta of its own How do I enable or disable the global application menu? How do I attach events to dynamic HTML elements with jQuery? Is there a way to change the process group of a running process? Is there a way to change PID, PPID, SID of a running process? It would make sense for the answer to be no, but I'd like to make sure. Process substitution and pipe I was wondering how to understand the following:     Piping the stdout of a command into the stdin of another is a powerful   technique. But, what if you need to pipe the stdout of multiple   commands? This is where process substitution comes in.   In other words, can process substitution  do whatever pipe can do?   What can process substitution do, but pipe cannot? Why are the domains for $\ln x^2$ and $2\ln x$ different? Black shadows on Faces, not a normals thing