I have two coordinate frames which have an offset and rotation between them.  Using the following example I tried to visualized it:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.text}  \begin{document}  \begin{tikzpicture}[thick]     \draw[-latex] (0,0) -- (4,0)  node[right, text width=5em] {$X$};     \draw[-latex] (0,0) -- (0,4)  node[right, text width=5em] {$Y$};      \begin{scope}[rotate=0,draw=red]         \draw[-&gt;] (3,2) -- (7,2)  node[right, text width=5em] {$X'$};         \draw[-&gt;] (3,2) -- (3,6)  node[right, text width=5em] {$Y'$};     \end{scope}      \draw[-&gt;, postaction={decorate, decoration={text along path, text align={center},text={${\overrightarrow{R}}{\;}$}}}] (0,0) -- (3,2)  node[right, text width=5em] () {};  \end{tikzpicture}  \end{document}     once i change  \begin{scope}[rotate=0,draw=red]   to  \begin{scope}[rotate=20,draw=red]   I get:   How could I place the origin of my X'Y' coordinate frame at position (3,2) in my XY coordinate system?  In addition I would like to place $\overrightarrow{R}$ a bit higher. How could I place it above the vector?
I am trying to create a beamer animation using tikz, but I can't even get basic rotating of a tikz image working as desired.  I have a rectangle specified by  \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);   I would like to rotate this rectangle about the point (-1,.5) (which is near the bottom right corner of the rectangle).  I've tried:  {\rotatebox[origin=c,x=-1,y=.5]{130}{             \draw[rounded corners,dotted] (-3.5,0) rectangle (-0.5,2);}}   But this produces an error.  If I just use the origin=c option, it compiles, but it rotates the rectangle about the point (0,0).  I've also tried it with just the x=-1,y=.5 (without the origin option), and it fails to compile.  I have searched the documentation, which is where I learned about the options x=xdim and y=ydim.  However, I can't find a single example demonstrating how these options should be used.  Any suggestions would be greatly appreciated.    Also, if there is a better command for rotating things that will be more suitable for use in a beamer animation, please let me know.  Thanks!
How to indent subsection in AMS TOC I used AMS LaTeX template with gsm-l package to write my teacher's book.   The table of content that produced has the following form:    in which 1, 2, 3.... are sections and 3.1, 3.2, 4.1, 4.2,.... are the subsection.   I want to indent the subsection with respect to the section, like this (it's ok without dots, though): I'm trying to approximate the computer's write speed using dd:  dd if=/dev/urandom of=/dev/null bs=1K count=10000   which gives the following output  10000+0 records in 10000+0 records out 10240000 bytes (10 MB) copied, 0.746313 s, 13.7 MB/s   How can I get the '13.7 MB/s' into a bash variable? I've tried piping the output from dd to progs like awk, sed and grep to no avail.  Ultimately, I'm calling this via os.system(...) from within a python script. If anyone knows of a more direct way to get a similar result inside python I'd be interested in that also. I'm trying to predict how long a file copy will take, based on the file size.  Any help would be greatly appreciated. Imaginary line on the Earth is straight or not? I was watching Google map. Saw a line which is joinging north to south pole. It is going between middle of China and Mexico. But, the line is not straight. Tried to search in net but not able to get anything. Can anyone check and let me know  or Why does bash show 'Terminated' after killing a process? Here is the behaviour I want to understand:  $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash  4268 ttys000    0:00.00 xargs $ kill 4268 $ ps   PID TTY           TIME CMD   392 ttys000    0:00.20 -bash [1]+  Terminated: 15          xargs $ ps   PID TTY           TIME CMD   392 ttys000    0:00.21 -bash   Why does it show the [1]+  Terminated: 15          xargs after I kill a process, instead of just not showing it as it was just killed?  I'm using bash on Mac OS X 10.7.5. Can a druid in Ape wildshape use weapons? I'd like to see if somebody has been trying to log-in by brute-force into my Ubuntu 12.04 server over SSH. How can I see if such activities have been taking place? plotting discrete signals What is the right way to indent your source code? Can I see which seats are available on a British Airways flight before I book? Evaluating even binomial coefficients Can someone give me a hint how to evaluate $$ \binom{n}{0}+\binom{n}{2}+\cdots+\binom{n}{o(n)},$$ where $o(n)$ is $n$ if $n$ is even and $n-1$ otherwise ? It is a well known fact that Alex is more soft-spoken than (she/her).    Why would "her" be wrong? Why must the sentence end with "she"? Using a variable in a SELECT statement? public static void handleCaseComment(CaseComment caseComment) {    User[] users = [SELECT LastName FROM User WHERE Id = caseComment.CreatedById LIMIT 1]; }   This gives me the following error:  unexpected token: 'caseComment.CreatedById'   How do I use the value of the variable caseComment.CreatedById in a SELECT statement? Idempotents in a ring without unity (rng) and no zero divisors. Question: Given a ring without unity and with no zero-divisors, is it possible that there are idempotents other than zero?   Def: $a$ is idempotent if $a^2 = a$.   Originally the problem was to show that $1$ and $0$ are the only idempotents in a ring with unity and no zero-divisors, but I wonder what happens if we remove the unity condition.   I am trying to find a ring with idempotents not equal to $0$ or $1$. So far my biggest struggle has been coming up with examples of rings with the given properties.   Does anyone have any hints? How should I attack this problem? Undefined Control Sequence. 1.60 \@writefi Run a batch file in a completely hidden way I'm looking for some way to run a batch file (.bat) without anything visible to the user (no window, no taskbar name, .etc..).  I don't want to use some program to do that, I'm looking for something cleaner. I've found  that uses VBScript, but I don't really like using VBS, either. What will Sony do if someone uses my account as primary on another ps4 without my knowledge? What will Sony do if someone uses my account as primary on another ps4 without my knowledge? Will the account be banned? Or will the other guy that has my account as primary be banned? After how long? I have no credit card on my account so I don't care too much but I want to know.   He uses my account on his ps4 as a primary account. I think to use my digital games as free (Sharing, but without my knowledge). I changed my username and now I cannot play online I don't understand this and I'm now worried as I have donated to a lot of servers and I don't want to lose this account. On the launcher it says my new username but when I log on it says "Account not Authenticated with minecraft.net" and "Non-Valid Username".  How can I regain the ability to use my account online? Is there a way to view &amp; modify the code of standard lightning components that are visible when editing the Napili template in the community builder. I was wondering if I could modify some of the code and use it as lightning out. Automatic line breaking of long lines of text? Here, it is just a example. I have a line:  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaa   Now, I want to let LaTeX automatically wrap the line according to the width of the text block/margins. Are there any significant plot elements in Fantastic Beasts that will be missed if I haven't seen the Harry Potter films? I have read all seven Harry Potter books, and The Cursed Child1, but I've only watched the first two movies.  Do I have to watch all eight movies in order to fully understand the significant plot points found in Fantastic Beasts and Where to Find Them?  Is there anything that I'll miss by not having seen them?    1 Waste of money, that.