I'm using the following commands to add a *.pdf file into my report:  \usepackage{pdfpages}     \includepdf[pages=-]{part.pdf}   I get the following message (and the PDF is not included):     I will use a dummy \includepdf command(pdfpages) which will NOT insert any pages, because(pdfpages) you are producing DVI output.   Any idea how to solve the problem?
I compiled the following file (through MiKTeX which I have just updated all files), and I do not get the junk.pdf file inserted.  \documentclass{report} \usepackage{pdfpages} \begin{document} qwe \includepdf[pages=-]{./junk.pdf} \end{document}   The .log and junk.pdf file are there: ;   OK, yes it works with pdflatex, but I have to use latex->dvips->ps2pdf because of other constraints insertion of EPS figures). Beside, I do not know how to use the suggested lastpage option.  Using \includepdf[nup=2x2,frame,pages={1-13}]{./junk.pdf} I do correctly get 5 pages which should have included junk.pdf, but I get blank pages with a black dot in the center.
How do I revert a Git repository to a previous commit? Do I cast the result of malloc? In , someone suggested in a  that I should not cast the result of malloc. i.e., I should do this: int *sieve = malloc(sizeof(int) * length);  rather than: int *sieve = (int *) malloc(sizeof(int) * length);  Why would this be the case? Differences between the introduction of a sandwich thesis and a paper I would like to know what are the main differences between the introductory part of a paper and of a thesis. My thesis would be a sandwich type, so I would have to wrap everything there.  Some of the differences are:   Longer in thesis. Deeper in thesis. Extended definition of key terms, concepts and methodology in thesis. Clear definition of the whole goal in thesis, whereas paper smaller goal.   To narrow the possible answers, I do research on the molecular aspects of the infection steps of a pathogenic swine bacteria. Also develop strategies to block infection by using vaccines. Notepad++ incrementally replace Unable to uninstall Wine apps External arrows in tables How to achieve similar arrows as in the picture?    The main issue cause of arrow   a(2,1) -> a(1,3), a(3,1) -> a(1,4), etc. Or at least how to make them on top of the table, but to make it look readable.  \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document} \begin{tikzpicture}[&gt;=stealth] \matrix (A) [matrix of nodes,row sep=3mm,column sep=3mm,nodes in empty cells] {   $a_{11}$ &amp; $a_{12}$ &amp; $a_{13}$ &amp; $a_{14}$ &amp; $a_{15}$ &amp;  $\dots$ \\   $a_{21}$ &amp; $a_{22}$ &amp; $a_{23}$ &amp; $a_{24}$ &amp; $a_{25}$ &amp;          \\   $a_{31}$ &amp; $a_{32}$ &amp; $a_{33}$ &amp; $a_{34}$ &amp; $a_{35}$ &amp;          \\   $a_{41}$ &amp; $a_{42}$ &amp; $a_{43}$ &amp; $a_{44}$ &amp; $a_{45}$ &amp;          \\   $a_{51}$ &amp; $a_{52}$ &amp; $a_{53}$ &amp; $a_{54}$ &amp; $a_{55}$ &amp;          \\   $\vdots$ &amp;          &amp;          &amp;          &amp;          &amp; $\ddots$ \\ };  \begin{scope}[thick,black,-&gt;] \draw (A-1-1)--(A-1-2); \draw (A-1-2)--(A-2-2); \draw (A-2-2)--(A-2-1); %\draw (A-2-1)--(A-1-3); \draw (A-1-3)--(A-2-3); \draw (A-2-3)--(A-3-3); \draw (A-3-3)--(A-3-2); \draw (A-3-2)--(A-3-1); %\draw (A-3-1)--(A-1-4); % etc. \end{scope} \end{tikzpicture} \end{document} I recently renewed my passport. I also have an expired passport which has my Canada visa (visitor's) valid for another three years. I have already used my Canadian visa which is multiple entry. I am planning to visit Canada this summer.  Since my valid Canadian visa is in my old/expired passport, do I need to renew/transfer my Canada visa or can I simply travel with valid visa in old passport? How to both display a command line's output on console and save the output into a text file? How can I run sudo apt-get install by BOTH seeing the process of installation (long in my case) and saving its output into a text file ? Friend was brainwashed by MLM-/ponzi investment scam. What can I do? Recently a friend of mine invited me to hear about “an interesting chance to simply earn money.” Basically we and other invited people drove to a meeting room where a speaker told us about a growing startup where you could invest money in a field where similar investments had an ROI of apparently 1000 times the investment in 6 years. Afterwards there was coffee and small talk together, during which they also indoctrinated people saying, they should avoid talking to people talking bad about the investment (or saying it is scam) because you can't gain money from them and they just want to destroy your business.  You earn money if you invest money and if you refer friends who invest money up to multiple levels. The more you invest yourself the greater percentage you earn for your referrals.  Since I had already seen other ponzi-/MLM-schemes and I am from the field it is based in, I recognized that there is no real product and it is a ponzi-/MLM-scheme. Later I found its name on the official scam warning list of multiple countries.  From what I understand, my friend has already invested multiple months or years worth of income; and is earning an amount of money through referrals that would mean scamming other people directly or indirectly through referrals for possibly several $100,000's per month to earn an additional bonus. He also wants to use his position as a respected member of multiple local youth groups and other community groups to get their members as referrals or in his words “…to give them the opportunity to also simply earn money.”  I tried to convince him that it is just a ponzi scam with my knowledge in this field but he answered with the indoctrinated speech “You don’t need to know the details if it makes you rich or use it. You also don't know how every detail of a smartphone works?”/“My sponsor already earned $x with this” or “If you don't believe in this, just stop talking about it to me and other people or do you want to ruin me, my business and my investments?.” So basically this means I can either make his investment worthless/let him lose everything (he also quit his job) or let him scam other people and motivate them to scam other people.  At the moment you can only withdraw small amounts of money out of it because the company invented some reason but you will be able to withdraw all of it “soon” (=most likely never).  What is the best way to resolve this situation (best meaning with lowest loss of money for everybody)?  Edit: The founders are known names in Ponzi schemes or convicted for crimes like fraudulent bankruptcy and many of their claims are technically impossible or proven to not exist with very high probability according to sites about ponzi schemes. But of course they say "Every bigger company has their scandals".  You can't trade the bought virtual coins outside the company and the only product you can buy can be bought anywhere else for less than 10% of the price without the logo.  When I met other friends they mentioned that they got invitations for the same meeting. I just stated to them that I already went to one and told them the name of the company (which was not stated on the invitation) and that I will not invest in it because there are official warnings that this is a scam. How to import a .max model into Blender? A mod-only section of the help center How to use the SSD for caching in Windows without Intel Smart Response? My motherboard is Asus P8B75-M. It doesn't have Intel Smart Response. But recently I bought a SSD. Since I mostly use linux I have Linux installed in it. But can I use it to speed up Windows also? How? I don't have Smart Response... (I run Windows 8.1). The SSD is only 64GB. Resistor in series needed with LED string? System file windows open behind Unity launcher I'm on Ubuntu 16.04.1 at the moment, and system windows like the Files window, Terminal or System Software open behind the Unity launcher, which means they are partially hidden behind it. I can move them with Alt+F7, but I'd like a more permanent solution to this problem. Is the differentiation operator an open mapping? Consider the vector spaces $C([0, 1])$ and $C^1([0, 1])$ with norm, \begin{align*} \displaystyle \|f\|_\infty=\sup_{x\in [0, 1]}|f(x)|, \end{align*} and let $T:C^1([0, 1])\to C([0, 1])$ the operator given by, \begin{align*} \displaystyle Tf=f'. \end{align*} Is $T$ defined this way an open mapping? If it's, how to prove it? I tried to export my Geogebra graphs into tikz-code. In General it works fine, but plot x^1/3 doesn't work:  \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ccqqqq}{rgb}{0.8,0,0} \definecolor{qqttcc}{rgb}{0,0.2,0.8} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture}[line cap=round,line join=round,&gt;=triangle 45,x=1.0cm,y=1.0cm] \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4); \draw[-&gt;,color=black] (-4,0) -- (4,0); \foreach \x in {-4,-3,-2,-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; \draw[-&gt;,color=black] (0,-4) -- (0,4); \foreach \y in {-4,-3,-2,-1,1,2,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; \clip(-4,-4) rectangle (4,4); \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \draw[color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{((\x))^(1/(3))}); \draw [color=qqttcc](2.06,4.18) node[anchor=north west] {$f(x)=x^3$}; \draw [color=ccqqqq](2.06,1.18) node[anchor=north west] {$f(x)=\sqrt[3]{x}$}; \begin{scriptsize} \draw[color=qqttcc] (-1.74,-7.16) node {$f$}; \end{scriptsize} \end{tikzpicture} \end{document}      Error line 21: !Missing number, treated as zero.   So plot has problems with the negative x I suppose, but I don't know. Any help would be great! I googled it for nearly 1 hour - but no real answers.  As suggestet it rotated and mirrored the graph - works great!:  \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ccqqqq}{rgb}{0.8,0,0} \definecolor{qqttcc}{rgb}{0,0.2,0.8} \definecolor{cqcqcq}{rgb}{0.75,0.75,0.75} \begin{tikzpicture}[line cap=round,line join=round,&gt;=triangle 45,x=1.0cm,y=1.0cm] \draw [color=cqcqcq,dash pattern=on 1pt off 1pt, xstep=1.0cm,ystep=1.0cm] (-4,-4) grid (4,4); \draw[-&gt;,color=black] (-4,0) -- (4,0); \foreach \x in {-4,-3,-2,-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize \x}; \draw[-&gt;,color=black] (0,-4) -- (0,4); \foreach \y in {-4,-3,-2,-1,1,2,3} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize \y}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize 0}; \clip(-4,-4) rectangle (4,4); \draw[color=qqttcc, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \begin{scope}[yscale=-1,xscale=1] \draw[rotate=90, color=ccqqqq, smooth,samples=100,domain=-4.0:4.0] plot(\x,{(\x)*(\x)*(\x)}); \end{scope} \draw [color=qqttcc](2.06,4.00) node[anchor=north west] {$f(x)=x^3$}; \draw [color=ccqqqq](2.06,1.00) node[anchor=north west] {$f(x)=\sqrt[3]{x}$}; \begin{scriptsize} \draw[color=qqttcc] (-1.74,-7.16) node {f}; \end{scriptsize} \end{tikzpicture} \end{document} When voting to migrate an off-topic question, why is the list of sites limited? Transit visa at Istanbul Airport, Turkey, during a Turkish Airlines arranged stopover? Do I need a transit visa at Istanbul Airport to enter Istanbul for city sightseeing or hotel accommodation?. All services provided free by the Turkish Airline. I am Nigerian citizen and booked Turkish Airline flight to Nigeria with 12hours layover at Istanbul Airport. How can I find help for new Ubuntu users? I've just started using Lubuntu 13.10. It's the first time I've ever used Linux.  Can any of you send me a tutorial-video for new users or explain the basics to me? I have a question:     Suppose $f$ is continuous and even on $[-a,a]$, $a&gt;0$ then prove that   $$\int\limits_{-a}^a \frac{f(x)}{1+e^{x}} \mathrm dx = \int\limits_0^a f(x) \mathrm dx$$   How can I do this? Don't know how to start.