I recently built an Ubuntu machine and having no knowledge at all about Linux, I was curious about what it's like :)  I used 1 HDD when I installed Ubuntu. A couple of days ago I decided to add one more HDD connected directly into the motherboard using SATA cable.  My question is: How do I make that 2nd HDD permanent, just like my main HDD?  It seems that my computer recognizes my additional HDD as a removable drive (it has a "unmount button" next to it).  If you could please guide me a step-by-step procedure, it would be greatly helpful. Thanks
I am going to put an additional (non-USB) hard drive in my system. I already have Ubuntu on my other hard drive so I do not want to install Ubuntu on the additional drive but only use it for storage. How do I add the additional hard drive to my Ubuntu system, e.g. make Ubuntu recognize it and mount it properly?
How to align prices in columns when both 2 digit and 4 digit variations of a price exist? I am trying to display data similar to coinmarketcap with prices for coins, some above 1$ in which case they are rounded to 2 zeroes, some below 1$ in which case they have 4 digits following the decimal. I saw a bunch of posts here where people have suggested to use right alignment for numeric applications/prices  Approach 1 Decimal aligned   1. $13,700.05  2.      $0.0048   Approach 2 Right aligned   1. $13700.05  2.   $0.0048   Which of these approaches do you suggest? Thank you for your time The differential equation $$ {d^2\alpha \over dt^2} + {g \over L} \cdot \alpha = 0 $$  describes a 1-dimensional mathematical pendulum, where $\alpha $ is the angle, $ g = 9.82 $, and $ L = 0.2 $ is the lentgh of the string. What is the position of the pendulum after 1 second if the velocity at time equals zero is $ 0 $ m/s and the angle at time equals zero is $ {\pi \over 60} $ radians.  To my understanding this is a homogenous equation, ergo  $$ y'' + Cy = 0$$  And with the help of the characteristic equation I get the complex roots $ Ci \, $ and $ -Ci $.  This is a farily simple differential equation, but I have a feeling my calculations so far are wrong (mainly because I didn't expect to see complex roots for this equation). From a link from the question  to the HP Wikia, I started mulling over something I read about Voldemort and the "regeneration" potion (not a canon potion, but I'll use it for lack of a better way of describing it. . .) and would really like to know:  How did Voldemort drink the regeneration potion to turn his body into the grotesque childlike form we see in Goblet of Fire while he was still in a "mangled spectral state"?  Spectres (i.e. spirits or ghosts) are non-corporeal; they obviously can't consume food or drink liquids. So, how did Voldemort overcome this difficulty and manage to drink the regeneration potion? Recently I switched from Google to DuckDuckGo and so far I am very pleased with the experience. "The Internet" tells me that one of DuckDuckGo's best features is the possibility to directly search on specific pages using bangs (defined prefixes). E.g. search for "!so [duck-duck-go]" on DuckDuckGo to get duck-duck-go tagged questions on Stackoverflow.  I was searching for a comprehensive list of all available bangs, but the only thing I found was the official  wich offers a search box and categorized lists, but no complete list of all 7,447* bangs.  Is there a possibility to find all bangs without clicking through all the categories on the bang-page?    (*) by time of writing, 2015-12-15 Which graphics formats can be included in documents processed by latex or pdflatex? There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which?  Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation.  Can anyone explain this? Illogical GTK theme behaviour on Ubuntu 18.04 I want to express $$\sum_{n=-\infty}^\infty \dfrac{1}{(z+n)^2+a^2}$$ in closed form. What comes to mind is the formula $$\pi\cot\pi z = \dfrac{1}{z}+\sum_{n\ne 0}\left(\dfrac{1}{z-n}+\dfrac1n\right)=\dfrac{1}{z}+\sum_{n=1}^\infty\dfrac{2z}{z^2-n^2}$$  and also $$\dfrac{\pi^2}{\sin^2\pi z}=\sum_{n=-\infty}^\infty \dfrac{1}{(z-n)^2}.$$ But neither of these gives the term $(z+n)^2+a^2$ that we want. Perhaps we can adjust somehow? What does if __name__ == "__main__": do? Given the following code, what does the if __name__ == "__main__": do?  # Threading example import time, thread  def myfunction(string, sleeptime, lock, *args):     while True:         lock.acquire()         time.sleep(sleeptime)         lock.release()         time.sleep(sleeptime)  if __name__ == "__main__":     lock = thread.allocate_lock()     thread.start_new_thread(myfunction, ("Thread #: 1", 2, lock))     thread.start_new_thread(myfunction, ("Thread #: 2", 2, lock)) I know there a lot of posts about ram but I'm still confused about it. I'm building a new system and because it was cheaper, I bought a 6GB kit from Corsair. So I'm wondering if I would be better off just using 4GB of it in a dual channel configuration or just add all 6GB (3 DIMMS) in a single channel configuration.   Thanks Modular exponentiation by repeated squaring Duality discrete math problem This is the only answer I got wrong on my HW and the prof does not want to give us the correct answers before our midterm     The dual of a compound proposition that contains only the logical operators $\lor$ , $\land$ , and   $\neg$ is the compound proposition obtained by replacing each $\lor$ by $\land$ , each $\land$ by $\lor$ , each $\def\T{{\rm T}}\def\F{{\rm F}}$   $\T$ by $\F$ , and each $\F$ by $\T$ . The dual of $s$ is denoted by $s^*$. Find the dual of these compound propositions.      a) $p \lor\neg q$     I got $\neg p \land q$       b) $p \land (q \lor (r \land \T))$     My answer was $\neg p \lor (\neg q \land r)$       c) $(p \land \neg q) \lor (q \land \F)$     My answer was $(\neg p \lor q) \land  \neg q$  I have tried googling the problem and cannot come up with anything on duals and our lectures are online and upon reviewing do not see anything. I am just confused and looking for a little guidance on what was incorrect with my answers. How do I run a 'sudo' command inside a script? I am looking for a way to replace a string in a file with a string that contains a slash by using sed.  connect="192.168.100.61/foo" srcText="foo.bar=XPLACEHOLDERX" echo $srcText | sed "s/XPLACEHOLDERX/$connect"   The result is:  sed: -e Expression #1, Character 32: Unknown option for `s' How do I overload the square-bracket operator in C#? DataGridView, for example, lets you do this:  DataGridView dgv = ...; DataGridViewCell cell = dgv[1,5];   but for the life of me I can't find the documentation on the index/square-bracket operator.  What do they call it?  Where is it implemented?  Can it throw?  How can I do the same thing in my own classes?  ETA: Thanks for all the quick answers.  Briefly: the relevant documentation is under the "Item" property; the way to overload is by declaring a property like public object this[int x, int y]{ get{...}; set{...} }; the indexer for DataGridView does not throw, at least according to the documentation.  It doesn't mention what happens if you supply invalid coordinates.  ETA Again: OK, even though the documentation makes no mention of it (naughty Microsoft!), it turns out that the indexer for DataGridView will in fact throw an ArgumentOutOfRangeException if you supply it with invalid coordinates.  Fair warning. Generalized Pell equation $x^2-2y^2=49$ Prove the map has a fixed point Assume $K$ is a compact metric space with metric $\rho$ and $A$ is a map from $K$ to $K$ such that $\rho (Ax,Ay) &lt; \rho(x,y)$ for $x\neq y$. Prove A have a unique fixed point in $K$.  The uniqueness is easy. My problem is to show that there a exist fixed point. $K$ is compact, so every sequence has convergent subsequence. Construct a sequence ${x_n}$ by $x_{n+1}=Ax_{n}$,$\{x_n\}$ has a convergent subsequence $\{ x_{n_k}\}$, but how to show there is a fixed point using $\rho (Ax,Ay) &lt; \rho(x,y)$? The one of solution of $x^4 - 2y^2 = -1$ is $x = 1$ and $y = 1$. However, the solution $(1, 1)$  of $x^4 - 2y^2 = 1$ is failed. We know $x = 1$ and $y = 1$ is small integers and we can check by trail method. In case more solutions are existing or not how to check? What are the solutions of $x^4 - 2y^2 = 1$? How can I embed a View inside a content of a node? How can I embed a view inside a content of a node in Drupal 8?   I found something similar, for example in the question about "" or the  module, but it is all for Drupal 7.  I tried with an Entity reference field pointing to a View but it display only a label and from the Manage Display tab I can choose only from Label and Entity ID. I need something like the "Rendered entity" option that is present on Entity reference fields pointing to other nodes. Different voltage sources in parallel I realize connecting two different voltage sources in parallel is a contradiction (in an ideal circuit). But if I were to connect this in practice and measure the voltage across points A and B, what value of voltage would it show? And how much current would be sunk by the 5V battery? (Non ideal conditions) Why are our planets in the solar system all on the same disc/plane/layer? I always see pictures of the solar system where our sun is in the middle and the planets surround the sun. All these planets move on orbits on the same layer. Why?