Java String Scanner input does not wait for info, moves directly to next statement. How to wait for info?
Scanner is skipping nextLine() after using next() or nextFoo()?
How to remove GNOME Shell from Ubuntu 20.04 LTS to install other desktop environment from scratch? I have just installed the final version of Ubuntu 20.04 LTS desktop system from ubuntu-20.04-desktop-amd64.iso. After two days of testing I completely do not like its graphical interface - the GNOME Shell. Even installation of GNOME Flashback does not help either.  So I want to completely remove the GNOME Shell with all its trails from my system without re-installation. Just want to start from scratch like it was approximately if I have installed Ubuntu from . Why does my iPad keep asking for my iCloud password? I keep receiving an iCloud pop-up message to insert my iCloud password every time i switch on my iPad and I'm unable to do anything on it, inserting the password doesn't help. What should I do? Does light pollution affect sleep quality while already asleep? Many articles on the internet write about melatonin and its effects, making you tired. A lot of articles also point out how the use of devices before going to bed in modern days likely decrease melatonin production. Therefore, making it harder to fall asleep. But this information is only about the process of getting to sleep, before we are actually sleeping.  A recent Harvard Medical article 1 states:     High exposure to bright, artificial outdoor lights during the night may result in sleepless nights for older adults.   Referring to a publication on Nov. 15, 2018, in the Journal of Clinical Sleep Medicine.  Considering that:    many people nowadays, use their mobile devices in bed prior to going to sleep; modern cities or houses have (street) lights that are always enabled at night; ignoring the phase of falling sleep; focusing only on the time we are asleep already, so during the actual sleep cycles.   Does a darker room with less or no (artificial) light pollution improve sleep quality, with all associated health benefits as a result? In other words: Does light pollution, while asleep decrease the sleep quality or does light pollution only negatively affect the phase of “falling asleep”?  I wasn't able to find any studies or information regarding sleep quality in relation to light pollution during sleep. Were such studies performed? Are there specific moments when light pollution affects sleep quality the most, for example during REM-sleep or in a specific sleeping phase?    1 Per the title, does $\displaystyle\sum_{n=1}^{\infty} \sin(\pi(2+\sqrt{3})^n)$ converge? Converge absolutely?   I'm stuck on this question, not sure how to approach it.  Thank you! When should I publish in interdisciplinary versus subject-specific scientific journals? Most science research is published in subject-specific journals, of which there are many. However, there are a relatively small number of interdisciplinary journals, some of which are the most highly cited of all journals (Nature, Science); others have impact factors comparable to subject-specific journals (e.g., PLOS ONE, J. R. Soc. Interface, etc.).  If we discount arguments around open science and similar business model arguments (which could favor journals like PLOS ONE), and assume that the purpose of publishing is simply to get your research read (and cited) by the largest "relevant audience", when should one publish in an interdisciplinary journal versus a subject-specific journal (assuming they have comparable impact factors)? (Are there any papers out there that compare the fate of publications [or their authors!] in the two different types of journal?)  Thanks in advance. Interpretation of the rating of a real transformer The rating of a real transformer is 15 kVA , 2300/230-V then can we say that the primary rms is 2300 V or can we say that the secondary rms is 230 V or both.  To clarify further, suppose to solve for certain characteristics of this transformer like primary current and secondary current i use the equivalent circuit equation of the transformer referred to the primary side as:  Vp = aVs + Req*Ip + jXeq*Ip  Then what should i use for Vp or Vs in the above equation looking at the rating of the transformer.  In the above equation looking at the rating data given above is Vp= 2300 or Vs = 230 ?As mentioned earlier the transformer is mentioned to be real. I'm looking for a good algorithms for the following problem: Given a 3D grid of voxels (which may be either empty or filled), if I pick two non-adjacent voxels, I want to know if they are connected to each other by other voxels.  For example (to illustrate the situation in 2D), where # is a filled square:    1 2 3 a # # # b # # c # # #   If I pick a3 and c3, I want to determine as quickly as possible if they they are connected; if there is a path between a3 and c3 through filled pixels. (The real situation is in a 3D voxel grid, of course.)  I've looked at floodfill algorithms and path finding algorithms, but I'm not sure which to choose. Both do unneccesary work: Flood fill tries to fill all voxels, but this is not needed. Path-finding algorithms are usually concerned with finding the shortest path, which is also not necessary. I only need to know if there is a path.  What algorithm should I be using?  Edit: based on the comments, I think should add the following: the content of the voxels are not known in advance, and also, the algorithm is needed to detect if removal (emptying) of a voxel would cause the group of voxels to break into two or more smaller groups. How did Newton discover his second law? I've always assumed/been told that Newton's 2nd law is an empirical law — it must be discovered by experiment. If this is the case, what experiments did Newton do to discover this? Is it related to his studies of the motion of the moon and earth? Was he able to analyze this data to see that the masses were inversely related to the acceleration, if we assume that the force the moon on the earth is equal to the force the earth exerts on the moon?   According to , the  reads:     Lex II: Mutationem motus proportionalem esse vi motrici impressae, et fieri secundum lineam rectam qua vis illa imprimitur.   Translated as:      Law II: The alteration of motion is ever proportional to the motive force impress'd; and is made in the direction of the right line in which that force is impress'd.   My question is how did Newton come to this conclusion? I get that he knew from  the idea of inertia, but this doesn't instantly tell us that the change in momentum must be proportional to the net force. Did Newton just assume this, or was there some experiment he performed to tell him this? SharePoint online REST: Get users profile properties I'm looking for some help with a REST call I'm attempting to make in SharePoint Online.  I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles    I tried with this code   var siteUrl = _spPageContextInfo.siteAbsoluteUrl;     Console.log(siteUrl);     $.ajax({         url: siteUrl + "/_api/SP.UserProfiles.PeopleManager/GetMyProperties",         method: "GET",         headers: { "Accept": "application/json; odata=verbose" },         success: function (data) {             console.log(data);         },         error: function(error) {             console.log(error);         }     });   but I only get current user profile properties, what I need is all user profiles properties for all users, how can i achieve that?  Thanks in advance! What is *.pkinfo file? What is a *.pkinfo file?   Google Search results talk about Package Info files and how they contain map documents and layers, so I don't see how this is different from a .mpk file.    I also have not found anything about how to create a *.pkinfo file. I'm new to Blender and am having a few hitches.  Each time I use box select on a group of vertices it extends the selection from what was previously selected.  I can avoid this by hitting A to deselect all before using Box Select but I was hoping there was a way to have this happen by default.  Isn't it the desired workflow to select groups of objects and move them independently and only extend the select with Shift?  I must be doing it wrong. The merits of a partitionless filesystem I ran into something a couple of weeks ago that I'd never seen before: A filesystem (ext3 I believe) installed to a storage device without a partition. In essence /dev/sdb was the entire filesystem. I know many filesystems can be extended into empty space, so doing this allows extending without dealing with LVM or some other kind of volume manager, but are there any other advantages for setting up storage this way?  The specific case I saw was as the ephemeral data volume for a number crunching server, the boot and root volumes were traditional partitions on a different storage device entirely. - For some tests in R, there is a lower limit on the  calculations of $2.22 \cdot 10^{-16}$. I'm not sure why it's this number, if there is a good reason for it or if it's just arbitrary. A lot of other stats packages just go to 0.0001, so this is a much higher level of precision. But I haven't seen too many papers reporting $p &lt; 2.22\cdot 10^{-16}$ or $p = 2.22\cdot 10^{-16}$.   Is it a common/best practice to report this computed value or is it more typical to report something else (like p &lt; 0.000000000000001)? I'm trying to setup OpenVPN using NetworkManager. The GUI seems buggy and unresponsive. Are there any other tools for setting up a VPN client? There have been  for a while, but this is ridiculous. It reminds me of , but this time it's network-wide.   The banner must be scrolled past (or dismissed) on every page unless both first-party JavaScript and first-party cookies are enabled. If first-party JavaScript is enabled, and the banner is visible, the rest of the page jumps up and down every so often.  Under certain circumstances (not quite sure what they are, yet – a direct link to an answer, maybe? I'm seeing it ) the entire page jumps up and down a line every few seconds even when the banner is off-screen.   The cookie banner keeps coming back unless both third-party JavaScript  are enabled (and  is solved). The cookie box occludes the “Learn more about Teams” link in the banner (with default Firefox window sizes) and the Job / Teams link in the sidebar.  As it stands,  – a site for hobbyists and researchers, whose audience is not very likely to purchase Teams – is much, much harder to use, for no benefit that I can see. Can you roll back this change, please? Get all possible partitions of number Is there a way to get all possible partitions of an integer? Possibly specifying max and/or min summand. I'm interested in partitions themselves, not just partition count. Physical Explanation for "Kolmogorov -5/3 spectrum" in Fluid Mechanics According to Kolmogorov, the energy spectrum function of a turbulent fluid is given as,  $E(k)=C\epsilon^{\frac{2}{3}}k^{\frac{-5}{3}}$  where $\epsilon$ is the energy flux and $k=\frac{2\pi}{r}$ where $r$ is the length scale.   The normal explanation I see in most physics texts and articles is that the -5/3 exponent is found purely through dimensional analysis. Obviously dimensional analysis is very useful, but often times there is a more physical explanation as well. Does anyone have any insights? Multi armed bandit for general reward distribution What causes the portraits of Wizards to behave interactively? Does J.K. Rowling address how the interactive portraits work? Would a portrait painted after a Wizard/Witch died become interactive, or does the painting of the portrait have to take place during the Wizard/Witches lifetime? What's the difference between:  class Child(SomeBaseClass):     def __init__(self):         super(Child, self).__init__()   and:  class Child(SomeBaseClass):     def __init__(self):         SomeBaseClass.__init__(self)   I've seen super being used quite a lot in classes with only single inheritance. I can see why you'd use it in multiple inheritance but am unclear as to what the advantages are of using it in this kind of situation.