Finding a way to stay on page when Enter is pressed on a form
How to prevent form from being submitted?
Smart Phone's camera socket How to make git mark a deleted and a new file as a file move? Homemade coconut milk separates into different layers after a day in the fridge I made some coconut milk. After a day in the fridge there was two layers of liquid in the jar, coconut water and solid coconut which I found out afterwards that it is called coconut butter! When I stir them together to  have my coconut milk back, it didn't work. Is there a way to prevent this? If not, is there a way to have coconut milk again? To show for following sequence $\lim_{n \to \infty} a_n = 0$ where $a_n$ = $1.3.5 ... (2n-1)\over 2.4.6...(2n)$ Does a photon exert a gravitational pull? Mouse pointer and keyboard Freeze when pluggin in external hard drive so as I say in the title I have this very big, annoying problem. On my new PC (HP Omen 2020, i7-10750h, Nvidia RTX 2070, 16GB RAM) when I connect an external hard drive (precisely an WD My Passport Ultra, 3TB) I get occasionally mouse and keyboard freezes. Practically, the system becomes unusable. The mouse and keyboards works, they even show in device manager, but from time to time (too often) they &quot;freezes&quot;: mouse pointer freeze, and it won't respond to my input, and keyboard too, if I type something it will not respond. First I thought this was a behaviour due to bad drivers, or something related to my new PC, the fact that it has USB 3.1 ports. But then I've noticed that this fact happens only when I connect my WD Hard Disk (which is USB 3.0) to my pc. I've tried some stuff online, suggesting to update drivers, change some windows settings, but with no success. My guess is that the hard disk and the mouse-keyboard does interfere with each other in some ways. I guess that it's a software problem, at driver levels maybe, not a physical one. When the mouse doesn't respond, I've tried to use the touchpad on the notebook, and it does work. So it's not a windows freeze, it's just the device (mouse-keyboard-receiver) that doesn't respond. The mouse and keyboard are from Logitech, bot connected with the Unifiying receiver (a wireless receiver they provide for the mouse and the keyboard). Model: MX Anywhere 2S for the mouse, K360 for the keyboard. Please, help me solve this problem, monday I start taking my engineering class lessons from MS Teams, and I need my pc up and running and well responsive (I need to access data from the hard disk while I take classes). PS: I've seen that there are some other questions like this in the forum, but none of them seems to provide a solution to the problem. I would also change the external hard drive in the future, but I need to know that the problem with this one won't show with another hard drive, or other devices. I've already sent this very same post to Microsoft community, I really need help with this thing otherwise it will be a problem following my online classes. Thank you if you will try to help me EDIT: On the notebook in question I have 4 USB 3.1 Ports, with two ports on each side, and a single Type-C Thunderbolt port (I'm not counting that one cause both the hard disk and the logitech receiver are USB 3.0 type A connectors). I've already tried switching USB port, connecting the WD Hard Disk to another port, doing the same on the logitech receiver, and I've even tried putting them one on the left side and the other to the right side, to minimize &quot;interference&quot; as someone suggested. But nothing, I still got this problem, which seems driver-related. Hope this will give more info Making adult decisions "is" or "are" really not fun: Which is correct? Making adult decisions are/is really not fun.     What is the proper answer and why? My gut says "is" but I can't explain why. Hey guys I found one or two papers which use ridge regression (for basketball data). I was always told to standardize my variables if I ran a ridge regression, but I was simply told to do this because ridge was scale variant (ridge regression wasn't really part of our course, so our lecturer skimmed through it).  These papers I read didn't standardize their variables, which I found a bit surprising. They also ended up with large values of lambda (around the 2000-4000 level) via cross-validation, and I was told that this is due to not standardizing the variables.  How exactly does leaving the variable(s) unstandardised lead to high lambda values and also, what are the consequences of not standardizing the variables in general? Is it really such a big deal?  Any help is much appreciated. A linear operator commuting with all such operators is a scalar multiple of the identity. How to appeal to undelete an answer deleted by moderator? How can someone make an appeal to un-delete an answer that was deleted by a moderator?    There should at least be an appeal/vote process, if the deletion was unfair. Moderators are humans like rest of us, and they can be unjust. Ubuntu 20.04 interface font too small after restart, even with high scaling factor So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor  I also tried using the command dconf reset -f /  Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU How do I end a Tkinter program? Let's say I have this code:  from Tkinter import *  def quit():     # code to exit  root = Tk() Button(root, text="Quit", command=quit).pack() root.mainloop()   How should I define the quit function to exit my application? What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)? I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas.  This is what I understand so far:   The emulated terminal makes different system calls to /dev/ptmx, the master part of the pseudo-terminal. The master part of the pseudo terminal allocates a file in /dev/pts/[0-N], corresponding to the obsolete serial port, and "attaches" a slave pseudo terminal to it. The slave pseudo terminal keeps information such as session Id, foreground job, screen size.   Here are my questions:   Has ptmx any purpose besides allocating the slave part? Does it provide some kind of "intelligence", or the emulated terminal (xterm for instance) has all the intelligence of behaving like a terminal? Why does xterm has to interact with the master part, as it only forwards the stdout and stdin of the slave part? Why can't it directly write and read from the pts file? Is a session ID always attached to one pts file and vice versa? Could I type a ps command and found 2 sessionId for the same /dev/pts/X? What other information does the pts store? Does Xterm update all fields by himself, or does the ptm add some "intelligence" on it?     1. I base my understanding on the , and the  posts, as on several other As a native English speaker, which two further languages would give me the most travel utility worldwide? This follows on from a travel conversation a group of us had in a hostel in London.  Assuming I am travelling randomly between countries and continents, which two languages in addition to English would provide the most usefulness in any given country?  I suspect Spanish (North America, South America) and French (Europe, Africa) but with the base understanding between French and Spanish maybe the time would be best spent learning another language?  This question is a real puzzler since the following constraints apply   Length of time required to be "functional" in the language (cost-time trade off) Chance of reaching proficiency within any meaningful timeframe (Mandarin) Regional dialects destroying proficiency (Arabic) Easier Secondary languages underpinning the society (Arabic versus French argument) Similarity of Language families (Romance) leading to wasted effort (Italian v French) Utility of the Language (German versus English when English is understood) Enjoyment is a minor consideration   Happy to consider any other thoughts but it is a really interesting topic for consideration if you are linguistically minded. Relating the union of the power set of a set to the set itself How does the Schengen 90/180 rule work? I have searched the web a lot and could not find an answer that fits my situation. Here are two links that are quite contradictory:       My situation:  I've visited Portugal in December 2012 for 29 days on a Schengen visa valid from December 1st, 2012 to February 1st, 2013 for research purposes (I am a Ph.D. student). I want to visit Sweden from February 10th, 2013 to May 10th, 2013 (89 days). I have applied for a Schengen visa again (for research). How will the 90/180 rule work in my situation? Beamer continue block in next column 80's/90's movie: man and woman driving through a red desert planet I am trying to identify a sci-fi movie from the 80's or 90's, with the following parameters:  Setting:    Scenes of a red desert planet   Culture:    Either people roam fairly solo and try to acquire resources to survive, or you live in a weird society where if a stranger is captured he needs to play in a game of fight to the death.  Mobility:      One foil character has a giant battle-bot-looking tank as his form of transportation through the desert. Protagonist has a car that has a plastic half bubble on top to look out from.   Robot:      The protagonist runs around in the beginning of the film with a female robot/android whose face is melted off after it has acid touch its face.(This scene happens next to the protagonist's rover)  Love interest:      Somehow protagonist comes across female protagonist in desert. She smells really bad and is hungry. They sleep outside, and he tells her to sleep away from him. He uses a thermal blanket(the first I ever saw in my life). She wakes up next to him, smelling horrible. He bathes her in some water hole they find(as if water were not scarce and they could just waste water.)   Pupa monsters:      Scene where they are in a building and they are trying to get out. They come across a room that is white, in which multiple giant, white, snot, pupa are hanging securely from the ceiling. Through curiosity, they disturb them, and now they have to get out of that room fast.  Boss Antagonist:      Pervert bionic man, that is actually attached to a giant robotic arm, as only form of movement. He is in black and has a pale bald head as his most human looking part. Charging Li-ion batteries in parallel I wanted some opinion on my set up here, just to make sure I got the basics right.  I have a Li-ion battery charging circuit based on the MCP73113. This is designed to be a single-cell battery charger.   The battery itself (3.7V, 650mAh) comes with its own PCB with Schottky diode and current regulators as protection. EDIT: Not a Schottky diode. Current limiter and a Protection IC.  By design, they work together just fine.  I have more batteries from the same manufacturer and wanted to make higher capacity packs by putting two cells in parallel. The two cells come with their own PCB, but I only kept one of them, as I soldered their leads together. It seems to work and they are charged and discharged just like regular batteries (3.7V, now 1300 mAh).  However, not all the packs I made work smoothly and I get a failure rate of 2 in every 10 packs. They all start out normally, but occasionally when the batteries are not charged for some time, or are used up, they tend to not work anymore. So far, in only 1 pack I found the voltage to be different (both now below 2V, aka dead).  I assume my method is not the right approach to ensure 100% success rate, so I was wondering how can this be solved. All the controllers I looked into was designed for multiple cells in series, not parallel. Am I fundamentally missing something here? Usually, in Star Trek, when there's a timeline change, the indication is that the original timeline is gone and replaced with the new one.  In City on the Edge of Forever, Kirk makes a comment that if they don't get the timeline straight, that millions of people who never died before will die.  Much of the time travel in Trek created suspense by declaring a need to restore the original timeline.  It's already been discussed in other questions about how, in the new movie (simply titled Star Trek with no subtitle or series number) they were unable to restore the original timeline.  While some of this is open to interpretation, it seemed like in this instance, for the first time, in Trek, there was an alternate timeline that was seen as an alternate possibility - no reference was made to it replacing the original timeline.  In this movie, was there any reference to the original timeline still existing?  In this movie, was the original timeline still considered to be intact?