I recently restored my laptop (Dell Inspiron 7559) to factory condition and I had to reinstall Windows and Ubuntu. Since I didn't want to pass through all the partitioning and dual boot pain again, I decided to install Windows 10 in the hard drive and Ubuntu 17.04 onto an SSD, pressing F12 at the BIOS loading screen to boot either Windows or Ubuntu.  I took out the hard drive where Windows was already installed, I mounted the SSD and I installed Ubuntu on it via USB created with Rufus. The installation process went fine, I booted Ubuntu and then proceeded to install some programs (a few compilers and a few IDEs). I even tried to restart to see if everything was fine and it did work fine.  The problems begun after I put the Windows 10 hard drive back on. Windows works fine, the problem is Ubuntu: it won't enter the desktop (it gets stuck on log in screen) and won't shut down completely, I have turn off the machine with the physical button.  What's the problem and how can I solve it? I really don't know what the problem might be, and I can't even run little tests since Ubuntu starts but loops in the first menu.  Hoping this helps to the troubleshooting, I remember I didn't understand something during the OS installation: the installation program told me to format the SSD because a Windows booting procedure was installed in there, I said to format the drive and then the program asked me to change something: I didn't remember the exact words, but I'm pretty sure it has something to do with sda1 and things like that (if it wasn't clear from the beginning, I'm a noob).  Also, to be clear, I boot both Windows and Ubuntu in UEFI mode (again, not sure if this info helps, just trying to say everything I changed to install). Could these things I did be related to my problem?
I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?
Can high level Eldritch blast be used with War Caster? Is there an unsubdivide function in Blender? My request is simple: Many times, there will be a question where some people feel like it should be closed. At the same time, I'll feel like it's a perfectly legit question, and it should therefore NOT be closed. Right now, I have to wait till it gets enough close votes (which it always does for some reason, as soon as 1 or 2 people vote to close, e/o else decides to vote as well) and then vote to re-open. How about, as soon as there's one vote to close, there should be an option to counter the close vote, something like "vote not to close" or whatever. This would then bring the "Vote to close" number down by one. Only when the vote to close outnumbers the vote not to close by 5, that's when a question is indeed closed. Any thoughts? What is the difference between Python's list methods append and extend? What are our policies regarding self-harm and suicide? What should I do as a Moderator when I encounter situations regarding self-harm and suicide? Extracting text from HTML file using Python I'd like to extract the text from an HTML file using Python.  I want essentially the same output I would get if I copied the text from a browser and pasted it into notepad.    I'd like something more robust than using regular expressions that may fail on poorly formed HTML.  I've seen many people recommend Beautiful Soup, but I've had a few problems using it.  For one, it picked up unwanted text, such as JavaScript source.  Also, it did not interpret HTML entities.  For example, I would expect &amp;#39; in HTML source to be converted to an apostrophe in text, just as if I'd pasted the browser content into notepad.  Update html2text looks promising. It handles HTML entities correctly and ignores JavaScript.  However, it does not exactly produce plain text; it produces markdown that would then have to be turned into plain text. It comes with no examples or documentation, but the code looks clean.    Related questions: I'm a teacher and will ask my students to either bring their laptops with Ubuntu installed with an specific list of packages preinstalled or bring a USB Drive or External Hard Drive with Ubuntu and the packages preinstalled.  For those who are going to bring the USB are two posibilities:   Install with the Ubuntu's "Startup disk creator" program, and telling it to reserve some space for persistence. Boot with a LiveCD and Install Ubuntu in the USB drive.   Then, in either case, boot with that media and install the packages.  So, for my purpose or any other purpose:   What is the best choice and why? Do we have another option? full explanation please. Ubuntu 18.04 opening system setting logs me out I've recently installed Ubuntu 18.04 in a dual-boot configuration with Windows 10. I noticed today that, when trying to open system settings, Ubuntu seems to log me out to the lock screen. When I log back in, all previously-running applications are now closed. Very unsure what to do from here, any help much appreciated. I have a site that is in French and English. I am able to successfully setup so that users can switch back and forth between the two domains to view either language, however I cannot seem to keep users logged in. When they are logged into the english domain and then switch to the french domain they are required to login again. However if they switch back to the english domain they are still logged in.  As an example we'll use www.english-domain.com as the base (default) domain and www.french-domain.com as the secondary domain  In settings.php I have modified the following, however it doesn't seem to be keeping them logged in. Am I missing something?  /**  * Drupal automatically generates a unique session cookie name for each site  * based on its full domain name. If you have multiple domains pointing at the  * same Drupal site, you can either redirect them all to a single domain (see  * comment in .htaccess), or uncomment the line below and specify their shared  * base domain. Doing so assures that users remain logged in as they cross  * between your various domains.  */ $cookie_domain = 'english-domain.com';   Note: That I have also flushed both site and browser cache as well as deleted any cookies left on my machine.  Update:  Here are my language settings: The iPhone has a very limited selection of default ringtones.  How do I create a new ringtone for my iPhone? Why do only two sexes exist for animals? Why, from the natural selection point of view, do only two sexes exist for animals? How to rename the User folder in Windows 10? Pretty sure that my edit was correct but it was rejected? How do the bonus perks from the Advanced Warfare Center work? How can I change the margins for only part of the text? Sometimes the margins need to be changed for a particular page, paragraph, or other section of text.  For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.  What is the best way to change both left and right margins on the fly? My Windows folder takes up too much space - how can I reduce it? In typical PCs the Size of Windows Folder is 6 to 8 GB but in my Case its 25GB. How can I delete the unwanted files from the Windows Folder (which, in turn, will optimize my C Drive size).  My system is Windows 7 with 60 GB in C Drive with 59 GB occupied. The escape velocity of earth is roughly $11 kms^{-1}$. However, what if a long ladder was built extending out of Earth's atmosphere and considerably more. Then if something was to climb up at much less than the escape velocity, what would happen when it reached the end?  And what if the object that climbed the "ladder" then fired some kind of thruster/rocket and was going fast enough so that it orbited the Earth. It would mean less energy required to get into orbit? I understand there is a method for solving simultaneous modular equations. For example; $$x = 2 \mod{3}$$ $$x = 3 \mod{5}$$ $$x = 2 \mod{7}$$ We find numbers equal to the product of every given modulo except one of them - giving $5 \cdot 7$, $3 \cdot 7$ and $3 \cdot 5$. We then find the multiplicative inverses of these numbers with modulo equal to the number missing from the product. The numbers found are then 2, 1 and 1 in this case. The value of x is then given by: $$x = 2 \cdot (5 \cdot 7) \cdot 2 + 3 \cdot (3 \cdot 7) \cdot 1 + 2 \cdot (3 \cdot 5) \cdot 1 = 233 = 23 \mod{3\cdot5\cdot7}$$  But I do not understand how this method correctly gives the value of $x$. I understand that the Chinese remainder theorem proves that there is a unique value of $0\le x \lt 3\cdot5\cdot7 \mod{3\cdot5\cdot7}$ but can someone please explain why this method finds this value of x? How do I check if a list is empty? For example, if passed the following:  a = []   How do I check to see if a is empty? ResultSet: Retrieving column values by index versus retrieving by label When using JDBC, I often come across constructs like    ResultSet rs = ps.executeQuery(); while (rs.next()) {     int id = rs.getInt(1);     // Some other actions }   I asked myself (and authors of code too) why not to use labels for retrieving column values:    int id = rs.getInt("CUSTOMER_ID");   The best explanation I've heard is something concerning performance. But actually, does it make processing extremely fast? I don't believe so, though I have never performed measurements. Even if retrieving by label would be a bit slower, nevertheless, it provide better readability and flexibility, in my opinion. So could someone give me good explanation of avoiding to retrieve column values by column index instead of column label? What are pros and cons of both approaches (maybe, concerning certain DBMS)?