I have Ubuntu 16.04 installed on my PC (on SSD-500GB). I did an update using sudo apt update and rebooted the system. But when I tried to log in again I got stuck in a login loop and got a black screen. I did everything possible to remove that error (even purged the nvidia drivers) but failed.   So without any backup of my data I tried reinstalling Ubuntu from USB. I didn't format or delete anything. Now I can log in, but I've lost all my data which was on the PC's SSD. Is there any way to recover the data? Any software I can use to do that? Any help will be much appreciated.
Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.
Can I use a Regex in an XPath expression? Something like .//div[@id='foo\d+] to capture div tags with id='foo123'.  I'm using .NET, if that matters. How can I export object's field schema information to excel? How can I export the fields of an object from Salesforce into an Excel sheet? I'm only looking for the field schema information, not the objects records. Is there a way to get a background in CSS to stretch or scale to fill its container? What does "Package  has no installation candidate" mean? What does the above Error mean? What is an installation candidate?  I was trying to do  sudo apt-get install munin-memcached     and I get this message:  Reading package lists... Done Building dependency tree        Reading state information... Done Package munin-memcached is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package munin-memcached has no installation candidate   I googled for the problem and someone said to do a apt-get upgrade but it still did not solve my problem. Why is scale factor inversely proprotional to temperature? In all lectures, books and papers I have read about, the scale factor of the universe is inversely proportional to temperature  $$a \propto \frac{1}{T}$$  What is the reasoning behind this relation?  People did mention stretching of wavelength proportional to scale factor and wavelength being inversely proportional to temperature by Wein's law, but somehow this argument doesn't seem convincing to me. How did we initially come about to this relation? How to change LCD brightness from command line (or via script)? Is  structured data (in Microdata, JSON-LD, or RDFa) relevant for SEO?   I know that structured data can provide benefits in other areas, but here I’m only asking about its significance for general web search engines. How would one go about proving that the rationals are not the countable intersection of open sets? I'm trying to prove that the rationals are not the countable intersection of open sets, but I still can't understand why   $$\bigcap_{n \in \mathbf{N}} \left\{\left(q - \frac 1n, q + \frac 1n\right) : q \in \mathbf{Q}\right\}$$   isn't a counter-example. Any ideas? Thanks! Keep only essential packages What is duplicate content and how can I avoid being penalized for it on my site? This is a general, community wiki question regarding duplicate content.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .     What does Google consider to be duplicate content? Will the way I am presenting my content result in a duplicate content penalty? How can I avoid having my site's content treated as duplicate content? How to write “ä” and other umlauts and accented letters in bibliography? How to write in bibliography (package natbib) letter "a" with two dots above? Specially, I mean the word Birkhäuser.  Is there a general rule or way how to write such umlauts or other accented letters in bibliographies? java.io.IOException: An existing connection was forcibly closed by the remote host Upon entering any given minecraft server, after a minute or two I am forced out of the server, and I'm given the following error:  java.io.IOException: An existing connection was forcibly closed by the remote host.  What does this mean, and how can I prevent it from happening again? Why Faces eat each other? How can I attach a file to a question? I want to attach a code file to my question, but I am not able to find a link to do it. Is attaching files possible at all? after upgrading to 19.04 the Grub menu have become hidden. It still works and I can boot to both Windows 10 and Ubuntu by blindly finding the entry and pressing enter. I have tried to edit the /etc/default/grub and running sudo update-grub afterward but no change. Here is how it looks now:  # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: #   info -f grub -n 'Simple configuration'  GRUB_DEFAULT=0 GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_TIMEOUT_STYLE=menu GRUB_HIDDEN_TIMEOUT_QUIET=false  # Uncomment to enable BadRAM filtering, modify to suit your needs # This works with Linux (no patch required) and with any kernel that obtains # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"  # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console  # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480  # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true  # Uncomment to disable generation of recovery mode menu entries #GRUB_DISABLE_RECOVERY="true"  # Uncomment to get a beep at grub start #GRUB_INIT_TUNE="480 440 1"   I can't use either Shift or Esc to make it visible too. After pressing either of these, Grub doesn't work anymore and I need to turn my laptop off and on in order to boot.  Edit: Not sure if it helps or not, but I just realized that if I go to the BIOS when I exit BIOS the grub menu shows up with no problem. The next time I boot, the grub menu is invisible again. echo "#!" fails -- "event not found" Do dual American and Mexican citizens need passports to travel between the US and Mexico? I have 2 children that were born in Mexico. They have a birth certificate abroad. So this is dual citizenship. Do they need passports?  My kids were born in Durango, Mexico. I am American. Their father is Mexican. They were both given birth certificates abroad. They are now 16 and 14. They want to go visit grandparents and aunts and uncles in Mexico.  Will they need to get a passport to enter Mexico?  Will they need it to fly? Would it be possible to break an RSA key, in for example 1 week of time, if the cracker have already spent X number of years building an index of primes by performing every permutation of existing prime keys up to $2^{2048}$?  I understand this would take an immense amount of time to do, but it would only be done once. Obviously, computing such an index would take a considerable amount of time and would have to be done with someone having the right amount of resource. Given the public key, you would be able to look up what the two primes are, and hence retrieve the private key instantly.  Breaking an 256 AES would then be easier, as AES keys are often generated using the RSA private key.  Would it be possible to build such an index? How long would that take in permutations and perhaps with the fastest computer in the world? What happens if I use RAM of a faster speed than the CPU supports? I was naively validating my binomial logit models by testing on a test dataset. I had randomly divided the available data (~2000 rows) into training (~1500) and validation (~500) datasets.   I now read a post in another thread ( Frank Harrell) that causes me to question my approach:     Data splitting is not very reliable unless you have more than 15,000   observations. In other words, if you split the data again, accuracy   indexes will vary too much from what you obtained with the first   split.   How serious is this worry and what are ways around it? The OP speaks of "resampling" but not sure how that works here for validation.   Edit: Adding context as per @Bernhard's comment below: