How redirecting debug output to a file
Redirect a portion of a bash script to a file to capture set -x output
Use of "though" versus "however" Consider the sentence      E-books are on the rise, but they haven't suppressed paper books though.    This usage seems to be quite common, but when I learned English  I was taught to use "however" where I now read "though". My questions on this use of "though" are:     Is this a new trend? Is it restricted to American English? Is "though"  considered more colloquial than "however" ?    And on a syntactic level: Do you put a comma before "though"? Is soaking beans 24 hours unrefrigerated safe? What is the probability that the selected function maps prime numbers to prime numbers? Let $X = \{1, 2, 3, . . . , 25\}$. If a student selects a function randomly from the set of all functions from $X$ onto $X$, then what is the probability that the selected function maps prime numbers to prime numbers ? No idea how to proceed, please guide. How to modify font for all text fields? Should I format /sdcard and /data if I want to wipe all personal data with Cyanogenmod? I'm trying to completely wipe all personal data from my Nexus 4 with CM installed. I've seen different advice on different sites for making sure all my data is gone:   Just do 'Factory Reset'. Do 'Factory Reset' at least 3 times. Do 'Factory Reset' and wipe dalvik cache. ...   and so on... I'm interested in erasing all traces of my personal data from the device. It's a Nexus 4, so there is no removable storage to worry about.  My guess would be to 'wipe data/factory reset' and 'wipe cache partition' in the main recovery menu. In the mount/storage menu, I would choose 'format /cache', 'format /data', and 'format /data and /data/media (/sdcard)'. Finally, in the advanced menu, I would choose 'wipe dalvik cache'.   Is this thorough enough? Should I also choose 'format /system', 'format /firmware', etc? Are there any options I should steer clear from? I would like the phone to boot to a fresh Cyanogenmod after clearing all data. I am constructing a bibliography of as much of the prior research in a field I am working in. I would like to use BibTeX to print the citation in the pdf, and then I would like to add the details of the paper after the citation. Only then would I like to print the next citation. For example:  [1] Jahan M. Dawlaty and Yunquing Chen. Measurement of the optical absorption of graphene in the terahertz. Applied Physics Letters, 2008. Research Group: Cornell Pump Wavelength: 500 nm. Probe Wavelenth: 7 microns. Relaxation Time: 50 fs. [2] Paul George and Dmitry Vekslar, Measurement of Ultrafast Carrier Dynamics in Graphene. Applied Physics Letters, 2009.  . . . and so on. Does anyone know how this could be done? How does \fontsize{}{} work? With the package anyfontsize I can use the command \fontsize{}{}. But the second argument seems to be without any effect. I read  that it is related to the line space. It doesn't work.  \documentclass{article} \usepackage{anyfontsize} \begin{document}  {\fontsize{1cm}{1cm}\selectfont First test : I need to put some text here.}  \bigskip  {\fontsize{1cm}{2cm}\selectfont Second test : I need to put some text here --- does it work?}  \end{document}     Any clue? What is numeric promotion? My chooser (file-picker dialog) goes under the dock so I can't see buttons. What can I do? This is a follow-up question to , and is somehow related to   However, my question does not concern the reviews I receive for the papers I submit, but concerns the reviews I write for papers I have been assigned. Since the whole process is done under confidentiality, it is not clear who owns the copyright on a review I wrote, and what does the review include.   For instance, let us assume that X is member of a PC of a conference Y, and assigns to me a review of a paper Z, written by A and B (assuming it's not a double-blind). Can I publish on my blog: "Here is my review for Y, asked by X, on the paper Z, written by A and B"?   I think that there are two points here:    Is it legal? (for instance, publishing the camera-ready version of a paper might be illegal due to the copyright transfer, would it be also the care here?).  Is it ethical? (who should I ask in order to do so? X? Y? A and B? everybody?).    EDIT: There is been several comments/answer wondering why I would like to publish a review I wrote. To give a bit of background of this question, I believe that the current reviewing system, created when the academic community was small and there was no Internet (i.e. no easy access to information), might not be the best, although clearly working. This is for me a very interesting debate, but somehow out of the scope the Q&amp;A format of Academia SE, which is why I tried to focus on my question on whether it was possible to do so, not if it was the best thing to do in the current system (and just to be clear, I don't plan to do it, but I just like to know what are my options). Anyway, thanks for the answers bringing a different light on this debate.   EDIT 2: After seeing the update in Jeff's answer, I just realised that I didn't make it explicit that I was talking about reviews after the reviewing process. Jeff says that it's ok if the paper is accepted, and although I clearly understand the argument of why I shouldn't publish a review of a rejected paper, the question still holds: by publishing a review of a rejected paper, I publish the information that these authors submitted this paper to this conf/journal, which is supposed to be confidential between the authors and the editors. Would I break any rule by doing so? tput: No value for $TERM and no -T specified I am trying to run a bash script I have via cron, and I am getting the following error at the beginning of the execution:  tput: No value for $TERM and no -T specified   Here is what is in my crontab:  0 8 * * 1-5 cd /var/www/inv/ &amp;&amp; /var/www/inv/unitTest run all 2&gt;&amp;1| mail -r "user@example.com" -s "Daily Inventory Unit Test Results" user@example.com Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions? This may be a silly question, but I ask it still. If I have declared a shebang  #!/bin/bash    in the beginning of my_shell_script.sh, so do I always have to invoke this script using bash  [my@comp]$bash my_shell_script.sh   or can I use e.g.  [my@comp]$sh my_shell_script.sh   and my script determines the running shell using the shebang? Is it the same happening with ksh shell? I'm using AIX. Eclipse: Can you format code on save? In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can setup a code formatter.   I'm wondering if it is possible in Eclipse to have these setting take affect every time I save a source file.  Basically, instead of me highlighting everything and pressing Ctrl+Shift+F, I want Eclipse to be responsible for making sure my code is formatted properly.  Is this possible and how do you set it up?  Note On Using the Auto-Format:  It's probably best to choose "Format Edited Lines" as merging changes becomes very difficult when you reformat a whole file that is in source control already that was not formatted properly. Already did this to a co-worker. So, if $\gcd(a,b)=1$, then $\gcd(a^2,b^2)=1$ means $1=ax+by$, and want to show $a^2x+b^2y=1$. By squaring $1=ax+by$ both sides, I get, $1=(ax)^2+b(2axby+by^2)$. It doesn't help my proof. Please help me with this proof. Finding the left and right cosets of H = {(1), (12), (34), (12) ○ (34)} in S4 I have an exercise where I am supposed to find the left and right cosets of H = {(1), (12), (34), (12) ○ (34)} in S4. But how do I generate the cosets? As I have understood it you are supposed to pick a number that is not in the set H and multiply it with every number in H. But this does not exactly give the right answer. I would really appreciate it if someone gave an easy to understand explanation of how to generate the left and right cosets. How can black hole increase its mass? $e^A$, where $A= \begin{bmatrix} 0 & \omega \\ -\omega& 0 \end{bmatrix}$ $\omega&gt;0$, Then Compute the matrix:          $e^A$,     where $A= \begin{bmatrix} 0 &amp; \omega \\ -\omega&amp; 0 \end{bmatrix}$      I have never seen any problem like this. So Please help me solving this. Any link for theoretical reading is welcome. How do I add a kernel boot parameter? I need to add the boot parameter foo=bar to my kernel. How can I do this once for testing, and permanently if testing was a success? Say I have the titanic kaggle competition, but I'm not interested in the competition for predicting survival for each individual. Instead I want the most accurate estimate of total survivors on the titanic. Would this be achieved by using a probabilistic model, then adding the probabilities for each individual? For example, if I have 3 people and 1 survived, but my model produced 0.4, 0.4, and 0.4 probabilities for each person to survive, I calculate 0 survived. But if I add 0.4 for each person, I get 1.2, which is closer to the actual. Does this make sense?