I'm trying to include a movie in a beamer presentation. I've tried many things, and it seems I finally got it to work by something like this:  \documentclass[xcolor=dvipsnames]{beamer} \usepackage{media9}  \begin{document}  \begin{frame}  \begin{center} \includemedia[   activate=pageopen,   width=300pt,   height=170pt,   keepaspectratio=true,   addresource=./movies/Tacoma.mov,   flashvars={% src=./movies/Tacoma.mov &amp;scaleMode=stretch} ]{}{StrobeMediaPlayback.swf} \end{center}  \end{frame}  \end{document}   where Tacoma.mov is a movie of the collapse of the Tacoma bridge due to wind loading (). The problem I see is that I have the movie, and when I create the presentation, LaTeX is embedding the movie in the pdf file, but this is not what I want to do because I don't want to duplicate the amount of memory. Is there a way to have the same behavior, but without embedding the actual movie in the pdf file?  I've seen that the beamer documentation proposes the use of the multimedia package, but I haven't been able to make it work without setting the externalviewer option. It gives me this error:  Macintosh HD:Users:aaragon:Desktop:hybrida LaTeX template:LaTeX:movies:Tacoma.mp4 cannot be found. Would you like to choose a replacement file?   My question is not restricted to the media9 package.
I have video tutorials that I want to show in my presentation with beamer class. I don't want the video files get embedded to the PDF because they will make the PDF size very very huge.  If you know how the videos can be played on the HTML with a reference rather than embedding the video file to the HTML file, I want something like this to be applied to my PDF presentation. I just want to reference the video URL from my PDF presentation.   Shortly speaking, can we use media9 to show a video on a PDF but the video is not embedded to the PDF?  Uploading those videos to a web server might be difficult for me because internet connection is very slow and sometimes not available in the presentation room. :-)
To power my microcontroller (ATmega8), I am using a ~5.4V voltage source. I want to ensure that I don't accidentally connect the voltage source in reverse, and figured a diode would be a nice way to accomplish this as from what I have learned so far, a diode allows current to flow in one direction, and blocks it in the other.  But what I also learned is that diodes create drops in voltage. I have a few of the typical diodes (1N4001, 1N4148, etc.), and would like to use them to achieve the aforementioned result without dropping the voltage as it would be too low to power the IC.  My question is, is there any way to do this with a diode? Or do I need some other component (if so, what would you recommend)? Can you create images like this:    when you have something like  0 = green (#54ff00) 1 = white (#ffffff) 2 = red   (#ff0000) 3 = blue  (#0048ff)  Image (Python list of integers defined above): [[2,0,0,0,0,0,0],  [0,3,0,0,0,0,0],  [0,3,2,1,1,0,0],  [0,3,2,2,2,1,1],  [0,3,2,0,0,1,0],  [0,0,0,0,0,1,0],  [0,0,0,0,0,1,0]]   with TikZ?  How far I got  The following MWE defines all colors, produces a grid of the correct size (though the size is determined by hand):  \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tikz} \usepackage{xcolor}  \begin{document}     \newcommand\n{7}     \definecolor{green}{HTML}{54FF00}     \definecolor{wite}{HTML}{FFFFFF}     \definecolor{red}{HTML}{FF0000}     \definecolor{blue}{HTML}{0048FF}     \begin{tikzpicture}         \foreach \x in {1,...,\n}{             \foreach \y in {1,...,\n}{                 \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}             }         }     \end{tikzpicture} \end{document}   Of course, I could simpy make a lot of adjusted                   \begin{scope}[shift={(\x,\y)}]                   \draw [fill=green] (0,0) rectangle (1,1);                 \end{scope}   but I've wondered if this can (with reasonable effort) be done in TikZ / LaTeX.  My problem is giving TikZ the color array. I don't have any idea how to do this. I only know two types of looks in TikZ:  \foreach \x in {0,1,2,3,4,5}{...} \foreach \number in {1,...,\n}{...}   I have never seen a nested over a 2D-array. All I have seen so far were 1D-Arrays of tuples (with fixed tuple size). I just wanted to make some input where I press a key and the auto-repeat function engages so I don't have to press the 0 key many times to make a long number.  10000000000000000000000000000  This has always worked without fail in the past, but it's not something I do often and I'm not sure where to look next to figure out what might be preventing this.     I've toggled the sliders to change the delay for key repeat, but the only thing I can hang my hat on is that perhaps Lion disables this with the new feature where you hold down some keys (like the vowels, but also some consonants) to get alternate accented characters.  s turns into ß or ś or š and so on....  Am I missing an obvious setting, or is this something that has moved to a hidden setting or is simply a bug that these controls are still around since key repeat is now deprecated?  Comments welcome if anyone doesn't have an answer, but can provide specifics where this does work for them. I've checked two Macs so I'm guessing it's not related to keyboard type or connection method. I want to put four figures in a single row. The code I am trying to use is taken from .  This puts three figures in a row. When I add a fourth one, I get three images in row and the last one appears in the second row. But I want all of them in one row. Here is my code.  \documentclass[12pt,twoside]{report}% Use this line for the print version of the thesis   \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document}  \begin{figure}         \centering         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull}                 \label{fig:gull}         \end{subfigure}%           \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{gull}                 \caption{A gull2}                 \label{fig:gull2}         \end{subfigure}%          ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{tiger}                 \caption{A tiger}                 \label{fig:tiger}         \end{subfigure}         ~ %add desired spacing between images, e. g. ~, \quad, \qquad etc.           %(or a blank line to force the subfigure onto a new line)         \begin{subfigure}[b]{0.3\textwidth}                 \centering                 \includegraphics[width=\textwidth]{mouse}                 \caption{A mouse}                 \label{fig:mouse}         \end{subfigure}         \caption{Pictures of animals}\label{fig:animals} \end{figure} \end{document}   As I have mentioned above, it works for three figures.  But I can not use it for four figures. What should I change?   What does  width=\textwidth mean?   I changed    \begin{subfigure}[b]{0.3\textwidth}   to  \begin{subfigure}[b]{0.2\textwidth}   but it didn't help.  Then, I changed     \includegraphics[width=\textwidth]{mouse}   to  \includegraphics[width=0.5\textwidth]{mouse}   Still no solution. If $g$ is the generator of a group $G$, order $n$, when is $g^k$ a generator? Say a cyclic group of order $9$ is denoted by $G = \langle g \rangle$. I have a claim that  $\langle g^k \rangle = G $ whenever $k$ is a unit in $\mathbb{Z}_9$. I'm struggling to understand why this is true. Is this specific to order 9? In general, for a group of order $n$, do we require that $k$'s multiplicative inverse in $\mathbb{Z}_n$ be $n$ itself? Otherwise the generating group will be of order less than $n$, and thus cannot be equal to the group. Will links to images be kept permanently when added to a comment and nothing else? I assume, that Stack Exchange have some clean-up subsystem, which deletes all "abandoned" images (stored at i.stack.imgur.com), that is, all of them, that were initially uploaded, but no post is actually having link to them. Am I right?  If such subsystem is implemented and is doing its job on regular basis, then what about following scenario:   Start a new question or answer, anywhere. Hit button and upload an image. Copy generated image's URL  to clipboard. Close tab and drop editing post. Go to question on answer, you actually planned to reply. Post a comment to it and paste copied image's URL from clipboard to comment's body.   Will uploaded image, with URL pasted only to comment, be kept permanent? Does clean-up subsystem (if exitst) take care of checking for image's URLs in comments as well? Which process scheduler is my linux system using? I'm not quite sure if stackoverflow or serverfault is the forum to use for this question, but ill try here.  Is there some command I can use or a file I can check in order to find out which process scheduler I'm using on my Linux system? I am not looking for the I/O scheduler, but the process scheduler, and please, do not refer to guides or howtos for what a scheduler is, what I'm simply asking is if there is a command or file I can run/check to see this. I could check the doc for my kernel but again I'm just wondering if there is a command or file i can check.  I might have been a little redundant above but that's because the posts I've seen people seem to confuse process scheduler with the i/o scheduler, and they don't seem to answer the actual question, just provide links to what a scheduler is which is not what I'm after here, so apologies if the above comments sounded rude. If a lens focuses all incoming light to a point, how do we get 2D images? How do lenses produce 2-dimensional images, if a lens bends all incoming rays of light to intersect at the focal point? Shouldn't this produce a single dot of light on a screen placed at the focal length?  This is basically the standard diagram that always shows up in textbooks:    I know this doesn't happen in real life--I used to use telescopes pretty frequently for work. The most in-focus image would be the one with the smallest diameters for the stars, which, of course, we think of point sources at infinity. But--the light from all stars (despite being at infinity) is not all focused at a single point. Instead, each star's light is focused at its own $(x,y)$ point on a 2D image.  I can't reconcile the theory as I understand it with any of my real-life experience with optics. What am I missing? How to use host names rather than ip addresses on home network? I've a small home network up and running and managed to set up ssh. Can anyone tell me what I need to do to refer to one computer on the network from another by host name rather than IP address (which is what I'm doing now)? What is included in Wolfram Extras? Did all Headmasters get a portrait in Hogwarts? Throughout the Harry Potter series, we see that deceased Headmasters of the school get a semi-sentient portrait of themselves in the Headmaster's Office, at the service of the current Headmaster. Do all Headmasters get a portrait? What are the conditions of getting one? For instance, there are a couple of times when Dumbledore is temporarily deposed as Headmaster: Dolores Umbridge takes over the job in Order of the Phoenix, and Minerva McGonagall takes the job in Chamber of Secrets and Half Blood Prince. Will Umbridge and McGonagall have portraits in the Headmaster's Office when they expire? Is TV harmful to my infant's development? It often occurs to me to add an edit summary to a question-edit immediately after submitting the edit, especially if the changes aren't obvious (formatting etc.). So I:   Click "edit" again. Fill in the summary Click on "Save Edits".   The 'edit' (no actual change has been made to the title/body/tags)  is accepted, but the summary doesn't show up, i.e. it is silently rejected.   I don't think it should work this way because the summary has been added by the original editor within the original edit's edit-window. In fact if I remember correctly, it to used to work as expected earlier; so perhaps this is a recent change. Ignore folders/files when Directory.GetFiles() is denied access I don't know what I've done, but all of a sudden I am unable to compile any document which uses the geometry package. Minimal (non)-working example:     \documentclass[11pt]{article}      \usepackage{geometry}  \begin{document} test \end{document}   doesn't produce any output, and this is what I see in my error summary screen in TeXnicCenter:    The red arrow points to what seems to be the problem: something about the bundle "oberdiek" and its package "ifvtex" is causing pdflatex.exe (which, while I don't really know what it does, sounds pretty important) to "not be initialized". I , and it's relevance here is a mystery to me.  I've confirmed that all of my files without the geometry package compile just fine; however, that doesn't mean that the problem is with the geometry package - what seems more likely is that there is some hidden cause of the error, and geometry happens to be one way to induce that. By the way, I've tried compiling a document which includes the ifpdf and ifvtex packages separately, and they do just fine; it's only when I include the geometry package (which for some reason requires these ifpdf and ifvtex packages) that the error occurs.  I've tried the only things I can think of:   going into MiKTeX Package Manager (by the way I am using 2.8), and removing + reinstalling both geometry and oberdiek refreshing the file name database ("FNDB") deleting all automatically generated files, as well as simply starting over in a new document   So I'm stuck now. I've considered attempting to just get rid of all traces of MiKTeX and TeXnicCenter from my computer and starting over, but that seems a bit excessive - after all, the geometry package was working for me . I honestly am not sure what I did to cause this; I've spent today trying to make a better template file for myself, and so I've been trying out new packages, but if I'm not loading these new packages there shouldn't be any conflicts, right?   Actually, I've just now thought of something that I think I did between the last time it worked and now, so is a possible candidate for the cause: I had to install some package manually, as it wasn't available on MiKTeX, and so I created a folder and pointed MiKTeX to it (i.e. the second option ). The package didn't do what I wanted, so I deleted the folder and removed it from the list of folders I told MiKTeX to check. Perhaps it's still trying to reach it for some reason? To find out how something is called is the one thing I don't know how to use Google for.  If I have a vector $v$ and a symmetric matrix $H$, then the operation $v^T H v$ gives me some sort of projection of the matrix $H$ on the vector $v$. For example if $H$ is the Hessian, the operation gives me the second derivative in the direction of $v$.  What is the name of this operation? "...would have trouble imagining...": Is this present participle or gerund? Is the notorious $n^2 + n + 41$ prime generator the last of its type? "To your left" versus "on your left" Approximating commuting matrices by commuting diagonalizable matrices Suppose the matrices $A$ and $B$ commute. Do there exists sequences $A_n$ and $B_n$ of matrices such that   $A_n \rightarrow A$, $B_n \rightarrow B$.  Each $A_n$ is diagonalizable  and the same for each $B_n$.  For every $n$, $A_n$ commutes with $B_n$.    Moreover, it would be nice if the following property was additionally satisfied: if $A,B$ are real, then $A_n,B_n$ can be chosen to be real as well.