Im looking for a solution to an issue regarding tmux. One of my scripts ns2server stopped working recently when running start (using tmux) but not in debug mode (not using tmux).  I found that using tee to get the output of tmux was for some reason stopping Natural Selection 2 server from running.   tmux new-session -d -s ${servicename} "${executable} ${parms}|tee -a '${consolelog}'"   I removed tee and the server started working again.  tmux new-session -d -s ${servicename} "${executable} ${parms}"   There have also been reports that other server scripts do not update the consolelog unless you enter the tmux session and press return.  Im guessing there is a better way to send the output of tmux to a file than using tee. Does anyone have any suggestions on this? Thank you  Project homepage       EDIT: I have looked at this answer . Although very useful does not quite answer my question. The answer to the other question talks about toggling logging on and off. I require logging to be on by default as soon as a new session is started. Plus I would rather not have to create a .tmux.conf file if this can be avoided. Maybe there is a way for me to script the toggling on by default when the session is started.  EDIT: Found a good solution  tmux new-session -d -s ${servicename} "${executable} ${parms}" tmux pipe-pane -o -t ${servicename} "exec cat &gt;&gt; '${consolelog}'"   the second line activates logging in the session and sends it to a file.
I make heavy use of screen's "log" command to log the output of a session to a file, when I am making changes in a given environment. I searched through tmux's man page, but couldn't find an equivalent. Is anyone aware of a similar feature in tmux, or do I have to write my own wrapper scripts to do this?  EDIT: I'm aware of 'script' and other utilities that allow me to log a session. The reason that screen's functionality is so useful is the ability to define a logfile variable which uses string escapes to uniquely identify each session.  e.g. I have a shell function which, given a hostname, will SSH to that host in a new screen window and set the window title to the hostname. When I start a log of that session, it is prefixed with the window title.  If this functionality doesn't exist in tmux, I'll have to create a new set of shell functions to set up 'scripts' of sessions I want to log. This isn't hugely difficult, but it may not be worth the effort given that screen does exactly what I need already.
Let G be a finitely generated abelian group and M a compact manifold,  I want to prove that $H_r(M,G)$ is finitely generated for $r\ge 0 $.  First I was thinking if  I could do induction over $r$ because for $r=0$, $H_0(M,G) \cong \bigoplus_{i=1}^nG$ where $n$ denotes the number of connected components of M.But for $r&gt;0$ I can't see a way to relate $H_r(M,G$) and $H_{r+1}(M,G)$.  Then I tried to use the fact that for every compact surface there exists a finite cover $\{A_i\}_{i=1}^m$ such that the finite intersections of $A_i$'s are contractile.Let $\{A_i\}_{i=1}^m$ such cover for $M$.Then,using induction on $m$, we have :  -For $m=0$, $M$ is contractile and $G$ finitely generated then $H_r(M,G) $is finitely generated.  -For $m=r$ it's true by induction hypothesis.  -For $m=r+1$ now putting $A_{r+1}=B$ and $\cup_{i=1}^r A_i=A$, and using Mayer Vietoris we get:  $$ ...\rightarrow H_{r+1}(A\cap B,G)\rightarrow  H_{r+1}(A,G) \oplus H_{r+1}(B,G) \rightarrow H_{r+1}(M,G)\rightarrow H_{r}(A\cap B,G) \rightarrow...$$   Here I don't know what to do, maybe I'm missing some algebraic argument It's easy to see that $H_{r+1}(A\cap B,G)$ and $H_{r+1}(A,G) \oplus H_{r+1}(B,G)$ are finitely generated.But how can I argue that $H_{r+1}(M,G)$ is finitely generated? Any idea would be aprecciated. How can I tell whether a circle and a rectangle intersect in 2D Euclidean space? (i.e. classic 2D geometry) Different ways to execute a shell script There are several ways to execute a script. The ones I know are: /path/to/script # using the path (absolute or relative) . script        # using the . (dot) source script   # using the `source` command  Are there any other way? What are the differences between them? Are there situations that I must use one and not another? Unable to locate package kubuntu-plasma5-desktop on 14.04 I am attempting to install kubuntu-plasma5-desktop on Kubuntu 14.04 amd64, following    sudo apt-add-repository ppa:neon/kf5 sudo apt update sudo apt install project-neon5-session project-neon5-utils project-neon5-konsole  sudo apt-add-repository ppa:kubuntu-ppa/next sudo apt-add-repository ppa:ci-train-ppa-service/landing-005 sudo apt update sudo apt install kubuntu-plasma5-desktop   Unable to locate package kubuntu-plasma5-desktop  How can I fix this error? "compare with" or "compare to" Please check both sentences and let me know, which one is correct and why?   She compares me with her boyfriend.  She compares me to her boyfriend. The plural of "person" is "people".  The plural of "people" is "peoples". Person-people-peoples is the only sequence like this that I know of, but I'm looking for another.  (The equivalent question is, is there another plural noun which has become a singular countable collective noun?)  EDIT  For those of you that think that people is nothing but a collective noun (and not an irregular plural, like mice), I urge you to consider:   Do you treat other collective nouns as plurals?  One person, two people, but one star, two galaxy? Do you treat other plurals as collective nouns?  You can certainly say "a galaxy of stars" but do you say "a mice of mouses"?    For those of you that think the customary plural of person is persons, try it on the next three, uh, persons you see: "Finish this sentence: 'one person, two _ ?' " Removing all 'stable' theme's CSS from a Drupal 8 custom theme I would like to remove all CSSs automatically included from stable theme:  /core/themes/stable/css/system/components/*   I can remove them one by one inside the .info.yml file:  stylesheets-remove:   - 'core/themes/stable/css/system/components/ajax-progress.module.css'   - 'core/themes/stable/css/system/components/autocomplete-loading.module.css'   - ...   Is there a way to remove all of them at once?   Something like:  stylesheets-remove:   - 'core/themes/stable/css/system/components/*' What if the hard disk is partitioned into more than 26 sections in Windows? As we know, in Windows the partition location is prefixed with [a-z]:. What happens if there are more than 26 partitions? When creating a question/answer on the Android app, it gives you a little bar above the keyboard to bold/italicize, add a link easily, add a picture etc.  When editing however, this bar isn't shown. To ease editing on mobile, it would be exceedingly helpful to have this bar show up. I find myself resorting to the full site to add a embedded link if I can't at the moment remember the exact syntax. London Heathrow airport - do I need a transit visa? I am traveling from the US to India via London Heathrow on November 6. I will be at LHR on 7th at 6:20 am and departing at 9:25 pm. I'm an Indian national and have a valid US visa.  Do I need a transit visa to stay airside?  I have been scared that British Airways have stopped a few people from boarding flights (no details just rumors).  Do I need a transit visa to stay landside? I want to do some sightseeing. What are the chances of getting past officials using transit without visa concession?  Real stories will help a lot to calm the butterflies in my stomach. How did R.A.B get to know about Voldemort's Horcruxes? Will grammar errors become correct after enough people use them for enough time? First let me state the obvious—based on my own experience—that hordes of people are confused about certain basic grammar principles. For example, I so often see mistakes in choosing the pronoun to use with direct objects, especially when introduced by and with another person, as in "Joe talked about the book with Anna and [I/me]." Another one is the near 100% usage of "lay" instead of "lie" (and "laid" instead of "lay") nowadays, even in published sci-fi books that most certainly had professional editors proofread them.  Do you see these kinds of changes as predictors of the future? Will they become correct after enough people have used them long enough?  Both of these problems drive me bonkers, and I fight my own little battle against them when possible.  I know that dictionaries are descriptive rather than prescriptive. They're technically history books. But grammar and style books seem less so, to me. Those seem as though they ought to be prescriptive in order to reduce the erosion of structured and meaningful language.  In this tension between "what people are doing" and "what people should be doing," are we doomed to forever bear these errors just because too many people don't know the proper way? Is it worth fighting against them? Do I capitulate to the people who are quick to accept any mass public usage as a fait accompli?  Update  I don't imagine for a second that my own writing is error free. The difference with me is that when I do learn I have something wrong in my mind, I immediately change once I clearly understand it.  I also am not imagining that language is static or ignorant that today's correctness is all too often yesterday's error. The whole point of my question here, then, is: is there value in slowing the change, and if so, how is that done and how effectively?  Another way to look at what I'm trying to ask is that in a way I am hoping to define the limits of pedantry. If being pedantic is slavish adherence to outdated rules in the face of actual and foregone changed reality, then when do we conclude that a change is a foregone conclusion?  Poking fun at my own errors to highlight supposed pedantry on my part is to miss everything I am trying to say.    Update 2  It may not be an easy question, but since language change actually does or does not happen, and every person acts with more or less intention in regards to language change, there must be an answer. What I wanted to explore is the value in efforts to teach the "proper way" vs. the opposite end of the spectrum where any new usage is not just accepted but welcome or even sought out. You know, I'm reminded of something: the conservative/liberal scale:     |------+------+------+------+------+------| radical              moderate             radical liberal                                 conservative   The funny thing about those at the ends of the spectrum is that they both want things to change. The radical liberal wants language to change to something new quickly, just for the sake of newness or evolution or some other not-necessarily-realistic ideal. Similarly, the radical conservative wants things to change just as much, but back to the way it used to be, just for the sake of sameness or continuity or some other just-as-not-necessarily-realistic ideal.  I'm not particularly asking where we should be on this scale as that's purely subjective. I'm trying to ask about something purely practical and real-world: what is actually effective? Is language change inevitable, and how fast? Are efforts to reduce its rapid morphing either effective or worthwhile in any measure? All these things considered, what position with respect to language evolution is livable, practical, and sensible?  Feel free to edit my grammar. No comment necessary.  Update 3  Something that may be of interest to both my supporters and detractors: . I enjoyed it. I don't disagree with him, but I am not sure I am wholehearted in this lack of disagreement. Could not list layers for this store error when creating new ImageMosaic database disk image is malformed with dnf on Fedora 29 # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package.  # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. #umask 022  # if running bash if [ -n "$BASH_VERSION" ]; then     # include .bashrc if it exists     if [ -f "$HOME/.bashrc" ]; then     . "$HOME/.bashrc"     fi fi  # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then     PATH="$HOME/bin:$PATH" fi   Can anyone explain the contents of the ~/.profile file? So when you enter into the ~/.profile file what does all the writing mean? Why is my crontab not working, and how can I troubleshoot it? This is a  about using cron &amp; crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted. TeX editor with line-spacing preferences Here is some information we got : We know the value of $n$, with size $1043$. We know the value of $p$ (size $20$) and $q$ (size $1023$) as the factors. $e = 65537.$ $\varphi(n)$ = $(q-1)(p-1)$ When I calculated $\gcd$ and $\text{modinv}$, I got : $\gcd(e,\varphi(n)) = 65537$ $modinv(e,\varphi(n)) = 1 $ So we can tell that they are not relatively prime. So, how to compute the d, and get the value of m? I'm not that good with math, so I cant understanding well the theory. so can anyone please make an example implementation or write a clear formula? So that I could resize the window to a certain size from within Terminal. Find the MLE of the unknown parameter $\theta$ when $X_1,X_2,...,X_n$ is a sample from the distribution whose density function is: $$f_X(x) = \frac12e^{-|x-\theta|}, -\infty&lt;x&lt;\infty$$ What I did so far: $$\text{maximize }(\frac12)^ne^{-|x_1-\theta|-|x_2-\theta|-...-|x_n-\theta|} \\ \text{thus we want to minimize }|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|$$ Since $|x_i-\theta|$ is positive for all $i$, we want to solve for $\theta$ so: $$|x_1-\theta|+|x_2-\theta|+...+|x_n-\theta|=0$$ What do I do from here?