Including pdf as appendix without shift of page
How to include PDF pages without a newpage before the first page?
How to change certain pages into landscape/portrait mode How can I change some pages into document into landscape mode, while leaving the others in portrait mode (or vice versa)? I want to count the total number of files in particular directory that ends with ".mp4" extension.  I am getting following command:  ls -F |grep -v / | wc -l   It count all the files in particular directory, but I want the count of files that end with .mp4 extension.  Is there any Ubuntu command for that? Is there a rising trend in Number Series I am trying to build a stock screening utility.   What  I am trying is to find if there is a rising trend in a time series of profit margins of a company. I know there can be dips in some years but I want to find if mathematically that overall there is a rising trend as well as towards the recent years there is higher margins as compared to previous years.   Is there any way we can find it mathematically?          Profit Return Year,Company A,Company B,Company C 2005,38.97,20.44,22.01 2006,22.4,20.59,20.63 2007,22.4,20.59,20.63 2008,21.56,22.01,23.87 2009,25,20,23.52 2010,25,22.38,18 2011,30,24.13,24.85 2012,32,25.43,27.47 2013,30,20,22 2014,35,27,20 Services Actions Missing in Central Admin Abelianization of free group is the free abelian group How to select the rows with maximum values in each group with dplyr? I am trying to follow Blender Guru's beginner tutorial. He went to the Compositor tab and was using it to Denoise an image but when I got there, no nodes show up. Can you guys help? Why are there both Static and Kinetic Friction? When dragging an object, there is a greater start-up force than the force it takes to keep it moving. Why is this? Why are there two different values for friction? What are the differences between "su", "sudo -s", "sudo -i", "sudo su"? I already read it from manual but I can't see difference..  su - change user ID or become superuser  sudo -s [command]   The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in passwd(5).  If a                    command is specified, it is passed to the shell for execution.  Otherwise, an interactive shell is executed.  sudo -i disappear description in manual why $1+\frac{1}{1+\frac{1}{\frac{1}{1+\dots}}}$ cannot be equal to $\frac{1-\sqrt{5}}{2}$  I know that some of you will answer because it is positive.I know it but I don't know how to prove it.Maybe the second part is positive how do you know that?Thanks in advance. I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant. throwing a $k$-sided dice until you get every face the same number of times Service not avaliable Unity3d error in Kubuntu I'm trying to use  in Kubuntu, but I'm getting this error:  Service not avaliable, please try again later.   I've found :  Certain systems may experience "Service unavailable" errors when trying to log in. WORKAROUND: Launch Unity with LD_PRELOAD=/usr/lib/libresolv.so.2 /path/to/Unity (check the path to your local libresolv)   I've checked the path of libresolv.so.2 in my computer. I found it under /lib32/libresolv.so.2 and under /libx32/libresolv.so.2. (Don't know what the difference is).  When I run:  LD_PRELOAD=/lib32/libresolv.so.2 /opt/Unity/Editor/Unity   I get:  ERROR: ld.so: object '/lib32/libresolv.so.2' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.   and when I run:   LD_PRELOAD=/libx32/libresolv.so.2 /opt/Unity/Editor/Unity   I get:   ERROR: ld.so: object '/libx32/libresolv.so.2' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.   With both commands I also get this:  /opt/Unity/Editor/Unity: /opt/Unity/Editor/Data/Tools/libgpg-error.so.0: no version information available (required by /lib/x86_64-linux-gnu/libgcrypt.so.20)   Any suggestion? In a 2D top-down game, how can I create projectiles that have a height? These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out. Exercise 1:  Find all the numbers $x$ and $y$ such that: $a) \ GCD(x,y)=15, \ LCM(x,y)=150$ $b) \ GCD(x,y)=120 \ LCM(x,y)=1320$ $c) \ GCD(x,y)=100 \ LCM(x,y)=990$  Exercise 2:   Find all the numbers $m,n$ such that $GCD(m,n)=pq , \ LCM(m,n)=p^2qs$  where $p,q,s$ are prime  The first thing that is known to me is that $GCD(x,y) \cdot LCM(x,y)= x \cdot y$ Also $LCM(x,y)$ is at most $x \cdot y$ while $GCD(x,y)$ is at most $\max \{x,y\}$. Last thing is that $GCD(x,y)|LCM(x,y)$. Using all this I tried to solve the first exercise: $a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x \cdot y = 15 \cdot 150$ Another such pair is $(x,y)=(30,75), \ (x,y)=(75,30)$. Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist. Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), \ LCM(x,y)$ How to check whether a JavaScript variable defined in cross-browser way?  I ran into this problem when writing some JavaScript utilizing FireBug logging. I wrote some code like below:  function profileRun(f) {     // f: functions to be profiled     console.profile(f.constructor);     f();     console.profileEnd(f.constructor); }   It works fine in FireFox/FireBug, but it reports error in IE8 RC1. So, I'd like to do some checking whether console variable exists in the execution environment.  Below code works fine in FireFox, but not in IE8 RC1.   function profileRun(f) {     if (console != undefined) {         console.profile(f.constructor);     }      f();      if (console != undefined) {         console.profileEnd(f.constructor);     } }   However, if I do it this way. It works in IE8 RC1. Why?   function profileRun(f) {     if (window.console != undefined) {         console.profile(f.constructor);     }      f();      if (window.console != undefined) {         console.profileEnd(f.constructor);     } }   Is there any cross-browser way to check it? After upgrading to Firefox 57 Quantum many website have rendering issues, such as empty frames, missing text or fonts, etc. I use Kubuntu 16.04 64 bit.  So far, I've tried:   Restarting Firefox in safe mode Disabling "hardware acceleration"   Wiping out my profile Purging Firefox and reinstalling Running Firefox from a clean user account   But nothing helped so far.  Any tips on how to solve this are much appreciated Chrome phishing warning on main I just got a Chrome phishing warning on main for   Is it just me, Chrome screwing things up or do you people have work to do?  The message in English:     Known phishing site detected.   Google Chrome has denied the access to stackoverflow.com. This site is reported as phishing site.      Phishing sites are designed to mislead you, so that you disclose your login credentials, password or other personal data. These sites occur as sites which you probably trust. Is there a replacement for unistd.h for Windows (Visual C)? I'm porting a relatively simple console program written for Unix to the Windows platform (). All the source files include "unistd.h", which doesn't exist.  Removing it, I get complaints about misssing prototypes for 'srandom', 'random', and 'getopt'. I know I can replace the random functions, and I'm pretty sure I can find/hack-up a getopt implementation.    But I'm sure others have run into the same challenge.  My question is: is there a port of "unistd.h" to Windows? At least one containg those functions which do have a native Windows implementation - I don't need pipes or forking.  EDIT:  I know I can create my very own "unistd.h" which contains replacements for the things I need - especially in this case, since it is a limited set. But since it seems like a common problem, I was wondering if someone had done the work already for a bigger subset of the functionality.  Switching to a different compiler or environment isn't possible at work - I'm stuck with Visual Studio. SEO of  in  header