I just installed Lubuntu 12.10 "Quantal Quetzal" on my Acer Aspire One D257, creating the partitions:  $ df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sda5        15G  2.1G   12G  15% / ... /dev/sda1      1008M   62M  896M   7% /boot  /dev/sda6        15G  180M   14G   2% /home /dev/sda4       195G  188M  185G   1% /media/data   (or see partitions.png:)    (I know boot partitions were useful for old bios, but now they are also useful for encryption, LVM... (though differerent from a dedicated GRUB partition !)) I renamed the "data" partition (=sda4) flag/name (using utility Disks). I have been trying for hours now to find a solution to:      How to get my data partition (not my home partition!) to auto-mount at boot time somewhere (if possible in /media/data) with me (user =   christophe) as owner and the permissions as rwxrwxr-x (=user:rwx,   group:rwx, other:r-x)?  My problems are that every time I reboot:   /media/data is back under root ownership /media/data is back under rwxr-xr-x permissions /media/data content is back as just lost+found (!!!) frequently, when trying options in /etc/fstab, I had "an error occurred while mounting /media/data" at boot time.  I tried mostly to edit my /etc/fstab file. Now it is:  $ cat /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt; # / was on /dev/sda5 during installation UUID=8325697c-2c27-49dd-99f8-2a1a3e1467be /               ext4    errors=remount-ro 0       1 # /boot was on /dev/sda1 during installation UUID=3ba24cc6-e38b-48d9-b526-68358783d980 /boot           ext4    defaults        0       2 # /home was on /dev/sda6 during installation UUID=1ef16ece-0965-4611-a2e5-dd687f4ee5ff /home           ext4    defaults        0       2 # /media/data was on /dev/sda4 during installation # UUID=0598f54b-dcf8-4508-97de-94d9f2c5e2a8 /media/data   ext4    defaults        0       2 UUID=0598f54b-dcf8-4508-97de-94d9f2c5e2a8 /media/data     ext4    rw,suid,dev,exec,auto,user,async,errors=remount-ro,relatime,uid=1000,gid=1000        0       2 # swap was on /dev/sda2 during installation UUID=04f73159-479d-4a4b-a78c-37a406909225 none            swap    sw              0       0  In a way, I'd like my data partition to automount like my home partition. I do not want a solution where I would have to chmod or chown or do something every time I (re)boot!   Thanks.
I want to mount the device /dev/sda3 to the directory /foo/bar/baz. After mounting the directory should have the uid of user johndoe. So I did:  sudo -u johndoe mkdir /foo/bar/baz stat -c %U /foo/bar/baz johndoe   and added the following line to my /etc/fstab:  /dev/sda3 /foo/bar/baz ext4 noexec,noatime,auto,owner,nodev,nosuid,user 0 1   When I do now sudo -u johndoe mount /dev/sda3 the command stat -c %U /foo/bar/baz results in root rather than johndoe. What is the best way to mount this ext4-filesystem with uid johndoe set?
My online friend is asking for money in order to visit my home country. Is this a legit request or a scam? On Travel.SE we often see questions about a person (usually a love interest) asking for money to pay for airfare, visas, permits and other expenses. For example        What general advice can be given in such situations to the person asking the question? Is it all a scam or can there be legitimate situations in which an online friend could be asking for money? Right-Click menu awareness on Web Application The web application I am building has a custom right-click menu. I'm concerned that the user might not find this menu as normally right-clicking will only display the default browser's menu. Is there a standard way to make the user aware of custom right-click menus? Is there another way to show this information? Prove that $f'(0)$ exists and $f'(0) = b/(a - 1)$ Problem:   If $f(x)$ is continous at $x=0$, and $\lim\limits_{x\to 0} \dfrac{f(ax)-f(x)}{x}=b$, $a, b$ are constants and $|a|&gt;1$, prove that $f'(0)$ exists and $f'(0)=\dfrac{b}{a-1}$.   This approach is definitely wrong:    \begin{align} b&amp;=\lim_{x\to 0} \frac{f(ax)-f(x)}{x}\\ &amp;=\lim_{x\to 0} \frac{f(ax)-f(0)-(f(x)-f(0))}{x}\\ &amp;=af'(0)-f'(0)\\ &amp;=(a-1)f'(0) \end{align}  I will show you a case why this approach is wrong:     \[f(x)= \begin{cases} 1,&amp;x\neq0\\ 0,&amp;x=0 \end{cases}\]   $\lim_{x\to0}\dfrac{f(3x)-f(x)}{x}=\lim_{x\to0} \dfrac{1-1}{x}=0$   but $\lim_{x\to0}\dfrac{f(3x)}{x}=\infty$,$\lim_{x\to0}\dfrac{f(x)}{x}=\infty$   Does anyone know how to prove it? Thanks in advance! In python, if I say  print 'h'   I get the letter h and a newline.  If I say   print 'h',   I get the letter h and no newline.  If I say  print 'h', print 'm',   I get the letter h, a space, and the letter m.  How can I prevent Python from printing the space?  The print statements are different iterations of the same loop so I can't just use the + operator. Proof that an integral domain that is a finite-dimensional $F$-vector space is in fact a field Let $(a,b)$ and $(c,d)$ be intervals in $\Bbb R$, and find an injective and surjective function from $(a,b)$ to $(c,d)$ So here is this question I got stuck on:  Let $(a,b)$, $(c,d)$ be intervals (not sure if that's the correct term) on $\Bbb R$, so that $a&lt;b$, $c&lt;d$. Find an injective and surjective function $f:(a,b)\rightarrow(c,d)$.   Thanks in advance!   P.S. I get these question a lot. Is that some way of thinking, or some general method I should follow to make these question easier for me to solve? Can I install the free Windows 7/8 -> 10 upgrade on a new empty drive? With the new Windows 10 coming out soon as a free upgrade, I'd like to know if and how I can install the upgrade on a new HDD. I assume the files needed for Windows 10 are only for upgrading an installed copy of Windows 7 or 8 and not a standalone installer to use on an empty hard drive. Or is this assumption wrong?  I have some issues booting (an older non-working version appears in the list of OS's to choose from) and I'd like to replace my current SSD, which is too small, with a new larger capacity one, while keeping my other drives intact. The old SSD will then be removed.  If more information is needed, please let me know. Which choice of line-breaking parameters gives the minimum number of lines Multiple logistic regression power analysis When my phone MOTOROLA G3(2015) is updated to Marshmallow, its not showing files when connected to PC. While connecting, it shows options as charing only, PTP, MTP, MIDI. When I select MTP, it shows the external card, but not showing the contents, where as internal memory is detected and all files are shown. Calculating the force required to lift a weight with a screw Identification card for foreigners in trains in Germany I want to go to Berlin to Gottingen by train. I found that to avail myself of the &ldquo;savings fare&rdquo;, I have to book a ticket at least one day in advance. And I saw a requirement on the Bahn website to have a identification card for online tickets.  I am a foreigner in Germany, so does my passport count as valid identification in German trains? How to prove this statement: $\binom{r}{r}+\binom{r+1}{r}+\cdots+\binom{n}{r}=\binom{n+1}{r+1}$ Let $n$ and $r$ be positive integers with $n \ge r$. Prove that   Still a beginner here. Need to learn formatting.  I am guessing by induction? Not sure what or how to go forward with this.  Need help with the proof. Is it possible to see the history of changes to a particular line of code in a Subversion repository?  I'd like, for instance, to be able to see when a particular statement was added or when that statement was changed, even if its line number is not the same any more. How to deal with high correlation among predictors in multiple regression? Unable to install "": snap "" has "install-snap" change in progress I just finished the installation of the Ubuntu 18.04, but whenever I try to install any application from Ubuntu Software the same error occurs (for example "vlc"):     unable to install "vlc": snap "vlc" has "install-snap" change in progress   I hope somebody can tell me what I've done wrong. no cycles if and only if has $n-m$ connected components Who was the colleague that Erik was going to contact for help? After S.H.I.E.L.D confiscates Jane's work in Thor, the researchers discuss what they'll do next.  Erik mentions two colleagues. The first is reasonably implied to be Bruce Banner, but who is the second colleague he mentions? Transcribed from the film:  Jane Who are these people? Erik I knew this scientist... a pioneer in gamma radiation. S.H.I.E.L.D showed up and... umm. He wasn't heard from again. Jane They're not going to do that to us. I'm going to get everything back. Erik mumbles Please. Let me contact one of my colleagues. He's had some dealings with these people before. I'll email him and maybe he can help. Darcy They took your laptop, too. "Out of pocket"? I'm increasingly hearing the phrase "out of pocket" used in America as a colloquialism to mean "away from the office", "unavailable", or "incommunicado".     I apologize for not replying sooner; I have been out of pocket.    What is the etymology of this usage? It always sounds odd to me, since I had previously always associated the phrase with expenses, e.g., "I had to pay for the service out of pocket," meaning, "I had to pay for the service using my own money." Should either of these usages be avoided? What is the extent of their acceptance? How do I depower overpowered magic items without breaking immersion?