why grep does not print the entire line?
Output from ls has newlines but displays on a single line. Why?
Show that there exists a unique $v_0 \in H^1(0,1)$ such that $u(0)=\int_0^1(u'v_0'+uv_0), \forall u \in H^1(0,1)$ Show that there exists a unique $v_0 \in H^1(0,1)$ such that $u(0)=\int_0^1(u'v_0'+uv_0), \forall u \in H^1(0,1)$. Further Show that $v_0$ is the solution of some differential equation with appropriate boundary conditions. Compute $v_0$ explicitly.   Let $f: H^1(0,1) \to \mathbb{R}$ be defined by $f(u)=u(0)$. Then I showed that $f$ is linear and continuous. Hence there exists $v_0 \in H^1(0,1)$ such that $u(0)=\int_{0}^1u'v_0'+\int_{0}^1uv_0$  The differential equation is given by $f=-u''+u$ with the conditions $u'(0)=u'(1)=0$.   How do I compute $v_0$ explicitly?? Why don't applications update by calculating difference? I have Ubuntu 14.04 installed on my laptop. Can I clone the entire system with apps, settings, etc on a USB 3 pendrive, and then boot from that on other computers as a portable Ubuntu installation to take around with me?  I am trying a function that Timeshift has that's called "Clone the current system on another device". I've selected the pendrive as the target device. Timeshift was talking about this being bootable. But is it going to bootable on only this laptop, or on any system? For example, on an Intel Mac, or a Windows computer without the grub bootloader? Is that Timeshift function what I am looking for, or do I have to do something else?  Edit: The Timeshift clone failed to boot on the first system I tested it on. (A Dell Hackintosh that usually boots from USB just fine.) A lot of my scripts stopped working after installing Ubuntu 15.10 and I have trouble remembering this new name as I was used to ethx and wlanx for years. Is there a reason for this change? Do I have to get used to this or can I just rename it and go back to good old eth0?  $ ifconfig  enp0s25   Link encap:Ethernet  HWaddr 77:5a:5e:a6:86:d5         inet addr:192.168.31.239  Bcast:192.168.31.255  Mask:255.255.255.0       inet6 addr: fe80::725a:b6ff:fea6:86d7/64 Scope:Link       UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1       RX packets:4833 errors:1332 dropped:0 overruns:0 frame:666       TX packets:5589 errors:0 dropped:0 overruns:0 carrier:0       collisions:0 txqueuelen:1000        RX bytes:3266446 (3.2 MB)  TX bytes:1046654 (1.0 MB)       Interrupt:20 Memory:d3500000-d3520000 Get the cartesian product of a series of lists? Which manuals are on your "TeX Reference" shelf? This is a community wiki since there is no "one true answer"- if you find an answer that contains a lot of your choices, but is missing something you feel is incredibly useful.  Feel free to add it.  A short description of what topics the reference covers would be nice as well.  Organize by subject please.  For example: I always keep the following PDFs at my fingertips.  Document Layout   :  Covers, in exquisite detail, how to produce just about any document using the memoir LaTeX class. ( 4.5 MB)   Mathematical Typesetting   : A document by Herbert Voß that explains how to typeset just about any mathematical expression in LaTeX. ( 2 MB)   Graphics   : Explains, with examples, how to draw just about any figure using PGF/TikZ.  Also a good example of what awesome documentation should look like. ( 9.5 MB) IF/ELSE script in sender profile I'm trying to create a dynamic sender profile where the from name and from email change if a value is present in a specific field of the data extension. I want the Lead First Name value and Lead Last Name values to appear. I'm trying to keep all the logic in the sender profile. %%=IIF(EMPTY(AttributeValue(&quot;X&quot;)), &quot;Bill&quot;, AttributeValue(&quot;LeadFirstName&quot;) AttributeValue(&quot;LeadLastName&quot;))=%%  Not sure why, but doing the test, the script shows up as the sender and isn't resolving. My code follows:  \documentclass{book} \usepackage{color,colortbl} \begin{document}  \begin{tabular}{ll&gt;{\color{red}}p{20pc}} a &amp;1 &amp;Test \end{tabular}  \end{document}   The output was:    Some unnecessary vertical space came before the last column. If I remove the tag \color{red} then everything works fine, how can I fix this?  Above said issue was fixed based on the suggestion given by David Carlisle and CarLaTeX, but the same problem was there if I use the supertabular environment, I used supertabular package for auto breaking table and the code follows:  \documentclass{book} \usepackage{color,colortbl,supertabular} \begin{document}  \begin{supertabular}{ll&gt;{\leavevmode\color{red}}p{4pc}&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{black}}l&gt;{\leavevmode\color{red}}p{4pc}} a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ a &amp;1 &amp;Test &amp;a &amp;1 &amp;Test\\ \end{supertabular}  \end{document} Euclidean geometry in non-inertial frame In fact, I would like to ask more general question -- &quot;what does write permission for a directory allow you to do exactly?&quot; -- but let's approach it with a concrete example. It is a long question, if you are in a hurry read the bold -- it should cover the main part. Different sources (, , ) say something similar to the following on the directory permissions:  r, read -- reading of the directory's content (filenames inside) w, write -- changing the directory's attributes (e.g. modification time) and creating/renaming/removing entries inside x, search -- accessing files inside, you have access to the inode of the file, hence you can reach it's actual content  My problem is with the description of w. What directory's attributes does it give you access to? I cannot create/rename/remove a file inside a directory with only write permission: I make a directory (tdir/) and a file inside (afile), chmod -x-r tdir/, mv tdir/afile tdir/af, rm tdir/afile, touch tdir/newfile -- all fail with permission denial, unless I set x permission to the directory as well. And x alone doesn't give you the permission to create/rename/remove files inside the directory. In order to do that you need both x and w. But touch tdir does change the modification time of the directory with w only. I would rephrase the sources above this way for the compliance with the issue: a directory's r allows you to see the filenames inside, but no access to the actual file (to the inode); x gives you access to the inodes of the files (which means you can see their permissions and, according to it, have access to the contents), but you still cannot change anything in the directory; directory is actually some sort of a file and to change something in it you need the w permission. Thus, when you are changing something in the directory you need w permission. If your change requires inodes of the files in the directory -- you need x as well. It explains why you cannot remove a file inside a directory with w only: when removing a file you need to reduce the link count of the inode by 1 -- you need to know the inode -- thus you need x for the directory. But why do you need x for creating (you could ask the system to create a file without exposing the inode?) and renaming/moving the file (when you move a file you don't change it in any way, you only change the records inside the directories and their inode counts?)? Maybe it is just an implementation thing? I.e. indeed you don't need the inode for renaming/creating files -- you need only filenames and w permission; but inode and filename constitute one record in the directory; thus changing the filenames = changing the records = kind of accessing the inodes. And also what attributes do directories have besides modification time, permissions and files records? What else in the directory can you change with w only? I let him do it.   and     I allow him to do it.   Why does the latter require to?  What are the "rules" of using to with an infinitive? When is it necessary? How to plot and visualize a single linear vector in 3D? Dropping z dimension programmatically It seems there is no geoalgorithm to drop z values in the QGIS processing toolbox. Can this be done programmatically using the Python console? At the moment I have to save the layer with unchecked 'Include z-dimension' checkbox (non automatic geometry type): Changing internal URL path for SEO I have a site where Google has already indexed about 1 million pages, and I want to change all the URL paths for SEO purposes, ensuring that we always have our keywords in the path.  Technically I know how to complete it (301 redirects, new canonical URL, update sitemap, etc.) but I'm wondering if Google will penalize the site because of it, or if links will disappear from search results until they are re-crawled? How do you file a bug report for Windows? I have come across an issue that I feel is a  in Windows 7. What is the official process for submitting an issue to Microsoft from a consumers perspective as an end user of Windows? Expected area of the intersection of two circles If we pick randomly two points inside a circle centred at $O$ with radius $R$, and draw two circles centred at the two points with radius equal to the distance between them, what is the expected area of the intersection of the two cirlces that contain the origin $O$. C# vs Java Enum (for those new to C#) How can I randomize order of elements in a list? Summation of Central Binomial Coefficients divided by even powers of $2$ Whilst working out  the following summation emerged: $$\sum_{m=0}^n\frac 1{2^{2m}}\binom {2m}m$$ The is equivalent to  $$\begin{align} \sum_{m=0}^n \frac {(2m-1)!!}{2m!!}&amp;=\frac 12+\frac {1\cdot3}{2\cdot 4}+\frac{1\cdot 3\cdot 5}{2\cdot 4\cdot 6}+\cdots +\frac{1\cdot 3\cdot 5\cdot \cdots \cdot(2n-1)}{2\cdot 4\cdot 6\cdot \cdots \cdot 2n}\\ &amp;=\frac 12\left(1+\frac 34\left(1+\frac 56\left(1+\cdots \left(1+\frac {2n-1}{2n}\right)\right)\right)\right) \end{align}$$  and terms are the same as coefficients in the expansion of $(1-x)^{-1/2}$.  Once the solution  $$ \frac {n+1}{2^{2n+1}}\binom {2n+2}{n+1}$$ is known, the telescoping sum can be easily derived, i.e.    $$\frac 1{2^{2m}}\binom {2m}m=\frac {m+1}{2^{2(m+1)-1}}\binom {2(m+1)}{m+1}-\frac m{2^{2m-1}}\binom {2m}m$$  However, without knowing this a priori, how would we have approached this problem? This is what I would like to do:  morekeywords={SENÃO, ENTÃO, FAÇA, ATÉ, ENQUANTO, PARA, SE, DECLARA, DECLARE, E, OU, FIM_ENQUANTO, FIM_PARA}   I'm defining a new language, and I would like to use natural language words as keywords.  The problem is with keywords: SENÃO, ENTÃO, FAÇA, ATÉ.  I have solved the first problem, in showing special chars with:   The alsoletter here, doesn't work for me, I got an error when using it: alsoletter={Ç,É,Ã}.  test.tex  \documentclass{article}  \usepackage[brazilian]{babel} \usepackage[T1]{fontenc}  \usepackage[utf8]{inputenc} \usepackage{listingsutf8}  \usepackage{listings}  \lstset{%         inputencoding=utf8,         extendedchars=true,         literate=%         {é}{{\'{e}}}1         {è}{{\`{e}}}1         {ê}{{\^{e}}}1         {ë}{{\¨{e}}}1         {É}{{\'{E}}}1         {Ê}{{\^{E}}}1         {û}{{\^{u}}}1         {ù}{{\`{u}}}1         {â}{{\^{a}}}1         {à}{{\`{a}}}1         {á}{{\'{a}}}1         {ã}{{\~{a}}}1         {Á}{{\'{A}}}1         {Â}{{\^{A}}}1         {Ã}{{\~{A}}}1         {ç}{{\c{c}}}1         {Ç}{{\c{C}}}1         {õ}{{\~{o}}}1         {ó}{{\'{o}}}1         {ô}{{\^{o}}}1         {Õ}{{\~{O}}}1         {Ó}{{\'{O}}}1         {Ô}{{\^{O}}}1         {î}{{\^{i}}}1         {Î}{{\^{I}}}1         {í}{{\'{i}}}1         {Í}{{\~{Í}}}1 }  \lstdefinelanguage{pseudo} { extendedchars=true, alsoletter={_}, morekeywords={ENQUANTO,PARA,SE,SEN\~{A}O,ENTÃO,ATÉ,FA\c{C}A,DECLARA,DECLARE,E,OU,FIM_ENQUANTO,FIM_PARA,FAÇA}, ndkeywords={NUMERO,TEXTO,LEIA,ESCREVA}, sensitive=true, morecomment=[l]{//}, morecomment=[s]{/*}{*/}, morestring=[b]" }  \begin{document} \lstinputlisting[language=pseudo]{foo.pseudo} \end{document}   foo.pseudo  ENQUANTO nota != -1 FAÇA // Comment example  LEIA nota  SE nota &gt;= 7 ENTÃO    ESCREVA "Aprovado"  SENÃO    ESCREVA "Reprovado"    TEST "Algo mais" /* mais  comentário */  FIM_ENQUANTO    I have seen: