When we click on nautilus icon, it by default launches /home directory which is pretty much useless for me as I do not save anything in /home partition. Can I make it launch something else, like /media/girish/two  I’m new to Ubuntu so Try to be as detailed as possible.
The default is that clicking on the folder in the unity dock opens the home directory.   Since there are shortcuts for all the sub-folders of the home directory in the sidebar already, I'd prefer the default directory to move to a different location (~/Documents).  How can I achieve this?
find the value of limit Find the value of $$ \lim_{n\to\infty} \sum_{k=n+1}^{2n} \frac{1}{k} $$ I think it become a series with each denominator approach infinity. so the value of the limit is 0. am i true ? "Speed" of Gravity and Speed of Light Some threads here touching speed of gravity made me think about that. This lead to some questions.    The speed of gravity was not measured until today (at least there are no undebated papers to that effect). It seems common knowledge/belief among physicists that the speed of gravity is the same as the speed of light.    And this is my question: Is that speed of light = speed of gravity a result of GR or is that fed into the theory? Or is there some evidence from other sources than GR for this? Does the same speed imply some deep-lying relation between gravity and electromagnetism? "What was best" vs "what was the best"? Do both have the same meaning? Or they are subtly different? Example sentence:  What was (the) best? To go left or right, up or down?   it says that both are exactly the same. But I wonder if that's really the case. Are there benefits of passing by pointer over passing by reference in C++? What are the benefits of passing by pointer over passing by reference in C++?  Lately, I have seen a number of examples that chose passing function arguments by pointers instead of passing by reference.  Are there benefits to doing this?  Example:  func(SPRITE *x);   with a call of  func(&amp;mySprite);   vs.  func(SPRITE &amp;x);   with a call of  func(mySprite); Proving $(A\le B)\vee (B\le A)$ for sets $A$ and $B$ How to get relative path from absolute path There's a part in my apps that displays the file path loaded by the user through OpenFileDialog. It's taking up too much space to display the whole path, but I don't want to display only the filename as it might be ambiguous. So I would prefer to show the file path relative to the assembly/exe directory.  For example, the assembly resides at C:\Program Files\Dummy Folder\MyProgram and the file at C:\Program Files\Dummy Folder\MyProgram\Data\datafile1.dat then I would like it to show .\Data\datafile1.dat. If the file is in C:\Program Files\Dummy Folder\datafile1.dat, then I would want ..\datafile1.dat. But if the file is at the root directory or 1 directory below root, then display the full path.   What solution would you recommend? Regex?  Basically I want to display useful file path info without taking too much screen space.  EDIT: Just to clarify a little bit more. The purpose of this solution is to help user or myself knowing which file did I loaded last and roughly from which directory was it from. I'm using a readonly textbox to display the path. Most of the time, the file path is much longer than the display space of the textbox. The path is supposed to be informative but not important enough as to take up more screen space.  Alex Brault comment was good, so is Jonathan Leffler. The Win32 function provided by DavidK only help with part of the problem, not the whole of it, but thanks anyway. As for James Newton-King solution, I'll give it a try later when I'm free. So, the spiffy new wi-fi thermostats want power on the C wire from thermostat, but the old thermostat doesn't have a C wire at it.  What's the easiest way to add the C wire/24 volt to the thermostat location? Can I have 8 GB RAM on 32-bit Win 7? Possible Duplicate:             According to , Win 7 only supports 4 GB of RAM. I, however have been reading some forums and some say they are using 8 GB RAM with good performance. I am wondering if I can use 8 GB before I purchase. This might be a duplicate of  but that question is 5 years old and unanswered.  When I'm in drive.google.com and I open a G Suite file (either double-click or select &amp; press enter) in Firefox it opens in a new window whereas in Chrome it opens in a new tab.   Why do they do that? Is this a browser-specific quirk or a Google setting (that I haven't found)? Is there a way to control the behavior? I'd like them both to open in tabs, but presumably the same answer would be relevant in the opposite direction too. Show that $a^2 \bmod b = (a \bmod b)^2 \bmod b$ Show that  $$a^2 \mathrm{\ mod \ } b = (a \mathrm{\ mod \ } b)^2 \mathrm{\ mod\ } b$$ for $ a, b \in \mathbb{Z}^+ $.  this was derived from an Informatics olympiad question. table of contents: adding a vertical space In a table of contents that has been generated with LaTeX's \tableofcontents command, I would like to add a vertical space before a Chapter item in the table of contents. One way that I have in my notes is to use  \addtocontents{toc}{\protect\vspace{10pt}}   at a desired location in the document so that this gets processed by \tableofcontents to include an appropriate vertical space in the table of contents. I have two questions:   Is the above the correct way to get a vertical space in a table of contents? Why is it necessary to use the \protect command here?   Thank you... Create line heatmap with QGIS I have loaded my bike tours as .gpx files into QGIS.    It already looks quite nice but I was wondering if it might be possible to create something similar to the strava heatmap with tools of QGIS.     I have tried to generate points along the lines and use kernel density but it just does not look nice as a raster layer.  Any suggestions? How to update libavcodec on ubuntu 14.04? On Ubuntu 14.04.5 I just upgraded firefox to version 50.0; now there is a message on some pages which reads:   libavcodec may be vulnerable or is not supported, and should be updated to play videos   So how can I update libavcodec?  A simple   sudo apt-get install libavcodec   gives the following output:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package libavcodec   So maybe I don't have libavcodec installed in the first place? So why do I get this message...? I found this in . I've paraphrased for clarity.  There are 100 professors. Some are honest, while others are dishonest. There are more honest professors than dishonest ones. Honest professors always tell the truth, but the dishonest ones sometimes tell the truth and sometimes lie. You can ask any professor the following question about any other professor, "Professor Y, is Professor X honest?" to which he/she will answer yes or no. Design an algorithm that allows you to figure out which of the professors are honest with no more than 198 questions.  The bold part is the kicker. If liars always lied, then the problem is trivial - just ask 99 people about one guy. The majority would be the truthful answer, so you know your honest guys and your liars.  So, any advice? If you give the answer please put it in spoiler tags since I'm just looking for direction. Let $X \ge 0$.  Show  \begin{align} \lim_{y\to\infty} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= 0 \quad\text{and} \\ \lim_{y \downarrow 0} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= 0. \end{align}  N.B.: The author doesn't assume $\Bbb{E}[1/X] &lt; \infty$.    My try:  Since the expectation appears on the RHS of Markov's inequality, I don't think this inequality can be applied to solve this question.  $$ \begin{aligned} y\,\Bbb{E}\left[ \frac1X \cdot1_{X&gt;y} \right] &amp;= \Bbb{E}\left[ \frac{y}{X} \cdot1_{X&gt;y} \right] \\ &amp;&lt; \Bbb{E}\left[ 1 \cdot1_{X&gt;y} \right] \\ &amp;= \Bbb{P}(X &gt; y) \\ &amp;\xrightarrow[y\to0]{} \Bbb{P}(X \ge 0) = 1 \end{aligned} \tag1 \label1 $$  For the first part $y \to \infty$, I apply Markov's inequality at the row $\Bbb{P}(X &gt; y)$ in \eqref{1}, so that $$\Bbb{P}(X &gt; y) \le \frac{\Bbb{E}[X]}{y} \xrightarrow[y\to\infty]{} 0?$$ But I don't have $\Bbb{E}[X] &lt; \infty$.  Thanks for any help. Difference between DispatchQueue.main.async and DispatchQueue.main.sync How can I get Gnome3 to remember my session? Show that one-sided limits always exist for a monotone function (on an interval) Show that one-sided limits always exist for a monotone function on an interval $[a,b]$.  Me attempt:  1) If a function is monotone on an interval $[a,b]$, then $f(a)\le f(x) \le f(b)$ for $x\in[a,b]$. Therefore if there exists left-hand (right-hand) limit of this function at a given point, then it must be finite. Now we must show that a both left-hand and right=hand limits exist. We use the fact that if we take a sequence $(x_n)\rightarrow c^{+} \in [a,b]$ then $f(x_n)$ is bounded and monotone and therefore it is convergent. Prove $\gcd(a,b) \gcd(a,c) \gcd(b,c) \,\text{lcm} (a,b,c)^2=$ $\text{lcm}(a,b)\,\text{lcm}(a,c) \,\text{lcm}(b,c) \gcd(a,b,c)^2$ I'm trying prove $$\gcd(a,b) \gcd(a,c) \gcd(b,c) \,\text{lcm} (a,b,c)^2=\text{lcm}(a,b)\,\text{lcm}(a,c) \,\text{lcm}(b,c) \gcd(a,b,c)^2$$  It is a part of solution of another problem I try a lot to prove it but I could not be succeed.  I tried using exponent manipulation in prime factorizations but it didn't help me. I know this proof is somewhat similar, or related to the Baire's Category Theorem but I can't seem to figure out how to do it.  The Baire Category theorem asserts that if X is a complete metric space or a locally compact Hausdorff space (my case), then the complement of a countable union of nowhere dense sets is always nonempty.  How can I use this on the proof?