Scanner.nextLine input skipping
Scanner issue when using nextLine after nextXXX
How do I quickly rename a MySQL database (change schema name)? The MySQL manual at  covers this.  Usually I just dump the database and reimport it with a new name. This is not an option for very big databases. Apparently RENAME {DATABASE | SCHEMA} db_name TO new_db_name; .  This needs to work with , which stores things very differently than . Good refactoring support for C++ The Visual Studio refactoring support  for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.  I have seen  and am currently trying it out, but maybe one of you guys know a better tool or plugin?  I've been working with  now for a week or two and got totally addicted. Thanks for the tip, I'll try to convince my boss to get me a license at work too.  I've been bughunting for a few days since Visual Assist X kept messing up my Visual Studio after a few specific refactorings, It took me (and customer support) a week to hunt down but let's say for now that Visual Assist X is not a good combination with . I'm running macOS Catalina 10.15.4 on a 2018 MacBook Pro 15", which has the T2 chip (if anything else is relevant, let me know and I'll update the question.)  I'm a developer and I'm in the process of writing and debugging a C command-line utility that's supposed to take a few miliseconds to run and exit.  My internet connection went down while I was coding (WiFi was still connected, but my ISP was down), and afterwards I noticed that, after compiling the app, the first time I ran it, it took a few seconds to run rather than the expected fraction of a second.  I turned off WiFi (so there was no active network connection), compiled my app again, and ran it -- this time it ran as quick as I would expect.  Turn on WiFi, compile and run again, first run of the app takes longer than expected.  Maybe I'm paranoid, but it sure sounds like macOS is trying to ask Apple's servers for blessing to run my app. Is this the case, or could there be another explanation? If it's indeed the case, can anyone link to an article explaining what's going on under the hood?  UPDATE: as requested, here are timings for an average of three runs of the following command, under different conditions:  touch file.c &amp;&amp; make &amp;&amp; time ./file &amp;&amp; time ./file  The first measurement is the average time for running file for the first time after compilation (the third command in the chain). The second measurement is the average time for running file for the second time after compilation (the fourth command in the chain).  WiFi on, with internet: 347 ms/3 ms.  WiFi on, without internet: 5024 ms/3 ms.  All network connections offline: 24 ms/2 ms. This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton. Is there a word for a person who gives out too many extraneous details? Issue in evaluating the performance of my "clustering algorithm" using NMI, ARI when the "ground truth" is available? I've been trying to solve the following problem:  Suppose that $f$ and $f&#39;$ are continuous functions on $\mathbb{R}$, and that $\displaystyle\lim_{x\to\infty}f(x)$ and $\displaystyle\lim_{x\to\infty}f&#39;(x)$ exist. Show that $\displaystyle\lim_{x\to\infty}f&#39;(x) = 0$.  I'm not entirely sure what to do. Since there's not a lot of information given, I guess there isn't very much one can do. I tried using the definition of the derivative and showing that it went to $0$ as $x$ went to $\infty$ but that didn't really work out. Now I'm thinking I should assume $\displaystyle\lim_{x\to\infty}f&#39;(x) = L \neq 0$ and try to get a contradiction, but I'm not sure where the contradiction would come from.   Could somebody point me in the right direction (e.g. a certain theorem or property I have to use?) Thanks Anime with a boy hiring a creature from a stone, meets a man named Dante and starts a journey to collect crystals I want to show the IP address like below  lo : 127.0.0.1  eth0 : 192.168.5.123 eth1 : 192.172.0.212 wlan0 : 10.1.0.124   I'm able to print all IP address by ifconfig | awk '/inet addr/{print substr($2,6)}'. But it is only printing the IPs. Every system have their own interface names and addresses. So my script has to show their interfaces with respect to IP addresses. Let $D \subset \mathbb{C}$ be an open, connected set and let $\{ u_n \}$ be a sequence of harmonic functions with $u_n: D \longrightarrow (0, \infty)$. Show that if $u_n(z_0) \rightarrow 0$ for some $z_0 \in D$, then $u_n \rightarrow 0$ uniformly on compact subsets of $D$.  If you could offer a hint or a helpful question to get me started I'd appreciate it.   Progress: I now see why showing it for the unit disk suffices (any compact subset in $D$ can be covered by finitely many disks each which is contained in $D$). I'm looking for an example of $2$ non isomorphic groups $G_1,G_2$  that are finitely generated and presented that have the same finite quotients (up to isomorphism) .  Thanks What does the "static" modifier after "import" mean? When used like this:  import static com.showboy.Myclass;  public class Anotherclass{}   what's the difference between import static com.showboy.Myclass and import com.showboy.Myclass? I'm toying with the jQuery plugin  to implement a branching wizard for a web application. The problem I'm struggling with right now is how to deal with user choices that affect the subsequent workflow and the content and re-ordering of the progress meter of the wizard.  As for now I can think of 3 alternatives.   Static solution: Lay out all possible steps in advance. Though some steps will only be activated if the user makes the appropriate choice. Otherwise, the wizard continues with the next valid step. As an example: If someone doesn't need the "flight transfer option" the wizard simply leaves out all steps concerned with that choice. Fluid solution: Lay out only the default or required steps (happy path scenario). If for instance at some point the user chooses to branch away from the visible path (I need the transfer option) the wizard gets a visual update and also its progress meter. Now, showing all the additional steps. (I'm not sure though if this is visually appealing.) A combination of 1 and 2: This is meant as an extension to 1) and 2) where all the choices are made up-front like in a short enquiry (1st step). Based upon these choices the wizard gets a visual update with the corresponding workflow. If the user wants to change the choice she made she has to re-visit the first step (which creates the potential complexity of not loosing already entered data) I try to find a good proof for invertibility of strictly diagonally dominant matrices (defined by $|m_{ii}|&gt;\sum_{j\ne i}|m_{ij}|$).  There is a proof of this in  but I'm wondering whether there are are better proof such as using determinant, etc to show that the matrix is non singular. Homebrew putty installation does not make the putty command recognisable I would like to instal  with use of Homebrew. I'm performing the following command:  brew install putty   which gives the seemingly correct output:  ==&gt; Downloading https://homebrew.bintray.com/bottles/putty-0.67.el_capitan.bottle.tar.gz Already downloaded: /Users/thisuser/Library/Caches/Homebrew/putty-0.67.el_capitan.bottle.tar.gz ==&gt; Pouring putty-0.67.el_capitan.bottle.tar.gz 🍺  /usr/local/Cellar/putty/0.67: 11 files, 1.5M   However, the putty command is not recognised:  thisuser-541/41:~$ putty -bash: putty: command not found Removing phone number from iMessage I'd like to remove my phone number from my iMessage account, but still have my phone enabled to receive messages sent to my email address (also used on iPad, Mac). Is there a way of doing this? Explode string into array with no empty elements? PHP's explode function returns an array of strings split on some provided substring. It will return empty strings when there are leading, trailing, or consecutive delimiters, like this: var_dump(explode('/', '1/2//3/')); array(5) {   [0]=&gt;   string(1) &quot;1&quot;   [1]=&gt;   string(1) &quot;2&quot;   [2]=&gt;   string(0) &quot;&quot;   [3]=&gt;   string(1) &quot;3&quot;   [4]=&gt;   string(0) &quot;&quot; }  Is there some different function or option or anything that would return everything except the empty strings? var_dump(different_explode('/', '1/2//3/')); array(3) {   [0]=&gt;   string(1) &quot;1&quot;   [1]=&gt;   string(1) &quot;2&quot;   [2]=&gt;   string(1) &quot;3&quot; } The definite and zero article with the word "civilization" How does accepting an answer work? What does it mean to accept an answer? How do I accept an answer, and what are the rules? Can I accept my own self-answer? What are the reputation benefits? Which answer should I accept? Should I upvote the accepted answer? What should I do if none of the answers are suitable?      For more information, see "" in the . Did this character even qualify for being Azor Ahai or The One Who Was Promised? In the books and to some degree in the show as well there is a prophesy about the legendary figure Azor Ahai. But in the latest Game of Thrones episode (S08E03) we see Arya      killing the Night King.   However in a  we discussed​ all possible candidates but nobody thought about Arya. Does she even fulfill the prophecy? If she does, how?