Java Scanner doesn't wait for user input
Scanner is skipping nextLine() after using next() or nextFoo()?
Asking on Multiple Sites: "Soft-Migration" See also:   Many of the newer sites have a certain degree of overlap. With the creation of Chem.SE, I noticed quite a few questions on Physics.SE which could have benefited from the chem community and vice versa. There also are a few that could benefit from bio.SE.. Now these questions don't warrant a migration. They can be double-posted, but this doesn't lead to a smooth experience. Even when cross-linked, changes to either post (new answers,new comments,etc) aren't effectively relayed to the other site, and the two questions are just that-- two, separate questions. One solution that came to my mind was a &quot;soft migration&quot; option for mods. By this, a question on site A stays on site A. But, it appears in the site B question list as well. Edits/answers should bump it. Basically, there will be a placeholder item in the questions list of site B. It shows the votes/views/answers of the post on site A, along with the tags (maybe stylized differently). These should be an unobtrusive way to quickly identify what the site is. The post should also be bumped whenever the post is bumped on Site A, and it should display the rep/time/etc of the bumping user as usual. Here's a quick mockup of what happens on the site B question list:  Without being obtrusive or in-your-face (stuff like [migrated] is sort of in-your-face), the post is elegantly shown to be on Physics.SE (well, if you know the icon, anyway). The tags are italicized to show that they link to a different site tags, and the &quot;bumping user&quot; (me) has his/her rep on that site shown. We can also add an indicator on the question on site A () that shows that it was soft-migrated. We can use tooltips as well on the icons to tell us why they're here. After all, half of SE documentation is in tooltips.  Now I know that these issues will probably be raised:  Rep: An avid user on Site B gets no Site B rep for giving a good answer on Site A. Frankly, I don't care about this to much, but others may.  Implementation: It may get complicated. Internally, I'd propose that none of the question data is copied, rather Site A pushes the vote/bump data whenever a vote/bump happens. The easiest way to then implement the soft merge would be to have a table of questions soft-merged &quot;to&quot; site B on site B itself, with columns for all the vote/etc data. The questions table should have an extra column for &quot;soft-migrated to&quot;--that way Site A can determine where to push new data to on every vote/bump. Now, all Site B has to do is take the JOIN of the questions table and the soft-merge table and display them in the new questions list (or any list, for that matter). With some extra formatting, maybe. Of course, I may be oversimplifying this and I don't really know what I'm talking about ;-)  Is there a need? : Yes, I would say so. Such questions can get awesome answers is both the communities participate, but our don't-cross-post-much policy deters this. In the end, this will result in better post quality, making the Internet better. Also, as area51 grows, we will see this problem more and more, and this will become more and more necessary.   Thoughts? Any better ideas? Waffles?  Update: Another use case for this would be to soft migrate all MSO  questions over to child metas, effectively solving Is it possible to create a geocoding and reverse geocoding service based on the shapefiles data I have the following sequences $(a_n)$, $(b_n)=(a_{2n})$, and $(c_n) = (a_{2n-1})$.  I have to show that:   if $(b_n)$ and $(c_n)$ both convergence to $a$, then $(a_n)$ also converges to $a$; if $(a_n)$ converges then $(b_n)$ and $(c_n)$ also converge; there exist $(a_n)$ not converging but with $(b_n)$ and $(c_n)$ converging.   I am not sure how to solve this since I only know that $(b_n)$ > $(c_n)$ > $(a_n)$ on the terms how the sequences are defined. Saleforce Too many future calls: 11 Render semi-transparent volume with cycles I want to render an image of a fire in cycles, but as a png with a transparent background. Without a transparent background, the output image looks like this:    But as soon as I tick the "Transparent" checkbox under Render->Film, all the semi-transparent parts of the image are not rendered and it looks like this    which is clearly not what I want. I've tried to add a holdout shader or a transparent shader to my smoke domain material nodes, but it didn't help. I've only found answered questions for semi-transparent glass, but none for volumes. My node setup looks like this:    but the transparent shader doesn't do anything.  Has anyone an idea how to fix this?  Thanks  Edit: I've just changed the flow type to "Fire and Smoke" instead of "Fire" and now the semi-transparent parts render too, but I don't want the smoke. Getting "Not found" message when running a 32-bit binary on a 64-bit system I have currently a strange problem on debian (wheezy/amd64).  I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/. To make things easy, I have initialized this chroot with a debootstrap (also wheezy/amd64).  All seemed to work well inside the chroot but when I started the installer script of my server I got : zsh: Not found /some_path/perl (the installer includes a perl binary for some reasons)  Naturally, I checked the /some_path/ location and I found the "perl" binary. file in chroot environment returns :  /some_path/perl ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped   The file exists, seems ok, has correct rights. I can use file, ls, vim on it but as soon as I try to execute it - ./perl for example - I get : zsh: Not found ./perl.  This situation is quite understandable for me. Moreover :   I can execute other basic binaries (/bin/ls,...) in the chroot without getting errors I have the same problems for other binaries that came with the project When I try to execute the binary from the main root (/chr_path/some_path/perl), it works. I have tried to put one of the binaries with a copy of my ls. I checked that the access rights were the same but this didn't change anything (one was working, and the other wasn't) How do I delete data for one game in the iPad Game Center? What does “” exactly mean in “echo  temp.txt”? I have a lot of filesystems:   / on a PCI-E SSD swap on a SATA SSD /media/ned is a RAID5 array /tmp lives on RAM Parts of /home/oli are symlinked and bind-mounted in from ned I also have /media/jeff/ which is RAID1 that I store backups and bind-mount ~/.wine in off.   It's actually a lot more complicated than that. There are all sorts of extra symlinks that I need to untangle in the long run but for now I just need a nice way of taking a path and finding out where it physically lives. What is $48\div2(9+3)$? There is a huge debate on the internet on the value of $48\div2(9+3)$. I believe the answer $2$ as I believe it is part of the bracket operation in BEDMAS.  yields the same answer. I also believe that if $48\div2\times(9+3)$ was asked it would be $288$ which Mathway agrees with as well. However,  says it is $288$ either way. A friend of mine (who is better at math) told me that there is no such thing as 'implicit multiplication', only shorthand so that is in fact done after the division (going left to right, not necessarily because division occurs before multiplication. But he didn't explicitly give a reason) What is the answer and why? Let $x*y=\gcd(x,y)$ on $D_n=\{x\in \mathbb N:x |n\}$. I have to prove that $(D_n,*)$ is a commutative monoid and I have a problem when finding the identity element.  $x*e=x$  So $gcd(x,e)=x \to e=xk,k\in \mathbb N^*$ and $e \leq n$  A good $e$ is $0$ but it's not in $D_n$ In The Winter Soldier, who did Peggy Carter say she married? When Steve Rogers visits Peggy Carter, she has a family photo on her nightstand and says that she married someone after Cap disappeared. Who did she marry? If a bob attached to a string is swinging in vertical circular motion, we say that the bob leaves the circular path when the tension in the string becomes zero, but even when tension becomes zero, there's always a component of the bob's weight towards the center of the circle. Why then does the bob leave the circular trajectory? I will like to know some of the android emulators that work really well with Ubuntu 11.10 and above. I want to try 'whatsapp' on Ubuntu through an android emulator. Thanks in advance Is it possible to run some code when an assembly is loaded, without doing anything specific in the loading code? What I am looking for is like a static constructor on a type.  Eg:  Assembly A does not know about Assembly B, but B does know about A. Assembly A needs to know certain things about B if B is loaded. When Assembly B is loaded by the runtime (referenced, or explicit), I want a piece of code (static method or attribute) to be executed that calls a method in Assembly A.  The root cause of this problem is unknown types being encountered when serializing a type in A that contains types from B not known at compile time as interfaces are used. Can you negate the Frightened condition by not looking at the source of your fear? As the title says, if you cause a creature to be Frightened of you, as in the Frightened condition, but they can somehow manage to not see you, do they stop rolling with disadvantage to attacks/ability checks?  Below are scenarios to illustrate my question.  Scenarios:   If a creature is frightened of you, and they turn their back against you to hit someone else, would they no longer have disadvantage to attack rolls/ability checks? If a creature is frightened of you and they have Blindsight, can they close their eyes to stop seeing you, and hence stop rolling with disadvantage? If a creature has 60 ft of movement and is frightened of you, and there is a corner they can reach in 15 ft that will block you from sight, can they run to that corner to stop being frightened, then run back to attack without disadvantage? Assume they would not provoke OA to do this, although the OA is immaterial to the question. Built-in text editor in Terminal Is there a built-in text editor in the terminal on Lion?  (Like, for example, nano on Linux.) How to add desktop shortcut for URL, ignoring web app manifest? Goal:  Have a desktop shortcut that opens  , ignoring the contained web app manifest that otherwise "overrides" the saved shortcut to  and with "display": "standalone".  I had this working previously on an older Android phone before a replacement / upgrade.  Prior to the upgrade, I was able to long-press and open individual articles in new tabs - as well as copy link shortcuts to specific articles, as well as all of the other features and functionality that Chrome has to offer.  Here is just a partial selection of references of other users complaining about the same:       Using  provides a temporary successful work-around.  However, I can't find a successful way to add a link for this to my home screen.  The "Add to Home screen" option within Chrome instead saves a link to  - and in such a way that it opens as a web application instead of a web page within Chrome:       On a desktop operating system, this would be a non-issue.  (Create shortcut, enter desired URL, done.)  Attempt 1: Provide my own Manifest  So I created my own manifest - editing  to change the start_url attribute to https://news.google.com/news/i#0, and the display attribute from standalone to browser.  I then created my own HTML page that simply contained the below - then self-hosted both on a local web server:  &lt;html&gt;         &lt;head&gt;                 &lt;Title&gt;Google News&lt;/Title&gt;                 &lt;link rel="manifest" href="/news/manifest.json"/&gt;         &lt;/head&gt;         &lt;body&gt;                 Test         &lt;/body&gt; &lt;/html&gt;   However, this doesn't work:  Despite the shortcut being saved with the desired name and icon, it links back to my self-hosted HTML page, and not the indicated start_url.  Unfortunately, it appears that cross-domain URLs are not allowed per the manifest intent - as per  and  .  Attempt 1b: MITM website  Within the confines of my own local network, I figured I could try to  (MITM) the website to temporarily provide a desired manfiest to use for addition to the home screen.  Unfortunately, the website uses  here, which appropriately blocks the attempt.  Regardless - this is way too much work for what should be a simple effort.  Attempt 2: Widget Bookmark  Unfortunately, it looks like the 1x1 bookmark widget was removed in Chrome 48, as per  .  The suggested work-around is to use the "Add to Home screen" feature within Chrome.  Goto 10 / see beginning.  Attempt 3: Use the default-provided "Internet" browser  Unfortunately, using "Add shortcut on Home screen" in the default-provided "Internet" browser produces the same result as Chrome.  Consideration 4: Use a custom app / widget  Could probably write and install a custom application or widget that could be added to the home screen to meet the goal.  Or don't re-invent the wheel, and use an existing one.  Some possibilities:   "More Shortcuts":  "Shortcut Customizer":    Conclusion  How can someone create a desktop shortcut to an arbitrary URL, ignoring a provided web app manifest? Add optional box for spam flags letting you say why you think it's spam , where a user had taken the time to look at the link on a post and realized that the post wasn't just off-topic, it was actually half-decently-disguised spam. So he flagged it as spam, and an overworked mod declined it, giving the questioner the benefit of the doubt. And we probably want mods to be giving the questioner the benefit of the doubt.  We also want to get rid of spam ASAP, and make the lives of mods easier. I'd like to suggest a feature the mod in question mused might be useful: An optional textbox where you can add a note saying why you think it's spam, so the mod can see it easily. In this case, the helpful user who went the extra mile could have written "Site linked doesn't relate at all to the question, instead solicits BitCoins" or similar.  One can leave a comment on the question, but:   People sometimes leave...unhelpful...comments on spam questions, and we don't want mods to have to take the time to read through them hoping for something useful It allows the user flagging the spam to do so and say why without calling attention to themselves publicly     Update: We may well want this for all flags, but in particular I had reason to want it for an NAA flag, so I've posted . Greek pdf bookmarks I am puzzled with sections titled with Greek characters. They do appear in the pdf's Content list, though not correctly.  For example, in my thesis--written in English with LyX, based on the KOMA-script--I choose to include a translation of the summary in Greek (=Περίληψη). The "raw" code for the (unnumbered) chapter title reads: \addchap{\textgreek{Per\char208lhyh}}. In the final .pdf file (using pdflatex) the respective entry appears as Per208lhyh. Using the unicode option for the hyperref package does not fix the problem.  Update detail: the document (should) not only contain Chapter or Section titles in Greek, but normal text as well.  I have found some relevant references within tex.stackexchange and elsewhere (e.g., , the manual of the textgreek package, , ). However, I cannot extract a concrete answer.  How can Greek characters appear correctly as bookmarks in the .pdf's Content list?  Note, the information of this Q&amp;A applies to/under LyX as well.