how to loop through a sequence of input files in a bash script?
How to loop through arguments in Bash ($1 $2 $3 and so forth)?
I've seen this message several times whenever someone has a problem installing, upgrading or removing some piece of software, but I wonder, what does it mean, and more importantly, is possible to solve it?  (Reading database ... 81657 files and directories currently installed.)  Removing mongodb-10gen ...  arg: remove  invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.  dpkg: error processing mongodb-10gen (--remove):   subprocess installed pre-removal script returned error exit status 100  invoke-rc.d: unknown initscript, /etc/init.d/mongodb not found.  dpkg: error while cleaning up:   subprocess installed post-installation script returned error exit status 100  Errors were encountered while processing:   mongodb-10gen  E: Sub-process /usr/bin/dpkg returned an error code (1)   (the above is just an example, not my actual problem) How to find collisions in a hash function knowing its coefficent? Say I have a simple hash function where $x$ is a sequence of integers:  $$h(x)=(a_1\cdot x_1+...+ a_n\cdot x_n) \bmod N=\sum_i a_i\cdot x_i \bmod N$$  where $a_1,a_2,a_3,...,a_n$ is the coefficient known to the attacker, size of $x$ can be anything smaller than $N$.   How to find 2 different inputs that hashes to the same value, i.e $0$?  I feel like this has something to do with linear combination / euclid algorithm but I'm not sure how to proceed. Why does $\sum_{k=1}^{\infty}\frac{{\sin(k)}}{k}={\frac{\pi-1}{2}}$? Inspired by  (and far more straightforward, I am guessing), Mathematica tells us that $$\sum_{k=1}^{\infty}\dfrac{{\sin(k)}}{k}$$ converges to $\dfrac{\pi-1}{2}$.   Presumably, this can be derived from the similarity of the Leibniz expansion of $\pi$ $$4\sum_{k=1}^{\infty}\dfrac{(-1)^{k+1}}{2k-1}$$to the expansion of $\sin(x)$ as $$\sum_{k=0}^{\infty}\dfrac{(-1)^k}{(2k+1)!}x^{2k+1},$$ but I can't see how...  Could someone please explain how $\dfrac{\pi-1}{2}$ is arrived at? How can I chroot sftp-only SSH users into their homes? bash: syntax error near unexpected token `}' Including .eps figure in PDFLatex This question has been asked a lot, but for reason I cannot get it to work. I'd like to include a .eps image in my document - I am using pdflatex in TeXMaker. Below is the input (I am providing the whole preamble incase there is some interference.   \documentclass[11pt]{article} \usepackage{times} \usepackage{graphicx} \usepackage{epstopdf} %converting to PDF \usepackage{amssymb} \usepackage{amsmath} \usepackage{mathtools} \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \usepackage[parfill]{parskip} \setcounter{secnumdepth}{5} %how deep sections are numbers \usepackage{float} \usepackage[font={sf,footnotesize},labelfont=bf, justification=justified, singlelinecheck=off]{caption} \usepackage[font=footnotesize]{subcaption} \usepackage[scaled]{helvet}  \usepackage{titlesec}  \usepackage[T1]{fontenc} \usepackage[export]{adjustbox} %for large figures \usepackage{upgreek} \usepackage{microtype} \usepackage{setspace} \singlespacing \usepackage[defaultlines=4,all]{nowidow}  \includegraphics[scale=1]{/../model_1_2.eps}    The error I get is:      ! Package pdftex.def Error: File `/model_1_2-eps-converted-to.pdf' not   found.See the pdftex.def package documentation for explanation.Type H    for immediate help.... .../../model_1_2.eps}   I hope someone can help. Dictionary for TeXstudio: “No dictionary Available” I have trouble spell checking my document in TeXstudio. When I press spellcheck, I get the error No dictionary Available. Am I supposed to install a dictionary separately? How? Any suggestion? $n \mid (a^{n}-b^{n}) \ \Longrightarrow$ $n \mid \frac{a^{n}-b^{n}}{a-b}$ How does one prove that if $n \mid (a^{n}-b^{n}) \ \Longrightarrow$ $ \displaystyle n \mid \frac{a^{n}-b^{n}}{a-b}$ where $a,b, n \in \mathbb{N}$.  What i thought of is to consider $$(a-b)^{n} \equiv a^{n} + (-1)^{n}b^{n} \ (\text{mod} \ n)$$ and if we suppose that $n$ is odd then we have, $$(a-b)^{n} \equiv a^{n} -b^{n} \ (\text{mod} \ n)$$ and since $n \mid (a^{n} - b^{n})$ we have $$(a-b)^{n} \equiv 0 \ (\text{mod} \ n) $$  I think i am far away from the conclusion of the problem, but this is what i could work on regarding the problem. How to connect Nokia Lumia 730 to Ubuntu 15.04? My Nokia Lumia 730 (WP8.1) is not getting detected on Ubuntu 15.04.  Can anybody tell me how to fix this? Seems like this is the most powerful weapon of all: transport your enemy into a bulkhead, planet, etc. Transport your enemy's ship inside a planet, etc.  Is there some technical reason that it can not be used this way? This is probably a silly question, but how can I run ANOVA using only the mean, standard deviation, and the sample size?  i.e.  Group  mean    sd    n  1:    200      5    5    2:    100     22    5  3:    150     14    5   I am using Statsoft Statistica software.  I know how to run it using the spreadsheet with all the data, but I have never done this using only the information listed above.  Any information would be greatly appreciated. Well, the original task was to figure out what the following expression evaluates to for any $n$.  $$\begin{pmatrix} 1 &amp; 1 \\ 0 &amp; 1\end{pmatrix}^{\large n}$$  By trying out different values of $n$, I found the pattern: $$\begin{pmatrix} 1 &amp; 1 \\ 0 &amp; 1\end{pmatrix}^{\large n} = \begin{pmatrix} 1 &amp; n \\ 0 &amp; 1\end{pmatrix}$$  But I have yet to figure out how to prove it algebraically.   Suggestions? Illogical GTK theme behaviour on Ubuntu 18.04 Hello Physics StackExchange!  I will put the TL;DR in the beginning: I need a self contained, relatively hand-holding sequence of textbooks that covers up from the end of Griffith's Intro to QM to relativistic QM/particle physics to QFT.    This will be my first post. I'm a medical physics grad student who majored in biomedical engineering for my undergrad, with serious regrets about not doing math/physics double major in hindsight. Oh well. I've made it my goal to eventually understand QFT.  My background in relevant subjects is Calc 1 to 3 and Diff EQ, 2 part freshman physics, an E&amp;M course that used Griffiths Electrodynamics, a summer of self studying Griffith's QM (got most of the way through). I will also be officially taking a class in QM using Griffith's textbook this next spring. I am aware of the Lagrangian and Hamiltonian approaches to mechanics as well. In addition I have familiarity with special and basic general relativity using tensors and all this. What would be the best way for me to get from where I am now to a strong understanding of QFT autodidactically? I have no aversion to studying pure maths where I need to.  EDIT: My question is much different than simply asking for a handholding explanation of QFT. Generally these textbooks assume a certain amount of physics/math background, and I was asking for a sequence of textbooks leading up to QFT from the end of a specific textbook, Griffith's QM. Did you even read my question? Did you read the thing you linked me to? How to use multiple HDRIs My question is, how would I make the visible HDRI/Enviroment Map be image 1 and then have reflections as Image 2? If someone can post a node setup, or a .py file that would be great &lt;3 I was thinking maybe using the Is Camera Ray node but I'm not confident it would work, and have no idea where to start. Why does Kylo Ren's lightsaber look different from normal lightsabers? I know that an easy to handle formula for the CDF of a normal distribution is somewhat missing, due to the complicated error function in it.  However, I wonder if there is a a nice formula for $N(c_{-} \leq x &lt; c_{+}| \mu, \sigma^2)$. Or what the "state of the art" approximation for this problem might be. "No, I didn't see him" vs "Yes, I didn't see him" Bob didn't come to office today.  I was asked "Didn't you see Bob today?"  Should I say "Yes, I didn't see him today" or "No, I didn't see him today"? Any practical uses of machine learning for cryptography? What does $\rightarrow$ mean in $p \rightarrow q$ I was looking at an exercise where it asked the following:  $$\begin{array}{ccc} p&amp;q&amp;p\rightarrow q \\ T&amp;T&amp;T \\ &amp;\ldots \end{array}$$  So, for the third column, I just put $T$ which was correct but I didn't understand what $\rightarrow$ meant. I have seen $\implies$ but I haven't the arrow. Are they the same thing?  Thanks a bunch!