After $PS1 modification - Cursors jumps left of the bash prompt I modified my $PS1 variable. The problem now is that the cursors jumps to the left side of the $ when I scroll through the bash history via Arrow-UP .  That is my $PS1 now. admin@OLAF:~$ declare -p PS1 declare -- PS1=&quot;\\[\\e]0;\\u@\\h: \\w\\a\\]\${debian_chroot:+(\$debian_chroot)}\\[\\e[1m\\e[38;5;208m\\e[48;5;24m\\u@\\h\\[\\e[0m\\]:\\[\\e[97m\\]\\w\\[\\e[0m\\]\\\$ &quot;
Terminal prompt not wrapping correctly I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following:  username@someserver ~/somepath $ ssh -i /path/to/private/key myusername@something.someserver.com  The command should render on two lines. Instead it will often wrap around and start writing over the top of my prompt, somewhat like this:  myreallylongusername@something.somelongserver.comh -i /path/to/private/key  If I decide to go back and change some argument there's no telling where the cursor will show up, sometimes in the middle of the prompt, but usually on the line above where I'm typing.   Additional fun happens when when I Up to a previous command. I've tried this in both gnome-terminal and terminator and on i3 and Cinnamon. Someone suggested it was my prompt, so here that is:  \[\033[01;32m\]\u:\[\033[01;34m\] \W\033[01;34m \$\[\033[00m\]  Ctrll, reset, and clear all do what they say, but when I type the command back in or Up the same things happens.  I checked and checkwinsize is enabled in bash. This happens on 80x24 and other window sizes.  Is this just something I learn to live with? Is there some piece of magic which I should know? I've settled for just using a really short prompt, but that doesn't fix the issue.
Why use pointers? Is there a difference between copy initialization and direct initialization? Continuing in the Visual Studio debugger after an exception occurs When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code.  Everything is fine for now.  I then press "F5" to continue. From this moment, it seams like I'm in an infinite loop. The IDE always get me back to the exception line. I have to Shift + F5 (stop debugging/terminate the program) to get out of his.  I talked with some co-workers here and they told me that this happens sometime to them too.  What's happening? The discrimination between short and long option is only `-`? On Unix system, options begin with - is short option, while options begin with -- is long option. Is my understanding right? URL to load resources from the classpath in Java Do we still need to avoid using frames and iframes for SEO? I thought frame and iframe were bad for SEO, but today I was doing a search for "numismatica" on Google.it.  The 3rd site is lemonete.com which is all made with frames. A competitor site (nummus.com) that has no frames ranks much lower when searching for the same word: "numismatica".  So can we use frames without taking an SEO hit now?  Any explanation (possibly simple) would be appreciated also about the fact the 2nd site ranks much lower. :) Can you cast a spell learned from the Magic Initiate feat using spell slots? Can you cast a spell learned from the Magic Initiate feat using spell slots? Say I play a wizard who learns cure wounds by taking the Magic Initiate feat. Could I cast that spell using the Wizard's spell slots? Replace Line Breaks in a String C# Random Sample vs. As Large a Sample as Possible? I'm struggling to differentiate scenarios where you would use random sampling vs. getting as large a sample as possible. For instance, one thing I am trying to test is the notion that being in a "home" arena boosts player performance.  I have collected individual football game data for every game over the past 10 years. I have over 34000 observations of players performance during this time span. Would it have been more prudent for me to take a random sample of say, 1000 players over the past 10 years?  I just don't understand why, in the above scenario, I'd take a random sample of 1000 when I can just take all of the players performances from the past 10 years. Going into a directory linked by a link When I cd a link, my current path is prefixed with the link's path, rather than the path of the directory the link links to.  E.g.  ~/dirlinks/maths$ ls -l logic lrwxrwxrwx 1 tim tim 71 Jul 27 10:24 logic -&gt; /windows-d/academic discipline/study objects/areas/formal systems/logic  ~/dirlinks/maths$ cd logic ~/dirlinks/maths/logic$ pwd /home/tim/dirlinks/maths/logic  ~/dirlinks/maths/logic$ cd .. ~/dirlinks/maths$   I would like to have my current path changed to the path of the linked dir, so that I can work with the parent dirs of the linked dir as well. Besides ls the link to find out the linked dir, and then cd into it, what are some simpler ways to accomplish that? For example, after cd into a link, how do you change your current path to the path of the linked dir? How to stop mysql from running at boot time? Currently, my MySQL server starts on every server boot. For a couple reasons, this is undesirable behavior. Is there a way to disable this behavior? Is Checksum to file back decoding possible? So, I was having this weird thought. If the checksums(MD5 or SHA...) are unique to any file and are modified if any part of the file is edited, why cant the checksums be decoded back to get the original file? That is if I want to send a large(say 700MB) video, instead I could send just the hash and the file be decoded locally in my friend's computer. I know the thought is stupid, but is it possible by any chance? Or am I missing some thing here? And forgive me if I'm wrong, I ain't a professional. JMeter : How to record HTTPS traffic? How did nobody at Hogwarts (especially Dumbledore) figure out what killed Myrtle? Is it possible to do a cross page POST to an ASP.NET, from a static HTML form? How to do the port forwarding from one ip to another ip in same network? I would like do some NAT in iptables. So that, all the packets coming to 192.168.12.87 and port 80 will be forwarded to 192.168.12.77 port 80.  How to do this with iptables?  Or   Any other ways to achieve the same? Make it cost more to downvote without comment; make it hurt to leave a crap comment Possible Duplicate:    In the spirit of &quot;encouraging&quot; people to leave comments on downvoting, I would propose that if someone downvotes without a comment, I propose a heavy point tax, say 3x the current point cost for a downvote. If he or she downvotes and leaves a comment, then it costs the current amount. If someone leaves a crap comment (to avoid the &quot;charge&quot;) they get a painful spank (100 points gone or whatever the community decides) if and only if:  The comment is flagged Three (five? whatever) moderators agree it is crap  Common complaints Or, why my proposal is different.  &quot;  a &quot;   No it isn't. I specifically address the issue of leaving garbage comments to avoid the downvote tax, unlike the other proposals.   &quot;Some people want to leave anonymous (down)votes.&quot;  I understand that some might be fearful of retaliation. Is retaliation a real problem or a &quot;what if&quot; conjecture? (Where's the data?) What if we try it for 3-6 months and then circle back to see how well it works?  If a user starts retaliating against another user, they will be dealt with as are all other problem users. Nothing else is anonymous - asking questions, answering questions, editing questions, leaving comments, etc. and there is a clear benefit. What is the benefit to the community for having anonymous voting? I would argue &quot;none.&quot; Even though some people might want to leave anonymous questions, answer anonymously or anonymously edit a question, it is not allowed, because it is not good for the community.   &quot;But this will discourage downvoting&quot;  I agree, and I think that's a good thing, which goes to the philosophy of the site: promote good questions and answers. If a question or answer is poor, few will up-vote it. If is is really poor, it will get flagged and . If someone really wants to downvote, no one is stopping him or her. Just as we want quality questions and answers, we need quality voting.   It will require too much work to implement  Maybe. Let's ask if it is worth the effort. What benefit does anonymous, no-comment downvoting add to the site? It certainly doesn't allow the author to improve. What benefit would owned, commented downvoting add? It would hopefully allow authors to improve and discourage drive-by downvoting. Would me (or someone else) submitting a patch alleviate this complaint?   Jeff (or Joel) thinks this is a stupid feature, and you're stupid for suggesting it.  &quot;&quot; Is this a true statement?    Thanks for reading. Is there a phrase that means sleeping with someone without sex? $a, b, c$ are positive real numbers.   Prove that $$8abc\le (a+b)(b+c)(c+a)$$  I haven't really gotten anywhere, just tried to open up $(a+b)(b+c)(c+a)$ and got null. Convergence of integrals in $L^p$ Stuck with this problem from Zgymund's book.   Suppose that $f_{n} \rightarrow f$ almost everywhere and that $f_{n}, f \in L^{p}$ where $1&lt;p&lt;\infty$. Assume that $\|f_{n}\|_{p} \leq M &lt; \infty$. Prove that:  $\int f_{n}g \rightarrow \int fg$ as $n \rightarrow \infty$ for all $g \in L^{q}$ such that $\dfrac{1}{p} + \dfrac{1}{q} = 1$.  Right, so I estimate the difference of the integrals and using Hölder end up with:  $$\left|\int f_{n} g - \int fg\right| \leq \|g\|_{q} \|f_{n} - f\|_{p}$$  From here I'm stuck because we are not assuming convergence in the seminorm but just pointwise convergence almost everywhere. How to proceed?