I am learning shell scripts here and would like to know how to automate user input (Y/ n) during package installation. I inserted echo Y for input "yes" on line 4 but it doesn't seem to work. The linux terminal still prompts me for input. Any suggestions? Thanks in advance..  echo "System update is starting..." sudo apt-get update sudo apt-get upgrade echo Y echo "installing keyboard..." sudo apt install matchbox-keyboard
Of course when you type:  sudo apt-get install whatever   It asks you:   Do you want to continue [Y/n]?    Is there any way I can just install it without it asking me if I want to continue? I don't really care about space, I have more then enough.
Notify users of a question they closed being edited or nominated for reopening redirecting output of running background job in bash in bash I have some jobs running, in background. They are always producing random irrelevant error messages that pollute the terminal. I am not always so prompt to start them with the 2&gt;&amp;1 &gt; /dev/null redirect. How can I redirect the output when they are already running? The preimage of a subset If $A\subseteq B$ under what conditions is $f^{-1}(A) \subseteq f^{-1}(B)$, where $f^{-1}$ is the preimage, not  the inverse. number of quadratic residues in finite field Is there a way to determine how many quadratic residues are there in the finite field $F_q$ for $q = p^k$?  It seems if $q=p$ exactly $(p-1)/2$ are residues and the same amount are not. Does analogy holds for $q = p^k$?  Thanks for any input. Prove the equality: $\det\left[\begin{smallmatrix} -2a &a+b &a+c \\ b+a&-2b &b+c \\ c+a&c+b &-2c \end{smallmatrix}\right] = 4(a+b)(b+c)(c+a)$ i have to prove:   $$\begin{vmatrix} -2a &amp;a+b  &amp;a+c \\   b+a&amp;-2b  &amp;b+c \\   c+a&amp;c+b  &amp;-2c  \end{vmatrix} = 4(a+b)(b+c)(c+a)$$   I have tried many calculations between the rows and columns of the determinant to get to the answer i want to solve the exercise however none of them gave me something right. Can someone help? Plot Details/Summary I only watched an episode or two of this one, so I can't recall a whole lot about it.  The protagonist is a former astronaut of some sort, who makes it his mission to clean up the crime in his city.  He might have been a police officer in his &quot;new life&quot; or he might have decided to become a sort of quasi-superhero.  In either case, I distinctly recall his space suit being the gimmick that makes him an effective crime fighter in the show.  I seem to recall the protagonist being a young, dark-haired man, and I think he had a friendship or an alliance with a young woman (maybe a fellow cop, or someone from the space program?).  I don't think there were alien beings in the show.   The criminal threats were all quite terrestrial, IIRC. Timeframe and other Publication Details This was a syndicated tv show I saw on American television, probably around the late 90s to early 2000's.  I believe the show was filmed in Canada, though I'm not certain.  I don't think it lasted very long - it was pretty dreadful.  I can say for certain the show is not Space Cop or Gerry Anderson's Space Precinct. How are we able to calculate specific numbers in the Fibonacci Sequence? I was reading up on the Fibonacci Sequence,  $\text {{1,1,2,3,5,8,13,....}}$ when I've noticed some were able to calculate specific numbers. So far I've only figured out creating an array and counting to the value, which is incredibly simple, but I reckon I can't find any formula for calculating a Fibonacci number based on it's position.  Is there a way to do this? If so, how are we able to apply these formulas to arrays? How can I make a time delay in Python? Windows Phone ReverseGeocoding to get Address from Lat and Long Why does old PMOS/NMOS logic needed multiple voltages like  +5, -5, and +12 volts? For example, old Intel 8080 processors, old DRAMs, e.t.c...  I'm interested in the causes on the physical/layout level.  What was the purpose of these additional voltages?  Yes, this question is about stuff which was used 35 years ago. CPU clock speed versus CPU core count - higher GHz, or more cores for SQL Server? We are beginning to provision a set of physical servers for a virtual cluster of SQL Server 2016 nodes within VMware. We will be utilizing Enterprise Edition licenses.  We plan on setting up 6 nodes, but there is a bit of a debate on what the ideal way to provision the physical servers with regards to CPU clock speed versus CPU core count.  I know this is largely dependent on transaction volume and number of databases stored among other software-specific factors, but is there a general rule of thumb that is advised?  For instance, is a dual 8-core, 3.2 GHz physical server (16 cores) more preferential to a dual 16-core, 2.6 GHz server (32 cores)?  Has anyone come across a white paper that further delves into this type of topic? May I summarize all answers on StackOverflow, I asked a . There are many good answers but I can not accept just one of it. I would prefer to create my own answer where I summarize all answers. Is that allowed? When to use a hyphen to coin a new word and when to omit a hyphen? Someone has asked for answer to these topics. However, I still want someone to provide me with simple and universal answers. I recently read a sentence from the English-speaking person. It is in an article. It is, ' The available options for mitigating pad cratering are not universally effective (see link below), but they may be helpful on a case by case basis until more crack resistant laminates are developed and become available.  '  If I am to write this, I will use 'a case-by-case basis until more crack-resistant laminates'   Can anyone tell me when to use a hyphen to coin a new word? Theorem style with name as argument Is there some way to get a theorem type which will make a theorem with the name passed as a parameter? In other words, is there a way to define "named" such that   \begin{named}[NAME] text \end{named}   will print   "NAME: text"?  I tried using the definition \newtheorem*{named}{}, but that results in   "(NAME): text", which is quite different from what I am trying to do.  I know that I could also create a new instance of \newtheorem for each named theorem I want to use, but that is clunky and inconvenient. Is there a better way? Do the glowing pillars in The Storm Halls do anything? I've noticed that occasionally if I shoot at (or near) the glowing red pillars they will kind of explode a bit for a second and then reform. Does this affect my attacks in any way? What about nearby enemies? Is this purely cosmetic (like pillars in other dungeons crashing down)? stl::multimap - how do i get groups of data? Multimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values. For example, in a std::multimap&lt; string, int &gt; I store   {"Group1", 1},  {"Group1", 2},  {"Group1", 3},   {"Group2", 10},  {"Group2", 11},  {"Group2", 12}   Having stored these values, I should be able to iterate this multimap and get the aggregate values of each "group". Problem is there aren't any functions defined in STL to access MultiMaps in such a way. I could use lower_bound, upper_bound to manually iterate the multimap and total the group's contents, but I am hoping there could be better ways already defined in STL ? Can anyone propose a solution as to how I could get the aggregate values for a group in the above example. How can I stop fish from sticking to a stainless steel pan? I think Anne Burrell lied to me. She said fish will always stick to a stainless pan. This is true. No matter how well I lubricate my pan, my fish will always adhere like cement. She also said that the pan will release the fish "when it's ready." Maybe meaning it will eventually become unstuck when the fish is done cooking? Well, I've tried that, and it never works. No matter how long I wait, it never becomes unstuck. Most recently I gave it as much time as I could. When I finally chiseled it off the pan, tearing it apart in the process, I saw that it was starting to burn on that side. I've started going back to non-stick until I get this figured out.  Are there any tips? Am I heating the pan wrong? Does it help to slide the fish around a bit after putting it in the pan? How to hide terminal output when executing a command? I was wondering if it's possible to run an Ubuntu virtual machine using VirtualBox in background, I mean, without any window open.  The idea is to connect via SSH to the Linux host, that would be running in background.  Has anyone ever done something like this? Is it possible? Why does $x$ divided by zero not equal $x$? Why does $x$ divided by zero not equal $x$? After all, $x$ is not being divided by anything.