I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir.  That could be done with   cp -R -s ../foo .   But - that needs an absolute path. So rather  cp -R -s `readlink -e ../foo` `readlink -e .`   I would like the resulting links to be relative.  Is there some easy way? E.g. some script or program specialized for that.
I'd like to make links to all files in a directory tree. Which means, create the same directory structure and make the links in them to the respective subdirectory in the original dir.  That could be done with   cp -R -s ../foo .   But - that needs an absolute path. So rather  cp -R -s `readlink -e ../foo` `readlink -e .`   I would like the resulting links to be relative.  How would I do that?
How to pick a specific symbol from a specific font? Oftentimes, I want to include code samples in a list, for example:   Item One Item Two, for example: private bool ItemTwo() {     return this.IFeelLucky; } Item Three   The problem is that there isn't a good and intuitive way to do this using . It's doable, but you have to do some formatting black-magic to get it that way, which is just not "nice" to deal with.  Source that produces this:  1. Item One 2. Item Two, for example: &lt;br/>&lt;br/>&lt;pre>&lt;code>private bool ItemTwo()     {         return this.IFeelLucky;     }&lt;/code>&lt;/pre> 3. Item Three    I would love to just be able to do it this way:  1. Item One 2. Item Two, for example:      private bool Test()     {         return this.IFeelLucky;     }  3. Item Three  Which results in, well, this:   Item One Item Two, for example:  private bool Test() {     return this.IFeelLucky; } Item Three What does the `who` command result `root :0` mean? The return value of command who will always include root :0 in X Window pts. I guess it actually means the GNOME login. Am I right?  Another question is where to get this knowledge, as I don't see it in the man who, neither in info who.  Example  [root@localhost root]# who root     :0           Sep 11 06:33  root     pts/0        Sep 11 06:36     (:0.0) A borderline between on-topic questions and questions about library recommendation? I have a consideration about new off-topic close reason:     Questions asking us to recommend a tool, library or favorite off-site   resource are off-topic for Stack Overflow as they tend to attract   opinionated answers and spam. Instead, describe the problem and what   has been done so far to solve it.   For example take that question:   It has a close vote with the reason above. But if it would be formed     How to zoom image in an absolute position div to the side?   The answer would be probably also a jQuery plugin or javascript library, but it would follow the patter of most questions about jQuery.  Take that question:   This is the good question about real-life problem. The answer is to use a maven plugin. It is correct, there's no need to reinvent the wheel or rediscover the America.   But  I'm afraid the off-topic text could be misleading and could be misused to close such a questions as that about maven simply because a tool, library or plugin is the answer.   Is it a new guideline that the questions such as cited above should be banned, no matter how they are formed (this would make most how-to-do-in-maven/jquery) questions illegal? Or the close reason should be changed to make more clear what the guidelines are (it's not clear to me now)? I have a 8 GB pendrive. I used to write raw data into the pendrive (without creating filesystem) using the dd command.    Today, when I inserted the pen drive, the I am unable to write anything on to it.  When I open gparted it is showing the total space on the pen drive as 500 MB. I am unable to create a new partition table or a partition on the pen drive now.   Here is the fdisk -l output.   Disk /dev/sdb: 0 MB, 512000 bytes 255 heads, 63 sectors/track, 0 cylinders, total 1000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00095df6   What's wrong with the pen drive? How can I recover the lost space?   Device Boot      Start         End      Blocks   Id  System   When I open gnome-disks, it shows the total space as 8 GB but when I try to create a new partition using it, it shows the following error:  Error creating partition on /dev/sdb: Command-line parted --align optimal --script "/dev/sdb" "mkpart primary ext2 1MiB 7969177599b"' exited with non-zero exit status 1: Error: The location 7969177599b is outside of the device /dev/sdb.  (udisks-error-quark, 0) Executing .bat file How can I remap keyboard keys in windows 8.1? I'm looking for a simple utility which will modify registry and would not require running at startup. I tried sharpkeys but, it does not seem to work in windows 8.1. Any other suggestions? Or a simple how-to tutorial for windows 8.1?  Edit: Keytweak isn't working either. Actually I want to map an unused key to function key (fn) and neither sharpkeys nor keytweak detect the keystroke for that key.   Thanks What is the meaning of modular fractions? What is the meaning of $$ \\\frac{m}{n}\equiv k\pmod l $$ and $$ \\\frac{m}{n} \mod l $$ $m, n, k, l \in\mathbb N$ and $\gcd(m, n)=1$. Inform moderators migrating a question if the migration would have been normally blocked Calculate bounding box coordinates of a selected polygon with QGIS I just manually (and somewhat inaccurately I'm sure) retrieved the bounding box coordinates for a county polygon, which is a selection from a larger layer of county shapes. I'd like to be able to use a QGIS plugin or other function to calculate this quickly and not-by-hand. This is almost certainly possible but I couldn't find anything with a Google search Previously I thought this is a universal theorem, for one can prove it in the one dimensional case using variational principal.   However, today I'm doing a homework considering a potential like this:$$V(r)=-V_0\quad(r&lt;a)$$$$ V(r)=0\quad(r&gt;a)$$ and found that there is no bound state when $V_0a^2&lt;\pi^2\hbar^2/8m$.  So what's the condition that we have at least one bound state for 3D and 2D? Is WD-40 really bad to apply on bikes? I was told so but still see people doing that.   Also I saw WD-40 launching their new products of bike lubricant and degreaser. Did anybody try those? Is the topological product $\Pi \{G_\alpha: \alpha < \kappa\} $ a topological group? Is there any app for Stack Exchange? Is there any app available in the Android Market for Stack Exchange sites? I have posted a proof below, and would appreciate it if someone could review it for accuracy. Thanks!   Problem:   Let n $\in$ $\mathbb{Z}$ with $n$ $\ge$ 3. Prove the following:   (a) Z(D$_{2n}$) = 1 if $n$ is odd.   (b) Z(D$_{2n}$) = {1, r$^k$} if $n$ = $2k$.   Note that $r$ and $s$ generate D$_{2n}$ with the group presentation { $r$,$s$ | $r$$^n$ = $s$$^2$ = 1, $rs$ = $sr$$^{-1}$ }   Proof:  part (a)   Let $n$ $\ge$ 3 where $n$ $\in$ $\mathbb{Z}$ and $n$ is odd.   For any x $\in$ Z(D$_{2n}$), x must commute with both $s$ and $r$, since both are in $D_{2n}$. Note that if $x$ commutes with both $s$ an $r$, then $x$ commutes with any element of $D_{2n}$ since $r$ and $s$ generate D$_{2n}$.    Then for any x$\in$ Z(D$_{2n}$), we have $xr$ = $rx$, where x is of the form $x$ = s$^j$r$^w$ (any such element can be arranged into this form via the relation $rs$ = $sr$$^{-1}$ and the fact that $r$ and $s$ generate D$_{2n}$). Note that since r and s have finite order, the exponents are modulo n and modulo 2 for $r$ and $s$ respectively.   Then we have  s$^j$r$^w$$r$ = $r$s$^j$r$^w$.   Which implies s$^j$r$^{w+1}$ = s$^j$r$^{w +- 1}$  In the case where the power of r on the RHS is $w$ - 1, it is clear we cannot have equality unless |r| = 1, which it is not. Note that if $j$ is even then we have only the $w$ + 1 case. Hence $x$ may be of the form $1$$r$$^w$ = $r$$^w$.   Also we have that x must commute with $s$, hence $s$$x$ = $x$$s$.   Then $s$$r$$^w$ = $r$$^w$$s$.  Which implies $s$$r$$^w$ = $s$$r$$^{-w}$.   Applying s$^{-1}$ to both sides we arrive at the task of finding when r$^w$ = r$^{-w}$ i.e when $w$ = $-w$. But since r has finite order we have:   $$ \bar{w} = (n-1)*w $$   where $\bar{w}$ is the residue class of w modulo n. Hence for some a $\in$ $\mathbb{Z}$$_+$   $$ w + an = wn - w $$  $$ 2w = wn - an $$ $$ 2w = n(w-a) $$   Now since 0 $\lt$ w $\le$ n we have that the LHS is greater than 0. Also since n $\ge$ w then (w-a) $\le$ 2, since otherwise the RHS would be greater than the LHS. So since n is odd we must have that (w-a) is even and hence (w-a) = 2, implying that 2w = 2n and hence n = w.   Hence x = $r$$^w$ = $r$$^n$ = 1. So Z(D$_{2n}$) = 1.   part (b)   From the argument above any x $\in$ Z(D$_{2n}$) must be of the form $s$$^j$$r$$^w$ for j even and j $\in$ $\mathbb{Z}$. Then x is of the form $r$$^w$ for $0$ $\lt$ w $\le$ $n$. Since $n$ is even we have the equation below is satisfied when $2w$ = $n$ or $w$ = $n$, since (w-a) $\le$ 2 but also (w-a) $\ge$ 0 for (w-a) $\in$ $\mathbb{Z}$$_+$.   $$ 2w = n(w - a) $$   Hence $r$$^w$ $\in$ Z(D$_{2n}$) when $2w$ = $n$, as desired. I have a number of measurements of the same quantity (in this case, the speed of sound in a material). Each of these measurements has their own uncertainty.  $$ v_{1} \pm \Delta v_{1} $$ $$ v_{2} \pm \Delta v_{2} $$ $$ v_{3} \pm \Delta v_{3} $$ $$ \vdots $$ $$ v_{N} \pm \Delta v_{N} $$  Since they're measurements of the same quantity, all the values of $v$ are roughly equal. I can, of course, calculate the mean:  $$ v = \frac{\sum_{i=1}^N v_{i}}{N}$$  What would the uncertainty in $v$ be? In the limit that all the $\Delta v_i$ are small, then $\Delta v$ should be the standard deviation of the $v_i$. If the $\Delta v_i$ are large, then $\Delta v$ should be something like $\sqrt{\frac{\sum_i \Delta v_i^2}{N}}$, right?  So what is the formula for combining these uncertainties? I don't think it's the one given in  (though I may be wrong) because it doesn't look like it behaves like I'd expect in the above limits (specifically, if the $\Delta v_i$ are zero then that formula gives $\Delta v = 0$, not the standard deviation of the $v_i$). Is it possible to query the content of the Time-based Workflow Queue from an Apex unit test to assess that a specific Workflow Rule has been executed and added a new item to the queue? I didn't see anything alike in the documentation, but wish it could be possible to improve testing and stability overtime.  Thanks What characters/symbols are allowed within the CSS class selectors? I know that the following characters are invalid, but what characters are valid?  ~ ! @ $ % ^ &amp; * ( ) + = , . / ' ; : " ? &gt; &lt; [ ] \ { } | ` # lualatex MWE not working Class object affecting other class object when thread.sleep- Python