I am using bash. Say,while I am running pacman -Syu I want to change terminal title from user@host:pwd to pacman -Syu and want to get back user@host:pwd when terminal is idle. So, how can I do that? I guess, almost terminal emulator supports printf &quot;\033]0;Title\007&quot;.
My Bash Prompt is currently setting the xterm titlebar using the following sequence:  PS1='\033]0;\u@\h&gt;\w\007'   Is there an easy way to display the current command in the titlebar. For example, if I am tailing a file using tail -f foo.log, I want my titlebar to say tail -f foo.log.
Why does light of high frequency appear violet? Last night, I was using Chrome just nicely, but this morning, I can't even start Google Chrome as it immediately crashes. I have already tried a clean uninstall and reinstall of Google Chrome but still the same error pops up (it does not happen while I'm opening Google Chrome. I woke up and only then realized I can't open my Chrome and it keeps popping up saying that Google Chrome has stopped working.)  OS : Win 7 64-bit  Here is the detail of the crashes  Problem signature:  Problem Event Name:    APPCRASH   Application Name:    chrome.exe    Application Version:    35.0.1916.114 Application Timestamp:    53726019    Fault Module Name:    chrome.dll   Fault Module Version:    35.0.1916.114   Fault Module Timestamp:    53725d18    Exception Code:    c0000005    Exception Offset:    00728bc8      OS Version:    6.1.7600.2.0.0.768.3    Locale ID:    17417    Additional Information 1:    0a9e    Additional Information 2:    0a9e372d3b4ad19135b953a78882e789    Additional Information 3:    0a9e    Additional Information 4:    0a9e372d3b4ad19135b953a78882e789     Any help that will solve this problems is greatly appreciated. Formatting should not count towards the character limit on comments This is a minor frustration, but I have a  that I put italics and bold into (using asterisks.)  Now I know I just just be happy that I could do it at all, but it seems to me that those should not count toward my comment char limit. How to change the title of ToC? I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE:  \documentclass{book}  \usepackage{titlesec} \titleformat{\chapter}{\normalfont\Large\scshape}{\thechapter}{1em}{} \vspace{6pt}]  \usepackage{lipsum}   %-------------------------------------------------------------------------  \begin{document}   \newpage \thispagestyle{empty} \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty}  \setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont\normalfont{Author1} \\ {\scshape\Large Title}}} \addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{Title}} \thispagestyle{empty} \Author{Author1} \Title{Title} \lipsum \newpage \thispagestyle{empty}    \end{document} Finding a replacement for the scoreboard player test If $A=\left( \begin{array}{ccc} 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; 1 \\ 1 &amp; 0 &amp; 0 \end{array} \right)$, find the rank of $A+A^2+A^3$  We have $\rho(A+A^2+A^3)\leq\rho(A)+\rho(A^2)+\rho(A^3) $ where $\rho(A)$ means rank of A.  Here $\rho(A)=3.$ Also $\rho(A^2)=3$ and $\rho(A^3)=3$  as $\det A\neq 0$ and $\det(A^2)=\det(A)\det(A)\neq 0$ and so on.   But how to get the desired result. Was the "Eye of Sauron" Sauron's actual physical form? During the time frame of the Lord of the Rings, was the Eye of Sauron Sauron's actual physical form? If not, what form did he have? Bash is not finding a program even though it's on my path I have a program on my path.  The program runs when executed with a full path specified.  But the program cannot be found when I run it with just its name.    Essentially, I want to understand how the below output is possible, and how to fix it so that my program can actually be found without a full path specified:  root:/usr/local/bin# ./siege **************************************************** siege: could not open /usr/local/bin/etc/siegerc run 'siege.config' to generate a new .siegerc file **************************************************** root:/usr/local/bin# echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games root:/usr/local/bin# siege bash: /usr/bin/siege: No such file or directory root:/usr/local/bin# wtf!?!?   I'm on Ubuntu 12.04 using bash.  Also please note the warning output from siege is not relevant for the purposes of this question, as I am only interested in whether or not the program can be found and invoked. Let $X$ be a random variable and let $g,f$ be real-valued, nondecreasing, and bounded.   Show that $\mathbb{E}[f(X)g(X)]\geq \mathbb{E}[f(X)]\mathbb{E}[g(X)]$  Having a hard time seeing where to start for some reasons, any hints?  I managed to write:  $\mathbb{E}[f(X)g(X)] = \frac{1}{4}\mathbb{E}[(f(X)+g(X))^2 - (f(X)-g(X))^2]$  But I'm not sure if this is in the right direction or not. How do I uninstall xcode 5 command line tools? Is volunteer work allowed in the US while visiting under the VWP or a B1/B2 visa? I am going to Santa Monica for 4 weeks to polish my English in July and would like to volunteer at the Planetary Society located in Pasadena.  I am a Swiss citizen and have a biometric passport. However, I don't have any special visa, as there is no visa needed for the school I am attending and using the Visa Waiver Program, I am allowed to stay up to 90 days in the US.  Am I allowed to do volunteer work during my stay? How to mount PCIe SSD from MacBook Air in another computer I got this SSD out of an Apple laptop that's broken from liquid damage.  What is this connection called and how do I mount this storage device to retrieve data from it? It looks like PCIe. Does Apple sell a part to mount this via USB adapter or something? Too big addon list, what should I do? How expand names and keep it all? Dell Latitude E7270 How do I transfer iPhone contacts to an Android phone? Why are z-values replaced with zero after in_memory use in Python? Is tipping mandatory at Restaurants and Bars in Germany? Below is my code to create the component dynamically - The component is "ui:inputselect"  $A.createComponent(             RecoveryLineItem.Attributes[i].name,{                 "class" : "slds-input ",                 "aura:id" : 'ExampleId',                 "label" : RecoveryLineItem.Attributes[i].label,                 "multiple" : RecoveryLineItem.Attributes[i].multiple             }, ....   ..  console.log(component.find('ExampleId').get("v.value"))    Or console.log(component.find('ExampleId'))  is Giving as 'Undefined"  How to access the aura:id of the dynamically created components? Why use Chef/Puppet over shell scripts? New to Puppet and Chef tools. Seems like the job that they are doing can be done with shell scripting. Maybe it was done in shell scripts until these came along.  I would agree they are more readable. But, are there any other advantages over shell scripts besides just being readable? I saw a video of Johann Cruyff , isn't that against the rules?